![]() |
AliRoot Core
3abf5b4 (3abf5b4)
|
Base class for MUON data stores. More...
#include <AliMUONVStore.h>
Public Member Functions | |
AliMUONVStore () | |
virtual | ~AliMUONVStore () |
virtual Bool_t | Add (TObject *object)=0 |
Add an object to the store. More... | |
virtual void | Clear (Option_t *opt="")=0 |
Clear ourselves (i.e. Reset) More... | |
virtual AliMUONVStore * | Create () const =0 |
Create an empty copy of this. More... | |
virtual TIterator * | CreateIterator () const =0 |
Return an iterator to loop over the whole store. More... | |
virtual Bool_t | CanConnect () const =0 |
Whether the Connect(TTree&) method is implemented. More... | |
virtual Bool_t | Connect (TTree &tree, Bool_t alone=kTRUE) const |
Connect us to a TTree (only valid if CanConnect()==kTRUE) More... | |
virtual TObject * | FindObject (const char *name) const |
Find an object by name. More... | |
virtual TObject * | FindObject (const TObject *object) const |
Find an object. More... | |
virtual TObject * | FindObject (UInt_t uniqueID) const |
Find an object using a single id. More... | |
virtual TObject * | FindObject (Int_t i, Int_t j) const |
Find an object using 2 ids. More... | |
virtual Int_t | GetSize () const =0 |
The number of objects stored. More... | |
virtual Int_t | GetSize (Int_t i) const |
The number of objects stored for firstid=i. Not implemented by default. More... | |
virtual Bool_t | IsEmpty () const |
Whether we are empty or not. More... | |
virtual void | Print (Option_t *wildcard="") const |
Print all objects whose name matches wildcard. More... | |
virtual void | Print (Option_t *wildcard, Option_t *opt) const |
Print, with option, all objects whose name matches wildcard. More... | |
Static Public Member Functions | |
static AliMUONVStore * | Create (TTree &tree, const char *what) |
Create a store from a TTree. More... | |
Base class for MUON data stores.
A store is a container, which can be searched for (using FindObject methods), iterated upon (using CreateIterator() method), and into which you can add objects (using Add)
In addition, a store can be connected to a TTree.
The general way of dealing with I/O for MUON is a two stage process :
1) first get a TTree pointer using the AliLoader mechanism (this is AliRoot general)
2) connect that TTree to a MUON (virtual) data container using the container's Connect(TTree&) method (this is MUON specific)
Example for reading digits for nevents
Please note that for reading data, you do not need to know the concrete container class, as it is given to you by the TTree
Example for writing digits
In the write case, one must specify a concrete class for the container
Definition at line 22 of file AliMUONVStore.h.
AliMUONVStore::AliMUONVStore | ( | ) |
ctor
Definition at line 109 of file AliMUONVStore.cxx.
|
virtual |
dtor
Definition at line 115 of file AliMUONVStore.cxx.
|
pure virtual |
Add an object to the store.
Implemented in AliMUONVDigitStore, AliMUON1DArray, AliMUONVClusterStore, AliMUON1DMap, AliMUONVTriggerStore, AliMUONVHitStore, AliMUON2DMap, AliMUONVTrackStore, and AliMUONVTriggerTrackStore.
Referenced by AliMUONTrackerData::Add(), Add(), AliMUONTrackerData::Add1D(), AliMUONTrackerData::Add2D(), AliMUONQAMappingCheck::AddClusterLocation(), AliDAConfig::AliDAConfig(), AliMUONTrackerData::AliMUONTrackerData(), AliMUONTrackerData::BusPatchParam(), AliMUONTrackerData::ChamberParam(), AliMUONTrackerData::ChannelParam(), AliMUONTrackerData::CompareData(), AliMUONPadStatusMaker::ComputeStatus(), AliMUONPadStatusMapMaker::ComputeStatusMap(), AliMUONTrackerConditionDataMaker::CreateHVStore(), AliMUONTrackerConditionDataMaker::CreateLVStore(), AliMUONTrackerConditionDataMaker::CreateStatusMapStore(), AliMUONTrackerConditionDataMaker::CreateStatusStore(), AliMUONTrackerIO::DecodeConfig(), AliMUONTrackerIO::DecodeOccupancy(), AliMUONTrackerIO::DecodePedestals(), AliMUONTrackerData::DetectionElementParam(), AliMUONTrackerConditionDataMaker::ExpandConfig(), AliMUONPainterPadStore::Get(), AliMUONTrackerData::GetChannelSparseHisto(), AliMUONTrackerData::GetManuSparseHisto(), AliMUONPedestal::LoadConfig(), main(), AliMUONCDB::MakeLocalTriggerMaskStore(), AliMUONCDB::MakeOccupancyMapStore(), MakePattern(), AliMUONPedestal::MakePed(), AliMUONCDB::MakePedestalStore(), AliMUONTrackerData::ManuParam(), AliMUONTrackerData::PCBParam(), AliMUONTrackerDataMaker::ProcessEvent(), AliMUONTriggerIO::ReadLocalMasks(), AliMUONPadStatusMapMaker::RefreshRejectProbabilities(), and AliMUONRejectList::SetChannelProbability().
|
pure virtual |
Whether the Connect(TTree&) method is implemented.
Implemented in AliMUONClusterStoreV1, AliMUON1DArray, AliMUONClusterStoreV2, AliMUON2DMap, AliMUONTrackStoreV1, AliMUONDigitStoreV1, AliMUONDigitStoreVImpl, AliMUONHitStoreV1, AliMUON1DMap, AliMUONTriggerTrackStoreV1, and AliMUONTriggerStoreV1.
|
pure virtual |
Clear ourselves (i.e. Reset)
Implemented in AliMUONTriggerStoreV1, AliMUONVClusterStore, AliMUONClusterStoreV1, AliMUONTrackStoreV1, AliMUON1DArray, AliMUONDigitStoreVImpl, AliMUONHitStoreV1, AliMUON1DMap, AliMUONTriggerTrackStoreV1, AliMUONClusterStoreV2, AliMUON2DMap, and AliMUONDigitStoreV1.
Referenced by AliMUONDigitizerV3::ApplyResponse(), AliMUONTrackerData::Clear(), AliMUONTracker::Clusters2Tracks(), AliMUONSDigitizerV2::Digitize(), AliMUONDigitizerV3::Digitize(), AliMUONTriggerElectronics::Digits2Trigger(), AliMUONDataInterface::DigitStore(), AliMUONMCDataInterface::DigitStore(), AliMUONPedestalEventGenerator::GenerateDigits(), AliMUONMCDataInterface::HitStore(), AliMUONTracker::LoadClusters(), AliMUONTriggerQADataMakerRec::MakeDigits(), AliMUONTriggerQADataMakerRec::MakeRaws(), MUONClusterInfo(), MUONTrigger(), AliMUONTrackerDataMaker::ProcessEvent(), AliMUONDigitMaker::Raw2Digits(), AliMUONPadStatusMapMaker::RefreshRejectProbabilities(), AliMUONESDInterface::Reset(), AliMUON::ResetHits(), AliMUONMCDataInterface::SDigitStore(), TestRecPoints(), AliMUONTrigger::Trigger(), AliMUONDataInterface::TriggerStore(), AliMUONMCDataInterface::TriggerStore(), and AliMUONDigitMaker::TriggerToDigitsStore().
|
virtual |
Connect us to a TTree (only valid if CanConnect()==kTRUE)
Connect to a Ttree
Reimplemented in AliMUONTriggerStoreV1, AliMUONClusterStoreV1, AliMUONDigitStoreV1, AliMUONHitStoreV1, AliMUONClusterStoreV2, AliMUONTrackStoreV1, AliMUONTriggerTrackStoreV1, and AliMUONDigitStoreVImpl.
Definition at line 122 of file AliMUONVStore.cxx.
Referenced by AliMUONDataInterface::ClusterStore(), AliMUONSDigitizerV2::Digitize(), AliMUONDigitizerV3::Digitize(), AliMUON::Digits2Raw(), AliMUONDataInterface::DigitStore(), AliMUONMCDataInterface::DigitStore(), AliMUONPedestalEventGenerator::Exec(), AliMUONMCDataInterface::HitStore(), AliMUONTracker::LoadClusters(), AliMUON::MakeBranch(), AliMUONTrackerQADataMakerRec::MakeDigits(), AliMUONTriggerQADataMakerRec::MakeDigits(), AliMUONQADataMakerSim::MakeDigits(), AliMUONQADataMakerSim::MakeHits(), AliMUONTrackerQADataMakerRec::MakeRecPoints(), AliMUONQADataMakerSim::MakeSDigits(), MakeSDigits(), MUONClusterInfo(), MUONTrigger(), AliMUON::Raw2SDigits(), AliMUONMCDataInterface::SDigitStore(), TestRecPoints(), AliMUONTrigger::Trigger(), AliMUONDataInterface::TriggerStore(), and AliMUONMCDataInterface::TriggerStore().
|
pure virtual |
Create an empty copy of this.
Implemented in AliMUONClusterStoreV2, AliMUONHitStoreV1, AliMUONTrackStoreV1, AliMUONDigitStoreV1, AliMUONVDigitStore, AliMUONTriggerTrackStoreV1, AliMUON2DMap, AliMUON1DMap, AliMUON1DArray, AliMUONClusterStoreV1, AliMUONTriggerStoreV1, AliMUONDigitStoreV2R, and AliMUONDigitStoreV2S.
Referenced by AliMUONTrackerData::Add(), AliMUONDataInterface::ClusterStore(), AliMUONVTriggerTrackStore::Create(), AliMUONVHitStore::Create(), AliMUONVTrackStore::Create(), AliMUONVClusterStore::Create(), AliMUONVDigitStore::Create(), AliMUONVTriggerStore::Create(), AliMUONSDigitizerV2::Digitize(), AliMUON::Digits2Raw(), AliMUONTrackerConditionDataMaker::ExpandConfig(), AliMUONMCDataInterface::HitStore(), AliMUONTracker::LoadClusters(), AliMUONQADataMakerSim::MakeHits(), AliMUONTrackerQADataMakerRec::MakeRecPoints(), MUONClusterInfo(), MUONTrigger(), TestRecPoints(), AliMUONTrigger::Trigger(), AliMUONDataInterface::TriggerStore(), and AliMUONMCDataInterface::TriggerStore().
|
static |
Create a store from a TTree.
Create a store from a tree. Forwarded to AliMUONTreeManager::CreateStore
Definition at line 131 of file AliMUONVStore.cxx.
|
pure virtual |
Return an iterator to loop over the whole store.
Implemented in AliMUONVDigitStore, AliMUONClusterStoreV2, AliMUONDigitStoreV1, AliMUONDigitStoreVImpl, AliMUONVClusterStore, AliMUONVTriggerStore, AliMUON1DMap, AliMUONClusterStoreV1, AliMUONVTrackStore, AliMUONHitStoreV1, AliMUONVHitStore, AliMUONTrackStoreV1, AliMUON1DArray, AliMUON2DMap, AliMUONTriggerTrackStoreV1, and AliMUONVTriggerTrackStore.
Referenced by AliMUONTrackerData::Add(), Add(), AliMUONTrackerData::Add1D(), AliMUONTrackerData::Add2D(), AliMUONPadStatusMapMaker::AliMUONPadStatusMapMaker(), AliMUONTrackerData::AliMUONTrackerData(), AliMUONTrackerData::BuildFromBPStore(), AliMUONTrackerData::BuildFromDEStore(), AliMUONQAMappingCheck::CreateData(), AliMUONCDB::Diff(), AliMUONDataInterface::DumpSorted(), DumpSorted(), AliMUONMCDataInterface::DumpSorted(), AliMUONTrackerConditionDataMaker::ExpandConfig(), AliMUONTrackerData::ExportAsASCIIOccupancyFile(), AliMUONPedestal::Finalize(), FindObject(), AliMUONPedestalEventGenerator::GenerateDigits(), GenerateOutputFile(), AliMUONPainterPadStore::GetSize(), AliMUONConfigSubprocessor::HasConfigChanged(), AliMUONPedestalSubprocessor::HasConfigChanged(), AliMUONTrackerData::InternalAdd(), AliMUONPedestal::MakeASCIIoutput(), MakePatternStore(), AliMUONCDB::Plot(), Print(), AliMUONPadStatusMapMaker::RefreshRejectProbabilities(), AliMUONCDB::ShowConfig(), and AliMUONTrackerIO::WriteConfig().
|
virtual |
Find an object by name.
Definition at line 161 of file AliMUONVStore.cxx.
Referenced by AliMUONTrackerData::Add(), Add(), AliMUONESDInterface::Add(), AliMUONTrackerData::Add1D(), AliMUONTrackerData::Add2D(), AliMUONQAMappingCheck::AddClusterLocation(), AliMUONTrackerData::BusPatchParam(), AliMUONDigitCalibrator::CalibrateDigit(), AliMUONTrackerData::ChamberParam(), AliMUONTrackerData::ChannelParam(), AliMUONRejectList::ChannelProbability(), AliMUONPadStatusMaker::CheckConfigConsistencyWithPedestalInformation(), AliMUONTrackerData::CompareData(), AliMUONPadStatusMaker::ComputeStatus(), AliMUONTrackerConditionDataMaker::CreateHVStore(), AliMUONTrackerConditionDataMaker::CreateLVStore(), AliMUONTrackerIO::DecodeConfig(), AliMUONTrackerIO::DecodeOccupancy(), AliMUONTrackerIO::DecodePedestals(), DecodeRecoCocktail(), AliMUONTrackerData::DetectionElementParam(), AliMUONCDB::Diff(), DIMUONFakes(), AliMUONPedestal::Finalize(), AliMUONRecoCheck::FindCompatibleTrack(), AliMUONVClusterStore::FindObject(), AliMUONESDInterface::FindTrack(), AliMUONPainterPadStore::Get(), AliMUONTrackerData::GetChannelSparseHisto(), AliMUONTrackerData::GetManuSparseHisto(), AliMUONPainterPadStore::GetPadGeometry(), AliMUONConfigSubprocessor::HasConfigChanged(), AliMUONPedestalSubprocessor::HasConfigChanged(), AliMUONTrackerQADataMakerRec::InitCommon(), AliMUONPedestal::LoadConfig(), AliMUONCalibrationData::LocalTriggerBoardMasks(), main(), AliMUONPedestal::MakeASCIIoutput(), AliMUONPedestal::MakeControlHistos(), MakePattern(), MakePatternStore(), AliMUONPedestal::MakePed(), AliMUONTrackerData::ManuParam(), MUONFakes(), MUONRefit(), AliMUONPadStatusMaker::Neighbours(), AliMUONPadStatusMaker::PadStatus(), AliMUONTrackerData::PCBParam(), AliMUONCalibrationData::Pedestals(), AliMUONTrackerDataMaker::ProcessEvent(), AliMUONRejectList::SetChannelProbability(), AliMUONPadStatusMapMaker::StatusMap(), UpdateLocalMask(), AliMUON2DStoreValidator::Validate(), and AliMUONTriggerIO::WriteLocalMasks().
|
virtual |
Find an object.
Reimplemented in AliMUONVDigitStore, AliMUONVClusterStore, and AliMUONClusterStoreV2.
Definition at line 177 of file AliMUONVStore.cxx.
|
virtual |
Find an object using a single id.
Generic find method. Should be overriden by derived class if it can be made more efficient there.
Reimplemented in AliMUONVDigitStore, AliMUONVClusterStore, AliMUONClusterStoreV2, AliMUONDigitStoreVImpl, AliMUON2DMap, AliMUON1DArray, and AliMUON1DMap.
Definition at line 195 of file AliMUONVStore.cxx.
|
virtual |
Find an object using 2 ids.
Find an object using 2 identifiers
Reimplemented in AliMUON2DMap, and AliMUON1DMap.
Definition at line 152 of file AliMUONVStore.cxx.
|
pure virtual |
The number of objects stored.
Implemented in AliMUONVDigitStore, AliMUONDigitStoreV1, AliMUONDigitStoreVImpl, AliMUONTriggerStoreV1, AliMUON2DMap, AliMUONClusterStoreV2, AliMUONClusterStoreV1, AliMUON1DArray, AliMUON1DMap, AliMUONHitStoreV1, AliMUONTrackStoreV1, and AliMUONTriggerTrackStoreV1.
Referenced by AliMUONRefitter::AddClusterToTracks(), AliMUONTrackerData::AliMUONTrackerData(), AliMUONLegacyClusterServer::Clusterize(), AliMUONSimpleClusterServer::Clusterize(), AliMUONPedestal::Finalize(), AliMUONVTrackReconstructor::FollowLinearTrackInStation(), AliMUONTrackReconstructor::FollowTrackInStation(), AliMUONTrackReconstructorK::FollowTrackInStation(), AliMUONTriggerTrackToTrackerClusters::GenerateClusters(), AliMUONESDInterface::GetNTracks(), AliMUONESDInterface::GetNTriggers(), AliMUONConfigSubprocessor::HasConfigChanged(), AliMUONPedestalSubprocessor::HasConfigChanged(), IsEmpty(), AliMUONPedestal::MakeASCIIoutput(), MUONFakes(), MUONRecoCheck(), AliMUONOccupancySubprocessor::Process(), AliMUONTriggerSubprocessor::Process(), AliMUONTrackerDataMaker::ProcessEvent(), and AliMUONRefitter::RetrackFromDigits().
|
virtual |
The number of objects stored for firstid=i. Not implemented by default.
Number of objects store for "i", whatever that can means
Reimplemented in AliMUONVDigitStore, and AliMUON2DMap.
Definition at line 213 of file AliMUONVStore.cxx.
|
inlinevirtual |
Whether we are empty or not.
Definition at line 68 of file AliMUONVStore.h.
Referenced by AliMuonForwardTrackFinder::LoadNextEvent().
|
virtual |
Print all objects whose name matches wildcard.
Reimplemented in AliMUONVTriggerStore.
Definition at line 222 of file AliMUONVStore.cxx.
Referenced by AliMUONDataInterface::DumpDigits(), AliMUONMCDataInterface::DumpDigits(), AliMUONMCDataInterface::DumpHits(), AliMUONDataInterface::DumpRecPoints(), AliMUONMCDataInterface::DumpSDigits(), AliMUONOccupancySubprocessor::Print(), AliMUONConfigSubprocessor::Print(), AliMUONPedestalSubprocessor::Print(), and AliMUONTrackerData::Print().
|
virtual |
Print, with option, all objects whose name matches wildcard.
Reimplemented in AliMUONTriggerStoreV1.
Definition at line 243 of file AliMUONVStore.cxx.