CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::GsfPFRecTrack Class Reference

#include <GsfPFRecTrack.h>

Inheritance diagram for reco::GsfPFRecTrack:
reco::PFRecTrack reco::PFTrack

List of all members.

Public Member Functions

void addBrem (const reco::PFBrem &brem)
 add a Bremsstrahlung photon
void addConvBremPFRecTrackRef (const reco::PFRecTrackRef &pfrectracksref)
 PFRecTrackRef from conv Brems
void calculateBremPositionREP ()
 calculate posrep_ once and for all for each brem
const std::vector
< reco::PFRecTrackRef > & 
convBremPFRecTrackRef () const
 GsfPFRecTrack ()
 GsfPFRecTrack (double charge, AlgoType_t algoType, int trackId, const reco::GsfTrackRef &gtrackref, const edm::Ref< std::vector< PFRecTrack > > &kfpfrectrackref)
const reco::GsfTrackRefgsfTrackRef () const
const edm::Ref< std::vector
< PFRecTrack > > & 
kfPFRecTrackRef () const
const std::vector< reco::PFBrem > & PFRecBrem () const
int trackId () const

Private Attributes

std::vector< reco::PFRecTrackRefassoPFRecTrack_
 vector of PFRecTrackRef from conv Brems
reco::GsfTrackRef gsfTrackRef_
 reference to corresponding gsf track
reco::PFRecTrackRef kfPFRecTrackRef_
 ref to the corresponfing PfRecTrack with KF algo (only for PFRecTrack built from GSF track)
std::vector< reco::PFBrempfBremVec_
 vector of PFBrem (empty for KF tracks)
int trackId_
 track id

Detailed Description

Definition at line 23 of file GsfPFRecTrack.h.


Constructor & Destructor Documentation

reco::GsfPFRecTrack::GsfPFRecTrack ( ) [inline]

Definition at line 27 of file GsfPFRecTrack.h.

{};
GsfPFRecTrack::GsfPFRecTrack ( double  charge,
AlgoType_t  algoType,
int  trackId,
const reco::GsfTrackRef gtrackref,
const edm::Ref< std::vector< PFRecTrack > > &  kfpfrectrackref 
)

Definition at line 8 of file GsfPFRecTrack.cc.

References trackId(), and trackId_.

                                                                                    : 
  PFRecTrack(charge,algoType),
  gsfTrackRef_(gsftrackRef),
  kfPFRecTrackRef_(kfpfrectrackref),
  pfBremVec_(0)
{
trackId_=trackId;
}

Member Function Documentation

void GsfPFRecTrack::addBrem ( const reco::PFBrem brem)

add a Bremsstrahlung photon

Definition at line 24 of file GsfPFRecTrack.cc.

References pfBremVec_.

Referenced by PFTrackTransformer::addPointsAndBrems().

                                            {
  pfBremVec_.push_back(brem);
}
void GsfPFRecTrack::addConvBremPFRecTrackRef ( const reco::PFRecTrackRef pfrectracksref)

PFRecTrackRef from conv Brems

Definition at line 36 of file GsfPFRecTrack.cc.

References assoPFRecTrack_.

                                                                              {
  assoPFRecTrack_.push_back(pfrectracksref);
}
void GsfPFRecTrack::calculateBremPositionREP ( )

calculate posrep_ once and for all for each brem

Definition at line 30 of file GsfPFRecTrack.cc.

References reco::PFTrack::calculatePositionREP(), j, and pfBremVec_.

                                        { 
  for ( unsigned j=0; j<pfBremVec_.size(); ++j ) 
    pfBremVec_[j].calculatePositionREP();
}
const std::vector<reco::PFRecTrackRef>& reco::GsfPFRecTrack::convBremPFRecTrackRef ( ) const [inline]
Returns:
vector of PFRecTrackRef from Conv Brem

Definition at line 60 of file GsfPFRecTrack.h.

References assoPFRecTrack_.

{return assoPFRecTrack_;}
const reco::GsfTrackRef& reco::GsfPFRecTrack::gsfTrackRef ( ) const [inline]
Returns:
reference to corresponding gsftrack

Definition at line 38 of file GsfPFRecTrack.h.

References gsfTrackRef_.

Referenced by ConvBremPFTrackFinder::runConvBremFinder(), and PFElecTkProducer::selectSecondaries().

{return gsfTrackRef_;}
const edm::Ref<std::vector<PFRecTrack> >& reco::GsfPFRecTrack::kfPFRecTrackRef ( ) const [inline]
Returns:
reference to corresponding KF PFRecTrack (only for GSF PFRecTrack)

Definition at line 42 of file GsfPFRecTrack.h.

References kfPFRecTrackRef_.

Referenced by ConvBremPFTrackFinder::runConvBremFinder(), and PFElecTkProducer::selectSecondaries().

{return kfPFRecTrackRef_;} 
const std::vector<reco::PFBrem>& reco::GsfPFRecTrack::PFRecBrem ( ) const [inline]
Returns:
the vector of PFBrem

Definition at line 50 of file GsfPFRecTrack.h.

References pfBremVec_.

Referenced by ConvBremPFTrackFinder::runConvBremFinder(), and PFElecTkProducer::selectSecondaries().

{return pfBremVec_;}
int reco::GsfPFRecTrack::trackId ( ) const [inline]
Returns:
id

Reimplemented from reco::PFRecTrack.

Definition at line 53 of file GsfPFRecTrack.h.

References trackId_.

Referenced by GsfPFRecTrack().

{return trackId_;}

Member Data Documentation

vector of PFRecTrackRef from conv Brems

Definition at line 73 of file GsfPFRecTrack.h.

Referenced by addConvBremPFRecTrackRef(), and convBremPFRecTrackRef().

reference to corresponding gsf track

Definition at line 64 of file GsfPFRecTrack.h.

Referenced by gsfTrackRef().

ref to the corresponfing PfRecTrack with KF algo (only for PFRecTrack built from GSF track)

Definition at line 67 of file GsfPFRecTrack.h.

Referenced by kfPFRecTrackRef().

vector of PFBrem (empty for KF tracks)

Definition at line 70 of file GsfPFRecTrack.h.

Referenced by addBrem(), calculateBremPositionREP(), and PFRecBrem().

track id

Reimplemented from reco::PFRecTrack.

Definition at line 76 of file GsfPFRecTrack.h.

Referenced by GsfPFRecTrack(), and trackId().