]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ZDC/AliZDC.h
Class version incremented
[u/mrichter/AliRoot.git] / ZDC / AliZDC.h
1 #ifndef ALIZDC_H
2 #define ALIZDC_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 ////////////////////////////////////////////////
9 //  Manager and classes for set ZDC           //
10 ////////////////////////////////////////////////
11
12 class AliZDCMerger;
13  
14 #include "AliDetector.h"
15  
16 class AliZDC : public AliDetector {
17
18 public:
19   AliZDC();
20   AliZDC(const char *name, const char *title);
21   virtual       ~AliZDC();
22   virtual void  AddHit(Int_t track, Int_t *vol, Float_t *hits);
23   virtual void  AddDigit(Int_t *sector, Int_t digit);
24   virtual void  BuildGeometry();
25   virtual void  CreateGeometry() {}
26   virtual void  CreateMaterials() {}
27   Int_t         DistancetoPrimitive(Int_t px, Int_t py);
28   virtual Int_t IsVersion() const =0;
29   virtual Float_t ZMin() const; // Minimum overall dimension of the ZDC
30   virtual Float_t ZMax() const; // Maximum overall dimension of the ZDC
31   virtual void  MakeBranch(Option_t* opt, const char *file=0);
32   virtual void  MakeBranchInTreeSD(TTree *treeSD, const char *file=0);
33   virtual void  MakeBranchInTreeD(TTree *treeD, const char *file=0);
34   virtual void  MakeBranchInTreeR(TTree *treeD, const char *file=0);
35   virtual void  Hits2SDigits();
36   virtual void  SDigits2Digits();
37   virtual void  Hits2Digits();
38   virtual void  Digits2Reco();
39   TClonesArray  *Reconstructed()   const {return fRecPoints;}
40   virtual void  SetMerger(AliZDCMerger* merger);
41   virtual AliZDCMerger* Merger();
42   virtual void  StepManager() {}
43     
44   // Switching off the shower development in ZDCs
45   void  NoShower(){fNoShower=1;}
46   void  Shower()  {fNoShower=0;}
47
48 protected:
49
50   Int_t        fNoShower;       // Flag to switch off the shower        
51   AliZDCMerger *fMerger;        // ! pointer to merger
52   
53   Int_t        fNMergedhits;    // Number of Merged hits for background
54   TClonesArray *fMergedHits;    // TCA for "merged" hits  
55   TTree        *fTreeSD;        // TreeS for merging
56   TTree        *fTreeMD;        // TreeD for merging
57   
58   Int_t        fNRecPoints;     // Number of RecPoints
59   TClonesArray *fRecPoints;     // List of RecPoints
60
61   ClassDef(AliZDC,1)    // Zero Degree Calorimeter base class
62 };
63  
64 #endif