![]() |
AliRoot Core
edcc906 (edcc906)
|
#include <fstream>
#include "TString.h"
#include "TSystem.h"
#include "TTree.h"
#include "TEntryList.h"
#include "TCut.h"
#include "TStatToolkit.h"
#include "AliTPCCalibViewer.h"
#include "AliTPCCalibViewerGUI.h"
#include "AliTPCPreprocessorOnline.h"
#include "AliTPCCalibCE.h"
#include "AliTPCCalibPulser.h"
#include "TStopwatch.h"
Go to the source code of this file.
Functions | |
TString | qaside ("CE_Q") |
TString | taside ("CE_T") |
TString | raside ("CE_RMS") |
TString | qcside ("CE_Q") |
TString | tcside ("CE_T") |
TString | rcside ("CE_RMS") |
TString | tcor ("-pulCorr") |
void | LoadViewer () |
void | RebuildData () |
void | MakeFit () |
void | MakeFitPulser () |
void | MakeAliases0 () |
void | MakeAliases1 () |
void | LoadData () |
void | StoreData () |
void | StoreTree () |
void | AnalyzeLaser () |
void | MakeRes () |
void | RebuildCE (char *finname, char *pulname) |
void | AnalyzeLaserCE () |
void | AddFiles (char *list) |
Variables | |
char * | inname = "treeCE.root" |
char * | fname = "treefitCE.root" |
char * | oname = "fitCE.root" |
AliTPCCalPad * | calPadIn = 0 |
AliTPCCalPad * | calPadF1 = 0 |
AliTPCCalPad * | calPadF2 = 0 |
AliTPCCalPad * | calPadQIn = 0 |
AliTPCCalPad * | calPadQF1 = 0 |
AliTPCCalPad * | calPadQF2 = 0 |
AliTPCCalPad * | calPadCor = 0 |
AliTPCCalPad * | calPadOut = 0 |
const Float_t | tThr =0.3 |
const Float_t | qThr0 =0.5 |
const Float_t | qThr1 =2 |
AliTPCCalPad * | calPad0 = 0 |
AliTPCCalPad * | calPad1 = 0 |
AliTPCCalPad * | calPad2 = 0 |
AliTPCCalPad * | calPadInOut = 0 |
AliTPCCalPad * | calPadLX = 0 |
AliTPCCalPad * | calPadTL = 0 |
AliTPCCalPad * | calPadQ = 0 |
AliTPCCalPad * | calPadGXY = 0 |
AliTPCCalPad * | calPadOff = 0 |
AliTPCCalPad * | calPadRes = 0 |
TObjString | strFit0 ="" |
TObjString | strFit1 ="" |
TObjString | strFit2 ="" |
TVectorD | vecFit0 |
TVectorD | vecFit1 |
TVectorD | vecFit2 |
TEntryList * | elist =0 |
AliTPCCalibViewerGUI * | viewer =0 |
AliTPCCalibViewer * | makePad =0 |
TTree * | tree =0 |
Macro to perform fits of the Laser Central electrode data Several fit methods implemented
0. RebuildCE("ce.root","pul.root"); - rebuild data from the scratch
RebuildData() - transform arbitrary layout of the Input data to the internal format StoreData(); - The data tree expected in file inname (see variable bellow) StoreTree(); - Modify inname and xxside and tcor in order to transform data
Calibration viewer variables:
Result - resulting correction out - outlyers not used for fit tcor - offset specified by user before fitting timeF1 - sector local fit - plane timeF2 - sector local fit - parabola timeIn - input times qIn - input charge out - outlyers not used for fit tcor - offset specified by user before fitting timeF1 - sector time local fit - plane timeF2 - sector time local fit - parabola qF1 - sector q local fit - plane qF2 - sector q local fit - parabola
fitted values ffit0 - base fit ffit1 - adding common shifts - alpha dependendent ffit2 - adding opposite shifts - alpha dependent
fGXY - global fit parameter - XY fInOut - global fit parameter - inner-outer sector matching fLX - global LX dependence
Gloabl fit o consist of -fGXY~-fLX~-fTL~-fOff~:ffit0~
Control variable - check results
ffit2~-(timeIn~):lx~ - fit value minus input time
result cosntruction: (timeF2~-ffit2~+fTL~+fInOut~):Result~
timeF2~-Result~:ffit2~-fTL~-fInOut~
Definition in file AnalyzeLaserCE.C.
void AddFiles | ( | char * | list | ) |
prepare viewer for data sets
Definition at line 693 of file AnalyzeLaserCE.C.
void AnalyzeLaser | ( | ) |
Definition at line 177 of file AnalyzeLaserCE.C.
void AnalyzeLaserCE | ( | ) |
Definition at line 678 of file AnalyzeLaserCE.C.
void LoadData | ( | ) |
Get Data
Definition at line 473 of file AnalyzeLaserCE.C.
Referenced by AliMagFast::AliMagFast(), and MakeFit().
void LoadViewer | ( | ) |
void MakeAliases0 | ( | ) |
Define variables and selection of outliers - for user defined tree
Definition at line 560 of file AnalyzeLaserCE.C.
Referenced by RebuildData().
void MakeAliases1 | ( | ) |
Define variables and selection of outliers -for default usage
Definition at line 588 of file AnalyzeLaserCE.C.
Referenced by AnalyzeLaser(), LoadViewer(), and MakeFit().
void MakeFit | ( | ) |
Definition at line 210 of file AnalyzeLaserCE.C.
Referenced by AnalyzeLaserCE().
void MakeFitPulser | ( | ) |
Definition at line 184 of file AnalyzeLaserCE.C.
Referenced by RebuildData().
void MakeRes | ( | ) |
make final calibration
Definition at line 612 of file AnalyzeLaserCE.C.
Referenced by AnalyzeLaserCE().
TString qaside | ( | "CE_Q" | ) |
Referenced by MakeAliases0().
TString qcside | ( | "CE_Q" | ) |
Referenced by MakeAliases0().
TString raside | ( | "CE_RMS" | ) |
Referenced by MakeAliases0().
TString rcside | ( | "CE_RMS" | ) |
Referenced by MakeAliases0().
void RebuildCE | ( | char * | finname, |
char * | pulname | ||
) |
Transformation from the CE to the visualization-analisys output
finname = CE_Vscan_Run_61684-50_170.root;
Definition at line 642 of file AnalyzeLaserCE.C.
Referenced by AnalyzeLaserCE().
void RebuildData | ( | ) |
transform the input data to the fit format
Definition at line 396 of file AnalyzeLaserCE.C.
Referenced by AnalyzeLaserCE().
void StoreData | ( | ) |
void StoreTree | ( | ) |
Definition at line 529 of file AnalyzeLaserCE.C.
Referenced by AnalyzeLaserCE().
TString taside | ( | "CE_T" | ) |
Referenced by MakeAliases0().
TString tcor | ( | "-pulCorr" | ) |
Referenced by MakeAliases0().
TString tcside | ( | "CE_T" | ) |
Referenced by MakeAliases0().
AliTPCCalPad* calPad0 = 0 |
Definition at line 136 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPad1 = 0 |
Definition at line 137 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPad2 = 0 |
Definition at line 138 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadCor = 0 |
Definition at line 124 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadF1 = 0 |
Definition at line 118 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadF2 = 0 |
Definition at line 119 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadGXY = 0 |
Definition at line 144 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadIn = 0 |
Definition at line 117 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadInOut = 0 |
Definition at line 140 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadLX = 0 |
Definition at line 141 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadOff = 0 |
Definition at line 145 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadOut = 0 |
Definition at line 125 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadQ = 0 |
Definition at line 143 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadQF1 = 0 |
Definition at line 121 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadQF2 = 0 |
Definition at line 122 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadQIn = 0 |
Definition at line 120 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadRes = 0 |
Definition at line 146 of file AnalyzeLaserCE.C.
AliTPCCalPad* calPadTL = 0 |
Definition at line 142 of file AnalyzeLaserCE.C.
TEntryList* elist =0 |
Definition at line 154 of file AnalyzeLaserCE.C.
Referenced by AddFiles(), InitCutsAlign(), MakeAliasesBoth(), and MakeFit().
char* fname = "treefitCE.root" |
Definition at line 110 of file AnalyzeLaserCE.C.
Referenced by AliAODHandler::AddExtension(), AliTPCComparison(), AliXRDPROOFtoolkit::CacheFileList(), AliEventsCollectorThread::CollectorHandle(), AliOCDBtoolkit::DumpOCDB(), AliXRDPROOFtoolkit::FilterList(), AliXRDPROOFtoolkit::FilterListZip(), AliTPCSpaceCharge3D::ForceInitSpaceCharge3DPoisson(), AliTPCROCVoltError3D::GetC1(), AliTPCCalPad::GetCalROC(), AliExternalInfo::GetChain(), AliTPCSpaceCharge2D2D::GetCorrectionFactor(), AliOADBContainer::GetDefaultList(), AliRunLoader::GetGAliceName(), AliVEventHandler::GetInputFileName(), AliMCEventHandler::GetOutputFileName(), AliMillePede2::GetRecConsBranchName(), AliExternalInfo::GetTree(), GetTree(), GoodTracksTPC(), AliFMDInput::Init(), AliMagF::LoadParameterization(), LoadTrack(), LoadTree(), LoadViewer(), MakeChainCL(), MakeFit(), MakeTree(), AliTagCreator::MergeTags(), AliTagCreator::MergeTagsForRun(), AliRunLoader::Open(), AliDataLoader::OpenFile(), AliTransportMonitor::operator=(), AliFieldMap::ReadField(), ReadInputData(), ReadRecoCocktail(), AliDataLoader::SetFileOffset(), AliRunLoader::SetFileOffset(), AliESDInputHandler::SetFriendFileName(), AliInputEventHandler::SetInputFileName(), AliMCEventHandler::SetInputPath(), AliTPCSensorTemp::SetNum(), AliEMCALSensorTemp::SetNum(), AliDataLoader::SetNumberOfEventsPerFile(), AliESDHandler::SetOutputFileName(), AliAODHandler::SetOutputFileName(), AliTPCROCVoltError3D::SetROCDataFileName(), AliTPCSpaceCharge2D2D::SetSCDataFileName(), SpectraMonitor(), StoreTree(), and AliSplineFit::Test().
char* inname = "treeCE.root" |
Definition at line 93 of file AnalyzeLaserCE.C.
Referenced by RebuildCE(), and RebuildData().
AliTPCCalibViewer* makePad =0 |
Definition at line 159 of file AnalyzeLaserCE.C.
Referenced by LoadViewer().
char* oname = "fitCE.root" |
Definition at line 111 of file AnalyzeLaserCE.C.
Referenced by AliMergeableCollection::Browse(), AliMergeableCollectionProxy::Histo(), LoadData(), AliMergeableCollection::Print(), StoreData(), and AliXRDPROOFtoolkit::TestFile().
const Float_t qThr0 =0.5 |
Definition at line 130 of file AnalyzeLaserCE.C.
Referenced by RebuildData().
const Float_t qThr1 =2 |
Definition at line 131 of file AnalyzeLaserCE.C.
Referenced by RebuildData().
TObjString strFit0 ="" |
Definition at line 148 of file AnalyzeLaserCE.C.
Referenced by MakeFit().
TObjString strFit1 ="" |
Definition at line 149 of file AnalyzeLaserCE.C.
Referenced by MakeFit().
TObjString strFit2 ="" |
Definition at line 150 of file AnalyzeLaserCE.C.
Referenced by MakeFit().
TTree* tree =0 |
Definition at line 160 of file AnalyzeLaserCE.C.
Referenced by AddChains(), AddFiles(), AliTPCCalPad::AddFriend(), AliTPCCalibViewer::AddReferenceTree(), AliBaseCalibViewer::AddReferenceTree(), AliBaseCalibViewer::AliBaseCalibViewer(), AliDCSSensorArray::AliDCSSensorArray(), AliEMCALSensorTempArray::AliEMCALSensorTempArray(), AliTPCCalibViewer::AliTPCCalibViewer(), AliTPCSensorTempArray::AliTPCSensorTempArray(), AliTreePlayer::AliTreePlayer(), AnalyzeESDtracks(), AliExternalInfo::Cache(), AliMUONTriggerStoreV1::CanConnect(), AliMUONTriggerTrackStoreV1::CanConnect(), AliMUONDigitStoreVImpl::CanConnect(), AliMUONHitStoreV1::CanConnect(), AliMUONTrackStoreV1::CanConnect(), AliMUONClusterStoreV2::CanConnect(), AliMUONClusterStoreV1::CanConnect(), AliMUONCheck::CheckESD(), AliXRDPROOFtoolkit::CheckTreeInFile(), AliTreeFormulaF::Compile(), AliMUONChamberCalibrationTask::ConnectInputData(), AliSegmentArray::ConnectTree(), AliStack::ConnectTree(), AliMCEvent::ConnectTreeTR(), AliMUONDigitStoreV1::Create(), AliTPCCorrection::CreateDistortionTree(), AliTPCSpaceCharge3DDriftLine::CreateDistortionTree(), drawd(), DrawDistortionMaps(), drawmerged(), DrawOccupancy(), DrawXsection(), AliOCDBtoolkit::DumpOCDBAsTxt(), AliQADataMakerSim::Exec(), AliQADataMakerRec::Exec(), FillVar(), Fit1(), Fit2(), Fit2I(), AliTPCEfield::FitField(), FitI1(), for(), GenerLandau(), AliTPCCalPad::GetCalROC(), AliMUONTreeManager::GetClassName(), AliTPCCorrection::GetCorrScaleFactor(), AliStack::GetCurrentTrack(), AliExternalInfo::GetDefaultConfig(), AliTPCclusterFast::GetDigitsMax(), GetESDTree(), AliTMinuitToolkit::GetFitFunctionAsAlias(), AliVEventHandler::GetInputFileName(), TStatToolkit::GetMetadata(), AliTMinuitToolkit::GetStreamer(), AliAODEvent::GetTrdTrack(), AliSegmentArray::GetTree(), AliExternalInfo::GetTree(), GetTree(), AliExternalInfo::GetTreeAliVersRD(), AliMCEvent::Header(), AliDummyHandler::Init(), AliSelector::Init(), AliRecoInputHandler::Init(), Init(), AliAODInputHandler::Init(), AliESDInputHandler::Init(), AliReconstruction::Init(), AliSysInfo::IsDisabled(), TTreeSRedirector::IsDisabled(), AliQAManager::IsSaveData(), AliXRDPROOFtoolkit::JoinTreesIndex(), AliESDInputHandlerRP::LoadEvent(), AliRunLoader::LoadHeader(), AliNanoAODTrackMapping::LoadInstance(), AliCDBStorage::LoadTreeFromFile(), AliRunLoader::LoadTrigger(), LoadViewer(), MakeAliases0(), MakeAliases1(), TStatToolkit::MakeAnchorAlias(), MakeChain(), TStatToolkit::MakeCombinedAlias(), AliTPCGenDBTemp::MakeConfig(), AliDCSGenDB::MakeConfig(), AliMUONPedestal::MakeControlHistos(), AliSysInfo::MakeDUTree(), MakeFakeDigits(), AliNDLocalRegression::MakeFit(), MakeFit(), MakeFitPulser(), MakeFits(), MakeFitTree(), AliRunLoader::MakeHeader(), makeHTMLPage(), MakeLaserTree(), MakePicDy(), MakePickDy(), MakeStat(), AliSysInfo::MakeTree(), AliTreeLoader::MakeTree(), AliSegmentArray::MakeTree(), MakeTree(), AliRunLoader::MakeTree(), AliTPCCalibViewer::MakeTree(), AliXRDPROOFtoolkit::MakeTreeFromList(), AliRunLoader::MakeTrigger(), MergeMuonLight(), MUONefficiency(), MUONmassPlot(), MUONTriggerEfficiency(), MUONTriggerEfficiencyPt(), AliFMDInput::operator=(), AliTreePlayer::printSelectedTreeInfo(), ReadESD(), AliTPCGenDBTemp::ReadList(), AliTPCSensorTemp::ReadList(), AliDCSGenDB::ReadList(), AliEMCALSensorTemp::ReadList(), AliTPCGenDBTemp::ReadListTree(), AliDCSGenDB::ReadListTree(), ReadRecoCocktail(), AliEMCALBiasAPD::ReadRootBiasAPDInfo(), AliEMCALCalibAbs::ReadRootCalibAbsInfo(), AliEMCALCalibMapAPD::ReadRootCalibMapAPDInfo(), AliEMCALCalibReference::ReadRootCalibReferenceInfo(), AliEMCALCalibTempCoeff::ReadRootCalibTempCoeffInfo(), AliTPCSensorTempArray::ReadSensors(), AliEMCALSensorTempArray::ReadSensors(), ReadTree(), RebuildData(), reproduceIndexProblem(), AliESDEvent::ResetCascades(), XSection::Run(), XSections::Run(), AliReconstruction::RunSPDTrackleting(), AliReconstruction::RunTracking(), AliCentralTrigger::RunTrigger(), AliTreePlayer::selectTreeInfo(), AliTreePlayer::selectWhatWhereOrderBy(), AliDetector::SetBufferSize(), AliDCSGenDB::SetConfTree(), AliDCSSensor::SetEndTime(), AliInputEventHandler::SetInputTree(), AliTPCClusterParam::SetInstance(), AliTPCSensorTemp::SetNum(), AliEMCALSensorTemp::SetNum(), AliTPCcalibDButil::SetRefALTROData(), AliTreeTrending::SetTree(), AliNDLocalRegression::SetTree(), AliDetector::SetTreeAddress(), AliTPCCalibQAChecker::SetTreeChecker(), SpectraMonitor(), Store(), AliSysInfo::Test(), test1(), test3(), test5(), testExportBinary(), testExportClass(), TestLTM(), testMerge(), TestProductionAccess(), testRead(), testSparse(), AliModule::TreeTR(), AliMUONDataInterface::TriggerStore(), UnitTestAliTPCCalPadTree(), AliSelector::Version(), AliReconstruction::Version(), AliTreeLoader::WriteData(), WriteESD(), AliRunLoader::WriteHeader(), AliEMCALBiasAPD::WriteRootBiasAPDInfo(), AliEMCALCalibAbs::WriteRootCalibAbsInfo(), AliEMCALCalibMapAPD::WriteRootCalibMapAPDInfo(), AliEMCALCalibReference::WriteRootCalibReferenceInfo(), AliEMCALCalibTempCoeff::WriteRootCalibTempCoeffInfo(), WriteTree(), AliRunLoader::WriteTrigger(), and AliVEvent::~AliVEvent().
const Float_t tThr =0.3 |
Definition at line 129 of file AnalyzeLaserCE.C.
Referenced by RebuildData().
TVectorD vecFit0 |
Definition at line 151 of file AnalyzeLaserCE.C.
Referenced by MakeFit().
TVectorD vecFit1 |
Definition at line 152 of file AnalyzeLaserCE.C.
Referenced by MakeFit().
TVectorD vecFit2 |
Definition at line 153 of file AnalyzeLaserCE.C.
Referenced by MakeFit().
AliTPCCalibViewerGUI* viewer =0 |
Definition at line 158 of file AnalyzeLaserCE.C.
Referenced by AliTPCCalibViewerGUI::Initialize(), and AliFMDDisplay::Render().