Changes in classes/DelphesClasses.cc [61dccd3:a5af1df] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesClasses.cc
r61dccd3 ra5af1df 28 28 29 29 #include "classes/DelphesClasses.h" 30 30 31 #include "classes/DelphesFactory.h" 31 32 #include "classes/SortableObject.h" … … 35 36 CompBase *Electron::fgCompare = CompPT<Electron>::Instance(); 36 37 CompBase *Muon::fgCompare = CompPT<Muon>::Instance(); 38 37 39 CompBase *Jet::fgCompare = CompPT<Jet>::Instance(); 38 40 CompBase *Track::fgCompare = CompPT<Track>::Instance(); 39 41 CompBase *Tower::fgCompare = CompE<Tower>::Instance(); 40 CompBase *ParticleFlowCandidate::fgCompare = CompE<ParticleFlowCandidate>::Instance();41 42 CompBase *HectorHit::fgCompare = CompE<HectorHit>::Instance(); 42 43 CompBase *Vertex::fgCompare = CompSumPT2<Vertex>::Instance(); 43 44 CompBase *Candidate::fgCompare = CompMomentumPt<Candidate>::Instance(); 45 CompBase *CscCluster::fgCompare = CompE<CscCluster>::Instance(); 44 46 45 47 //------------------------------------------------------------------------------ … … 102 104 { 103 105 TLorentzVector vec; 104 vec.SetPtEtaPhiM(PT, Eta, Phi, Mass); 105 return vec; 106 } 107 108 //------------------------------------------------------------------------------ 109 110 TMatrixDSym Track::CovarianceMatrix() const 111 { 112 TMatrixDSym Cv; 113 Cv.ResizeTo(5, 5); 114 115 // convert diagonal term to original units 116 Cv(0, 0)=TMath::Power(ErrorD0, 2.); 117 Cv(1, 1)=TMath::Power(ErrorPhi, 2.); 118 Cv(2, 2)=TMath::Power(ErrorC, 2.); 119 Cv(3, 3)=TMath::Power(ErrorDZ, 2.); 120 Cv(4, 4)=TMath::Power(ErrorCtgTheta, 2.); 121 122 // off diagonal terms 123 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 106 vec.SetPtEtaPhiM(PT, Eta, Phi, 0.0); 107 return vec; 108 } 148 109 149 110 //------------------------------------------------------------------------------ … … 154 115 vec.SetPtEtaPhiM(ET, Eta, Phi, 0.0); 155 116 return vec; 156 }157 158 //------------------------------------------------------------------------------159 160 TLorentzVector ParticleFlowCandidate::P4() const161 {162 TLorentzVector vec;163 vec.SetPtEtaPhiM(PT, Eta, Phi, Mass);164 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, 2.);176 Cv(1, 1)=TMath::Power(ErrorPhi, 2.);177 Cv(2, 2)=TMath::Power(ErrorC, 2.);178 Cv(3, 3)=TMath::Power(ErrorDZ, 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 117 } 206 118 … … 213 125 Flavor(0), FlavorAlgo(0), FlavorPhys(0), 214 126 BTag(0), BTagAlgo(0), BTagPhys(0), 215 TauTag(0), TauWeight(0.0), Eem(0.0), Ehad(0.0), Etrk(0.0),127 TauTag(0), TauWeight(0.0), Eem(0.0), Ehad(0.0), 216 128 DeltaEta(0.0), DeltaPhi(0.0), 217 129 Momentum(0.0, 0.0, 0.0, 0.0), 218 130 Position(0.0, 0.0, 0.0, 0.0), 219 131 InitialPosition(0.0, 0.0, 0.0, 0.0), 132 DecayPosition(0.0, 0.0, 0.0, 0.0), 220 133 PositionError(0.0, 0.0, 0.0, 0.0), 221 134 Area(0.0, 0.0, 0.0, 0.0), 222 TrackCovariance(5),223 135 L(0), 224 136 D0(0), ErrorD0(0), 225 137 DZ(0), ErrorDZ(0), 226 138 P(0), ErrorP(0), 227 C(0), ErrorC(0),228 139 PT(0), ErrorPT(0), 229 140 CtgTheta(0), ErrorCtgTheta(0), 230 141 Phi(0), ErrorPhi(0), 231 142 Xd(0), Yd(0), Zd(0), 232 Nclusters(0.0),233 dNdx(0.0),234 143 TrackResolution(0), 235 144 NCharged(0), 236 145 NNeutrals(0), 237 NeutralEnergyFraction(0), // charged energy fraction238 ChargedEnergyFraction(0), // neutral energy fraction239 146 Beta(0), 240 147 BetaStar(0), … … 256 163 ExclYmerge45(0), 257 164 ExclYmerge56(0), 258 ParticleDensity(0),259 165 fFactory(0), 260 166 fArray(0) … … 378 284 object.Eem = Eem; 379 285 object.Ehad = Ehad; 380 object.Etrk = Etrk;381 286 object.Edges[0] = Edges[0]; 382 287 object.Edges[1] = Edges[1]; … … 388 293 object.Position = Position; 389 294 object.InitialPosition = InitialPosition; 295 object.DecayPosition = DecayPosition; 390 296 object.PositionError = PositionError; 391 297 object.Area = Area; … … 398 304 object.P = P; 399 305 object.ErrorP = ErrorP; 400 object.C = C;401 object.ErrorC = ErrorC;402 306 object.PT = PT; 403 307 object.ErrorPT = ErrorPT; … … 409 313 object.Yd = Yd; 410 314 object.Zd = Zd; 411 object.Nclusters = Nclusters;412 object.dNdx = dNdx;413 315 object.TrackResolution = TrackResolution; 414 316 object.NCharged = NCharged; 415 317 object.NNeutrals = NNeutrals; 416 object.NeutralEnergyFraction = NeutralEnergyFraction;417 object.ChargedEnergyFraction = ChargedEnergyFraction;418 318 object.Beta = Beta; 419 319 object.BetaStar = BetaStar; … … 466 366 object.SoftDroppedSubJet1 = SoftDroppedSubJet1; 467 367 object.SoftDroppedSubJet2 = SoftDroppedSubJet2; 468 object.TrackCovariance = TrackCovariance; 368 469 369 object.fFactory = fFactory; 470 370 object.fArray = 0; … … 513 413 Eem = 0.0; 514 414 Ehad = 0.0; 515 Etrk = 0.0;516 415 Edges[0] = 0.0; 517 416 Edges[1] = 0.0; … … 523 422 Position.SetXYZT(0.0, 0.0, 0.0, 0.0); 524 423 InitialPosition.SetXYZT(0.0, 0.0, 0.0, 0.0); 424 DecayPosition.SetXYZT(0.0, 0.0, 0.0, 0.0); 525 425 Area.SetXYZT(0.0, 0.0, 0.0, 0.0); 526 TrackCovariance.Zero();527 426 L = 0.0; 528 427 ErrorT = 0.0; … … 533 432 P = 0.0; 534 433 ErrorP = 0.0; 535 C = 0.0;536 ErrorC = 0.0;537 434 PT = 0.0; 538 435 ErrorPT = 0.0; … … 544 441 Yd = 0.0; 545 442 Zd = 0.0; 546 Nclusters = 0.0;547 dNdx = 0.0;548 443 TrackResolution = 0.0; 549 444 NCharged = 0;
Note:
See TracChangeset
for help on using the changeset viewer.