Int_t GetNumberOfModules() const {return fActualSize; }
static AliITSRecPointContainer* Instance(const AliITSRecoParam *ptr=NULL);
+ void PrepareToRead(){if(fNextEvent<0){fNextEvent=0;} else {++fNextEvent;}}
TClonesArray* FetchClusters(Int_t mod, TTree* tR);
TClonesArray* FetchClusters(Int_t mod, TTree* tR,Int_t cureve);
TClonesArray* UncheckedGetClusters(Int_t mod) const {return fArray[mod];}
+ // In the following two methods: 1<=lay<=6 (i.e. layers numbered from 1)
+ UInt_t GetNClustersInLayer(Int_t lay, TTree* tR, Int_t eventN=-1);
+ UInt_t GetNClustersInLayerFast(Int_t lay) const;
+
private:
// methods
AliITSRecPointContainer(const AliITSRecoParam* krp=NULL); // Default constructor
Int_t fSDDNModules; //! number of SDD modules
Int_t fSSDNModules; //! number of SDD modules
TClonesArray* fArray[fgkNModules]; //! container - 1 TClonesArray per module
- Int_t fCurrentEve; //!run number
+ Int_t fCurrentEve; //! event number
+ Int_t fNextEvent; //! number of the next event to be read; used only when
+ //! the run loader is not available. It is just a counter.
Int_t fActualSize; //! actual number of ITS modules in TTree R
TString fDet; //! ITS subdetectors active for the current run
Bool_t fStatusOK; //! kFALSE is RP branch is absent or if there are anomalies
//! in the number of active modules
+ UInt_t fNClusters[6]; //! Number of clusters per layer
ClassDef(AliITSRecPointContainer,0)
};