CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalIsolatedParticleCandidate.h
Go to the documentation of this file.
1 #ifndef HcalIsolatedTrack_EcalIsolatedParticleCandidate_h
2 #define HcalIsolatedTrack_EcalIsolatedParticleCandidate_h
3 
12 
13 namespace reco {
14 
16 
17  public:
18 
19  // default constructor
21  // constructor from a tau jet
22  EcalIsolatedParticleCandidate(const l1extra::L1JetParticleRef& l1tau, double etatau, double phitau, double enIn, double enOut, int nhitIn, int nhitOut):
24  l1tau_(l1tau), eta_(etatau),phi_(phitau),enIn_(enIn), enOut_(enOut), nhitIn_(nhitIn), nhitOut_(nhitOut){}
25 
26  //constructor with null candidate
27  EcalIsolatedParticleCandidate(double etatau, double phitau, double enIn, double enOut, int nhitIn, int nhitOut):
28  LeafCandidate( 0, LorentzVector() ), eta_(etatau),phi_(phitau),enIn_(enIn), enOut_(enOut), nhitIn_(nhitIn), nhitOut_(nhitOut) {}
32  virtual EcalIsolatedParticleCandidate * clone() const;
33 
35  virtual l1extra::L1JetParticleRef l1TauJet() const;
36 
38  double eta() const {return eta_; }
39 
41  double phi() const {return phi_; }
42 
44  double energyIn() const {return enIn_; }
45 
47  double energyOut() const {return enOut_;}
48 
50  int nHitIn() const {return nhitIn_;}
51 
53  int nHitOut() const {return nhitOut_;}
54 
56  void setL1TauJet( const l1extra::L1JetParticleRef & l1tau ) { l1tau_ = l1tau; }
57 
58 
59  private:
63  double eta_;
65  double phi_;
67  double enIn_;
69  double enOut_;
71  int nhitIn_;
73  int nhitOut_;
74 
75  };
76 
77 
78 }
79 
80 #endif // HcalIsolatedTrack_EcalIsolatedParticleCandidate_h
EcalIsolatedParticleCandidate(const l1extra::L1JetParticleRef &l1tau, double etatau, double phitau, double enIn, double enOut, int nhitIn, int nhitOut)
int nhitOut_
number of hits in inner cone
int nHitOut() const
number of ECAL hits in the outer cone around tau jet
int nHitIn() const
number of ECAL hits in the inner cone around tau jet
double enOut_
energy in outer cone around L1 tau jet
double energyIn() const
ECAL energy in the inner cone around tau jet.
EcalIsolatedParticleCandidate(double etatau, double phitau, double enIn, double enOut, int nhitIn, int nhitOut)
l1extra::L1JetParticleRef l1tau_
reference to a L1 tau jet
int nhitIn_
number of hits in inner cone
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:38
void setL1TauJet(const l1extra::L1JetParticleRef &l1tau)
set reference to l1 tau jet
double enIn_
energy in inner cone around L1 tau jet
virtual EcalIsolatedParticleCandidate * clone() const
returns a clone of the candidate
virtual l1extra::L1JetParticleRef l1TauJet() const
reference to a tau jet
double energyOut() const
ECAL energy in the outer cone around tau jet.