- Timestamp:
- Apr 14, 2011, 6:22:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mafalda/FEI3/FEI3Mips/FEI3Mips.cpp
r128 r129 12 12 #include "MPXAlgo/Highlighter.h" 13 13 14 #include "T Color.h"14 #include "TH1F.h" 15 15 16 16 using namespace MSG; … … 27 27 { 28 28 29 29 30 } 30 31 … … 38 39 getMyTree()->Branch("chargeWeights", &m_chargeWeights); 39 40 getMyTree()->Branch("lvl1Weights", &m_lvl1Weights); 41 getMyTree()->Branch("chargePerSection", &m_chargePerSection); 42 40 43 getMyTree()->Branch("clusterSize", &m_clusterSize, "clusterSize/I"); 41 44 getMyTree()->Branch("alphaAngle", &m_alphaAngle, "alphaAngle/D"); … … 89 92 m_chargeWeights.push_back(0.0); 90 93 m_lvl1Weights.push_back(0.0); 94 m_chargePerSection.push_back(vector<Int_t>()); // push back empty vectors 91 95 } 92 96 … … 225 229 m_lvl1Weights[__HEAD_INDX] += GetLVL1(*contItr); 226 230 231 // store charge for landau distribution per section 232 m_chargePerSection[__HEAD_INDX].push_back( GetMatrixElement(*contItr) ); 233 227 234 }else if( firstThreeBits == __RIGHT_CORNER_MASK_1 228 235 || firstThreeBits == __RIGHT_CORNER_MASK_2){ … … 231 238 m_chargeWeights[__TAIL_INDX] += GetMatrixElement(*contItr); 232 239 m_lvl1Weights[__TAIL_INDX] += GetLVL1(*contItr); 240 241 // store charge for landau distribution per section 242 m_chargePerSection[__TAIL_INDX].push_back( GetMatrixElement(*contItr) ); 233 243 234 244 }else{ … … 241 251 242 252 Int_t nB = NumberOfBitsOnBeforeDoubleZero(locationBitWord); 243 Log << MSG::DEBUG << "... column " << nB << " ... " << endreq; 244 253 254 // Handle special case when the pixel is equidistant to two lines. 255 // We end up with a word 001111 for m_nDivisions = 4. This pixel belongs 256 // to the 3rd slice. 257 if(nB == m_nDivisions){ 258 nB--; 259 } 260 Log << MSG::DEBUG << "... column " << nB << " ... " << GetFrameId() << endreq; 245 261 m_chargeWeights[nB] += GetMatrixElement(*contItr); 246 262 m_lvl1Weights[nB] += GetLVL1(*contItr); 263 // Store charge for landau distribution per section 264 m_chargePerSection[nB].push_back( GetMatrixElement(*contItr) ); 265 247 266 } 248 267 … … 260 279 } 261 280 281 262 282 // WARNING, filling once per mip !!! 263 283 m_frameId = GetFrameId(); … … 266 286 m_chargeWeights.clear(); 267 287 m_lvl1Weights.clear(); 288 m_chargePerSection.clear(); 268 289 m_alphaAngle = 0.; 269 290 m_clusterSize = 0; … … 281 302 m_chargeWeights.clear(); 282 303 m_lvl1Weights.clear(); 304 m_chargePerSection.clear(); 283 305 284 306 }
Note: See TracChangeset
for help on using the changeset viewer.