Changes in / [0852ba95:7967061] in git
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesClasses.cc
r0852ba95 r7967061 108 108 //------------------------------------------------------------------------------ 109 109 110 TMatrixDSym Track::CovarianceMatrix() const111 {112 TMatrixDSym Cv;113 Cv.ResizeTo(5, 5);114 115 // convert diagonal term to original units116 Cv(0, 0)=TMath::Power(ErrorD0*1.0E-3, 2.);117 Cv(1, 1)=TMath::Power(ErrorPhi, 2.);118 Cv(2, 2)=TMath::Power(ErrorC*1.0E-3, 2.);119 Cv(3, 3)=TMath::Power(ErrorDZ*1.0E-3, 2.);120 Cv(4, 4)=TMath::Power(ErrorCtgTheta, 2.);121 122 // off diagonal terms123 Cv(0, 1)=ErrorD0Phi;124 Cv(0, 2)=ErrorD0C;125 Cv(0, 3)=ErrorD0DZ;126 Cv(0, 4)=ErrorD0CtgTheta;127 Cv(1, 2)=ErrorPhiC;128 Cv(1, 3)=ErrorPhiDZ;129 Cv(1, 4)=ErrorPhiCtgTheta;130 Cv(2, 3)=ErrorCDZ;131 Cv(2, 4)=ErrorCCtgTheta;132 Cv(3, 4)=ErrorDZCtgTheta;133 134 Cv(1, 0)=Cv(0, 1);135 Cv(2, 0)=Cv(0, 2);136 Cv(3, 0)=Cv(0, 3);137 Cv(4, 0)=Cv(0, 4);138 Cv(2, 1)=Cv(1, 2);139 Cv(3, 1)=Cv(1, 3);140 Cv(4, 1)=Cv(1, 4);141 Cv(3, 2)=Cv(2, 3);142 Cv(4, 2)=Cv(2, 4);143 Cv(4, 3)=Cv(3, 4);144 145 return Cv;146 }147 148 149 //------------------------------------------------------------------------------150 151 110 TLorentzVector Tower::P4() const 152 111 { … … 163 122 vec.SetPtEtaPhiM(PT, Eta, Phi, 0.0); 164 123 return vec; 165 }166 167 //------------------------------------------------------------------------------168 169 TMatrixDSym ParticleFlowCandidate::CovarianceMatrix() const170 {171 TMatrixDSym Cv;172 Cv.ResizeTo(5, 5);173 174 // convert diagonal term to original units175 Cv(0, 0)=TMath::Power(ErrorD0*1.0E-3, 2.);176 Cv(1, 1)=TMath::Power(ErrorPhi, 2.);177 Cv(2, 2)=TMath::Power(ErrorC*1.0E-3, 2.);178 Cv(3, 3)=TMath::Power(ErrorDZ*1.0E-3, 2.);179 Cv(4, 4)=TMath::Power(ErrorCtgTheta, 2.);180 181 // off diagonal terms182 Cv(0, 1)=ErrorD0Phi;183 Cv(0, 2)=ErrorD0C;184 Cv(0, 3)=ErrorD0DZ;185 Cv(0, 4)=ErrorD0CtgTheta;186 Cv(1, 2)=ErrorPhiC;187 Cv(1, 3)=ErrorPhiDZ;188 Cv(1, 4)=ErrorPhiCtgTheta;189 Cv(2, 3)=ErrorCDZ;190 Cv(2, 4)=ErrorCCtgTheta;191 Cv(3, 4)=ErrorDZCtgTheta;192 193 Cv(1, 0)=Cv(0, 1);194 Cv(2, 0)=Cv(0, 2);195 Cv(3, 0)=Cv(0, 3);196 Cv(4, 0)=Cv(0, 4);197 Cv(2, 1)=Cv(1, 2);198 Cv(3, 1)=Cv(1, 3);199 Cv(4, 1)=Cv(1, 4);200 Cv(3, 2)=Cv(2, 3);201 Cv(4, 2)=Cv(2, 4);202 Cv(4, 3)=Cv(3, 4);203 204 return Cv;205 124 } 206 125 -
classes/DelphesClasses.h
r0852ba95 r7967061 473 473 Float_t ErrorD0; // track transverse impact parameter error 474 474 Float_t ErrorDZ; // track longitudinal impact parameter error 475 Float_t ErrorC; // track curvature error476 477 // track covariance off-diagonal terms478 Float_t ErrorD0Phi;479 Float_t ErrorD0C;480 Float_t ErrorD0DZ;481 Float_t ErrorD0CtgTheta;482 Float_t ErrorPhiC;483 Float_t ErrorPhiDZ;484 Float_t ErrorPhiCtgTheta ;485 Float_t ErrorCDZ;486 Float_t ErrorCCtgTheta;487 Float_t ErrorDZCtgTheta;488 475 489 476 TRef Particle; // reference to generated particle … … 495 482 496 483 TLorentzVector P4() const; 497 TMatrixDSym CovarianceMatrix() const;498 484 499 485 ClassDef(Track, 3) … … 575 561 Float_t ErrorD0; // track transverse impact parameter error 576 562 Float_t ErrorDZ; // track longitudinal impact parameter error 577 Float_t ErrorC; // track curvature error578 579 // track covariance off-diagonal terms580 Float_t ErrorD0Phi;581 Float_t ErrorD0C;582 Float_t ErrorD0DZ;583 Float_t ErrorD0CtgTheta;584 Float_t ErrorPhiC;585 Float_t ErrorPhiDZ;586 Float_t ErrorPhiCtgTheta ;587 Float_t ErrorCDZ;588 Float_t ErrorCCtgTheta;589 Float_t ErrorDZCtgTheta;590 563 591 564 Int_t VertexIndex; // reference to vertex … … 595 568 596 569 TLorentzVector P4() const; 597 TMatrixDSym CovarianceMatrix() const;598 570 599 571 Int_t NTimeHits; // number of hits contributing to time measurement … … 606 578 TRefArray Particles; // references to generated particles 607 579 608 ClassDef(ParticleFlowCandidate, 2)580 ClassDef(ParticleFlowCandidate, 1) 609 581 610 582 }; -
modules/TreeWriter.cc
r0852ba95 r7967061 348 348 349 349 entry->D0 = candidate->D0; 350 entry->ErrorD0 = candidate->ErrorD0; 350 351 entry->DZ = candidate->DZ; 352 entry->ErrorDZ = candidate->ErrorDZ; 351 353 352 354 entry->ErrorP = candidate->ErrorP; 353 355 entry->ErrorPT = candidate->ErrorPT; 354 355 // diagonal covariance matrix terms 356 entry->ErrorD0 = candidate->ErrorD0; 357 entry->ErrorC = candidate->ErrorC; 356 entry->ErrorCtgTheta = candidate->ErrorCtgTheta; 358 357 entry->ErrorPhi = candidate->ErrorPhi; 359 entry->ErrorDZ = candidate->ErrorDZ;360 entry->ErrorCtgTheta = candidate->ErrorCtgTheta;361 362 // add some offdiagonal covariance matrix elements363 entry->ErrorD0Phi = candidate->TrackCovariance(0,1);364 entry->ErrorD0C = candidate->TrackCovariance(0,2);365 entry->ErrorD0DZ = candidate->TrackCovariance(0,3);366 entry->ErrorD0CtgTheta = candidate->TrackCovariance(0,4);367 entry->ErrorPhiC = candidate->TrackCovariance(1,2);368 entry->ErrorPhiDZ = candidate->TrackCovariance(1,3);369 entry->ErrorPhiCtgTheta = candidate->TrackCovariance(1,4);370 entry->ErrorCDZ = candidate->TrackCovariance(2,3);371 entry->ErrorCCtgTheta = candidate->TrackCovariance(2,4);372 entry->ErrorDZCtgTheta = candidate->TrackCovariance(3,4);373 358 374 359 entry->Xd = candidate->Xd; … … 497 482 498 483 entry->D0 = candidate->D0; 484 entry->ErrorD0 = candidate->ErrorD0; 499 485 entry->DZ = candidate->DZ; 486 entry->ErrorDZ = candidate->ErrorDZ; 500 487 501 488 entry->ErrorP = candidate->ErrorP; 502 489 entry->ErrorPT = candidate->ErrorPT; 503 490 entry->ErrorCtgTheta = candidate->ErrorCtgTheta; 504 505 506 // diagonal covariance matrix terms507 508 entry->ErrorD0 = candidate->ErrorD0;509 entry->ErrorC = candidate->ErrorC;510 491 entry->ErrorPhi = candidate->ErrorPhi; 511 entry->ErrorDZ = candidate->ErrorDZ;512 entry->ErrorCtgTheta = candidate->ErrorCtgTheta;513 514 // add some offdiagonal covariance matrix elements515 entry->ErrorD0Phi = candidate->TrackCovariance(0,1);516 entry->ErrorD0C = candidate->TrackCovariance(0,2);517 entry->ErrorD0DZ = candidate->TrackCovariance(0,3);518 entry->ErrorD0CtgTheta = candidate->TrackCovariance(0,4);519 entry->ErrorPhiC = candidate->TrackCovariance(1,2);520 entry->ErrorPhiDZ = candidate->TrackCovariance(1,3);521 entry->ErrorPhiCtgTheta = candidate->TrackCovariance(1,4);522 entry->ErrorCDZ = candidate->TrackCovariance(2,3);523 entry->ErrorCCtgTheta = candidate->TrackCovariance(2,4);524 entry->ErrorDZCtgTheta = candidate->TrackCovariance(3,4);525 526 cout<<entry->ErrorPhiC<<endl;527 492 528 493 entry->Xd = candidate->Xd;
Note:
See TracChangeset
for help on using the changeset viewer.