Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesClasses.cc

    r2b3ef28 redf10ba  
    120120  PID(0), Status(0), M1(-1), M2(-1), D1(-1), D2(-1),
    121121  Charge(0), Mass(0.0),
    122   IsPU(0), IsConstituent(0),
    123   BTag(0), TauTag(0), Eem(0.0), Ehad(0.0),
     122  IsPU(0), IsRecoPU(0), IsConstituent(0),
     123  BTag(0), BTagAlgo(0), BTagDefault(0), BTagPhysics(0), BTagNearest2(0), BTagNearest3(0), BTagHeaviest(0), BTagHighestPt(0),
     124  FlavorAlgo(0), FlavorDefault(0), FlavorPhysics(0), FlavorNearest2(0), FlavorNearest3(0), FlavorHeaviest(0), FlavorHighestPt(0),
     125  TauTag(0), Eem(0.0), Ehad(0.0),
    124126  DeltaEta(0.0), DeltaPhi(0.0),
    125127  Momentum(0.0, 0.0, 0.0, 0.0),
     
    129131  NCharged(0),
    130132  NNeutrals(0),
     133  NSubJetsTrimmed(0),
     134  NSubJetsPruned(0),
     135  NSubJetsSoftDropped(0),
    131136  Beta(0),
    132137  BetaStar(0),
    133138  MeanSqDeltaR(0),
    134139  PTD(0),
     140  Ntimes(-1),
     141  IsolationVar(-999),
     142  IsolationVarRhoCorr(-999),
     143  SumPtCharged(-999),
     144  SumPtNeutral(-999),
     145  SumPtChargedPU(-999),
     146  SumPt(-999),
    135147  fFactory(0),
    136148  fArray(0)
    137149{
     150  int i;
    138151  Edges[0] = 0.0;
    139152  Edges[1] = 0.0;
     
    150163  Tau[3] = 0.0;
    151164  Tau[4] = 0.0;
     165  for(i = 0; i < 5; ++i)
     166  {
     167    TrimmedP4[i].SetXYZT(0.0, 0.0, 0.0, 0.0);
     168    PrunedP4[i].SetXYZT(0.0, 0.0, 0.0, 0.0);
     169    SoftDroppedP4[i].SetXYZT(0.0, 0.0, 0.0, 0.0);
     170  }
    152171}
    153172
     
    225244  object.IsConstituent = IsConstituent;
    226245  object.BTag = BTag;
     246  object.BTagAlgo = BTagAlgo;
     247  object.BTagDefault = BTagDefault;
     248  object.BTagPhysics = BTagPhysics;
     249  object.BTagNearest2 = BTagNearest2;
     250  object.BTagNearest3 = BTagNearest3;
     251  object.BTagHeaviest = BTagHeaviest;
     252  object.BTagHighestPt = BTagHighestPt;
     253  object.FlavorAlgo = FlavorAlgo;
     254  object.FlavorDefault = FlavorDefault;
     255  object.FlavorPhysics = FlavorPhysics;
     256  object.FlavorNearest2 = FlavorNearest2;
     257  object.FlavorNearest3 = FlavorNearest3;
     258  object.FlavorHeaviest = FlavorHeaviest;
     259  object.FlavorHighestPt = FlavorHighestPt;
    227260  object.TauTag = TauTag;
    228261  object.Eem = Eem;
     
    249282  object.MeanSqDeltaR = MeanSqDeltaR;
    250283  object.PTD = PTD;
     284  object.Ntimes = Ntimes;
     285  object.IsolationVar = IsolationVar;
     286  object.IsolationVarRhoCorr = IsolationVarRhoCorr;
     287  object.SumPtCharged = SumPtCharged;
     288  object.SumPtNeutral = SumPtNeutral;
     289  object.SumPtChargedPU = SumPtChargedPU;
     290  object.SumPt = SumPt;
     291
    251292  object.FracPt[0] = FracPt[0];
    252293  object.FracPt[1] = FracPt[1];
     
    259300  object.Tau[3] = Tau[3];
    260301  object.Tau[4] = Tau[4];
     302 
     303  object.TrimmedP4[0] = TrimmedP4[0];
     304  object.TrimmedP4[1] = TrimmedP4[1];
     305  object.TrimmedP4[2] = TrimmedP4[2];
     306  object.TrimmedP4[3] = TrimmedP4[3];
     307  object.TrimmedP4[4] = TrimmedP4[4];
     308  object.PrunedP4[0] = PrunedP4[0];
     309  object.PrunedP4[1] = PrunedP4[1];
     310  object.PrunedP4[2] = PrunedP4[2];
     311  object.PrunedP4[3] = PrunedP4[3];
     312  object.PrunedP4[4] = PrunedP4[4];
     313  object.SoftDroppedP4[0] = SoftDroppedP4[0];
     314  object.SoftDroppedP4[1] = SoftDroppedP4[1];
     315  object.SoftDroppedP4[2] = SoftDroppedP4[2];
     316  object.SoftDroppedP4[3] = SoftDroppedP4[3];
     317  object.SoftDroppedP4[4] = SoftDroppedP4[4];
     318
     319  object.NSubJetsTrimmed = NSubJetsTrimmed;
     320  object.NSubJetsPruned = NSubJetsPruned;
     321  object.NSubJetsSoftDropped = NSubJetsSoftDropped;
    261322
    262323  object.fFactory = fFactory;
    263324  object.fArray = 0;
     325
     326  // Copy cluster timing info
     327  copy(Ecal_E_t.begin(),Ecal_E_t.end(),back_inserter(object.Ecal_E_t));
    264328
    265329  if(fArray && fArray->GetEntriesFast() > 0)
     
    278342void Candidate::Clear(Option_t* option)
    279343{
     344  int i;
    280345  SetUniqueID(0);
    281346  ResetBit(kIsReferenced);
     
    288353  IsConstituent = 0;
    289354  BTag = 0;
     355  BTagAlgo = 0;
     356  BTagDefault = 0;
     357  BTagPhysics = 0;
     358  BTagNearest2 = 0;
     359  BTagNearest3 = 0;
     360  BTagHeaviest = 0;
     361  BTagHighestPt = 0;
     362  FlavorAlgo = 0;
     363  FlavorDefault = 0;
     364  FlavorPhysics = 0;
     365  FlavorNearest2 = 0;
     366  FlavorNearest3 = 0;
     367  FlavorHeaviest = 0;
     368  FlavorHighestPt = 0;
    290369  TauTag = 0;
    291370  Eem = 0.0;
     
    311390  MeanSqDeltaR = 0.0;
    312391  PTD = 0.0;
     392 
     393  Ntimes = 0;
     394  Ecal_E_t.clear();
     395 
     396  IsolationVar = -999;
     397  IsolationVarRhoCorr = -999;
     398  SumPtCharged = -999;
     399  SumPtNeutral = -999;
     400  SumPtChargedPU = -999;
     401  SumPt = -999;
     402 
    313403  FracPt[0] = 0.0;
    314404  FracPt[1] = 0.0;
     
    321411  Tau[3] = 0.0;
    322412  Tau[4] = 0.0;
    323 
     413 
     414  for(i = 0; i < 5; ++i)
     415  {
     416    TrimmedP4[i].SetXYZT(0.0, 0.0, 0.0, 0.0);
     417    PrunedP4[i].SetXYZT(0.0, 0.0, 0.0, 0.0);
     418    SoftDroppedP4[i].SetXYZT(0.0, 0.0, 0.0, 0.0);
     419  }
     420
     421  NSubJetsTrimmed = 0;
     422  NSubJetsPruned = 0;
     423  NSubJetsSoftDropped = 0;
     424 
    324425  fArray = 0;
    325426}
Note: See TracChangeset for help on using the changeset viewer.