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 addConvBremGsfPFRecTrackRef (const reco::GsfPFRecTrackRef &gsfpfrectracksref)
 GsfPFRecTrackRef from duplicates
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::GsfPFRecTrackRef > & 
convBremGsfPFRecTrackRef () const
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::GsfPFRecTrackRef
assoGsfPFRecTrack_
 vector of GsfPFRecTrackRef from duplicates
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 24 of file GsfPFRecTrack.h.


Constructor & Destructor Documentation

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

Definition at line 28 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 22 of file GsfPFRecTrack.cc.

References pfBremVec_.

Referenced by PFTrackTransformer::addPointsAndBrems().

                                            {
  pfBremVec_.push_back(brem);
}
void GsfPFRecTrack::addConvBremGsfPFRecTrackRef ( const reco::GsfPFRecTrackRef gsfpfrectracksref)

GsfPFRecTrackRef from duplicates

Definition at line 38 of file GsfPFRecTrack.cc.

References assoGsfPFRecTrack_.

                                                                                       {
  assoGsfPFRecTrack_.push_back(gsfpfrectracksref);
}
void GsfPFRecTrack::addConvBremPFRecTrackRef ( const reco::PFRecTrackRef pfrectracksref)

PFRecTrackRef from conv Brems

Definition at line 33 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 27 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::GsfPFRecTrackRef>& reco::GsfPFRecTrack::convBremGsfPFRecTrackRef ( ) const [inline]
Returns:
vector of GsfPFRecTrackRef from duplicates

Definition at line 67 of file GsfPFRecTrack.h.

References assoGsfPFRecTrack_.

const std::vector<reco::PFRecTrackRef>& reco::GsfPFRecTrack::convBremPFRecTrackRef ( ) const [inline]
Returns:
vector of PFRecTrackRef from Conv Brem

Definition at line 61 of file GsfPFRecTrack.h.

References assoPFRecTrack_.

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

Definition at line 39 of file GsfPFRecTrack.h.

References gsfTrackRef_.

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

{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 43 of file GsfPFRecTrack.h.

References kfPFRecTrackRef_.

Referenced by ConvBremPFTrackFinder::runConvBremFinder().

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

Reimplemented from reco::PFRecTrack.

Definition at line 54 of file GsfPFRecTrack.h.

References trackId_.

Referenced by GsfPFRecTrack().

{return trackId_;}

Member Data Documentation

vector of GsfPFRecTrackRef from duplicates

Definition at line 83 of file GsfPFRecTrack.h.

Referenced by addConvBremGsfPFRecTrackRef(), and convBremGsfPFRecTrackRef().

vector of PFRecTrackRef from conv Brems

Definition at line 80 of file GsfPFRecTrack.h.

Referenced by addConvBremPFRecTrackRef(), and convBremPFRecTrackRef().

reference to corresponding gsf track

Definition at line 71 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 74 of file GsfPFRecTrack.h.

Referenced by kfPFRecTrackRef().

vector of PFBrem (empty for KF tracks)

Definition at line 77 of file GsfPFRecTrack.h.

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

track id

Reimplemented from reco::PFRecTrack.

Definition at line 86 of file GsfPFRecTrack.h.

Referenced by GsfPFRecTrack(), and trackId().