AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CompareDigitsOrClusters.C File Reference

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"
Include dependency graph for CompareDigitsOrClusters.C:

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)
 

Detailed Description

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).

Author
: Laurent Aphecetche, Subatech

Definition in file CompareDigitsOrClusters.C.

Function Documentation

template<class T >
Int_t Compare ( const T &  ds1,
const T &  ds2 
)

Definition at line 65 of file CompareDigitsOrClusters.C.

template<class T >
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(), CheckFile(), AliXRDPROOFtoolkit::CheckTreeInFile(), commonConfig(), Compare(), CompareMatDep(), CompleteEfficiency(), Config(), AliTPCcalibDButil::ConnectCalPadTrees(), AliTPCcalibDButil::ConnectGainTrees(), TPCCmpTr::ConnectGenTree(), AliTPCcalibDButil::ConnectPulserTrees(), Convert2Raw(), CreateAllGeantTracks(), CreateIonTailObject(), AliTPCCalibViewer::CreateObjectList(), AliTPCcalibDB::CreateObjectList(), TPCCmpTr::CreateTreeCmp(), TPCFindGenTracks::CreateTreeGenTracks(), Digits2Raw(), distortionMapDraw(), AliMUONTriggerGUI::DoRunGalApply(), drawClusters(), DrawEvolution(), DrawXsection(), TPCFindGenTracks::Exec(), AliTPCPreprocessor::ExtractAltro(), AliTPCPreprocessor::ExtractPedestals(), AliTPCPreprocessor::ExtractPulser(), AliTPCPreprocessor::ExtractQA(), AliTPCPreprocessor::ExtractRaw(), fastMUONGen(), fastMUONSim(), FindCommonModeNoise::FindCommonModeNoise(), FindKrClusters(), FixOne(), for(), gen(), GetCorrectionFromFile(), getHisto(), GetMedia::GetMedia(), AliMFTTracker::GetVertexFromMC(), AliMFTTrackerMU::GetVertexFromMC(), good_tracks(), GoodTracksTPC(), Hits2Digits(), Hits2SDigits(), Init(), AliMFTClusterQA::Init(), Poisson::Init(), DrawCalibRaw::Init(), GetMedia::Init(), AliFMDInput::Init(), AliXRDPROOFtoolkit::JoinTreesIndex(), AliMUONPedestalEventGenerator::LoadRun(), main(), makeBBfit(), MakeChain(), MakeFakeDigits(), MakeFolders(), MakeLego(), MakeOCDBDiff(), MakeSDigits(), MakeTree(), AliXRDPROOFtoolkit::MakeTreeFromList(), MakeXsection(), MediaTable(), MUONChamberMaterialBudget(), MUONClusterInfo(), MUONefficiency(), MUONmassPlot(), MUONRefit(), MUONTrigger(), MUONTriggerEfficiencyPt(), AliMUONMchViewApplication::Open(), AliMUONDataInterface::Open(), AliMUONMCDataInterface::Open(), OpenAliceFile(), Raw2ESD(), readClusters(), ReadESD(), AliMUONBusPatchEvolutionSubprocessor::ReadFile(), AliMUONTriggerEfficiencyCells::ReadFile(), ReadMap(), ReadTree(), RegisterAliTPCFCVoltError3DRodFCSideRadiusType(), RegisterAliTPCROCVoltError3D(), RegisterAliTPCROCVoltError3DSector(), RegisterCorrection(), AliFMDBaseDA::Run(), runSimulation(), AliMUONPainterDataSourceItem::Save(), AliFMDInput::ScanDirectory(), ShowExisting(), TestCorrection_AliTPCComposedCorrectionAddCorrectionCompact(), TestCorrection_AliTPCComposedCorrectionAddCorrectionCompact_TPCCalibCorrection(), TestIndex(), TestObjIndex(), TestRecPoints(), TPCParamTracks(), TPCCmpTr::TreeTLoop(), UnitTestAliTPCCalPadTree(), WriteESD(), AliMUONCDB::WriteHV(), WriteMap(), WriteMedArrays(), AliFMDAlignFaker::WriteToFile(), WriteTree(), and XSection().