test
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):
23  LeafCandidate( 0, PtEtaPhiMass(0.,etatau, phitau, 0.) )
24  ,l1tau_(l1tau), 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, PtEtaPhiMass(0.,etatau, phitau, 0.) )
29  ,enIn_(enIn), enOut_(enOut), nhitIn_(nhitIn), nhitOut_(nhitOut) {}
30 
34  virtual EcalIsolatedParticleCandidate * clone() const;
35 
37  virtual l1extra::L1JetParticleRef l1TauJet() const;
38 
40  double energyIn() const {return enIn_; }
41 
43  double energyOut() const {return enOut_;}
44 
46  int nHitIn() const {return nhitIn_;}
47 
49  int nHitOut() const {return nhitOut_;}
50 
52  void setL1TauJet( const l1extra::L1JetParticleRef & l1tau ) { l1tau_ = l1tau; }
53 
54 
55  private:
59  double enIn_;
61  double enOut_;
63  int nhitIn_;
65  int nhitOut_;
66 
67  };
68 
69 
70 }
71 
72 #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
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.