16 |
// |
// |
17 |
// new param |
// new param |
18 |
// |
// |
19 |
#define CTX 121.2 |
//#define CTX 121.2 |
20 |
#define CTY 122.9 |
//#define CTY 122.9 |
21 |
#define CTZ -263.1 |
//#define CTZ -263.1 |
22 |
|
// |
23 |
|
// new param using em showers (E. Taddei paramters) |
24 |
|
// |
25 |
|
//#define CTX 120.6 |
26 |
|
//#define CTY 122.3 |
27 |
|
//#define CTZ -263.1 |
28 |
|
// |
29 |
|
// new param using inclined protons and looking for Z alignment |
30 |
|
// |
31 |
|
#define CTX 120.6 |
32 |
|
#define CTY 122.3 |
33 |
|
#define CTZ -261.596 |
34 |
// |
// |
35 |
// Mechanical positions (used with option --use-standard-alig) |
// Mechanical positions (used with option --use-standard-alig) |
36 |
// |
// |
37 |
#define MECHCTX 121. |
#define MECHCTX 120.5 |
38 |
#define MECHCTY 122. |
#define MECHCTY 121.5 |
39 |
#define MECHCTZ -261.81 |
#define MECHCTZ -261.81 |
40 |
// |
// |
41 |
// just for testing purpose |
// just for testing purpose |
84 |
// |
// |
85 |
Float_t GetEstrip(Int_t view, Int_t plane, Int_t strip); ///< returns saved MIP value for the indicated strip. |
Float_t GetEstrip(Int_t view, Int_t plane, Int_t strip); ///< returns saved MIP value for the indicated strip. |
86 |
Float_t DecodeEstrip(Int_t entry, Int_t &view, Int_t &plane, Int_t &strip); ///< returns saved MIP value for the entry number "entry" of the TArrayI. |
Float_t DecodeEstrip(Int_t entry, Int_t &view, Int_t &plane, Int_t &strip); ///< returns saved MIP value for the entry number "entry" of the TArrayI. |
87 |
|
Float_t DecodeEstrip(Int_t entry, Int_t &view, Int_t &plane, Int_t &strip, Bool_t &saturated); ///< returns saved MIP value for the entry number "entry" of the TArrayI. |
88 |
Float_t qtotpl(Int_t nplane); ///< Returns energy released on plane nplane (where 0<= nplane <= 43, 0 = 1Y, 1 = 1X, 2 = 2Y, 3 = 2X, etc. etc.). |
Float_t qtotpl(Int_t nplane); ///< Returns energy released on plane nplane (where 0<= nplane <= 43, 0 = 1Y, 1 = 1X, 2 = 2Y, 3 = 2X, etc. etc.). |
89 |
Float_t qtotpl(Int_t view, Int_t plane); ///< Returns energy released on view "view" (0 = X, 1 = Y) and plane "plane" ( 0 <= plane <= 21 ). |
Float_t qtotpl(Int_t view, Int_t plane); ///< Returns energy released on view "view" (0 = X, 1 = Y) and plane "plane" ( 0 <= plane <= 21 ). |
90 |
|
Float_t qtotpl(Int_t nplane, Bool_t &saturation); ///< Returns energy released on plane nplane (where 0<= nplane <= 43, 0 = 1Y, 1 = 1X, 2 = 2Y, 3 = 2X, etc. etc.). |
91 |
|
Float_t qtotpl(Int_t view, Int_t plane, Bool_t &saturation); ///< Returns energy released on view "view" (0 = X, 1 = Y) and plane "plane" ( 0 <= plane <= 21 ). |
92 |
// |
// |
93 |
void Clear(); |
void Clear(Option_t *t=""); |
94 |
// |
// |
95 |
Float_t GetXalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTX;}; ///< return X alignement paramenter |
Float_t GetXalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTX;}; ///< return X alignement paramenter |
96 |
Float_t GetYalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTY;}; ///< return Y alignement paramenter |
Float_t GetYalig(){printf(" Obsolete! Use CaloStrip class instead\n");return CTY;}; ///< return Y alignement paramenter |
117 |
Int_t fPlane; ///< plane [1-22] |
Int_t fPlane; ///< plane [1-22] |
118 |
Int_t fStrip; ///< strip [1-96] |
Int_t fStrip; ///< strip [1-96] |
119 |
Bool_t ismech; ///< true = using mechanical alignement, false using experimental alignement parameters |
Bool_t ismech; ///< true = using mechanical alignement, false using experimental alignement parameters |
120 |
Float_t UXal; ///< used X alignement parameter |
static Float_t UXal; ///< used X alignement parameter |
121 |
Float_t UYal; ///< used Y alignement parameter |
static Float_t UYal; ///< used Y alignement parameter |
122 |
Float_t UZal; ///< used Z alignement parameter |
static Float_t UZal; ///< used Z alignement parameter |
123 |
|
static Bool_t paramload; |
124 |
|
// |
125 |
|
|
126 |
public: |
public: |
127 |
// |
// |
128 |
// METHODS |
// METHODS |
129 |
// |
// |
|
// |
|
130 |
CaloStrip(); ///< Default Constructor. |
CaloStrip(); ///< Default Constructor. |
131 |
// |
// |
132 |
CaloStrip(Bool_t usemechanicalalignement); ///< Default Constructor. |
CaloStrip(Bool_t usemechanicalalignement); ///< Default Constructor. |
146 |
Float_t GetZalig(){ return UZal;}; ///< return Z alignement paramenter |
Float_t GetZalig(){ return UZal;}; ///< return Z alignement paramenter |
147 |
// |
// |
148 |
Int_t GetView(){return (fView-1);}; ///< Get strip view [0-1] |
Int_t GetView(){return (fView-1);}; ///< Get strip view [0-1] |
149 |
Int_t GetPlane(){return (fPlane-1);}; ///< Get strip plane [0-22] |
Int_t GetPlane(){return (fPlane-1);}; ///< Get strip plane [0-21] |
150 |
Int_t GetStrip(){return (fStrip-1);}; ///< Get strip number [0-95] |
Int_t GetStrip(){return (fStrip-1);}; ///< Get strip number [0-95] |
151 |
// |
// |
152 |
void Set(Int_t view, Int_t plane, Int_t strip); ///< Set strip giving view [0-1], plane [0-22] and number [0-95] |
void Set(Int_t view, Int_t plane, Int_t strip); ///< Set strip giving view [0-1], plane [0-22] and number [0-95] |
158 |
void SetAlig(Float_t XALIG, Float_t YALIG, Float_t ZALIG){ ismech = false; UXal = XALIG; UYal = YALIG; UZal = ZALIG;};///< User defined alignement parameters |
void SetAlig(Float_t XALIG, Float_t YALIG, Float_t ZALIG){ ismech = false; UXal = XALIG; UYal = YALIG; UZal = ZALIG;};///< User defined alignement parameters |
159 |
Bool_t IsMechanicalAlig(){return ismech;}; ///< True is using mechanical alignement parameters, false otherwise |
Bool_t IsMechanicalAlig(){return ismech;}; ///< True is using mechanical alignement parameters, false otherwise |
160 |
// |
// |
161 |
void Clear(); ///< clear variables |
void Clear(Option_t *t=""); ///< clear variables |
162 |
// |
// |
163 |
CaloStrip* GetCaloStrip(){return this;}; ///< returns pointer to this object |
CaloStrip* GetCaloStrip(){return this;}; ///< returns pointer to this object |
164 |
// |
// |