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.13 by lethuill, Fri Jul 3 13:40:03 2009 UTC

# Line 72 | Line 72 | class TRootElectron : public TRootPartic
72        ,idCutBasedCategorizedTight_(-1)
73        ,idLikelihood_(-9999.)
74        ,idNeuralNet_(-9999.)
75 +      ,isAlsoPhoton_(false)
76        {;}
77  
78        TRootElectron(const TRootElectron& electron) :
# Line 132 | Line 133 | class TRootElectron : public TRootPartic
133        ,idCutBasedCategorizedTight_(electron.idCutBasedCategorizedTight_)
134        ,idLikelihood_(electron.idLikelihood_)
135        ,idNeuralNet_(electron.idNeuralNet_)
136 +      ,isAlsoPhoton_(electron.isAlsoPhoton_)
137        {;}
138  
139        TRootElectron(Double_t px, Double_t py, Double_t pz, Double_t e) :
# Line 192 | Line 194 | class TRootElectron : public TRootPartic
194        ,idCutBasedCategorizedTight_(-1)
195        ,idLikelihood_(-9999.)
196        ,idNeuralNet_(-9999.)
197 +      ,isAlsoPhoton_(false)
198        {;}
199  
200        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 252 | Line 255 | class TRootElectron : public TRootPartic
255        ,idCutBasedCategorizedTight_(-1)
256        ,idLikelihood_(-9999.)
257        ,idNeuralNet_(-9999.)
258 +      ,isAlsoPhoton_(false)
259        {;}
260  
261        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 312 | Line 316 | class TRootElectron : public TRootPartic
316        ,idCutBasedCategorizedTight_(-1)
317        ,idLikelihood_(-9999.)
318        ,idNeuralNet_(-9999.)
319 +      ,isAlsoPhoton_(false)
320        {;}
321  
322        TRootElectron(const TLorentzVector &momentum) :
# Line 372 | Line 377 | class TRootElectron : public TRootPartic
377        ,idCutBasedCategorizedTight_(-1)
378        ,idLikelihood_(-9999.)
379        ,idNeuralNet_(-9999.)
380 +      ,isAlsoPhoton_(false)
381        {;}
382  
383        TRootElectron(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) :
# Line 432 | Line 438 | class TRootElectron : public TRootPartic
438        ,idCutBasedCategorizedTight_(-1)
439        ,idLikelihood_(-9999.)
440        ,idNeuralNet_(-9999.)
441 +      ,isAlsoPhoton_(false)
442        {;}
443  
444        ~TRootElectron() {;}
# Line 568 | Line 575 | class TRootElectron : public TRootPartic
575        Int_t idCutBasedCategorizedTight() const { return idCutBasedCategorizedTight_ ;}
576        Float_t idLikelihood() const { return idLikelihood_ ;}
577        Float_t idNeuralNet() const { return idNeuralNet_ ;}
578 <
578 >      Bool_t isAlsoPhoton() const { return isAlsoPhoton_; }
579 >      
580        /* TODO - isBarrel / isEndcap / isCrack
581        if (fabs (eta) <= 1.4442) {
582           localElectron.setPosition (1);
# Line 643 | Line 651 | class TRootElectron : public TRootPartic
651        void setIDCutBasedCategorizedTight(Int_t idCutBasedCategorizedTight) { idCutBasedCategorizedTight_ = idCutBasedCategorizedTight; }
652        void setIDLikelihood(Float_t idLikelihood) { idLikelihood_ = idLikelihood; }
653        void setIDNeuralNet(Float_t idNeuralNet) { idNeuralNet_ = idNeuralNet; }
654 <
654 >      void setIsAlsoPhoton(Bool_t isAlsoPhoton) { isAlsoPhoton_ = isAlsoPhoton; }
655 >      
656        friend std::ostream& operator<< (std::ostream& stream, const TRootElectron& electron)
657        {
658           stream << "TRootElectron - Charge=" << electron.charge() << " (E,Et,eta,phi)=("<< electron.Energy() <<","<< electron.Et() <<","<< electron.Eta() <<","<< electron.Phi() << ")"
# Line 667 | Line 676 | class TRootElectron : public TRootPartic
676           << "  iso05  ecal="<< this->isoR05_emEt() << " hcal=" << this->isoR05_hadEt() << " tracker=" << this->isoR05_sumPt() << " ntracks=" << this->isoR05_nTracks() << endl
677           <<"            ID:  Fixed-Threshold(Loose,Tight,HighEnergy)=(" << this->idCutBasedFixedThresholdLoose() << "," << this->idCutBasedFixedThresholdTight()  << "," << this->idCutBasedFixedThresholdHighEnergy() << ")"
678           <<"  Categorized(Loose,Tight)=(" << this->idCutBasedCategorizedLoose() << "," << this->idCutBasedCategorizedTight()  << ")"
679 <         <<"  LH=" << this->idLikelihood() << "  NN=" << this->idNeuralNet();
679 >         <<"  LH=" << this->idLikelihood() << "  NN=" << this->idNeuralNet() << "  isAlsoPhoton=" << this->isAlsoPhoton();
680        };
681  
682  
# Line 790 | Line 799 | class TRootElectron : public TRootPartic
799        Float_t idLikelihood_;                     // Lieklihood ID - not activated by default in 2.2.X
800        Float_t idNeuralNet_;                      // NN ID - not activated by default in 2.2.X
801  
802 +      Bool_t isAlsoPhoton_;                      // is electron also a photon ?
803  
804        // needed ?
805        //Float_t sigmaEtaEta_;
806        //Float_t sigmaPhiPhi_;
807  
808  
809 <      ClassDef (TRootElectron,4);
809 >      ClassDef (TRootElectron,5);
810  
811   };
812  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines