]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDv1.h
Constructing AliMAG geometry in the same way with TGeant3, TFluka, and TGeant3TGeo
[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 //
15 #ifndef ALIFMD_H 
16 # include "AliFMD.h"
17 #endif
18 #ifndef ROOT_TLorentzVector
19 # include <TLorentzVector.h>
20 #endif
21  
22 //____________________________________________________________________
23 class AliFMDv1 : public AliFMD 
24 {
25 public:
26   AliFMDv1()
27     : AliFMD(),
28       fCurrentDeltaE(0),
29       fCurrentV(),
30       fCurrentP(),
31       fCurrentPdg(0) { fDetailed = kTRUE; }
32   AliFMDv1(const char *name, const char *title="Detailed geometry") 
33     : AliFMD(name, title),
34       fCurrentDeltaE(0),
35       fCurrentV(),
36       fCurrentP(),
37       fCurrentPdg(0) { fDetailed = kTRUE; }
38   virtual ~AliFMDv1() {}
39
40   // Required member functions 
41   virtual Int_t  IsVersion() const {return 1;}
42   virtual void   StepManager();
43 protected:
44   Double_t   fCurrentDeltaE;        // The current accumelated energy loss
45   TLorentzVector fCurrentV;         // Current production vertex 
46   TLorentzVector fCurrentP;         // Current momentum vector 
47   Int_t          fCurrentPdg;       // Current PDG code 
48   
49   ClassDef(AliFMDv1,4)  // Detailed FMD geometry
50 };
51
52 #endif
53 //____________________________________________________________________
54 //
55 // Local Variables:
56 //   mode: C++
57 // End:
58 //
59 // EOF
60 //