/[PAMELA software]/calo/flight/CaloNuclei/inc/CaloNuclei.h
ViewVC logotype

Annotation of /calo/flight/CaloNuclei/inc/CaloNuclei.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Fri Nov 7 09:06:14 2008 UTC (16 years ago) by malvezzi
Branch: MAIN
Changes since 1.6: +21 -2 lines
File MIME type: text/plain
routines to retrieve charge in different way are implemented

1 mocchiut 1.1
2    
3     /**
4     * \file CaloNuclei.h
5     * \author Emiliano Mocchiutti
6     */
7     #ifndef calonuclei_h
8     #define calonuclei_h
9    
10     #include <PamLevel2.h>
11    
12     #include <TTree.h>
13     #include <TFriendElement.h>
14     #include <TChain.h>
15     #include <TFile.h>
16     #include <TList.h>
17     #include <TKey.h>
18     #include <TSystemFile.h>
19     #include <TSystemDirectory.h>
20     #include <TSQLServer.h>
21    
22     #include <iostream>
23    
24     using namespace std;
25    
26     /**
27     *
28     * Class to store and calculate variables useful for nuclei analysis
29     */
30     class CaloNuclei : public TObject {
31    
32     private:
33     //
34     PamLevel2 *L2;
35 mocchiut 1.4 Bool_t debug;
36 mocchiut 1.5 Bool_t usetrack;
37 mocchiut 1.1 //
38     // needed to avoid reprocessing the same event over and over to obtain the variables
39     //
40     UInt_t OBT;
41     UInt_t PKT;
42     UInt_t atime;
43 mocchiut 1.3 Int_t tr;
44 mocchiut 1.5 Int_t sntr;
45 mocchiut 1.1 //
46     Int_t interplane; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane)
47     Int_t N; ///< Number of dE/dx measurements to be used to calculate qpremeanN, default N = 5
48 mocchiut 1.2 Int_t R; ///< Number of strip to be used around the trajectory to calculate qpremeanN, default R = 3
49 mocchiut 1.6 Int_t UN; ///< Number of dE/dx measurements really used to calculate qpremeanN
50 mocchiut 1.1 Float_t preq; ///< Energy release (MIP) up to the interaction plane (included)
51     Float_t postq; ///< Energy release (MIP) from the interaction plane (excluded) up to the last plane
52 mocchiut 1.5 Float_t stdedx1; ///< Energy release (MIP) on the first Silicon detector (Y EVEN) around the strip with maximum energy release (no track information).
53 mocchiut 1.1 Float_t dedx1; ///< Energy release (MIP) along the track on the first Silicon detector (Y EVEN).
54     Float_t dedx3; ///< Energy release (MIP) along the track on the first three Silicon detectors (Y EVEN, X EVEN, Y ODD).
55     Float_t qpremean; ///< Truncated mean (MIP) along the track up to the interaction plane preq using three points
56     Float_t qpremeanN; ///< Truncated mean (MIP) along the track up to the interaction plane preq using N points
57 malvezzi 1.7 Float_t qNmin1; ///< Truncated mean (MIP) along the track using N-1 measurements before of the interaction plane
58     Float_t maxrel; ///<Energy maximum release on first Calorimeter plane (dedx of strip with maximum release)
59 mocchiut 1.1 Float_t ethr; ///< Threshold (MIP) needed to find the interaction plane
60     Bool_t multhit; ///< True if the interaction plane has been determined by multiple hit counting
61     Bool_t gap; ///< True if determining the interaction plane a big (>5 planes) gap has been found between a point and another along the track
62 malvezzi 1.7 Float_t charge_siegen1;
63     Float_t ZCalo_dedx_b; //Z from Calo using dedx in first Calorimeter plane vs. beta
64     Float_t ZCalo_maxrel_b; //Z from Calo using maximum release in first Calorimeter plane vs. beta
65     Float_t ZCalo_dedx_defl; //Z from Calo using dedx in first Calorimeter plane vs. rigidity
66     Float_t ZCalo_Nmin1_defl; //Z from Calo using truncated mean on N-1 Calorimeter planes (plane N+1 is the interaction plane) vs. rigidity
67     //
68     Float_t qNmin1_w;
69     Int_t S2;
70 mocchiut 1.1 public:
71     //
72     //
73 malvezzi 1.7 //char* version();
74    
75 mocchiut 1.3 Int_t Get_interplane(){ Process(); return interplane;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane)
76 mocchiut 1.6 Int_t Get_N(){ return N;}; ///< Number of dE/dx measurements to be used to calculate qpremeanN, default N = 5
77     Int_t Get_UsedN(){ return UN;}; ///< Number of dE/dx measurements really used to calculate qpremeanN
78 mocchiut 1.3 Int_t Get_R(){ return R;}; ///< Number of strip to be used around the trajectory to calculate qpremeanN, default R = 3
79     Float_t Get_preq(){ Process(); return preq;}; ///< Energy release (MIP) up to the interaction plane (included)
80     Float_t Get_postq(){ Process(); return postq;}; ///< Energy release (MIP) from the interaction plane (excluded) up to the last plane
81 mocchiut 1.5 Float_t Get_StdEdx1(){ Process(); return stdedx1;}; ///< Energy release (MIP) on the first Silicon detector (Y EVEN) around the strip with maximum energy release (no track information, 3 strips in total).
82 mocchiut 1.3 Float_t Get_dEdx1(){ Process(); return dedx1;}; ///< Energy release (MIP) along the track on the first Silicon detector (Y EVEN).
83     Float_t Get_dEdx3(){ Process(); return dedx3;}; ///< Energy release (MIP) along the track on the first three Silicon detectors (Y EVEN, X EVEN, Y ODD).
84     Float_t Get_qpremean(){ Process(); return qpremean;}; ///< Truncated mean (MIP) along the track up to the interaction plane preq using three points
85     Float_t Get_qpremeanN(){ Process(); return qpremeanN;}; ///< Truncated mean (MIP) along the track up to the interaction plane preq using N points
86 malvezzi 1.7 Float_t Get_qNmin1(){ Process(); return qNmin1;}; ///< Truncated mean (MIP) along the track using N-1 measurements before of the interaction plane
87     Float_t Get_maxrel(){ Process(); return maxrel;}; ///<Energy maximum release on first Calorimeter plane (dedx of strip with maximum release)
88 mocchiut 1.3 Float_t Get_ethr(){ Process(); return ethr;}; ///< Threshold (MIP) needed to find the interaction plane
89 mocchiut 1.1 Bool_t IsMulthit(){ Process(); return multhit;}; ///< True if the interaction plane has been determined by multiple hit counting
90     //
91 malvezzi 1.7 Float_t Get_charge_siegen1(){ Process(); return charge_siegen1;}; ///< charge Siegen method stdedx1 vs. beta
92     Float_t Get_ZCalo_dedx_b(){ Process(); return ZCalo_dedx_b;}; //Z from Calo using dedx (or StdEdx) in first Calorimeter plane vs. beta
93     Float_t Get_ZCalo_maxrel_b(){ Process(); return ZCalo_maxrel_b;}; //Z from Calo using maximum release in first Calorimeter plane vs. beta
94     Float_t Get_ZCalo_dedx_defl(){ Process(); return ZCalo_dedx_defl;}; //Z from Calo using dedx in first Calorimeter plane vs. rigidity
95     Float_t Get_ZCalo_Nmin1_defl(){ Process(); return ZCalo_Nmin1_defl;}; //Z from Calo using truncated mean on N-1 Calorimeter planes (plane N+1 is the interaction plane) vs. rigidity
96    
97     //
98 mocchiut 1.3 void Set_N(Int_t n){ N=n;};
99     void Set_R(Int_t r){ R=r;};
100 mocchiut 1.1 //
101     CaloNuclei();
102     CaloNuclei(PamLevel2 *L2);
103     ~CaloNuclei(){ Delete(); };
104     //
105 mocchiut 1.4 void SetDebug(Bool_t d){ debug=d; };
106 mocchiut 1.5 void UseTrack(Bool_t d){ usetrack=d; };
107 mocchiut 1.4 //
108 mocchiut 1.1 void Clear();
109     void Clear(Option_t *option){Clear();};
110     void Delete();
111 mocchiut 1.6 void Delete(Option_t *option){Delete();};
112 mocchiut 1.1 //
113 mocchiut 1.3 void Process(); ///< Process data for track number 0
114 mocchiut 1.5 void Process(Int_t ntr); ///< Process data for track number ntr
115 mocchiut 1.1 void Print();
116 mocchiut 1.6 void Print(Option_t *option){Print();};
117 mocchiut 1.1 //
118 mocchiut 1.5 ClassDef(CaloNuclei,2);
119 mocchiut 1.1 };
120    
121     #endif
122    

  ViewVC Help
Powered by ViewVC 1.1.23