CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
13 BaseTau::BaseTau(Charge q,const LorentzVector& p4,const Point& vtx) : RecoCandidate(q,p4,vtx,-15*q){
14  alternatLorentzVect_.SetPx(NAN);
15  alternatLorentzVect_.SetPy(NAN);
16  alternatLorentzVect_.SetPz(NAN);
17  alternatLorentzVect_.SetE(NAN);
18 
19 }
20 
21 BaseTau* BaseTau::clone()const{return new BaseTau(*this);}
22 
25 
27 void BaseTau::setleadTrack(const TrackRef& myTrack) { leadTrack_ = myTrack;}
29 void BaseTau::setsignalTracks(const TrackRefVector& myTracks) { signalTracks_ = myTracks;}
31 void BaseTau::setisolationTracks(const TrackRefVector& myTracks) { isolationTracks_ = myTracks;}
32 
33 bool BaseTau::overlap(const Candidate& theCand)const{
34  const RecoCandidate* theRecoCand=dynamic_cast<const RecoCandidate *>(&theCand);
35  return (theRecoCand!=0 && (checkOverlap(track(),theRecoCand->track())));
36 }
virtual bool overlap(const Candidate &) const
check overlap with another candidate
Definition: BaseTau.cc:33
virtual reco::TrackRef leadTrack() const
Definition: BaseTau.cc:26
int Charge
electric charge type
Definition: Candidate.h:36
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:31
virtual const reco::TrackRefVector & isolationTracks() const
Definition: BaseTau.cc:30
void setleadTrack(const TrackRef &)
Definition: BaseTau.cc:27
math::XYZTLorentzVector alternatLorentzVect() const
Definition: BaseTau.cc:23
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:30
double p4[4]
Definition: TauolaWrapper.h:92
void setsignalTracks(const TrackRefVector &)
Definition: BaseTau.cc:29
reco::TrackRefVector isolationTracks_
Definition: BaseTau.h:46
virtual const reco::TrackRefVector & signalTracks() const
Definition: BaseTau.cc:28
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:38
void setalternatLorentzVect(math::XYZTLorentzVector)
Definition: BaseTau.cc:24
math::XYZPoint Point
point in the space
Definition: Candidate.h:42
reco::TrackRef leadTrack_
Definition: BaseTau.h:45
x
Definition: VDTMath.h:216
reco::TrackRefVector signalTracks_
Definition: BaseTau.h:46
BaseTau * clone() const
returns a clone of the Candidate object
Definition: BaseTau.cc:21