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.4 by lethuill, Mon Dec 15 19:08:52 2008 UTC vs.
Revision 1.6 by lethuill, Fri Dec 19 12:26:01 2008 UTC

# Line 70 | Line 70 | public:
70                  ,idCutBasedTight_(-9999.)
71                  ,idLikelihood_(-9999.)
72                  ,idNeuralNet_(-9999.)
73                ,genElectron_()
74                ,electronMCIndex_(-1)
75                ,momentumMCElectron_()
76                ,vertexMCElectron_()
77                ,pdgIdMCElectron_(0)
73                  {;}
74  
75          TRootElectron(const TRootElectron& electron) :
# Line 132 | Line 127 | public:
127                  ,idCutBasedTight_(electron.idCutBasedTight_)
128                  ,idLikelihood_(electron.idLikelihood_)
129                  ,idNeuralNet_(electron.idNeuralNet_)
135                ,genElectron_(electron.genElectron_)
136                ,electronMCIndex_(electron.electronMCIndex_)
137                ,momentumMCElectron_(electron.momentumMCElectron_)
138                ,vertexMCElectron_(electron.vertexMCElectron_)
139                ,pdgIdMCElectron_(electron.pdgIdMCElectron_)
130                  {;}
131  
132          TRootElectron(Double_t px, Double_t py, Double_t pz, Double_t e) :
# Line 194 | Line 184 | public:
184                  ,idCutBasedTight_(-9999.)
185                  ,idLikelihood_(-9999.)
186                  ,idNeuralNet_(-9999.)
197                ,genElectron_()
198                ,electronMCIndex_(-1)
199                ,momentumMCElectron_()
200                ,vertexMCElectron_()
201                ,pdgIdMCElectron_(0)
187                  {;}
188          
189          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 256 | Line 241 | public:
241                  ,idCutBasedTight_(-9999.)
242                  ,idLikelihood_(-9999.)
243                  ,idNeuralNet_(-9999.)
259                ,genElectron_()
260                ,electronMCIndex_(-1)
261                ,momentumMCElectron_()
262                ,vertexMCElectron_()
263                ,pdgIdMCElectron_(0)
244                  {;}
245  
246          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 318 | Line 298 | public:
298                  ,idCutBasedTight_(-9999.)
299                  ,idLikelihood_(-9999.)
300                  ,idNeuralNet_(-9999.)
321                ,genElectron_()
322                ,electronMCIndex_(-1)
323                ,momentumMCElectron_()
324                ,vertexMCElectron_()
325                ,pdgIdMCElectron_(0)
301                  {;}
302  
303          TRootElectron(const TLorentzVector &momentum) :
# Line 380 | Line 355 | public:
355                  ,idCutBasedTight_(-9999.)
356                  ,idLikelihood_(-9999.)
357                  ,idNeuralNet_(-9999.)
383                ,genElectron_()
384                ,electronMCIndex_(-1)
385                ,momentumMCElectron_()
386                ,vertexMCElectron_()
387                ,pdgIdMCElectron_(0)
358                  {;}
359  
360          TRootElectron(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) :
# Line 442 | Line 412 | public:
412                  ,idCutBasedTight_(-9999.)
413                  ,idLikelihood_(-9999.)
414                  ,idNeuralNet_(-9999.)
445                ,genElectron_()
446                ,electronMCIndex_(-1)
447                ,momentumMCElectron_()
448                ,vertexMCElectron_()
449                ,pdgIdMCElectron_(0)
415                  {;}
416  
417          ~TRootElectron() {;}
# Line 505 | Line 470 | public:
470          Float_t idCutBasedTight() const { return idCutBasedTight_ ;}
471          Float_t idLikelihood() const { return idLikelihood_ ;}
472          Float_t idNeuralNet() const { return idNeuralNet_ ;}
473 <        TObject* genElectron() const { return genElectron_.GetObject() ;}
474 <        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_; }
473 >
474 >        virtual TString typeName() const { return "TRootElectron"; }
475  
476  
477          void setClassification(Int_t classification) { classification_ = classification; }
# Line 566 | Line 528 | public:
528          void setIDCutBasedTight(Float_t idCutBasedTight) { idCutBasedTight_ = idCutBasedTight; }
529          void setIDLikelihood(Float_t idLikelihood) { idLikelihood_ = idLikelihood; }
530          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; }
531          
532          friend std::ostream& operator<< (std::ostream& stream, const TRootElectron& electron) {
533                  stream << "TRootElectron - Charge=" << electron.charge() << " (Et,eta,phi)=("<< electron.Et() <<","<< electron.Eta() <<","<< electron.Phi() << ")"
# Line 708 | Line 663 | public:
663       Float_t idNeuralNet_;
664  
665          // Matched genParticle
711        TRef genElectron_;
712        Int_t electronMCIndex_;
666          TLorentzVector momentumMCElectron_;
667          TVector3 vertexMCElectron_;
668          Int_t pdgIdMCElectron_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines