30 |
|
,energySeedClusterOverPout_(-9999.) |
31 |
|
,energyScaleCorrected_(false) |
32 |
|
,momentumCorrected_(false) |
33 |
+ |
,dr03TkSumPt_(-9999.) |
34 |
+ |
,dr03EcalRecHitSumEt_(-9999.) |
35 |
+ |
,dr03HcalDepth1TowerSumEt_(-9999.) |
36 |
+ |
,dr03HcalDepth2TowerSumEt_(-9999.) |
37 |
|
,pixelLayersWithMeasurement_(-1) |
38 |
|
,stripLayersWithMeasurement_(-1) |
39 |
|
,d0_(-9999.) |
76 |
|
,idCutBasedCategorizedTight_(-1) |
77 |
|
,idLikelihood_(-9999.) |
78 |
|
,idNeuralNet_(-9999.) |
79 |
+ |
,isAlsoPhoton_(false) |
80 |
|
{;} |
81 |
|
|
82 |
|
TRootElectron(const TRootElectron& electron) : |
95 |
|
,energySeedClusterOverPout_(electron.energySeedClusterOverPout_) |
96 |
|
,energyScaleCorrected_(electron.energyScaleCorrected_) |
97 |
|
,momentumCorrected_(electron.momentumCorrected_) |
98 |
+ |
,dr03TkSumPt_(electron.dr03TkSumPt_) |
99 |
+ |
,dr03EcalRecHitSumEt_(electron.dr03EcalRecHitSumEt_) |
100 |
+ |
,dr03HcalDepth1TowerSumEt_(electron.dr03HcalDepth1TowerSumEt_) |
101 |
+ |
,dr03HcalDepth2TowerSumEt_(electron.dr03HcalDepth2TowerSumEt_) |
102 |
|
,pixelLayersWithMeasurement_(electron.pixelLayersWithMeasurement_) |
103 |
|
,stripLayersWithMeasurement_(electron.stripLayersWithMeasurement_) |
104 |
|
,d0_(electron.d0_) |
141 |
|
,idCutBasedCategorizedTight_(electron.idCutBasedCategorizedTight_) |
142 |
|
,idLikelihood_(electron.idLikelihood_) |
143 |
|
,idNeuralNet_(electron.idNeuralNet_) |
144 |
+ |
,isAlsoPhoton_(electron.isAlsoPhoton_) |
145 |
|
{;} |
146 |
|
|
147 |
|
TRootElectron(Double_t px, Double_t py, Double_t pz, Double_t e) : |
160 |
|
,energySeedClusterOverPout_(-9999.) |
161 |
|
,energyScaleCorrected_(false) |
162 |
|
,momentumCorrected_(false) |
163 |
+ |
,dr03TkSumPt_(-9999.) |
164 |
+ |
,dr03EcalRecHitSumEt_(-9999.) |
165 |
+ |
,dr03HcalDepth1TowerSumEt_(-9999.) |
166 |
+ |
,dr03HcalDepth2TowerSumEt_(-9999.) |
167 |
|
,pixelLayersWithMeasurement_(-1) |
168 |
|
,stripLayersWithMeasurement_(-1) |
169 |
|
,d0_(-9999.) |
206 |
|
,idCutBasedCategorizedTight_(-1) |
207 |
|
,idLikelihood_(-9999.) |
208 |
|
,idNeuralNet_(-9999.) |
209 |
+ |
,isAlsoPhoton_(false) |
210 |
|
{;} |
211 |
|
|
212 |
|
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) : |
225 |
|
,energySeedClusterOverPout_(-9999.) |
226 |
|
,energyScaleCorrected_(false) |
227 |
|
,momentumCorrected_(false) |
228 |
+ |
,dr03TkSumPt_(-9999.) |
229 |
+ |
,dr03EcalRecHitSumEt_(-9999.) |
230 |
+ |
,dr03HcalDepth1TowerSumEt_(-9999.) |
231 |
+ |
,dr03HcalDepth2TowerSumEt_(-9999.) |
232 |
|
,pixelLayersWithMeasurement_(-1) |
233 |
|
,stripLayersWithMeasurement_(-1) |
234 |
|
,d0_(-9999.) |
271 |
|
,idCutBasedCategorizedTight_(-1) |
272 |
|
,idLikelihood_(-9999.) |
273 |
|
,idNeuralNet_(-9999.) |
274 |
+ |
,isAlsoPhoton_(false) |
275 |
|
{;} |
276 |
|
|
277 |
|
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) : |
290 |
|
,energySeedClusterOverPout_(-9999.) |
291 |
|
,energyScaleCorrected_(false) |
292 |
|
,momentumCorrected_(false) |
293 |
+ |
,dr03TkSumPt_(-9999.) |
294 |
+ |
,dr03EcalRecHitSumEt_(-9999.) |
295 |
+ |
,dr03HcalDepth1TowerSumEt_(-9999.) |
296 |
+ |
,dr03HcalDepth2TowerSumEt_(-9999.) |
297 |
|
,pixelLayersWithMeasurement_(-1) |
298 |
|
,stripLayersWithMeasurement_(-1) |
299 |
|
,d0_(-9999.) |
336 |
|
,idCutBasedCategorizedTight_(-1) |
337 |
|
,idLikelihood_(-9999.) |
338 |
|
,idNeuralNet_(-9999.) |
339 |
+ |
,isAlsoPhoton_(false) |
340 |
|
{;} |
341 |
|
|
342 |
|
TRootElectron(const TLorentzVector &momentum) : |
355 |
|
,energySeedClusterOverPout_(-9999.) |
356 |
|
,energyScaleCorrected_(false) |
357 |
|
,momentumCorrected_(false) |
358 |
+ |
,dr03TkSumPt_(-9999.) |
359 |
+ |
,dr03EcalRecHitSumEt_(-9999.) |
360 |
+ |
,dr03HcalDepth1TowerSumEt_(-9999.) |
361 |
+ |
,dr03HcalDepth2TowerSumEt_(-9999.) |
362 |
|
,pixelLayersWithMeasurement_(-1) |
363 |
|
,stripLayersWithMeasurement_(-1) |
364 |
|
,d0_(-9999.) |
401 |
|
,idCutBasedCategorizedTight_(-1) |
402 |
|
,idLikelihood_(-9999.) |
403 |
|
,idNeuralNet_(-9999.) |
404 |
+ |
,isAlsoPhoton_(false) |
405 |
|
{;} |
406 |
|
|
407 |
|
TRootElectron(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) : |
420 |
|
,energySeedClusterOverPout_(-9999.) |
421 |
|
,energyScaleCorrected_(false) |
422 |
|
,momentumCorrected_(false) |
423 |
+ |
,dr03TkSumPt_(-9999.) |
424 |
+ |
,dr03EcalRecHitSumEt_(-9999.) |
425 |
+ |
,dr03HcalDepth1TowerSumEt_(-9999.) |
426 |
+ |
,dr03HcalDepth2TowerSumEt_(-9999.) |
427 |
|
,pixelLayersWithMeasurement_(-1) |
428 |
|
,stripLayersWithMeasurement_(-1) |
429 |
|
,d0_(-9999.) |
466 |
|
,idCutBasedCategorizedTight_(-1) |
467 |
|
,idLikelihood_(-9999.) |
468 |
|
,idNeuralNet_(-9999.) |
469 |
+ |
,isAlsoPhoton_(false) |
470 |
|
{;} |
471 |
|
|
472 |
|
~TRootElectron() {;} |
486 |
|
Float_t energySeedClusterOverPout() const { return energySeedClusterOverPout_ ;} |
487 |
|
Bool_t energyScaleCorrected() const { return energyScaleCorrected_ ;} |
488 |
|
Bool_t momentumCorrected() const { return momentumCorrected_ ;} |
489 |
+ |
|
490 |
+ |
Float_t dr03TkSumPt() const { return dr03TkSumPt_ ;} |
491 |
+ |
Float_t dr03EcalRecHitSumEt() const { return dr03EcalRecHitSumEt_;} |
492 |
+ |
Float_t dr03HcalDepth1TowerSumEt() const { return dr03HcalDepth1TowerSumEt_ ;} |
493 |
+ |
Float_t dr03HcalDepth2TowerSumEt() const { return dr03HcalDepth2TowerSumEt_ ;} |
494 |
+ |
Float_t dr03HcalTowerSumEt() const { return dr03HcalDepth1TowerSumEt()+dr03HcalDepth2TowerSumEt() ;} |
495 |
|
|
496 |
|
Int_t pixelLayersWithMeasurement() const { return pixelLayersWithMeasurement_; } |
497 |
|
Int_t stripLayersWithMeasurement() const { return stripLayersWithMeasurement_; } |
609 |
|
Int_t idCutBasedCategorizedTight() const { return idCutBasedCategorizedTight_ ;} |
610 |
|
Float_t idLikelihood() const { return idLikelihood_ ;} |
611 |
|
Float_t idNeuralNet() const { return idNeuralNet_ ;} |
612 |
< |
|
612 |
> |
Bool_t isAlsoPhoton() const { return isAlsoPhoton_; } |
613 |
> |
|
614 |
|
/* TODO - isBarrel / isEndcap / isCrack |
615 |
|
if (fabs (eta) <= 1.4442) { |
616 |
|
localElectron.setPosition (1); |
640 |
|
void setEnergySeedClusterOverPout(Float_t energySeedClusterOverPout) { energySeedClusterOverPout_ = energySeedClusterOverPout; } |
641 |
|
void setEnergyScaleCorrected(Bool_t energyScaleCorrected) { energyScaleCorrected_ = energyScaleCorrected; } |
642 |
|
void setMomentumCorrected(Bool_t momentumCorrected) { momentumCorrected_ = momentumCorrected; } |
643 |
+ |
void setDr03TkSumPt(Float_t dr03TkSumPt) { dr03TkSumPt_ = dr03TkSumPt; } |
644 |
+ |
void setDr03EcalRecHitSumEt(Float_t dr03EcalRecHitSumEt) { dr03EcalRecHitSumEt_ = dr03EcalRecHitSumEt; } |
645 |
+ |
void setDr03HcalDepth1TowerSumEt(Float_t dr03HcalDepth1TowerSumEt) { dr03HcalDepth1TowerSumEt_ = dr03HcalDepth1TowerSumEt; } |
646 |
+ |
void setDr03HcalDepth2TowerSumEt(Float_t dr03HcalDepth2TowerSumEt) { dr03HcalDepth2TowerSumEt_ = dr03HcalDepth2TowerSumEt; } |
647 |
|
|
648 |
|
void setPixelLayersWithMeasurement(Int_t pixelLayersWithMeasurement) { pixelLayersWithMeasurement_ = pixelLayersWithMeasurement; } |
649 |
|
void setStripLayersWithMeasurement(Int_t stripLayersWithMeasurement) { stripLayersWithMeasurement_ = stripLayersWithMeasurement; } |
689 |
|
void setIDCutBasedCategorizedTight(Int_t idCutBasedCategorizedTight) { idCutBasedCategorizedTight_ = idCutBasedCategorizedTight; } |
690 |
|
void setIDLikelihood(Float_t idLikelihood) { idLikelihood_ = idLikelihood; } |
691 |
|
void setIDNeuralNet(Float_t idNeuralNet) { idNeuralNet_ = idNeuralNet; } |
692 |
< |
|
692 |
> |
void setIsAlsoPhoton(Bool_t isAlsoPhoton) { isAlsoPhoton_ = isAlsoPhoton; } |
693 |
> |
|
694 |
|
friend std::ostream& operator<< (std::ostream& stream, const TRootElectron& electron) |
695 |
|
{ |
696 |
|
stream << "TRootElectron - Charge=" << electron.charge() << " (E,Et,eta,phi)=("<< electron.Energy() <<","<< electron.Et() <<","<< electron.Eta() <<","<< electron.Phi() << ")" |
710 |
|
<< " E2x2=" << this->e2x2() <<" E3x3=" << this->e3x3() <<" E5x5=" << this->e5x5() <<" Emax=" << this->eMax() |
711 |
|
<< " R19=" << this->r19() <<" R9=" << this->r9() << endl |
712 |
|
<<" H/E=" << this->hadOverEm() <<" deltaEtaIn=" << this->deltaEtaIn() <<" deltaPhiIn=" << this->deltaPhiIn() <<" deltaEtaOut=" << this->deltaEtaOut() <<" deltaPhiOut=" << this->deltaPhiOut() <<" E/p in=" << this->energySuperClusterOverPin() <<" E/p out=" << this->energySeedClusterOverPout() << endl |
713 |
< |
<< " iso03 ecal="<< this->isoR03_emEt() << " hcal=" << this->isoR03_hadEt() << " tracker=" << this->isoR03_sumPt() << " ntracks=" << this->isoR03_nTracks() |
714 |
< |
<< " iso05 ecal="<< this->isoR05_emEt() << " hcal=" << this->isoR05_hadEt() << " tracker=" << this->isoR05_sumPt() << " ntracks=" << this->isoR05_nTracks() << endl |
713 |
> |
<< " reco iso03 ecal="<< this->dr03EcalRecHitSumEt() << " hcal1=" << this->dr03HcalDepth1TowerSumEt() << " hcal2=" << this->dr03HcalDepth2TowerSumEt() << " tracker=" << this->dr03TkSumPt() << endl |
714 |
> |
<< " pat iso03 ecal="<< this->isoR03_emEt() << " hcal=" << this->isoR03_hadEt() << " tracker=" << this->isoR03_sumPt() << " ntracks=" << this->isoR03_nTracks() << endl |
715 |
> |
<< " pat iso05 ecal="<< this->isoR05_emEt() << " hcal=" << this->isoR05_hadEt() << " tracker=" << this->isoR05_sumPt() << " ntracks=" << this->isoR05_nTracks() << endl |
716 |
|
<<" ID: Fixed-Threshold(Loose,Tight,HighEnergy)=(" << this->idCutBasedFixedThresholdLoose() << "," << this->idCutBasedFixedThresholdTight() << "," << this->idCutBasedFixedThresholdHighEnergy() << ")" |
717 |
|
<<" Categorized(Loose,Tight)=(" << this->idCutBasedCategorizedLoose() << "," << this->idCutBasedCategorizedTight() << ")" |
718 |
< |
<<" LH=" << this->idLikelihood() << " NN=" << this->idNeuralNet(); |
718 |
> |
<<" LH=" << this->idLikelihood() << " NN=" << this->idNeuralNet() << " isAlsoPhoton=" << this->isAlsoPhoton(); |
719 |
|
}; |
720 |
|
|
721 |
|
|
749 |
|
Bool_t energyScaleCorrected_; // Has Energy Scale been applied ? |
750 |
|
Bool_t momentumCorrected_; // Tell if class dependant E-p combination has been determined |
751 |
|
|
752 |
< |
|
752 |
> |
Float_t dr03TkSumPt_; // track iso deposit with electron footprint removed |
753 |
> |
Float_t dr03EcalRecHitSumEt_; // ecal iso deposit with electron footprint removed |
754 |
> |
Float_t dr03HcalDepth1TowerSumEt_; // hcal depht 1 iso deposit with electron footprint removed |
755 |
> |
Float_t dr03HcalDepth2TowerSumEt_; // hcal depht 2 iso deposit with electron footprint removed |
756 |
> |
|
757 |
|
// Variables from reco::GsfTrack |
758 |
|
|
759 |
|
/* cf: http://cmslxr.fnal.gov/lxr/source/DataFormats/TrackReco/interface/TrackBase.h |
842 |
|
Float_t idLikelihood_; // Lieklihood ID - not activated by default in 2.2.X |
843 |
|
Float_t idNeuralNet_; // NN ID - not activated by default in 2.2.X |
844 |
|
|
845 |
+ |
Bool_t isAlsoPhoton_; // is electron also a photon ? |
846 |
|
|
847 |
|
// needed ? |
848 |
|
//Float_t sigmaEtaEta_; |
849 |
|
//Float_t sigmaPhiPhi_; |
850 |
|
|
851 |
|
|
852 |
< |
ClassDef (TRootElectron,4); |
852 |
> |
ClassDef (TRootElectron,6); |
853 |
|
|
854 |
|
}; |
855 |
|
|