/[PAMELA software]/DarthVader/CalorimeterLevel2/inc/CaloLevel2.h
ViewVC logotype

Diff of /DarthVader/CalorimeterLevel2/inc/CaloLevel2.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by pam-fi, Tue Jan 16 10:09:45 2007 UTC revision 1.24 by pam-fi, Wed Oct 15 12:06:21 2014 UTC
# Line 9  Line 9 
9  #include <TClonesArray.h>  #include <TClonesArray.h>
10  #include <TArrayI.h>  #include <TArrayI.h>
11  //  //
12    #include <math.h>
13    #include <string.h>//ELENA
14    
15    //
16  #include <CaloStruct.h>  #include <CaloStruct.h>
17  //  //
18    
# Line 38  public: Line 42  public:
42      Int_t ntr;       ///< the same as "ncyl" but with radius 4 strips      Int_t ntr;       ///< the same as "ncyl" but with radius 4 strips
43      Int_t planetot;  ///< number of planes used to calculate the energy truncated mean "qmean"      Int_t planetot;  ///< number of planes used to calculate the energy truncated mean "qmean"
44      Int_t nlow;      ///< the same as "nstrip" but only after the calculated electromagnetic shower maximum      Int_t nlow;      ///< the same as "nstrip" but only after the calculated electromagnetic shower maximum
45      Int_t tibar[22][2];  ///< strip traversed by the trajectory as measured by the tracker      Int_t tibar[22][2];  ///< strip traversed by the trajectory as measured by the tracker or by the selftrigger when trkseqno = -1
46      Float_t tbar[22][2]; ///< position in cm as measured by the tracker      Float_t tbar[22][2]; ///< position in cm as measured by the tracker or by the selftrigger when trkseqno = -1
47      Float_t qcore;   ///< SUM(j=1,2)SUM(i=1,PLmax) Qhit(i,j)*i , where Qhit(i,j) is the energy released (MIP) in a cylinder of radius 2 Rm (Moliere radius) around the track in the i-th plane (where the top plane is number 1 and the sum runs up to plane number PLmax, closest to the calculated electromagnetic shower maximum of the j-th view).      Float_t qcore;   ///< SUM(j=1,2)SUM(i=1,PLmax) Qhit(i,j)*i , where Qhit(i,j) is the energy released (MIP) in a cylinder of radius 2 Rm (Moliere radius) around the track in the i-th plane (where the top plane is number 1 and the sum runs up to plane number PLmax, closest to the calculated electromagnetic shower maximum of the j-th view).
48      Float_t qcyl;    ///< the measured energy deposited in a cylinder of radius 8 strips around the shower axis      Float_t qcyl;    ///< the measured energy deposited in a cylinder of radius 8 strips around the shower axis
49      Float_t qlast;   ///< the same as "qcyl" but only for the last four planes and radius 4 strips.      Float_t qlast;   ///< the same as "qcyl" but only for the last four planes and radius 4 strips.
# Line 61  public: Line 65  public:
65       */       */
66      CaloTrkVar(const CaloTrkVar &trkvar); ///< copy values from trkvar to this      CaloTrkVar(const CaloTrkVar &trkvar); ///< copy values from trkvar to this
67      //      //
68      void Clear(); ///< clear variables      void Clear(Option_t *t=""); ///< clear variables
69      CaloTrkVar* GetCaloTrkVar(){return this;}; ///< returns pointer to this object      CaloTrkVar* GetCaloTrkVar(){return this;} ///< returns pointer to this object
70      //      //
71      ClassDef(CaloTrkVar,2);      ClassDef(CaloTrkVar,2);
72      //      //
# Line 86  class CaloLevel2 : public TObject { Line 90  class CaloLevel2 : public TObject {
90      Int_t perr[4]; ///< processing errors (one for each calorimeter section)      Int_t perr[4]; ///< processing errors (one for each calorimeter section)
91      Int_t swerr[4];///< DSP status word      Int_t swerr[4];///< DSP status word
92      Int_t crc[4];  ///< CRC errors on data      Int_t crc[4];  ///< CRC errors on data
93      Int_t selftrigger;///< self-trigger flag (1 selftrigger event, 0 normal event)      Int_t selftrigger;///< self-trigger flag: 0 tof trigger, 2 selftrigger event, 3 selftrigger + tof trigger, 102 selftrigger event not stored in the selfdelay array  NB: selftrigger == S4 trigger || no trigger || calo trigger in the triggerconf array
94      //      //
95      // common variables (not related to tracks)      // common variables (not related to tracks)
96      //      //
97      Int_t nstrip;      ///< total number of strip hit      Int_t nstrip;      ///< total number of strip hit
98        Int_t nsatstrip;   ///< total number of strip hit with saturated signal
99      Int_t nx22;        ///< number of strip hit in the last silicon plane of the calorimeter (x view number 22)      Int_t nx22;        ///< number of strip hit in the last silicon plane of the calorimeter (x view number 22)
100      Int_t planemax[2]; ///< plane of maximum energy release (x and y)      Int_t planemax[2]; ///< plane of maximum energy release (x and y)
101        Int_t selfdelay[4][7]; ///< Delay of the selftrigger planes + coincidence for every section
102      Float_t qtot;      ///< total energy detected (MIP)      Float_t qtot;      ///< total energy detected (MIP)
103      Float_t qx22;      ///< energy detected in the last silicon plane of the calorimeter (x view number 22)      Float_t qx22;      ///< energy detected in the last silicon plane of the calorimeter (x view number 22)
104      Float_t qmax;      ///< the maximum energy detected in a strip      Float_t qmax;      ///< the maximum energy detected in a strip
# Line 100  class CaloLevel2 : public TObject { Line 106  class CaloLevel2 : public TObject {
106      //      //
107      // Fit variables      // Fit variables
108      //      //
109      Int_t npcfit[2];     ///< number of point used to perform the fit for the two views      Int_t npcfit[4];     ///< number of point used to perform the fit for the two views (0,1 calo fit, 2,3 selftrigger fit if any)
110      Int_t cibar[22][2];  ///< strip traversed by the trajectory as measured by the calorimeter      Float_t varcfit[4];  ///< variance of the calorimeter fit for the two views (0,1 calo fit, 2,3 selftrigger fit if any)
111      Float_t cbar[22][2]; ///< position in cm as measured by the calorimeter      Float_t tanx[2];     ///< the tangent of the angle in the x direction as determined by the track fitted in the calorimeter (0 calo fit, 1 selftrigger fit)
112      Float_t impx;        ///< the x impact position on the first plane as determined by the track fitted in the calorimeter      Float_t tany[2];     ///< the tangent of the angle in the x direction as determined by the track fitted in the calorimeter (0 calo fit, 1 selftrigger fit)
113      Float_t impy;        ///< the y impact position on the first plane as determined by the track fitted in the calorimeter      Int_t fitmode[2];    ///< for x and y is 0 if the fit was performed with the "electron" algorithm, is 1 if the fit was performed with the "nuclei" algorithm
114      Float_t tanx;        ///< the tangent of the angle in the x direction as determined by the track fitted in the calorimeter      Int_t cibar[22][2];  ///< strip traversed by the trajectory as measured by the calorimeter (calo fit)
115      Float_t tany;        ///< the tangent of the angle in the x direction as determined by the track fitted in the calorimeter      Float_t cbar[22][2]; ///< position in cm as measured by the calorimeter (calo fit)
     Float_t varcfit[2];  ///< variance of the calorimeter fit for the two views  
116      //      //
117      // Energy variables      // Energy variables
118      //      //
# Line 116  class CaloLevel2 : public TObject { Line 121  class CaloLevel2 : public TObject {
121      //      //
122      // track related variables: inline methods      // track related variables: inline methods
123      //      //
124      Int_t ntrk()                                       {return CaloTrk->GetEntries();};  ///< number of saved blocks of track-related variables      Int_t ntrk(){return CaloTrk->GetEntries();}  ///< number of saved blocks of track-related variables
125      //      //
126      // METHODS      // METHODS
127      //      //
128        Float_t impx(Int_t tr);        ///< the x impact position on the first plane as determined by the track fitted in the calorimeter ( tr = 0 calo fit, tr = 1 selftrigger fit)
129        Float_t impy(Int_t tr);        ///< the y impact position on the first plane as determined by the track fitted in the calorimeter ( tr = 0 calo fit, tr = 1 selftrigger fit)
130    
131        TClonesArray** GetPointerToTrackArray(){return &CaloTrk;}///< returns pointer to pointer to the track array
132        void SetTrackArray(TClonesArray *track);///<set pointer to the track array
133    
134        //
135      void GetElectronEnergy(Float_t &energy, Float_t &sigma); ///< returns energy and sigma using qtot and assuming the particle being an electron      void GetElectronEnergy(Float_t &energy, Float_t &sigma); ///< returns energy and sigma using qtot and assuming the particle being an electron
136      //      //
137      CaloTrkVar *GetCaloTrkVar(Int_t notrack);  ///< returns a pointer to the CaloTrkVar class containing track related variables for track number notrack      CaloTrkVar *GetCaloTrkVar(Int_t notrack);  ///< returns a pointer to the CaloTrkVar class containing track related variables for track number notrack
138        CaloTrkVar* GetCaloStoredTrack(Int_t seqno); ///< returns pointer to the track set related to the seqno number
139      //      //
140      TClonesArray *GetTrackArray(){return CaloTrk;}; ///< returns a pointer to the track related variables array      TClonesArray *GetTrackArray(){return CaloTrk;} ///< returns a pointer to the track related variables array
141      CaloLevel2* GetCaloLevel2(){return this;}; ///< returns pointer to this object      CaloLevel2* GetCaloLevel2(){return this;} ///< returns pointer to this object
142      //      //
143      void GetLevel2Struct(cCaloLevel2 *l2) const;      void GetLevel2Struct(cCaloLevel2 *l2) const;
144      //      //
145      void Clear();      void Clear(Option_t *t="");
146      void Delete(); //ELENA      void Delete(Option_t *t=""); //ELENA
147      void Set(); //ELENA      void Set(); //ELENA
148        Bool_t IsGood(Bool_t strict = false); // method to check if the event is good or not
149      //      //
150      // constructor      // constructor
151      //      //
152      CaloLevel2(); ///< Constructor.      CaloLevel2(); ///< Constructor.
153      ~CaloLevel2(){Delete();}; //ELENA      ~CaloLevel2(){Delete();} //ELENA
154      //      //
155      friend class CaloProcessing;      friend class CaloLevel0;
156      //      //
157      ClassDef(CaloLevel2,3);      ClassDef(CaloLevel2,6);
158  };  };
159    
160  #endif  #endif

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.23