CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1tVertexFinder::L1Track Class Reference

Simple wrapper class for TTTrack. More...

#include <L1Track.h>

Inheritance diagram for l1tVertexFinder::L1Track:
l1tVertexFinder::L1TrackTruthMatched

Public Member Functions

float chi2dof () const
 
float eta () const
 
unsigned int getNumStubs () const
 
const edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > & getTTTrackPtr () const
 
 L1Track (const edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ >> &aTrack)
 
double MVA1 () const
 
float phi0 () const
 
float pt () const
 
void setWeight (float w)
 
float weight () const
 
float z0 () const
 
 ~L1Track ()
 

Private Attributes

edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > track_
 
float weight_
 

Detailed Description

Simple wrapper class for TTTrack.

Definition at line 17 of file L1Track.h.

Constructor & Destructor Documentation

◆ L1Track()

l1tVertexFinder::L1Track::L1Track ( const edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ >> &  aTrack)
inline

Definition at line 19 of file L1Track.h.

19 : track_(aTrack){};
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > track_
Definition: L1Track.h:35

◆ ~L1Track()

l1tVertexFinder::L1Track::~L1Track ( )
inline

Definition at line 20 of file L1Track.h.

20 {};

Member Function Documentation

◆ chi2dof()

float l1tVertexFinder::L1Track::chi2dof ( ) const
inline

Definition at line 31 of file L1Track.h.

References track_.

31 { return track_->chi2Red(); };
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > track_
Definition: L1Track.h:35

◆ eta()

float l1tVertexFinder::L1Track::eta ( void  ) const
inline

Definition at line 22 of file L1Track.h.

References track_.

Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), Jet.Jet::jetID(), datamodel.Object::p4(), and Jet.Jet::puJetId().

22 { return track_->momentum().eta(); };
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > track_
Definition: L1Track.h:35

◆ getNumStubs()

unsigned int l1tVertexFinder::L1Track::getNumStubs ( ) const
inline

Definition at line 33 of file L1Track.h.

References track_.

33 { return track_->getStubRefs().size(); }
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > track_
Definition: L1Track.h:35

◆ getTTTrackPtr()

const edm::Ptr<TTTrack<Ref_Phase2TrackerDigi_> >& l1tVertexFinder::L1Track::getTTTrackPtr ( ) const
inline

Definition at line 35 of file L1Track.h.

35 { return track_; };
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > track_
Definition: L1Track.h:35

◆ MVA1()

double l1tVertexFinder::L1Track::MVA1 ( ) const
inline

Definition at line 28 of file L1Track.h.

References track_.

28 { return track_->trkMVA1(); }; //Track Quality BDT
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > track_
Definition: L1Track.h:35

◆ phi0()

float l1tVertexFinder::L1Track::phi0 ( ) const
inline

Definition at line 23 of file L1Track.h.

References track_.

23 { return track_->momentum().phi(); };
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > track_
Definition: L1Track.h:35

◆ pt()

float l1tVertexFinder::L1Track::pt ( ) const
inline

◆ setWeight()

void l1tVertexFinder::L1Track::setWeight ( float  w)
inline

Definition at line 27 of file L1Track.h.

References w(), and weight_.

27 { weight_ = w; };
T w() const

◆ weight()

float l1tVertexFinder::L1Track::weight ( ) const
inline

Definition at line 26 of file L1Track.h.

References weight_.

26 { return weight_; };

◆ z0()

float l1tVertexFinder::L1Track::z0 ( ) const
inline

Definition at line 25 of file L1Track.h.

References track_.

Referenced by l1tVertexFinder::VertexFinder::adaptiveVertexReconstruction(), l1tVertexFinder::VertexFinder::SortTracksByZ0::operator()(), and l1tVertexFinder::VertexFinder::PVR().

25 { return track_->POCA().z(); };
edm::Ptr< TTTrack< Ref_Phase2TrackerDigi_ > > track_
Definition: L1Track.h:35

Member Data Documentation

◆ track_

edm::Ptr<TTTrack<Ref_Phase2TrackerDigi_> > l1tVertexFinder::L1Track::track_
private

Definition at line 35 of file L1Track.h.

Referenced by chi2dof(), eta(), getNumStubs(), MVA1(), phi0(), pt(), and z0().

◆ weight_

float l1tVertexFinder::L1Track::weight_
private

Definition at line 39 of file L1Track.h.

Referenced by setWeight(), and weight().