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.5 by lethuill, Wed Dec 17 16:23:49 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                ,momentumMCElectron_()
74                ,vertexMCElectron_()
75                ,pdgIdMCElectron_(0)
73                  {;}
74  
75          TRootElectron(const TRootElectron& electron) :
# Line 130 | Line 127 | public:
127                  ,idCutBasedTight_(electron.idCutBasedTight_)
128                  ,idLikelihood_(electron.idLikelihood_)
129                  ,idNeuralNet_(electron.idNeuralNet_)
133                ,momentumMCElectron_(electron.momentumMCElectron_)
134                ,vertexMCElectron_(electron.vertexMCElectron_)
135                ,pdgIdMCElectron_(electron.pdgIdMCElectron_)
130                  {;}
131  
132          TRootElectron(Double_t px, Double_t py, Double_t pz, Double_t e) :
# Line 190 | Line 184 | public:
184                  ,idCutBasedTight_(-9999.)
185                  ,idLikelihood_(-9999.)
186                  ,idNeuralNet_(-9999.)
193                ,momentumMCElectron_()
194                ,vertexMCElectron_()
195                ,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 250 | Line 241 | public:
241                  ,idCutBasedTight_(-9999.)
242                  ,idLikelihood_(-9999.)
243                  ,idNeuralNet_(-9999.)
253                ,momentumMCElectron_()
254                ,vertexMCElectron_()
255                ,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 310 | Line 298 | public:
298                  ,idCutBasedTight_(-9999.)
299                  ,idLikelihood_(-9999.)
300                  ,idNeuralNet_(-9999.)
313                ,momentumMCElectron_()
314                ,vertexMCElectron_()
315                ,pdgIdMCElectron_(0)
301                  {;}
302  
303          TRootElectron(const TLorentzVector &momentum) :
# Line 370 | Line 355 | public:
355                  ,idCutBasedTight_(-9999.)
356                  ,idLikelihood_(-9999.)
357                  ,idNeuralNet_(-9999.)
373                ,momentumMCElectron_()
374                ,vertexMCElectron_()
375                ,pdgIdMCElectron_(0)
358                  {;}
359  
360          TRootElectron(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) :
# Line 430 | Line 412 | public:
412                  ,idCutBasedTight_(-9999.)
413                  ,idLikelihood_(-9999.)
414                  ,idNeuralNet_(-9999.)
433                ,momentumMCElectron_()
434                ,vertexMCElectron_()
435                ,pdgIdMCElectron_(0)
415                  {;}
416  
417          ~TRootElectron() {;}
# Line 491 | Line 470 | public:
470          Float_t idCutBasedTight() const { return idCutBasedTight_ ;}
471          Float_t idLikelihood() const { return idLikelihood_ ;}
472          Float_t idNeuralNet() const { return idNeuralNet_ ;}
494        //TObject* genElectron() const { return genElectron_.GetObject() ;}
495        //Int_t electronMCIndex() const { return electronMCIndex_; }
496        TLorentzVector momentumMCElectron() const  { return momentumMCElectron_; }
497        TVector3 vertexMCElectron() const { return vertexMCElectron_; }
498        Int_t pdgIdMCElectron() const { return pdgIdMCElectron_; }
473  
474          virtual TString typeName() const { return "TRootElectron"; }
475  
# Line 554 | 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; }
557        //void setGenElectron(TObject* genElectron) { genElectron_ = genElectron; }
558        //void setElectronMCIndex(Int_t electronMCIndex) { electronMCIndex_ = electronMCIndex; }
559        void setMomentumMCElectron(TLorentzVector momentumMCElectron) { momentumMCElectron_ =  momentumMCElectron; }
560        void setMomentumMCElectron(Float_t px, Float_t py, Float_t pz , Float_t energy) { momentumMCElectron_ =  TLorentzVector(px,py,pz,energy); }
561        void setVertexMCElectron(TVector3 vertexMCElectron) { vertexMCElectron_ = vertexMCElectron; }
562        void setVertexMCElectron(Float_t vx, Float_t vy, Float_t vz) { vertexMCElectron_ = TVector3(vx,vy,vz); }
563        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() << ")"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines