![]() |
AliRoot Core
a565103 (a565103)
|
Macro to quickly check if two MUON.Digits.root or two MUON.RecPoints are identical. More...
#include "TFile.h"
#include "AliMUONDataInterface.h"
#include "AliMUONVDigitStore.h"
#include "TTree.h"
#include "AliLog.h"
#include "TMath.h"
#include "Riostream.h"
#include "TKey.h"
#include "AliMUONVClusterStore.h"
Go to the source code of this file.
Functions | |
template<class T > | |
T * | Store (TFile &file, Long64_t event) |
template<class T > | |
Int_t | Compare (const T &ds1, const T &ds2) |
TFile * | Open (const char *filename, Long64_t &nevents) |
void | DumpSorted (const char *filename, Long64_t event, const AliMUONVStore &store) |
template<class T > | |
Int_t | Compare (const char *file1, const char *file2, Long64_t maxEvents=0) |
Int_t | CompareDigits (const char *file1, const char *file2, Long64_t maxEvents=0) |
Int_t | CompareClusters (const char *file1, const char *file2, Long64_t maxEvents=0) |
Macro to quickly check if two MUON.Digits.root or two MUON.RecPoints are identical.
Usage :
.L CompareDigitsOrClusters.C+ CompareClusters("dir1/MUON.RecPoints.root","dir2/MUON.RecPoints.root"); CompareDigits("dir1/MUON.Digits.root","dir2/MUON.Digits.root");
If the two files are identical, returns 0, otherwise will create a pair of text file (file1.#event.txt and file2.#event.txt for each event where the information differs, containing a printout of the corresponding stores (either cluster or digits).
Definition in file CompareDigitsOrClusters.C.
Int_t Compare | ( | const T & | ds1, |
const T & | ds2 | ||
) |
Definition at line 65 of file CompareDigitsOrClusters.C.
Int_t Compare | ( | const char * | file1, |
const char * | file2, | ||
Long64_t | maxEvents = 0 |
||
) |
Definition at line 136 of file CompareDigitsOrClusters.C.
Int_t CompareClusters | ( | const char * | file1, |
const char * | file2, | ||
Long64_t | maxEvents = 0 |
||
) |
Definition at line 193 of file CompareDigitsOrClusters.C.
Int_t CompareDigits | ( | const char * | file1, |
const char * | file2, | ||
Long64_t | maxEvents = 0 |
||
) |
Definition at line 188 of file CompareDigitsOrClusters.C.
void DumpSorted | ( | const char * | filename, |
Long64_t | event, | ||
const AliMUONVStore & | store | ||
) |
Dump the given store, in sorted order
Definition at line 109 of file CompareDigitsOrClusters.C.
Referenced by Compare().
TFile* Open | ( | const char * | filename, |
Long64_t & | nevents | ||
) |
Definition at line 86 of file CompareDigitsOrClusters.C.
Referenced by AliMFTTracker::AddClustersFromPileUpEvents(), AliMFTTrackerMU::AddClustersFromPileUpEvents(), AliMFTTracker::AddClustersFromUnderlyingEvent(), AliMFTTrackerMU::AddClustersFromUnderlyingEvent(), AliTPCCalPad::AddFriend(), AliBarrelRec_TPCparam(), AliL1Delay(), AliMUONDataInterface::AliMUONDataInterface(), AliMUONMCDataInterface::AliMUONMCDataInterface(), AliMUONRecoCheck::AliMUONRecoCheck(), AliTPCAltro(), AliTPCCompareTracks(), AliTPCComparison(), AliTPCComparison2(), AliTPCCreatePRF(), AliTPCCreatePRFGEM(), AliTPCDDL(), AliTPCDisplayDigits(), AliTPCFindClustersMI(), AliTPCHits2Digits(), AliTPCSavePID(), BPEVO(), BuildDefaultMap(), CDBAlignmentObjectCreation(), AliMUONCheck::CheckESD(), AliXRDPROOFtoolkit::CheckTreeInFile(), commonConfig(), Compare(), CompleteEfficiency(), Config(), AliTPCcalibDButil::ConnectCalPadTrees(), AliTPCcalibDButil::ConnectGainTrees(), TPCCmpTr::ConnectGenTree(), AliTPCcalibDButil::ConnectPulserTrees(), CreateAllGeantTracks(), CreateIonTailObject(), AliTPCCalibViewer::CreateObjectList(), AliTPCcalibDB::CreateObjectList(), TPCCmpTr::CreateTreeCmp(), TPCFindGenTracks::CreateTreeGenTracks(), distortionMapDraw(), AliMUONTriggerGUI::DoRunGalApply(), drawClusters(), DrawEvolution(), TPCFindGenTracks::Exec(), AliTPCPreprocessor::ExtractAltro(), AliTPCPreprocessor::ExtractPedestals(), AliTPCPreprocessor::ExtractPulser(), AliTPCPreprocessor::ExtractQA(), AliTPCPreprocessor::ExtractRaw(), fastMUONGen(), fastMUONSim(), FindKrClusters(), for(), gen(), GetCorrectionFromFile(), AliMFTTracker::GetVertexFromMC(), AliMFTTrackerMU::GetVertexFromMC(), good_tracks(), GoodTracksTPC(), Init(), AliMFTClusterQA::Init(), AliXRDPROOFtoolkit::JoinTreesIndex(), AliMUONPedestalEventGenerator::LoadRun(), main(), makeBBfit(), MakeChain(), MakeFolders(), MakeOCDBDiff(), MakeSDigits(), AliXRDPROOFtoolkit::MakeTreeFromList(), MUONChamberMaterialBudget(), MUONClusterInfo(), MUONefficiency(), MUONmassPlot(), MUONRefit(), MUONTrigger(), MUONTriggerEfficiencyPt(), AliMUONMchViewApplication::Open(), AliMUONMCDataInterface::Open(), AliMUONDataInterface::Open(), OpenAliceFile(), readClusters(), AliMUONBusPatchEvolutionSubprocessor::ReadFile(), AliMUONTriggerEfficiencyCells::ReadFile(), RegisterAliTPCFCVoltError3DRodFCSideRadiusType(), RegisterAliTPCROCVoltError3D(), RegisterAliTPCROCVoltError3DSector(), RegisterCorrection(), runSimulation(), AliMUONPainterDataSourceItem::Save(), TestCorrection_AliTPCComposedCorrectionAddCorrectionCompact(), TestCorrection_AliTPCComposedCorrectionAddCorrectionCompact_TPCCalibCorrection(), TestRecPoints(), TPCParamTracks(), TPCCmpTr::TreeTLoop(), UnitTestAliTPCCalPadTree(), and AliMUONCDB::WriteHV().
T* Store | ( | TFile & | file, |
Long64_t | event | ||
) |
Definition at line 30 of file CompareDigitsOrClusters.C.
Referenced by AliTPCPreprocessor::ExtractAltro(), AliTPCPreprocessor::ExtractCE(), AliTPCPreprocessor::ExtractPedestals(), AliTPCPreprocessor::ExtractPulser(), AliTPCPreprocessor::ExtractQA(), AliTPCPreprocessor::ExtractRaw(), AliTPCPreprocessor::MapGasComposition(), AliTPCPreprocessor::MapGoofie(), AliTPCPreprocessor::MapHighVoltage(), AliTPCPreprocessor::MapTemperature(), AliTPCPreprocessor::Process(), and AliMUONPreprocessor::Store().