save number of clusters/tracklet in debug stream
[u/mrichter/AliRoot.git] / ITS / AliITSRecPointContainer.h
CommitLineData
b21c1af0 1#ifndef ALIITSRECPOINTCONTAINER_H
2#define ALIITSRECPOINTCONTAINER_H
3/* Copyright(c) 2009-2011, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8////////////////////////////////////////////////////////////////////////
9// Container class for ITS rec points //
10////////////////////////////////////////////////////////////////////////
11
12#include <TClonesArray.h>
13#include <TString.h>
14
15class AliITSRecoParam;
16
17class AliITSRecPointContainer : public TObject {
18
19 public:
20
21 virtual ~AliITSRecPointContainer(); //Destructor
22
23 Bool_t IsSPDActive() const {return fDet.Contains("SPD");}
24 Bool_t IsSDDActive() const {return fDet.Contains("SDD");}
25 Bool_t IsSSDActive() const {return fDet.Contains("SSD");}
26 Bool_t IsITSComplete() const {return fDet.Contains("ALL");}
e62fe478 27 Bool_t GetStatusOK() const {return fStatusOK;}
28 Int_t GetNumberOfModules() const {return fActualSize; }
b21c1af0 29
30 static AliITSRecPointContainer* Instance(const AliITSRecoParam *ptr=NULL);
31 TClonesArray* FetchClusters(Int_t mod, TTree* tR);
32 TClonesArray* UncheckedGetClusters(Int_t mod) const {return fArray[mod];}
33
34 private:
35 // methods
36 AliITSRecPointContainer(const AliITSRecoParam* krp=NULL); // Default constructor
37 AliITSRecPointContainer(const AliITSRecPointContainer& rec);
38 AliITSRecPointContainer& operator=(const AliITSRecPointContainer &source);
39 Bool_t CheckBoundaries(Int_t i)const { return (i>=0 && i<fgkNModules);}
40 void CookEntries();
41 void Reset();
42 //Data members
43 static AliITSRecPointContainer* fgInstance; //! AliITSRecPointContainer
44 // singleton
45 static const Int_t fgkNModules=2198; //! total number of ITS modules
46
47 Int_t fSPDNModules; //! number of SPD modules
48 Int_t fSDDNModules; //! number of SDD modules
49 Int_t fSSDNModules; //! number of SDD modules
50 TClonesArray* fArray[fgkNModules]; //! container - 1 TClonesArray per module
51 Int_t fCurrentEve; //!run number
52 Int_t fActualSize; //! actual number of ITS modules in TTree R
53 TString fDet; //! ITS subdetectors active for the current run
e62fe478 54 Bool_t fStatusOK; //! kFALSE is RP branch is absent or if there are anomalies
55 //! in the number of active modules
b21c1af0 56
57 ClassDef(AliITSRecPointContainer,0)
58};
59
60#endif