ROOT logo
AliRoot » ITS » AliITSRecPointContainer

class AliITSRecPointContainer: public TObject

Class to store ITS RecPoints for the duration of
one event processing
The container is cleared at each event and new RP
are loaded from TTree
Origin masera@to.infn.it  Nov. 12 2009

Function Members (Methods)

public:
virtual~AliITSRecPointContainer()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
static voidDestroy()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
TClonesArray*FetchClusters(Int_t mod, TTree* tR)
TClonesArray*FetchClusters(Int_t mod, TTree* tR, Int_t cureve)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
voidFullReset()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
UInt_tGetNClustersInLayer(Int_t lay, TTree* tR, Int_t eventN = -1)
UInt_tGetNClustersInLayerFast(Int_t lay) const
Int_tGetNumberOfModules() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Bool_tGetStatusOK() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
static AliITSRecPointContainer*Instance(const AliITSRecoParam* ptr = NULL)
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsITSComplete() const
Bool_tTObject::IsOnHeap() const
Bool_tIsSDDActive() const
virtual Bool_tTObject::IsSortable() const
Bool_tIsSPDActive() const
Bool_tIsSSDActive() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::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 voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
voidPrepareToRead()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
voidResetSDD()
voidResetSPD()
voidResetSSD()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TClonesArray*UncheckedGetClusters(Int_t mod) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

private:
Int_tfActualSize! actual number of ITS modules in TTree R
TClonesArray*fArray[2198]! container - 1 TClonesArray per module
Int_tfCurrentEve! event number
TStringfDet! ITS subdetectors active for the current run
UInt_tfNClusters[6]! Number of clusters per layer
Int_tfNextEvent! number of the next event to be read; used only when
Int_tfSDDNModules! number of SDD modules
Int_tfSPDNModules! number of SPD modules
Int_tfSSDNModules! number of SDD modules
Bool_tfStatusOK! kFALSE is RP branch is absent or if there are anomalies
static AliITSRecPointContainer*fgInstance! AliITSRecPointContainer
static const Int_tfgkNModules! total number of ITS modules

Class Charts

Inheritance Chart:
TObject
AliITSRecPointContainer

Function documentation

AliITSRecPointContainer(const AliITSRecoParam* krp = NULL)
 Default constructor
~AliITSRecPointContainer()
 Destructor
void CookEntries()
 From the number of entries in TTree R, the number of ITS subdetectors
 active for the present run is inferred
TClonesArray* FetchClusters(Int_t mod, TTree* tR)
 retrieves Recpoints for module mod (offline mode: the event number is
 retrieved via the AliRunLoader object)
 The actual access to the RP TTree is done as follows:
 If the AliRunLoader object exists, the event number is taken from it
 If not, the data member fNextEvent is used.
 To set fNextEvent it is necessary to call PrepareToRead in advance.
 if this is never done, fNextEvent will have its default negative value
 and an error message will be delivered.
TClonesArray* FetchClusters(Int_t mod, TTree* tR, Int_t cureve)
 retrieves Recpoints for module mod
 cureve is the current event number. If it is different w.r.t.
 the event number stored in fCurrentEve, the recpoints are read from
 the TTree. Otherwise, the RP stored in memory are used.
UInt_t GetNClustersInLayer(Int_t lay, TTree* tR, Int_t eventN = -1)
 returns the number of clusters for laier lay
 layers are numbered from 1 to 6
UInt_t GetNClustersInLayerFast(Int_t lay) const
 returns the number of clusters for laier lay
 layers are numbered from 1 to 6
 No checks are done on the event number: the numer of clusters
 for the event stored in memory is returned
AliITSRecPointContainer* Instance(const AliITSRecoParam* ptr = NULL)
 returns AliITSRecPointContainer instance (singleton)
void Destroy()
 deletes the singleton
void Reset()
 Resets the status of the object
void ResetSPD()
 Resets only the entries in fArray concerning SPD
 This method should be used with care only when the filling
 of the container is not done from the RP TTree.
void ResetSDD()
 Resets only the entries in fArray concerning SDD
 This method should be used with care only when the filling
 of the container is not done from the RP TTree.
void ResetSSD()
 Resets only the entries in fArray concerning SSD
 This method should be used with care only when the filling
 of the container is not done from the RP TTree.
Bool_t IsSPDActive() const
{return fDet.Contains("SPD");}
Bool_t IsSDDActive() const
{return fDet.Contains("SDD");}
Bool_t IsSSDActive() const
{return fDet.Contains("SSD");}
Bool_t IsITSComplete() const
{return fDet.Contains("ALL");}
Bool_t GetStatusOK() const
{return fStatusOK;}
Int_t GetNumberOfModules() const
{return fActualSize; }
void PrepareToRead()
TClonesArray* UncheckedGetClusters(Int_t mod) const
{return fArray[mod];}
void FullReset()
{fCurrentEve=-1000; Reset();}
AliITSRecPointContainer(const AliITSRecoParam* krp = NULL)
 methods
AliITSRecPointContainer& operator=(const AliITSRecPointContainer& source)
Bool_t CheckBoundaries(Int_t i) const
{ return (i>=0 && i<fgkNModules);}
void ClearClus(Int_t first, Int_t lastpp)
 ranging from first to lastpp-1 included