CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BaseTau.cc
Go to the documentation of this file.
2 
3 using namespace reco;
4 
6  alternatLorentzVect_.SetPx(NAN);
7  alternatLorentzVect_.SetPy(NAN);
8  alternatLorentzVect_.SetPz(NAN);
9  alternatLorentzVect_.SetE(NAN);
10 }
11 
12 BaseTau::BaseTau(Charge q, const LorentzVector& p4, const Point& vtx) : RecoCandidate(q, p4, vtx, -15 * q) {
13  alternatLorentzVect_.SetPx(NAN);
14  alternatLorentzVect_.SetPy(NAN);
15  alternatLorentzVect_.SetPz(NAN);
16  alternatLorentzVect_.SetE(NAN);
17 }
18 
19 BaseTau* BaseTau::clone() const { return new BaseTau(*this); }
20 
23 
25 void BaseTau::setleadTrack(const TrackRef& myTrack) { leadTrack_ = myTrack; }
27 void BaseTau::setsignalTracks(const TrackRefVector& myTracks) { signalTracks_ = myTracks; }
29 void BaseTau::setisolationTracks(const TrackRefVector& myTracks) { isolationTracks_ = myTracks; }
30 
31 bool BaseTau::overlap(const Candidate& theCand) const {
32  const RecoCandidate* theRecoCand = dynamic_cast<const RecoCandidate*>(&theCand);
33  return (theRecoCand != nullptr && (checkOverlap(track(), theRecoCand->track())));
34 }
virtual reco::TrackRef leadTrack() const
Definition: BaseTau.cc:24
int Charge
electric charge type
Definition: Candidate.h:34
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
void setisolationTracks(const TrackRefVector &)
Definition: BaseTau.cc:29
virtual const reco::TrackRefVector & isolationTracks() const
Definition: BaseTau.cc:28
void setleadTrack(const TrackRef &)
Definition: BaseTau.cc:25
math::XYZTLorentzVector alternatLorentzVect() const
Definition: BaseTau.cc:21
virtual reco::TrackRef track() const
reference to a Track
math::XYZTLorentzVector alternatLorentzVect_
Definition: BaseTau.h:44
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
void setsignalTracks(const TrackRefVector &)
Definition: BaseTau.cc:27
reco::TrackRefVector isolationTracks_
Definition: BaseTau.h:46
void setalternatLorentzVect(const math::XYZTLorentzVector &)
Definition: BaseTau.cc:22
virtual const reco::TrackRefVector & signalTracks() const
Definition: BaseTau.cc:26
BaseTau * clone() const override
returns a clone of the Candidate object
Definition: BaseTau.cc:19
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition: BaseTau.cc:31
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
reco::TrackRef leadTrack_
Definition: BaseTau.h:45
reco::TrackRefVector signalTracks_
Definition: BaseTau.h:46