]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSRecPointContainer.h
Access simulation parameters in digitizers via file in OCDB, simulation parameter...
[u/mrichter/AliRoot.git] / ITS / AliITSRecPointContainer.h
index 5123905a4c7821d58e27923115dc4a65d5d5aded..1a493ef03baee1d98822ca4e612ebafadfa9a7b2 100644 (file)
@@ -28,9 +28,15 @@ class AliITSRecPointContainer : public TObject {
   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
@@ -48,11 +54,14 @@ class AliITSRecPointContainer : public TObject {
   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)
 };