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
reco::EcalIsolatedParticleCandidate::EcalIsolatedParticleCandidate
EcalIsolatedParticleCandidate(double etatau, double phitau, double enIn, double enOut, int nhitIn, int nhitOut)
Definition: EcalIsolatedParticleCandidate.h:35
reco::EcalIsolatedParticleCandidate::enOut_
double enOut_
energy in outer cone around L1 tau jet
Definition: EcalIsolatedParticleCandidate.h:71
EcalIsolatedParticleCandidateFwd.h
reco::EcalIsolatedParticleCandidate::EcalIsolatedParticleCandidate
EcalIsolatedParticleCandidate(const l1extra::L1JetParticleRef &l1tau, double etatau, double phitau, double enIn, double enOut, int nhitIn, int nhitOut)
Definition: EcalIsolatedParticleCandidate.h:20
reco::EcalIsolatedParticleCandidate::l1TauJet
virtual l1extra::L1JetParticleRef l1TauJet() const
reference to a tau jet
Definition: EcalIsolatedParticleCandidate.cc:11
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
edm::Ref< L1JetParticleCollection >
reco::EcalIsolatedParticleCandidate::nhitIn_
int nhitIn_
number of hits in inner cone
Definition: EcalIsolatedParticleCandidate.h:73
reco::EcalIsolatedParticleCandidate::energyIn
double energyIn() const
ECAL energy in the inner cone around tau jet.
Definition: EcalIsolatedParticleCandidate.h:51
reco::EcalIsolatedParticleCandidate::~EcalIsolatedParticleCandidate
~EcalIsolatedParticleCandidate() override
destructor
Definition: EcalIsolatedParticleCandidate.cc:5
LeafCandidate.h
reco::EcalIsolatedParticleCandidate::clone
EcalIsolatedParticleCandidate * clone() const override
returns a clone of the candidate
Definition: EcalIsolatedParticleCandidate.cc:7
L1JetParticleFwd.h
reco::EcalIsolatedParticleCandidate::nhitOut_
int nhitOut_
number of hits in inner cone
Definition: EcalIsolatedParticleCandidate.h:75
reco::EcalIsolatedParticleCandidate::l1tau_
l1extra::L1JetParticleRef l1tau_
reference to a L1 tau jet
Definition: EcalIsolatedParticleCandidate.h:67
reco::EcalIsolatedParticleCandidate
Definition: EcalIsolatedParticleCandidate.h:15
reco::EcalIsolatedParticleCandidate::EcalIsolatedParticleCandidate
EcalIsolatedParticleCandidate()
Definition: EcalIsolatedParticleCandidate.h:18
reco::EcalIsolatedParticleCandidate::nHitOut
int nHitOut() const
number of ECAL hits in the outer cone around tau jet
Definition: EcalIsolatedParticleCandidate.h:60
reco::EcalIsolatedParticleCandidate::nHitIn
int nHitIn() const
number of ECAL hits in the inner cone around tau jet
Definition: EcalIsolatedParticleCandidate.h:57
reco::EcalIsolatedParticleCandidate::energyOut
double energyOut() const
ECAL energy in the outer cone around tau jet.
Definition: EcalIsolatedParticleCandidate.h:54
reco::LeafCandidate
Definition: LeafCandidate.h:16
OverlapChecker.h
PtEtaPhiMass
Definition: PtEtaPhiMass.h:16
L1JetParticle.h
reco::EcalIsolatedParticleCandidate::enIn_
double enIn_
energy in inner cone around L1 tau jet
Definition: EcalIsolatedParticleCandidate.h:69
reco::EcalIsolatedParticleCandidate::setL1TauJet
void setL1TauJet(const l1extra::L1JetParticleRef &l1tau)
set reference to l1 tau jet
Definition: EcalIsolatedParticleCandidate.h:63