CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

reco::BaseTau Class Reference

#include <BaseTau.h>

Inheritance diagram for reco::BaseTau:
reco::RecoCandidate reco::LeafCandidate reco::Candidate pat::PATObject< reco::BaseTau > reco::CaloTau reco::PFTau pat::Lepton< reco::BaseTau > pat::Tau

List of all members.

Public Member Functions

math::XYZTLorentzVector alternatLorentzVect () const
 BaseTau ()
 BaseTau (Charge q, const LorentzVector &, const Point &=Point(0, 0, 0))
BaseTauclone () const
 returns a clone of the Candidate object
virtual const
reco::TrackRefVector
isolationTracks () const
virtual reco::TrackRef leadTrack () const
void setalternatLorentzVect (math::XYZTLorentzVector)
void setisolationTracks (const TrackRefVector &)
void setleadTrack (const TrackRef &)
void setsignalTracks (const TrackRefVector &)
virtual const
reco::TrackRefVector
signalTracks () const
virtual ~BaseTau ()

Private Member Functions

virtual bool overlap (const Candidate &) const
 check overlap with another candidate

Private Attributes

math::XYZTLorentzVector alternatLorentzVect_
reco::TrackRefVector isolationTracks_
reco::TrackRef leadTrack_
reco::TrackRefVector signalTracks_

Detailed Description

Definition at line 19 of file BaseTau.h.


Constructor & Destructor Documentation

BaseTau::BaseTau ( )

Definition at line 5 of file BaseTau.cc.

References alternatLorentzVect_.

Referenced by clone().

                 {
  alternatLorentzVect_.SetPx(NAN);
  alternatLorentzVect_.SetPy(NAN);
  alternatLorentzVect_.SetPz(NAN);
  alternatLorentzVect_.SetE(NAN);
    
}
BaseTau::BaseTau ( Charge  q,
const LorentzVector p4,
const Point vtx = Point(0,0,0) 
)

Definition at line 13 of file BaseTau.cc.

References alternatLorentzVect_.

                                                                  : RecoCandidate(q,p4,vtx,-15*q){
  alternatLorentzVect_.SetPx(NAN);
  alternatLorentzVect_.SetPy(NAN);
  alternatLorentzVect_.SetPz(NAN);
  alternatLorentzVect_.SetE(NAN);
    
}
virtual reco::BaseTau::~BaseTau ( ) [inline, virtual]

Definition at line 23 of file BaseTau.h.

{}

Member Function Documentation

math::XYZTLorentzVector BaseTau::alternatLorentzVect ( ) const

Definition at line 23 of file BaseTau.cc.

References alternatLorentzVect_.

BaseTau * BaseTau::clone ( void  ) const [virtual]

returns a clone of the Candidate object

Reimplemented from reco::RecoCandidate.

Reimplemented in pat::Tau, reco::CaloTau, reco::PFTau, and pat::Lepton< reco::BaseTau >.

Definition at line 21 of file BaseTau.cc.

References BaseTau().

{return new BaseTau(*this);}
const TrackRefVector & BaseTau::isolationTracks ( ) const [virtual]
TrackRef BaseTau::leadTrack ( ) const [virtual]
bool BaseTau::overlap ( const Candidate ) const [private, virtual]

check overlap with another candidate

Implements reco::RecoCandidate.

Reimplemented in reco::CaloTau, and reco::PFTau.

Definition at line 33 of file BaseTau.cc.

References reco::RecoCandidate::checkOverlap(), and reco::RecoCandidate::track().

                                                  {
  const RecoCandidate* theRecoCand=dynamic_cast<const RecoCandidate *>(&theCand);
  return (theRecoCand!=0 && (checkOverlap(track(),theRecoCand->track())));
}
void BaseTau::setalternatLorentzVect ( math::XYZTLorentzVector  x)

Definition at line 24 of file BaseTau.cc.

References alternatLorentzVect_, and x.

Referenced by reco::tau::RecoTauObjectEmbedder< T >::operator()().

void BaseTau::setisolationTracks ( const TrackRefVector myTracks)

Definition at line 31 of file BaseTau.cc.

References isolationTracks_.

{ isolationTracks_ = myTracks;}
void BaseTau::setleadTrack ( const TrackRef myTrack)

Definition at line 27 of file BaseTau.cc.

References leadTrack_.

{ leadTrack_ = myTrack;}
void BaseTau::setsignalTracks ( const TrackRefVector myTracks)

Definition at line 29 of file BaseTau.cc.

References signalTracks_.

{ signalTracks_ = myTracks;}
const TrackRefVector & BaseTau::signalTracks ( ) const [virtual]

Member Data Documentation

Definition at line 44 of file BaseTau.h.

Referenced by alternatLorentzVect(), BaseTau(), and setalternatLorentzVect().

Reimplemented in pat::Tau.

Definition at line 46 of file BaseTau.h.

Referenced by isolationTracks(), and setisolationTracks().

Reimplemented in pat::Tau.

Definition at line 45 of file BaseTau.h.

Referenced by leadTrack(), and setleadTrack().

Reimplemented in pat::Tau.

Definition at line 46 of file BaseTau.h.

Referenced by setsignalTracks(), and signalTracks().