]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDv1.h
0. General code clean-up, including messages, and the like.
[u/mrichter/AliRoot.git] / FMD / AliFMDv1.h
1 #ifndef ALIFMDV1_H
2 #define ALIFMDV1_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
7  *
8  * See cxx source for full Copyright notice                               
9  */
10
11 //____________________________________________________________________
12 //
13 //  Manager class for the FMD - Detailed version. 
14 //  Implements the full geometry, 
15 //  And does stepping
16 // 
17 #ifndef ALIFMD_H 
18 # include "AliFMD.h"
19 #endif
20 #ifndef ROOT_TLorentzVector
21 # include <TLorentzVector.h>
22 #endif
23  
24 //____________________________________________________________________
25 class AliFMDv1 : public AliFMD 
26 {
27 public:
28   AliFMDv1()
29     : AliFMD(),
30       fCurrentDeltaE(0),
31       fCurrentV(),
32       fCurrentP(),
33       fCurrentPdg(0) { fDetailed = kTRUE; }
34   AliFMDv1(const char *name, const char *title="Detailed geometry") 
35     : AliFMD(name, title),
36       fCurrentDeltaE(0),
37       fCurrentV(),
38       fCurrentP(),
39       fCurrentPdg(0) { fDetailed = kTRUE; }
40   virtual ~AliFMDv1() {}
41
42   // Required member functions 
43   virtual Int_t  IsVersion() const {return 1;}
44   virtual void   StepManager();
45 protected:
46   Bool_t VMC2FMD(TLorentzVector& v, UShort_t& detector,
47                  Char_t& ring, UShort_t& sector, UShort_t& strip) const;
48   Bool_t VMC2FMD(Int_t copy, TLorentzVector& v,
49                  UShort_t& detector, Char_t& ring,
50                  UShort_t& sector, UShort_t& strip) const;
51   Bool_t CheckHit(Int_t trackno, Int_t pdg, Float_t absQ, 
52                   const TLorentzVector& p, Float_t edep) const;
53
54   Double_t       fCurrentDeltaE;    // The current accumulated energy loss
55   TLorentzVector fCurrentV;         // Current production vertex 
56   TLorentzVector fCurrentP;         // Current momentum vector 
57   Int_t          fCurrentPdg;       // Current PDG code 
58   
59   ClassDef(AliFMDv1,5)  // Detailed FMD geometry
60 };
61
62 #endif
63 //____________________________________________________________________
64 //
65 // Local Variables:
66 //   mode: C++
67 // End:
68 //
69 // EOF
70 //