\class AliMUONDataInterface An easy to use interface to the MUON data data stored in TreeS, TreeD and TreeR. For MC related information (i.e. TreeH, TreeK, TreeTR), see AliMUONMCDataInterface. This interface in not necessarily the fastest way to fetch the data but it is the easiest. \author Laurent Aphecetche, Subatech & Artur Szostak <artursz@iafrica.com> (University of Cape Town)
AliMUONDataInterface(const char* filename = "galice.root") | |
virtual | ~AliMUONDataInterface() |
void | TObject::AbstractMethod(const char* method) const |
virtual void | TObject::AppendPad(Option_t* option = "") |
virtual void | TObject::Browse(TBrowser* b) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TObject::Clear(Option_t* = "") |
virtual TObject* | TObject::Clone(const char* newname = "") const |
AliMUONVClusterStore* | ClusterStore(Int_t event) |
virtual Int_t | TObject::Compare(const TObject* obj) const |
virtual void | TObject::Copy(TObject& object) const |
Int_t | CurrentEvent() const |
virtual void | TObject::Delete(Option_t* option = "")MENU |
AliMUONVDigit* | Digit(Int_t detElemId, Int_t index) |
AliMUONVDigit* | Digit(Int_t chamber, Int_t cathode, Int_t index) |
AliMUONVDigitStore* | DigitStore(Int_t event) |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() constMENU |
virtual TObject* | TObject::DrawClone(Option_t* option = "") constMENU |
virtual void | TObject::Dump() constMENU |
void | DumpClusters(Int_t event, Bool_t sorted = kTRUE) |
void | DumpDigits(Int_t event, Bool_t sorted = kTRUE) |
void | DumpRecPoints(Int_t event, Bool_t sorted = kTRUE) |
void | DumpTrigger(Int_t event, const char* treeLetter = "R") |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
virtual TObject* | TObject::FindObject(const char* name) const |
virtual TObject* | TObject::FindObject(const TObject* obj) const |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
Bool_t | GetEvent(Int_t event = 0) |
virtual const char* | TObject::GetIconName() const |
virtual const char* | TObject::GetName() const |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual Option_t* | TObject::GetOption() const |
virtual const char* | TObject::GetTitle() const |
virtual UInt_t | TObject::GetUniqueID() const |
AliMUONGlobalTrigger* | GlobalTrigger() |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TObject::Hash() const |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
virtual void | TObject::Inspect() constMENU |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | TObject::IsFolder() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | TObject::IsSortable() const |
Bool_t | IsValid() const |
Bool_t | TObject::IsZombie() const |
AliMUONLocalTrigger* | LocalTrigger(Int_t index) |
virtual void | TObject::ls(Option_t* option = "") const |
void | TObject::MayNotUse(const char* method) const |
virtual Bool_t | TObject::Notify() |
Int_t | NumberOfDigits(Int_t detElemId) |
Int_t | NumberOfDigits(Int_t chamber, Int_t cathode) |
Int_t | NumberOfEvents() const |
Int_t | NumberOfLocalTriggers() |
Int_t | NumberOfRawClusters(Int_t chamber) |
Int_t | NumberOfRegionalTriggers() |
void | TObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const |
void | Open(const char* filename) |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::operator delete[](void* ptr, void* vp) |
void* | TObject::operator new(size_t sz) |
void* | TObject::operator new(size_t sz, void* vp) |
void* | TObject::operator new[](size_t sz) |
void* | TObject::operator new[](size_t sz, void* vp) |
virtual void | TObject::Paint(Option_t* option = "") |
virtual void | TObject::Pop() |
virtual void | TObject::Print(Option_t* option = "") const |
AliMUONVCluster* | RawCluster(Int_t chamber, Int_t index) |
virtual Int_t | TObject::Read(const char* name) |
virtual void | TObject::RecursiveRemove(TObject* obj) |
AliMUONRegionalTrigger* | RegionalTrigger(Int_t index) |
void | TObject::ResetBit(UInt_t f) |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU |
virtual void | TObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "") |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | TObject::SetDrawOption(Option_t* option = "")MENU |
static void | TObject::SetDtorOnly(void* obj) |
static void | TObject::SetObjectStat(Bool_t stat) |
virtual void | TObject::SetUniqueID(UInt_t uid) |
virtual void | ShowMembers(TMemberInspector&) |
virtual void | Streamer(TBuffer&) |
void | StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b) |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
AliMUONVTriggerStore* | TriggerStore(Int_t event, const char* treeLetter = "R") |
virtual void | TObject::UseCurrentStyle() |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
void | TObject::MakeZombie() |
AliMUONDataInterface(const AliMUONDataInterface& rhs) | |
Int_t | CountObjects(TIterator* iter) |
void | DumpSorted(const AliMUONVStore& store) const |
TObject* | FetchObject(TIterator* iter, Int_t index) |
TIterator* | GetIterator(AliMUONDataInterface::IteratorType type, Int_t x = 0, Int_t y = 0) |
Bool_t | LoadEvent(Int_t event) |
void | NtupleTrigger(const char* treeLetter) |
AliMUONDataInterface& | operator=(const AliMUONDataInterface& rhs) |
void | ResetIterator() |
void | ResetStores() |
enum IteratorType { | kNoIterator | |
kDigitIteratorByDetectorElement | ||
kDigitIteratorByChamberAndCathode | ||
kRawClusterIterator | ||
kLocalTriggerIterator | ||
kRegionalTriggerIterator | ||
}; | ||
enum TObject::EStatusBits { | kCanDelete | |
kMustCleanup | ||
kObjInCanvas | ||
kIsReferenced | ||
kHasUUID | ||
kCannotPick | ||
kNoContextMenu | ||
kInvalidObject | ||
}; | ||
enum TObject::[unnamed] { | kIsOnHeap | |
kNotDeleted | ||
kZombie | ||
kBitMask | ||
kSingleKey | ||
kOverwrite | ||
kWriteDelete | ||
}; |
AliMUONVClusterStore* | fClusterStore | !< current cluster store (owner) |
Int_t | fCurrentEvent | !< Current event we've read in |
Int_t | fCurrentIndex | !< A current index number maintained for certain iteration operations. |
AliMUONDataInterface::IteratorType | fCurrentIteratorType | !< The type of iterator that is currently set. |
Int_t | fDataX | !< Extra data parameter about the iterator, can be the chamber number or detector element. |
Int_t | fDataY | !< Extra data parameter about the iterator, can be the cathode number. |
AliMUONVDigitStore* | fDigitStore | !< current digit store (owner) |
Bool_t | fIsValid | !< whether we were initialized properly or not |
TIterator* | fIterator | !< Iterator for various iteration operations. |
AliLoader* | fLoader | !< Tree accessor |
TString | fTreeLetter | !< The tree letter used in the last call to TriggerStore(). |
AliMUONVTriggerStore* | fTriggerStore | !< current trigger store (owner) |
static Int_t | fgInstanceCounter | !< To build unique folder name for each instance |
Inheritance Chart: | ||||||||
|
ctor @param filename should be the full path to a valid galice.root file
Return digitStore for a given event. Return 0x0 if event not found. Returned pointer should not be deleted \note If a previous store has been retrieved by one of the methods of this class, but for a different event number, then those stores will be deleted and no longer valid. If you require access to the data for the earlier retrieved store, but for different events, then you should deep copy / clone the object.
Return clusterStore for a given event. Return 0x0 if event not found. Returned pointer should not be deleted \note If a previous store has been retrieved by one of the methods of this class, but for a different event number, then those stores will be deleted and no longer valid. If you require access to the data for the earlier retrieved store, but for different events, then you should deep copy / clone the object.
Return the triggerStore for a given event. Return 0x0 if event not found. Returned pointer should not be deleted treeLetter can be R or D to tell from which tree to read the information \note If a previous store has been retrieved by one of the methods of this class, but for a different event number, then those stores will be deleted and no longer valid. If you require access to the data for the earlier retrieved store, but for different events, then you should deep copy / clone the object.
Dump the digits for a given event, sorted if so required
Dump the recpoints for a given event, sorted if so required
Dump trigger for a given event from a given tree (if event>=0) or loop over all events and build a trigger ntuple if event<0 treeLetter can be R or D to tell from which tree to read the information
Returns the number of digits to be found on a given detector element. @param detElemId The detector element ID number to search on.
Returns the a pointer to the index'th digit on the specified detector element. @param detElemId The detector element ID number to search on. @param index The index number of the digit to fetch in the range [0 .. N-1], where N = NumberOfDigits(detElemId)
Returns the number of digits to be found on a specific chamber and cathode. @param chamber The chamber number in the range [0 .. 13]. @param cathode The cathode in the range [0 .. 1], where 0 is the bending and 1 is the non-bending plane.
Returns the a pointer to the index'th digit on the specified chamber and cathode. @param chamber The chamber number in the range [0 .. 13]. @param cathode The cathode in the range [0 .. 1], where 0 is the bending and 1 is the non-bending plane. @param index The index number of the digit to fetch in the range [0 .. N-1], where N = NumberOfDigits(chamber, cathode)
Returns the number of reconstructed raw clusters on the specified chamber. @param chamber The chamber number in the range [0 .. 13].
Returns a pointer to the index'th raw cluster on the specified chamber. @param chamber The chamber number in the range [0 .. 13]. @param index The index number of the raw cluster to fetch in the range [0 .. N-1], where N = NumberOfRawClusters(chamber)
Returns a pointer to the index'th local trigger object. @param index The index number of the local trigger object to fetch in the range [0 .. N-1], where N = NumberOfLocalTriggers()
Returns a pointer to the index'th regional trigger object. @param index The index number of the regional trigger object to fetch in the range [0 .. N-1], where N = NumberOfRegionalTriggers()
Returns a pointer to the reconstructed global trigger object for the event.
Deletes all the store objects that have been created and resets the pointers to 0x0. The temporary iterator object is automatically reset. See ResetIterator for more details.
Creates an appropriate iterator object and returns it. If the iterator has already been created then that one is returned otherwise a new object is created. Depending on the value of 'type' the semantics of parameters x and y can change. @param type The type of iterator to create. @param x This is the detector element ID if type == kDigitIteratorByDetectorElement If type equals kDigitIteratorByChamberAndCathode or kRawClusterIterator then this is the chamber number. In all other cases this parameter is ignored. @param y If type == kDigitIteratorByChamberAndCathode then this parameter is the cathode number. In all other cases this parameter is ignored.
The temporary iterator object is deleted if it exists and the pointer reset to 0x0. The iterator type and temporary data indicating the state of the iterator are also reset.
Counts the number of objects in the iterator and resets it. @return The number of objects in 'iter'.
Fetches the index'th object from the iterator counting the first object returned by iterator after it is reset as index == 0. The next object has index == 1 and so on where the last object returned by the iterator has index == N-1 where N = CountObjects(iter) This method will only reset the iterator if index is smaller than fCurrentIndex, which is used to track the iteration progress and is updated when a new object if returned by this method. @param iter The iterator to fetch an object from. @param index The index number of the object to fetch in the range [0 .. N-1] where N = CountObjects(iter)
Returns true if the data interface was able to open the root file correctly.
{ return fIsValid; }
Returns the index number of the current event loaded. This is the event number as was used in the last calls to DigitStore(Int_t), ClusterStore(Int_t), TriggerStore(Int_t) or GetEvent(Int_t).
{ return fCurrentEvent; }
Dump the clusters for a given event, sorted if so required
{ return DumpRecPoints(event,sorted); }