Changeset 5496767 in git for modules/TreeWriter.cc
- Timestamp:
- Jun 17, 2016, 6:52:57 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 62d3bc5
- Parents:
- 0f73bea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TreeWriter.cc
r0f73bea r5496767 240 240 { 241 241 TIter iterator(array); 242 Candidate *candidate = 0 ;242 Candidate *candidate = 0, *constituent = 0; 243 243 Vertex *entry = 0; 244 244 245 245 const Double_t c_light = 2.99792458E8; 246 246 247 247 Double_t x, y, z, t, xError, yError, zError, sigma, sumPT2, btvSumPT2, genDeltaZ, genSumPT2; 248 248 UInt_t index, ndf; 249 249 250 250 array->Sort(); 251 251 252 252 // loop over all vertices 253 253 iterator.Reset(); 254 254 while((candidate = static_cast<Candidate*>(iterator.Next()))) 255 255 { 256 256 257 257 index = candidate->ClusterIndex; 258 258 ndf = candidate->ClusterNDF; … … 262 262 genDeltaZ = candidate->GenDeltaZ; 263 263 genSumPT2 = candidate->GenSumPT2; 264 264 265 265 x = candidate->Position.X(); 266 266 y = candidate->Position.Y(); 267 267 z = candidate->Position.Z(); 268 268 t = candidate->Position.T()*1.0E-3/c_light; 269 269 270 270 xError = candidate->PositionError.X (); 271 271 yError = candidate->PositionError.Y (); … … 281 281 entry->GenDeltaZ = genDeltaZ; 282 282 entry->GenSumPT2 = genSumPT2; 283 283 284 284 entry->X = x; 285 285 entry->Y = y; 286 286 entry->Z = z; 287 287 entry->T = t; 288 288 289 289 entry->ErrorX = xError; 290 290 entry->ErrorY = yError; 291 291 entry->ErrorZ = zError; 292 293 TIter itConstituents(candidate->GetCandidates()); 294 295 while((constituent = static_cast<Candidate*>(itConstituents.Next()))) 296 { 297 entry->Constituents.Add(constituent); 298 } 299 292 300 } 293 301 } … … 332 340 entry->ZOuter = position.Z(); 333 341 entry->TOuter = position.T()*1.0E-3/c_light; 334 342 335 343 entry->L = candidate->L; 336 344 337 345 entry->D0 = candidate->D0; 338 346 entry->ErrorD0 = candidate->ErrorD0; … … 346 354 entry->ErrorCtgTheta = candidate->ErrorCtgTheta; 347 355 entry->Phi = candidate->Phi; 348 entry->ErrorPhi = candidate->ErrorPhi; 349 356 entry->ErrorPhi = candidate->ErrorPhi; 357 350 358 entry->Xd = candidate->Xd; 351 359 entry->Yd = candidate->Yd; … … 361 369 362 370 entry->Eta = eta; 363 371 364 372 particle = static_cast<Candidate*>(candidate->GetCandidates()->At(0)); 365 373 const TLorentzVector &initialPosition = particle->Position;
Note:
See TracChangeset
for help on using the changeset viewer.