CMS 3D CMS Logo

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 
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 }
reco::BaseTau::setsignalTracks
void setsignalTracks(const TrackRefVector &)
Definition: BaseTau.cc:27
reco::BaseTau::leadTrack
virtual reco::TrackRef leadTrack() const
Definition: BaseTau.cc:24
reco::BaseTau::alternatLorentzVect_
math::XYZTLorentzVector alternatLorentzVect_
Definition: BaseTau.h:44
reco::RecoCandidate::checkOverlap
bool checkOverlap(const R &r1, const R &r2) const
check if two components overlap
Definition: RecoCandidate.h:67
BaseTau.h
reco::BaseTau::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition: BaseTau.cc:31
data-class-funcs.q
q
Definition: data-class-funcs.py:169
reco::Candidate::Charge
int Charge
electric charge type
Definition: Candidate.h:34
edm::RefVector< TrackCollection >
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::BaseTau::signalTracks
virtual const reco::TrackRefVector & signalTracks() const
Definition: BaseTau.cc:26
reco::RecoCandidate::track
virtual reco::TrackRef track() const
reference to a Track
Definition: RecoCandidate.cc:13
edm::Ref< TrackCollection >
reco::BaseTau::clone
BaseTau * clone() const override
returns a clone of the Candidate object
Definition: BaseTau.cc:19
reco::BaseTau::signalTracks_
reco::TrackRefVector signalTracks_
Definition: BaseTau.h:46
reco::BaseTau
Definition: BaseTau.h:18
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition: badGlobalMuonTaggersAOD_cff.py:5
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
reco::BaseTau::BaseTau
BaseTau()
Definition: BaseTau.cc:5
reco::BaseTau::alternatLorentzVect
math::XYZTLorentzVector alternatLorentzVect() const
Definition: BaseTau.cc:21
reco::BaseTau::isolationTracks_
reco::TrackRefVector isolationTracks_
Definition: BaseTau.h:46
p4
double p4[4]
Definition: TauolaWrapper.h:92
reco::BaseTau::leadTrack_
reco::TrackRef leadTrack_
Definition: BaseTau.h:45
reco::RecoCandidate
Definition: RecoCandidate.h:20
reco::Candidate
Definition: Candidate.h:27
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
reco::BaseTau::setisolationTracks
void setisolationTracks(const TrackRefVector &)
Definition: BaseTau.cc:29
reco::BaseTau::setalternatLorentzVect
void setalternatLorentzVect(const math::XYZTLorentzVector &)
Definition: BaseTau.cc:22
reco::BaseTau::setleadTrack
void setleadTrack(const TrackRef &)
Definition: BaseTau.cc:25
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
reco::BaseTau::isolationTracks
virtual const reco::TrackRefVector & isolationTracks() const
Definition: BaseTau.cc:28