ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TRootElectron.h
(Generate patch)

Comparing UserCode/Morgan/interface/TRootElectron.h (file contents):
Revision 1.12 by lethuill, Tue Jun 30 15:37:17 2009 UTC vs.
Revision 1.14 by lethuill, Fri Sep 18 14:14:20 2009 UTC

# Line 30 | Line 30 | class TRootElectron : public TRootPartic
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.)
# Line 72 | Line 76 | class TRootElectron : public TRootPartic
76        ,idCutBasedCategorizedTight_(-1)
77        ,idLikelihood_(-9999.)
78        ,idNeuralNet_(-9999.)
79 +      ,isAlsoPhoton_(false)
80        {;}
81  
82        TRootElectron(const TRootElectron& electron) :
# Line 90 | Line 95 | class TRootElectron : public TRootPartic
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_)
# Line 132 | Line 141 | class TRootElectron : public TRootPartic
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) :
# Line 150 | Line 160 | class TRootElectron : public TRootPartic
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.)
# Line 192 | Line 206 | class TRootElectron : public TRootPartic
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) :
# Line 210 | Line 225 | class TRootElectron : public TRootPartic
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.)
# Line 252 | Line 271 | class TRootElectron : public TRootPartic
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) :
# Line 270 | Line 290 | class TRootElectron : public TRootPartic
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.)
# Line 312 | Line 336 | class TRootElectron : public TRootPartic
336        ,idCutBasedCategorizedTight_(-1)
337        ,idLikelihood_(-9999.)
338        ,idNeuralNet_(-9999.)
339 +      ,isAlsoPhoton_(false)
340        {;}
341  
342        TRootElectron(const TLorentzVector &momentum) :
# Line 330 | Line 355 | class TRootElectron : public TRootPartic
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.)
# Line 372 | Line 401 | class TRootElectron : public TRootPartic
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) :
# Line 390 | Line 420 | class TRootElectron : public TRootPartic
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.)
# Line 432 | Line 466 | class TRootElectron : public TRootPartic
466        ,idCutBasedCategorizedTight_(-1)
467        ,idLikelihood_(-9999.)
468        ,idNeuralNet_(-9999.)
469 +      ,isAlsoPhoton_(false)
470        {;}
471  
472        ~TRootElectron() {;}
# Line 451 | Line 486 | class TRootElectron : public TRootPartic
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_; }
# Line 568 | Line 609 | class TRootElectron : public TRootPartic
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);
# Line 598 | Line 640 | class TRootElectron : public TRootPartic
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; }
# Line 643 | Line 689 | class TRootElectron : public TRootPartic
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() << ")"
# Line 663 | Line 710 | class TRootElectron : public TRootPartic
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  
# Line 701 | Line 749 | class TRootElectron : public TRootPartic
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
# Line 790 | Line 842 | class TRootElectron : public TRootPartic
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines