CMS 3D CMS Logo

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  public:
17  // default constructor
19  // constructor from a tau jet
21  double etatau,
22  double phitau,
23  double enIn,
24  double enOut,
25  int nhitIn,
26  int nhitOut)
27  : LeafCandidate(0, PtEtaPhiMass(0., etatau, phitau, 0.)),
28  l1tau_(l1tau),
29  enIn_(enIn),
30  enOut_(enOut),
31  nhitIn_(nhitIn),
32  nhitOut_(nhitOut) {}
33 
34  //constructor with null candidate
35  EcalIsolatedParticleCandidate(double etatau, double phitau, double enIn, double enOut, int nhitIn, int nhitOut)
36  : LeafCandidate(0, PtEtaPhiMass(0., etatau, phitau, 0.)),
37  enIn_(enIn),
38  enOut_(enOut),
39  nhitIn_(nhitIn),
40  nhitOut_(nhitOut) {}
41 
45  EcalIsolatedParticleCandidate* clone() const override;
46 
48  virtual l1extra::L1JetParticleRef l1TauJet() const;
49 
51  double energyIn() const { return enIn_; }
52 
54  double energyOut() const { return enOut_; }
55 
57  int nHitIn() const { return nhitIn_; }
58 
60  int nHitOut() const { return nhitOut_; }
61 
63  void setL1TauJet(const l1extra::L1JetParticleRef& l1tau) { l1tau_ = l1tau; }
64 
65  private:
69  double enIn_;
71  double enOut_;
73  int nhitIn_;
75  int nhitOut_;
76  };
77 
78 } // namespace reco
79 
80 #endif // HcalIsolatedTrack_EcalIsolatedParticleCandidate_h
EcalIsolatedParticleCandidate(const l1extra::L1JetParticleRef &l1tau, double etatau, double phitau, double enIn, double enOut, int nhitIn, int nhitOut)
EcalIsolatedParticleCandidate * clone() const override
returns a clone of the candidate
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
fixed size matrix
double enIn_
energy in inner cone around L1 tau jet
virtual l1extra::L1JetParticleRef l1TauJet() const
reference to a tau jet
double energyOut() const
ECAL energy in the outer cone around tau jet.