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 |
– |
,genElectron_() |
74 |
– |
,electronMCIndex_(-1) |
75 |
– |
,momentumMCElectron_() |
76 |
– |
,vertexMCElectron_() |
77 |
– |
,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_) |
132 |
< |
,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_) |
135 |
– |
,genElectron_(electron.genElectron_) |
136 |
– |
,electronMCIndex_(electron.electronMCIndex_) |
137 |
– |
,momentumMCElectron_(electron.momentumMCElectron_) |
138 |
– |
,vertexMCElectron_(electron.vertexMCElectron_) |
139 |
– |
,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.) |
194 |
< |
,idCutBasedTight_(-9999.) |
177 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
178 |
> |
,idCutBasedFixedThresholdTight_(-1) |
179 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
180 |
> |
,idCutBasedCategorizedLoose_(-1) |
181 |
> |
,idCutBasedCategorizedTight_(-1) |
182 |
|
,idLikelihood_(-9999.) |
183 |
|
,idNeuralNet_(-9999.) |
197 |
– |
,genElectron_() |
198 |
– |
,electronMCIndex_(-1) |
199 |
– |
,momentumMCElectron_() |
200 |
– |
,vertexMCElectron_() |
201 |
– |
,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.) |
256 |
< |
,idCutBasedTight_(-9999.) |
233 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
234 |
> |
,idCutBasedFixedThresholdTight_(-1) |
235 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
236 |
> |
,idCutBasedCategorizedLoose_(-1) |
237 |
> |
,idCutBasedCategorizedTight_(-1) |
238 |
|
,idLikelihood_(-9999.) |
239 |
|
,idNeuralNet_(-9999.) |
259 |
– |
,genElectron_() |
260 |
– |
,electronMCIndex_(-1) |
261 |
– |
,momentumMCElectron_() |
262 |
– |
,vertexMCElectron_() |
263 |
– |
,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.) |
318 |
< |
,idCutBasedTight_(-9999.) |
289 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
290 |
> |
,idCutBasedFixedThresholdTight_(-1) |
291 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
292 |
> |
,idCutBasedCategorizedLoose_(-1) |
293 |
> |
,idCutBasedCategorizedTight_(-1) |
294 |
|
,idLikelihood_(-9999.) |
295 |
|
,idNeuralNet_(-9999.) |
321 |
– |
,genElectron_() |
322 |
– |
,electronMCIndex_(-1) |
323 |
– |
,momentumMCElectron_() |
324 |
– |
,vertexMCElectron_() |
325 |
– |
,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.) |
380 |
< |
,idCutBasedTight_(-9999.) |
345 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
346 |
> |
,idCutBasedFixedThresholdTight_(-1) |
347 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
348 |
> |
,idCutBasedCategorizedLoose_(-1) |
349 |
> |
,idCutBasedCategorizedTight_(-1) |
350 |
|
,idLikelihood_(-9999.) |
351 |
|
,idNeuralNet_(-9999.) |
383 |
– |
,genElectron_() |
384 |
– |
,electronMCIndex_(-1) |
385 |
– |
,momentumMCElectron_() |
386 |
– |
,vertexMCElectron_() |
387 |
– |
,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.) |
442 |
< |
,idCutBasedTight_(-9999.) |
401 |
> |
,idCutBasedFixedThresholdLoose_(-1) |
402 |
> |
,idCutBasedFixedThresholdTight_(-1) |
403 |
> |
,idCutBasedFixedThresholdHighEnergy_(-1) |
404 |
> |
,idCutBasedCategorizedLoose_(-1) |
405 |
> |
,idCutBasedCategorizedTight_(-1) |
406 |
|
,idLikelihood_(-9999.) |
407 |
|
,idNeuralNet_(-9999.) |
445 |
– |
,genElectron_() |
446 |
– |
,electronMCIndex_(-1) |
447 |
– |
,momentumMCElectron_() |
448 |
– |
,vertexMCElectron_() |
449 |
– |
,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_ ;} |
505 |
< |
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_ ;} |
465 |
< |
TObject* genElectron() const { return genElectron_.GetObject() ;} |
466 |
< |
Int_t electronMCIndex() const { return electronMCIndex_; } |
510 |
< |
TLorentzVector momentumMCElectron() const { return momentumMCElectron_; } |
511 |
< |
TVector3 vertexMCElectron() const { return vertexMCElectron_; } |
512 |
< |
Int_t pdgIdMCElectron() const { return pdgIdMCElectron_; } |
465 |
> |
|
466 |
> |
virtual TString typeName() const { return "TRootElectron"; } |
467 |
|
|
468 |
|
|
469 |
|
void setClassification(Int_t classification) { classification_ = classification; } |
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; } |
566 |
< |
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; } |
569 |
– |
void setGenElectron(TObject* genElectron) { genElectron_ = genElectron; } |
570 |
– |
void setElectronMCIndex(Int_t electronMCIndex) { electronMCIndex_ = electronMCIndex; } |
571 |
– |
void setMomentumMCElectron(TLorentzVector momentumMCElectron) { momentumMCElectron_ = momentumMCElectron; } |
572 |
– |
void setMomentumMCElectron(Float_t px, Float_t py, Float_t pz , Float_t energy) { momentumMCElectron_ = TLorentzVector(px,py,pz,energy); } |
573 |
– |
void setVertexMCElectron(TVector3 vertexMCElectron) { vertexMCElectron_ = vertexMCElectron; } |
574 |
– |
void setVertexMCElectron(Float_t vx, Float_t vy, Float_t vz) { vertexMCElectron_ = TVector3(vx,vy,vz); } |
575 |
– |
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 |
711 |
– |
TRef genElectron_; |
712 |
– |
Int_t electronMCIndex_; |
658 |
|
TLorentzVector momentumMCElectron_; |
659 |
|
TVector3 vertexMCElectron_; |
660 |
|
Int_t pdgIdMCElectron_; |
664 |
|
//Float_t sigmaPhiPhi_; |
665 |
|
|
666 |
|
|
667 |
< |
ClassDef (TRootElectron,1); |
667 |
> |
ClassDef (TRootElectron,2); |
668 |
|
}; |
669 |
|
|
670 |
|
#endif |