Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesClasses.cc

    r61dccd3 ra5af1df  
    2828
    2929#include "classes/DelphesClasses.h"
     30
    3031#include "classes/DelphesFactory.h"
    3132#include "classes/SortableObject.h"
     
    3536CompBase *Electron::fgCompare = CompPT<Electron>::Instance();
    3637CompBase *Muon::fgCompare = CompPT<Muon>::Instance();
     38
    3739CompBase *Jet::fgCompare = CompPT<Jet>::Instance();
    3840CompBase *Track::fgCompare = CompPT<Track>::Instance();
    3941CompBase *Tower::fgCompare = CompE<Tower>::Instance();
    40 CompBase *ParticleFlowCandidate::fgCompare = CompE<ParticleFlowCandidate>::Instance();
    4142CompBase *HectorHit::fgCompare = CompE<HectorHit>::Instance();
    4243CompBase *Vertex::fgCompare = CompSumPT2<Vertex>::Instance();
    4344CompBase *Candidate::fgCompare = CompMomentumPt<Candidate>::Instance();
     45CompBase *CscCluster::fgCompare = CompE<CscCluster>::Instance();
    4446
    4547//------------------------------------------------------------------------------
     
    102104{
    103105  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}
    148109
    149110//------------------------------------------------------------------------------
     
    154115  vec.SetPtEtaPhiM(ET, Eta, Phi, 0.0);
    155116  return vec;
    156 }
    157 
    158 //------------------------------------------------------------------------------
    159 
    160 TLorentzVector ParticleFlowCandidate::P4() const
    161 {
    162   TLorentzVector vec;
    163   vec.SetPtEtaPhiM(PT, Eta, Phi, Mass);
    164   return vec;
    165 }
    166 
    167 //------------------------------------------------------------------------------
    168 
    169 TMatrixDSym ParticleFlowCandidate::CovarianceMatrix() const
    170 {
    171   TMatrixDSym Cv;
    172   Cv.ResizeTo(5, 5);
    173 
    174   // convert diagonal term to original units
    175   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 terms
    182   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;
    205117}
    206118
     
    213125  Flavor(0), FlavorAlgo(0), FlavorPhys(0),
    214126  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),
    216128  DeltaEta(0.0), DeltaPhi(0.0),
    217129  Momentum(0.0, 0.0, 0.0, 0.0),
    218130  Position(0.0, 0.0, 0.0, 0.0),
    219131  InitialPosition(0.0, 0.0, 0.0, 0.0),
     132  DecayPosition(0.0, 0.0, 0.0, 0.0),
    220133  PositionError(0.0, 0.0, 0.0, 0.0),
    221134  Area(0.0, 0.0, 0.0, 0.0),
    222   TrackCovariance(5),
    223135  L(0),
    224136  D0(0), ErrorD0(0),
    225137  DZ(0), ErrorDZ(0),
    226138  P(0), ErrorP(0),
    227   C(0), ErrorC(0),
    228139  PT(0), ErrorPT(0),
    229140  CtgTheta(0), ErrorCtgTheta(0),
    230141  Phi(0), ErrorPhi(0),
    231142  Xd(0), Yd(0), Zd(0),
    232   Nclusters(0.0),
    233   dNdx(0.0),
    234143  TrackResolution(0),
    235144  NCharged(0),
    236145  NNeutrals(0),
    237   NeutralEnergyFraction(0),  // charged energy fraction
    238   ChargedEnergyFraction(0),  // neutral energy fraction
    239146  Beta(0),
    240147  BetaStar(0),
     
    256163  ExclYmerge45(0),
    257164  ExclYmerge56(0),
    258   ParticleDensity(0),
    259165  fFactory(0),
    260166  fArray(0)
     
    378284  object.Eem = Eem;
    379285  object.Ehad = Ehad;
    380   object.Etrk = Etrk;
    381286  object.Edges[0] = Edges[0];
    382287  object.Edges[1] = Edges[1];
     
    388293  object.Position = Position;
    389294  object.InitialPosition = InitialPosition;
     295  object.DecayPosition = DecayPosition;
    390296  object.PositionError = PositionError;
    391297  object.Area = Area;
     
    398304  object.P = P;
    399305  object.ErrorP = ErrorP;
    400   object.C = C;
    401   object.ErrorC = ErrorC;
    402306  object.PT = PT;
    403307  object.ErrorPT = ErrorPT;
     
    409313  object.Yd = Yd;
    410314  object.Zd = Zd;
    411   object.Nclusters = Nclusters;
    412   object.dNdx = dNdx;
    413315  object.TrackResolution = TrackResolution;
    414316  object.NCharged = NCharged;
    415317  object.NNeutrals = NNeutrals;
    416   object.NeutralEnergyFraction = NeutralEnergyFraction;
    417   object.ChargedEnergyFraction = ChargedEnergyFraction;
    418318  object.Beta = Beta;
    419319  object.BetaStar = BetaStar;
     
    466366  object.SoftDroppedSubJet1 = SoftDroppedSubJet1;
    467367  object.SoftDroppedSubJet2 = SoftDroppedSubJet2;
    468   object.TrackCovariance = TrackCovariance;
     368
    469369  object.fFactory = fFactory;
    470370  object.fArray = 0;
     
    513413  Eem = 0.0;
    514414  Ehad = 0.0;
    515   Etrk = 0.0;
    516415  Edges[0] = 0.0;
    517416  Edges[1] = 0.0;
     
    523422  Position.SetXYZT(0.0, 0.0, 0.0, 0.0);
    524423  InitialPosition.SetXYZT(0.0, 0.0, 0.0, 0.0);
     424  DecayPosition.SetXYZT(0.0, 0.0, 0.0, 0.0);
    525425  Area.SetXYZT(0.0, 0.0, 0.0, 0.0);
    526   TrackCovariance.Zero();
    527426  L = 0.0;
    528427  ErrorT = 0.0;
     
    533432  P = 0.0;
    534433  ErrorP = 0.0;
    535   C = 0.0;
    536   ErrorC = 0.0;
    537434  PT = 0.0;
    538435  ErrorPT = 0.0;
     
    544441  Yd = 0.0;
    545442  Zd = 0.0;
    546   Nclusters = 0.0;
    547   dNdx = 0.0;
    548443  TrackResolution = 0.0;
    549444  NCharged = 0;
Note: See TracChangeset for help on using the changeset viewer.