14 |
CaloStrip::CaloStrip() { |
CaloStrip::CaloStrip() { |
15 |
c1 = 0; |
c1 = 0; |
16 |
this->Clear(); |
this->Clear(); |
17 |
UseStandardAlig(); |
}; |
18 |
|
|
19 |
|
/** |
20 |
|
* CaloStrip default constructor |
21 |
|
**/ |
22 |
|
CaloStrip::CaloStrip(Bool_t mechalig) { |
23 |
|
c1 = 0; |
24 |
|
this->Clear(); |
25 |
|
if ( mechalig ){ |
26 |
|
ismech = true; |
27 |
|
UXal = MECHCTX; |
28 |
|
UYal = MECHCTY; |
29 |
|
UZal = MECHCTZ; |
30 |
|
} else { |
31 |
|
ismech = false; |
32 |
|
UseStandardAlig(); |
33 |
|
}; |
34 |
}; |
}; |
35 |
|
|
36 |
/** |
/** |
39 |
CaloStrip::CaloStrip(CaloLevel1 *calo) { |
CaloStrip::CaloStrip(CaloLevel1 *calo) { |
40 |
c1 = calo->GetCaloLevel1(); |
c1 = calo->GetCaloLevel1(); |
41 |
this->Clear(); |
this->Clear(); |
42 |
ismech = false; |
ismech = false; |
43 |
|
UseStandardAlig(); |
44 |
|
}; |
45 |
|
|
46 |
|
/** |
47 |
|
* CaloStrip default constructor |
48 |
|
**/ |
49 |
|
CaloStrip::CaloStrip(CaloLevel1 *calo, Bool_t mechalig) { |
50 |
|
c1 = calo->GetCaloLevel1(); |
51 |
|
this->Clear(); |
52 |
|
if ( mechalig ){ |
53 |
|
ismech = true; |
54 |
|
UXal = MECHCTX; |
55 |
|
UYal = MECHCTY; |
56 |
|
UZal = MECHCTZ; |
57 |
|
} else { |
58 |
|
ismech = false; |
59 |
|
UseStandardAlig(); |
60 |
|
}; |
61 |
}; |
}; |
62 |
|
|
63 |
/** |
/** |
144 |
// |
// |
145 |
}; |
}; |
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
/** |
/** |
148 |
* Given a strip returns its position in the PAMELA reference system |
* Given a strip returns its position in the PAMELA reference system |
149 |
**/ |
**/ |
175 |
fView = view + 1; |
fView = view + 1; |
176 |
fPlane = plane + 1; |
fPlane = plane + 1; |
177 |
fStrip = strip + 1; |
fStrip = strip + 1; |
178 |
|
// |
179 |
if ( fPlane%2 ){ |
if ( fPlane%2 ){ |
180 |
lShift = -0.5; |
lShift = +0.5; |
181 |
} else { |
} else { |
182 |
lShift = 0.5; |
lShift = -0.5; |
183 |
}; |
}; |
184 |
// |
// |
|
if ( fView == 2 ) lShift = - lShift; |
|
|
// |
|
185 |
shift_.shift = lShift; |
shift_.shift = lShift; |
186 |
// |
// |
187 |
Float_t zplane[22]; |
Float_t zplane[22]; |
205 |
fX = (lPos - UXal)/10.; |
fX = (lPos - UXal)/10.; |
206 |
fY = 0.; |
fY = 0.; |
207 |
fZ = (zplane[fPlane-1] - 5.81 + UZal)/10.; |
fZ = (zplane[fPlane-1] - 5.81 + UZal)/10.; |
208 |
} else { |
// |
209 |
|
} else { |
210 |
// |
// |
211 |
// Y view |
// Y view |
212 |
// |
// |