Changes in modules/TreeWriter.cc [d248604:a95da74] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TreeWriter.cc
rd248604 ra95da74 356 356 entry->DZ = candidate->DZ; 357 357 entry->Nclusters = candidate->Nclusters; 358 entry->dNdx = candidate->dNdx;359 358 360 359 entry->ErrorP = candidate->ErrorP; … … 405 404 entry->Mass = m; 406 405 407 //particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0)); 408 //const TLorentzVector &initialPosition = particle->Position; 409 const TLorentzVector &initialPosition = candidate->InitialPosition; 406 particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0)); 407 const TLorentzVector &initialPosition = particle->Position; 410 408 411 409 entry->X = initialPosition.X(); … … 413 411 entry->Z = initialPosition.Z(); 414 412 entry->T = initialPosition.T() * 1.0E-3 / c_light; 415 entry->ErrorT =candidate-> ErrorT * 1.0E-3 / c_light;416 413 417 414 entry->Particle = particle; … … 512 509 entry->DZ = candidate->DZ; 513 510 entry->Nclusters = candidate->Nclusters; 514 entry->dNdx = candidate->dNdx;515 511 516 512 entry->ErrorP = candidate->ErrorP; … … 561 557 entry->Mass = m; 562 558 563 //particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0)); 564 //const TLorentzVector &initialPosition = particle->Position; 565 const TLorentzVector &initialPosition = candidate->InitialPosition; 559 particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0)); 560 const TLorentzVector &initialPosition = particle->Position; 566 561 567 562 entry->X = initialPosition.X(); … … 569 564 entry->Z = initialPosition.Z(); 570 565 entry->T = initialPosition.T() * 1.0E-3 / c_light; 571 entry->ErrorT = candidate-> ErrorT * 1.0E-3 / c_light;572 566 573 567 entry->VertexIndex = candidate->ClusterIndex; … … 580 574 entry->Edges[3] = candidate->Edges[3]; 581 575 582 //entry->T = position.T() * 1.0E-3 / c_light;576 entry->T = position.T() * 1.0E-3 / c_light; 583 577 entry->NTimeHits = candidate->NTimeHits; 584 578
Note:
See TracChangeset
for help on using the changeset viewer.