62 |
|
,isoR05_hadEt_(-9999.) |
63 |
|
,isoR05_sumPt_(-9999.) |
64 |
|
,isoR05_nTracks_(-9999) |
65 |
< |
,idPTDRLoose_(-9999.) |
66 |
< |
,idPTDRMedium_(-9999.) |
67 |
< |
,idPTDRTight_(-9999.) |
68 |
< |
,idCutBasedLoose_(-9999.) |
69 |
< |
,idCutBasedRobust_(-9999.) |
70 |
< |
,idCutBasedTight_(-9999.) |
65 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
66 |
> |
,idCutBasedFixedThresholdTight_(-1) |
67 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
68 |
> |
,idCutBasedCategorizedLoose_(-1) |
69 |
> |
,idCutBasedCategorizedTight_(-1) |
70 |
|
,idLikelihood_(-9999.) |
71 |
|
,idNeuralNet_(-9999.) |
73 |
– |
,momentumMCElectron_() |
74 |
– |
,vertexMCElectron_() |
75 |
– |
,pdgIdMCElectron_(0) |
72 |
|
{;} |
73 |
|
|
74 |
|
TRootElectron(const TRootElectron& electron) : |
118 |
|
,isoR05_hadEt_(electron.isoR05_hadEt_) |
119 |
|
,isoR05_sumPt_(electron.isoR05_sumPt_) |
120 |
|
,isoR05_nTracks_(electron.isoR05_nTracks_) |
121 |
< |
,idPTDRLoose_(electron.idPTDRLoose_) |
122 |
< |
,idPTDRMedium_(electron.idPTDRMedium_) |
123 |
< |
,idPTDRTight_(electron.idPTDRTight_) |
124 |
< |
,idCutBasedLoose_(electron.idCutBasedLoose_) |
125 |
< |
,idCutBasedRobust_(electron.idCutBasedRobust_) |
130 |
< |
,idCutBasedTight_(electron.idCutBasedTight_) |
121 |
> |
,idCutBasedFixedThresholdLoose_(electron.idCutBasedFixedThresholdLoose_) |
122 |
> |
,idCutBasedFixedThresholdTight_(electron.idCutBasedFixedThresholdTight_) |
123 |
> |
,idCutBasedFixedThresholdHighEnergy_(electron.idCutBasedFixedThresholdHighEnergy_) |
124 |
> |
,idCutBasedCategorizedLoose_(electron.idCutBasedCategorizedLoose_) |
125 |
> |
,idCutBasedCategorizedTight_(electron.idCutBasedCategorizedTight_) |
126 |
|
,idLikelihood_(electron.idLikelihood_) |
127 |
|
,idNeuralNet_(electron.idNeuralNet_) |
133 |
– |
,momentumMCElectron_(electron.momentumMCElectron_) |
134 |
– |
,vertexMCElectron_(electron.vertexMCElectron_) |
135 |
– |
,pdgIdMCElectron_(electron.pdgIdMCElectron_) |
128 |
|
{;} |
129 |
|
|
130 |
|
TRootElectron(Double_t px, Double_t py, Double_t pz, Double_t e) : |
174 |
|
,isoR05_hadEt_(-9999.) |
175 |
|
,isoR05_sumPt_(-9999.) |
176 |
|
,isoR05_nTracks_(-9999) |
177 |
< |
,idPTDRLoose_(-9999.) |
178 |
< |
,idPTDRMedium_(-9999.) |
179 |
< |
,idPTDRTight_(-9999.) |
180 |
< |
,idCutBasedLoose_(-9999.) |
181 |
< |
,idCutBasedRobust_(-9999.) |
190 |
< |
,idCutBasedTight_(-9999.) |
177 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
178 |
> |
,idCutBasedFixedThresholdTight_(-1) |
179 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
180 |
> |
,idCutBasedCategorizedLoose_(-1) |
181 |
> |
,idCutBasedCategorizedTight_(-1) |
182 |
|
,idLikelihood_(-9999.) |
183 |
|
,idNeuralNet_(-9999.) |
193 |
– |
,momentumMCElectron_() |
194 |
– |
,vertexMCElectron_() |
195 |
– |
,pdgIdMCElectron_(0) |
184 |
|
{;} |
185 |
|
|
186 |
|
TRootElectron(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z) : |
230 |
|
,isoR05_hadEt_(-9999.) |
231 |
|
,isoR05_sumPt_(-9999.) |
232 |
|
,isoR05_nTracks_(-9999) |
233 |
< |
,idPTDRLoose_(-9999.) |
234 |
< |
,idPTDRMedium_(-9999.) |
235 |
< |
,idPTDRTight_(-9999.) |
236 |
< |
,idCutBasedLoose_(-9999.) |
237 |
< |
,idCutBasedRobust_(-9999.) |
250 |
< |
,idCutBasedTight_(-9999.) |
233 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
234 |
> |
,idCutBasedFixedThresholdTight_(-1) |
235 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
236 |
> |
,idCutBasedCategorizedLoose_(-1) |
237 |
> |
,idCutBasedCategorizedTight_(-1) |
238 |
|
,idLikelihood_(-9999.) |
239 |
|
,idNeuralNet_(-9999.) |
253 |
– |
,momentumMCElectron_() |
254 |
– |
,vertexMCElectron_() |
255 |
– |
,pdgIdMCElectron_(0) |
240 |
|
{;} |
241 |
|
|
242 |
|
TRootElectron(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z, Int_t type, Float_t charge) : |
286 |
|
,isoR05_hadEt_(-9999.) |
287 |
|
,isoR05_sumPt_(-9999.) |
288 |
|
,isoR05_nTracks_(-9999) |
289 |
< |
,idPTDRLoose_(-9999.) |
290 |
< |
,idPTDRMedium_(-9999.) |
291 |
< |
,idPTDRTight_(-9999.) |
292 |
< |
,idCutBasedLoose_(-9999.) |
293 |
< |
,idCutBasedRobust_(-9999.) |
310 |
< |
,idCutBasedTight_(-9999.) |
289 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
290 |
> |
,idCutBasedFixedThresholdTight_(-1) |
291 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
292 |
> |
,idCutBasedCategorizedLoose_(-1) |
293 |
> |
,idCutBasedCategorizedTight_(-1) |
294 |
|
,idLikelihood_(-9999.) |
295 |
|
,idNeuralNet_(-9999.) |
313 |
– |
,momentumMCElectron_() |
314 |
– |
,vertexMCElectron_() |
315 |
– |
,pdgIdMCElectron_(0) |
296 |
|
{;} |
297 |
|
|
298 |
|
TRootElectron(const TLorentzVector &momentum) : |
342 |
|
,isoR05_hadEt_(-9999.) |
343 |
|
,isoR05_sumPt_(-9999.) |
344 |
|
,isoR05_nTracks_(-9999) |
345 |
< |
,idPTDRLoose_(-9999.) |
346 |
< |
,idPTDRMedium_(-9999.) |
347 |
< |
,idPTDRTight_(-9999.) |
348 |
< |
,idCutBasedLoose_(-9999.) |
349 |
< |
,idCutBasedRobust_(-9999.) |
370 |
< |
,idCutBasedTight_(-9999.) |
345 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
346 |
> |
,idCutBasedFixedThresholdTight_(-1) |
347 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
348 |
> |
,idCutBasedCategorizedLoose_(-1) |
349 |
> |
,idCutBasedCategorizedTight_(-1) |
350 |
|
,idLikelihood_(-9999.) |
351 |
|
,idNeuralNet_(-9999.) |
373 |
– |
,momentumMCElectron_() |
374 |
– |
,vertexMCElectron_() |
375 |
– |
,pdgIdMCElectron_(0) |
352 |
|
{;} |
353 |
|
|
354 |
|
TRootElectron(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) : |
398 |
|
,isoR05_hadEt_(-9999.) |
399 |
|
,isoR05_sumPt_(-9999.) |
400 |
|
,isoR05_nTracks_(-9999) |
401 |
< |
,idPTDRLoose_(-9999.) |
402 |
< |
,idPTDRMedium_(-9999.) |
403 |
< |
,idPTDRTight_(-9999.) |
404 |
< |
,idCutBasedLoose_(-9999.) |
405 |
< |
,idCutBasedRobust_(-9999.) |
430 |
< |
,idCutBasedTight_(-9999.) |
401 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
402 |
> |
,idCutBasedFixedThresholdTight_(-1) |
403 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
404 |
> |
,idCutBasedCategorizedLoose_(-1) |
405 |
> |
,idCutBasedCategorizedTight_(-1) |
406 |
|
,idLikelihood_(-9999.) |
407 |
|
,idNeuralNet_(-9999.) |
433 |
– |
,momentumMCElectron_() |
434 |
– |
,vertexMCElectron_() |
435 |
– |
,pdgIdMCElectron_(0) |
408 |
|
{;} |
409 |
|
|
410 |
|
~TRootElectron() {;} |
455 |
|
Float_t isoR05_hadEt() const { return isoR05_hadEt_ ;} |
456 |
|
Float_t isoR05_sumPt() const { return isoR05_sumPt_ ;} |
457 |
|
Int_t isoR05_nTracks() const { return isoR05_nTracks_ ;} |
458 |
< |
Float_t idPTDRLoose() const { return idPTDRLoose_ ;} |
459 |
< |
Float_t idPTDRMedium() const { return idPTDRMedium_ ;} |
460 |
< |
Float_t idPTDRTight() const { return idPTDRTight_ ;} |
461 |
< |
Float_t idCutBasedLoose() const { return idCutBasedLoose_ ;} |
462 |
< |
Float_t idCutBasedRobust() const { return idCutBasedRobust_ ;} |
491 |
< |
Float_t idCutBasedTight() const { return idCutBasedTight_ ;} |
458 |
> |
Int_t idCutBasedFixedThresholdLoose() const { return idCutBasedFixedThresholdLoose_ ;} |
459 |
> |
Int_t idCutBasedFixedThresholdTight() const { return idCutBasedFixedThresholdTight_ ;} |
460 |
> |
Int_t idCutBasedFixedThresholdHighEnergy() const { return idCutBasedFixedThresholdHighEnergy_ ;} |
461 |
> |
Int_t idCutBasedCategorizedLoose() const { return idCutBasedCategorizedLoose_ ;} |
462 |
> |
Int_t idCutBasedCategorizedTight() const { return idCutBasedCategorizedTight_ ;} |
463 |
|
Float_t idLikelihood() const { return idLikelihood_ ;} |
464 |
|
Float_t idNeuralNet() const { return idNeuralNet_ ;} |
494 |
– |
//TObject* genElectron() const { return genElectron_.GetObject() ;} |
495 |
– |
//Int_t electronMCIndex() const { return electronMCIndex_; } |
496 |
– |
TLorentzVector momentumMCElectron() const { return momentumMCElectron_; } |
497 |
– |
TVector3 vertexMCElectron() const { return vertexMCElectron_; } |
498 |
– |
Int_t pdgIdMCElectron() const { return pdgIdMCElectron_; } |
465 |
|
|
466 |
|
virtual TString typeName() const { return "TRootElectron"; } |
467 |
|
|
512 |
|
void setIsoR05_hadEt(Float_t isoR05_hadEt) { isoR05_hadEt_ = isoR05_hadEt; } |
513 |
|
void setIsoR05_sumPt(Float_t isoR05_sumPt) { isoR05_sumPt_ = isoR05_sumPt; } |
514 |
|
void setIsoR05_nTracks(Int_t isoR05_nTracks) { isoR05_nTracks_ = isoR05_nTracks; } |
515 |
< |
void setIDPTDRLoose(Float_t idPTDRLoose) { idPTDRLoose_ = idPTDRLoose; } |
516 |
< |
void setIDPTDRMedium(Float_t idPTDRMedium) { idPTDRMedium_ = idPTDRMedium; } |
517 |
< |
void setIDPTDRTight(Float_t idPTDRTight) { idPTDRTight_ = idPTDRTight; } |
518 |
< |
void setIDCutBasedLoose(Float_t idCutBasedLoose) { idCutBasedLoose_ = idCutBasedLoose; } |
519 |
< |
void setIDCutBasedRobust(Float_t idCutBasedRobust) { idCutBasedRobust_ = idCutBasedRobust; } |
554 |
< |
void setIDCutBasedTight(Float_t idCutBasedTight) { idCutBasedTight_ = idCutBasedTight; } |
515 |
> |
void setIDCutBasedFixedThresholdLoose(Int_t idCutBasedFixedThresholdLoose) { idCutBasedFixedThresholdLoose_ = idCutBasedFixedThresholdLoose; } |
516 |
> |
void setIDCutBasedFixedThresholdTight(Int_t idCutBasedFixedThresholdTight) { idCutBasedFixedThresholdTight_ = idCutBasedFixedThresholdTight; } |
517 |
> |
void setIDCutBasedFixedThresholdHighEnergy(Int_t idCutBasedFixedThresholdHighEnergy) { idCutBasedFixedThresholdHighEnergy_ = idCutBasedFixedThresholdHighEnergy; } |
518 |
> |
void setIDCutBasedCategorizedLoose(Int_t idCutBasedCategorizedLoose) { idCutBasedCategorizedLoose_ = idCutBasedCategorizedLoose; } |
519 |
> |
void setIDCutBasedCategorizedTight(Int_t idCutBasedCategorizedTight) { idCutBasedCategorizedTight_ = idCutBasedCategorizedTight; } |
520 |
|
void setIDLikelihood(Float_t idLikelihood) { idLikelihood_ = idLikelihood; } |
521 |
|
void setIDNeuralNet(Float_t idNeuralNet) { idNeuralNet_ = idNeuralNet; } |
557 |
– |
//void setGenElectron(TObject* genElectron) { genElectron_ = genElectron; } |
558 |
– |
//void setElectronMCIndex(Int_t electronMCIndex) { electronMCIndex_ = electronMCIndex; } |
559 |
– |
void setMomentumMCElectron(TLorentzVector momentumMCElectron) { momentumMCElectron_ = momentumMCElectron; } |
560 |
– |
void setMomentumMCElectron(Float_t px, Float_t py, Float_t pz , Float_t energy) { momentumMCElectron_ = TLorentzVector(px,py,pz,energy); } |
561 |
– |
void setVertexMCElectron(TVector3 vertexMCElectron) { vertexMCElectron_ = vertexMCElectron; } |
562 |
– |
void setVertexMCElectron(Float_t vx, Float_t vy, Float_t vz) { vertexMCElectron_ = TVector3(vx,vy,vz); } |
563 |
– |
void setPdgIdMCElectron(Int_t pdgIdMCElectron) { pdgIdMCElectron_ = pdgIdMCElectron; } |
522 |
|
|
523 |
|
friend std::ostream& operator<< (std::ostream& stream, const TRootElectron& electron) { |
524 |
|
stream << "TRootElectron - Charge=" << electron.charge() << " (Et,eta,phi)=("<< electron.Et() <<","<< electron.Eta() <<","<< electron.Phi() << ")" |
644 |
|
|
645 |
|
|
646 |
|
// pat::Electron ID (cf https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideElectronID) |
647 |
< |
Float_t idPTDRLoose_; |
648 |
< |
Float_t idPTDRMedium_; |
649 |
< |
Float_t idPTDRTight_; |
650 |
< |
Float_t idCutBasedLoose_; |
651 |
< |
Float_t idCutBasedRobust_; |
652 |
< |
Float_t idCutBasedTight_; |
653 |
< |
Float_t idLikelihood_; |
654 |
< |
Float_t idNeuralNet_; |
647 |
> |
// By default in 2.2.X, only cut based identification is available in pat (https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCutBasedElectronID |
648 |
> |
Int_t idCutBasedFixedThresholdLoose_; // Simple cut based ID (aka 'robust') - Loose Thresholds on H/E, DeltaEta, DeltaPhi, SigmaEtaEta |
649 |
> |
Int_t idCutBasedFixedThresholdTight_; // Simple cut based ID (default in EWK group) - Tight Thresholds on H/E, DeltaEta, DeltaPhi, SigmaEtaEta |
650 |
> |
Int_t idCutBasedFixedThresholdHighEnergy_; // Simple cut based ID - Thresholds optimized for high energy electron (~TeV) |
651 |
> |
Int_t idCutBasedCategorizedLoose_; // Category based ID - Different loose thresholds on H/E, DeltaEta, DeltaPhi, SigmaEtaEta, eSeedOverPin for differents regions in the E/p vs fBrem plane |
652 |
> |
Int_t idCutBasedCategorizedTight_; // Category based ID - Different tight thresholds on H/E, DeltaEta, DeltaPhi, SigmaEtaEta, eSeedOverPin for differents regions in the E/p vs fBrem plane |
653 |
> |
Float_t idLikelihood_; // Lieklihood ID - not activated by default in 2.2.X |
654 |
> |
Float_t idNeuralNet_; // NN ID - not activated by default in 2.2.X |
655 |
|
|
656 |
+ |
|
657 |
|
// Matched genParticle |
658 |
|
TLorentzVector momentumMCElectron_; |
659 |
|
TVector3 vertexMCElectron_; |
664 |
|
//Float_t sigmaPhiPhi_; |
665 |
|
|
666 |
|
|
667 |
< |
ClassDef (TRootElectron,1); |
667 |
> |
ClassDef (TRootElectron,2); |
668 |
|
}; |
669 |
|
|
670 |
|
#endif |