AliRoot Core  edcc906 (edcc906)
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 
)
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(), AliOCDBtoolkit::AddoptOCDBEntry(), AliBarrelRec_TPCparam(), AliCDBDump::AliCDBDump(), AliL1Delay(), AliMUONDataInterface::AliMUONDataInterface(), AliMUONMCDataInterface::AliMUONMCDataInterface(), AliMUONRecoCheck::AliMUONRecoCheck(), AliTMinuitToolkitTestLinear(), AliTPCCompareTracks(), AliTPCComparison(), AliTPCComparison2(), AliTPCCreatePRF(), AliTPCCreatePRFGEM(), AliTPCDisplayDigits(), AliTPCSavePID(), AliVertexGenFile::AliVertexGenFile(), AliGeomManager::ApplyAlignObjsToGeom(), BPEVO(), build(), BuildDefaultMap(), AliAlignmentTracks::BuildIndex(), AliExternalInfo::Cache(), CDBAlignmentObjectCreation(), AliMUONCheck::CheckESD(), CheckFile(), AliGRPPreprocessor::CheckFileRecords(), AliXRDPROOFtoolkit::CheckTreeInFile(), Compare(), CompareMatDep(), CompleteEfficiency(), Config(), AliTPCcalibDButil::ConnectCalPadTrees(), AliAODInputHandler::ConnectFriends(), AliTPCcalibDButil::ConnectGainTrees(), TPCCmpTr::ConnectGenTree(), AliTPCcalibDButil::ConnectPulserTrees(), AliSimulation::ConvertRaw2SDigits(), CreateAllGeantTracks(), AliAODTagCreator::CreateAODTags(), AliESDTagCreator::CreateESDRunTagSummary(), AliESDTagCreator::CreateESDTags(), AliESDTagCreator::CreateESDTagsFullRun(), CreateIonTailObject(), AliTPCCalibViewer::CreateObjectList(), AliTPCcalibDB::CreateObjectList(), AliAODTagCreator::CreateTag(), AliESDTagCreator::CreateTag(), TPCCmpTr::CreateTreeCmp(), TPCFindGenTracks::CreateTreeGenTracks(), AliCDBManager::DiffObjects(), distortionMapDraw(), drawClusters(), DrawEvolution(), DrawXsection(), AliOCDBtoolkit::DumpOCDB(), AliOCDBtoolkit::DumpOCDBAsTxt(), AliOCDBtoolkit::DumpOCDBFile(), AliCDBManager::DumpToLightSnapshotFile(), AliCDBManager::DumpToSnapshotFile(), TPCFindGenTracks::Exec(), AliTransportMonitor::Export(), AliTPCPreprocessor::ExtractAltro(), AliTPCPreprocessor::ExtractPedestals(), AliEMCALPreprocessor::ExtractPedestals(), AliTPCPreprocessor::ExtractPulser(), AliTPCPreprocessor::ExtractQA(), AliTPCPreprocessor::ExtractRaw(), AliEMCALPreprocessor::ExtractSignal(), FindCommonModeNoise::FindCommonModeNoise(), AliReconstruction::FinishPlaneEff(), FixOne(), for(), GenerateInput(), GeneratePedestalScript(), GeneratePedestalScriptSRU(), AliExternalInfo::GetChain(), GetCorrectionFromFile(), AliCDBGrid::GetEntryFromFile(), AliQAManager::GetEventSpecieFromESD(), getHisto(), AliCDBLocal::GetIdListFromFile(), AliCDBDump::GetIdListFromFile(), AliCDBGrid::GetIdListFromFile(), AliExternalInfo::GetMCPassGuess(), GetMedia::GetMedia(), AliExternalInfo::GetProductionTree(), AliQAManager::GetQA(), AliQA::GetQADataFile(), AliQAv1::GetQADataFile(), AliQA::GetQAResultFile(), AliQAv1::GetQAResultFile(), AliExternalInfo::GetTreeAliVersMC(), AliExternalInfo::GetTreeAliVersRD(), AliExternalInfo::GetTreeMCPassGuess(), good_tracks(), GoodTracksTPC(), AliTransportMonitor::Import(), AliESDInputHandlerRP::Init(), AliMCEventHandler::Init(), Poisson::Init(), DrawCalibRaw::Init(), GetMedia::Init(), AliMillePede2::InitConsRecStorage(), AliMillePede2::InitDataRecStorage(), AliOADBContainer::InitFromFile(), AliCDBManager::InitFromSnapshot(), AliQAManager::InitQA(), AliReconstruction::InitRunLoader(), interpolation(), interpolRead(), interpolWrite(), AliXRDPROOFtoolkit::JoinTreesIndex(), AliTRDPIDResponse::Load(), AliOCDBtoolkit::LoadOCDBFromESD(), AliMagF::LoadParameterization(), AliRunLoader::LoadTrigger(), main(), makeBBfit(), MakeChain(), AliOCDBtoolkit::MakeDiffExampleUseCase(), AliSysInfo::MakeDUTree(), MakeFakeDigits(), MakeFolders(), MakeLego(), MakeOCDBDiff(), AliSysInfo::MakeTree(), MakeTree(), AliRunLoader::MakeTree(), AliXRDPROOFtoolkit::MakeTreeFromList(), MakeXsection(), MediaTable(), AliQAManager::MergeCustom(), AliTagCreator::MergeToSingleRunTag(), AliAlignmentTracks::Misalign(), MUONChamberMaterialBudget(), MUONClusterInfo(), MUONefficiency(), MUONmassPlot(), MUONRefit(), AliESDInputHandlerRP::Notify(), AliESDInputHandler::Notify(), AliAODInputHandler::Notify(), AliDataFile::Open(), AliMUONMchViewApplication::Open(), AliRunLoader::Open(), OpenAliceFile(), AliRunLoader::OpenDataFile(), AliESDInputHandlerRP::OpenFile(), AliDataLoader::OpenFile(), AliMCEventHandler::OpenFile(), AliSurveyObj::OpenFile(), AliDataFile::OpenOADB(), PrintBadChannels(), PrintEMCALCalibData(), PrintEMCALCalibTime(), PrintEMCALRecParam(), PrintEMCALSimParam(), PrintOCDBObject(), AliAlignmentTracks::ProcessESD(), AliAlignmentTracks::ProcessESDCosmics(), AliCDBGrid::PutEntry(), Raw2ESD(), AliAlignmentTracks::ReadAlignObjs(), readClusters(), ReadESD(), AliMUONBusPatchEvolutionSubprocessor::ReadFile(), AliMUONTriggerEfficiencyCells::ReadFile(), ReadInputData(), ReadMap(), ReadTree(), RegisterAliTPCFCVoltError3DRodFCSideRadiusType(), RegisterAliTPCROCVoltError3D(), RegisterAliTPCROCVoltError3DSector(), RegisterCorrection(), AliTPCPIDResponse::RegisterSpline(), AliFMDBaseDA::Run(), runMCHShuttleOffline(), AliMUONPainterDataSourceItem::Save(), AliQAManager::Save2OCDB(), AliFMDInput::ScanDirectory(), AliPIDCombined::SetDefaultTPCPriors(), SetOCDBFromRun1(), AliCDBManager::SetSnapshotMode(), AliPIDResponse::SetTPCPidResponseMaster(), ShowExisting(), AliReconstruction::SlaveBegin(), AliSurveyToAlignObjs::StoreAlignObjToFile(), Test1D(), TestCorrection_AliTPCComposedCorrectionAddCorrectionCompact(), TestCorrection_AliTPCComposedCorrectionAddCorrectionCompact_TPCCalibCorrection(), AliXRDPROOFtoolkit::TestFile(), TestIndex(), TestLTM(), TestObjIndex(), TestRobustLinearFitWithRegularizationGenerAnalyze(), TPCParamTracks(), TPCCmpTr::TreeTLoop(), UnitTestAliTPCCalPadTree(), TTreeSRedirector::UnitTestSparse(), UnitTestStreamer(), WriteESD(), AliMUONCDB::WriteHV(), WriteMap(), WriteMedArrays(), AliFMDAlignFaker::WriteToFile(), WriteTree(), and XSection().

template<class T >
T* Store ( TFile &  file,
Long64_t  event 
)

Definition at line 30 of file CompareDigitsOrClusters.C.