CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1Analysis::L1AnalysisRecoTrack Class Reference

#include <L1AnalysisRecoTrack.h>

Public Member Functions

L1Analysis::L1AnalysisRecoTrackDataFormatgetData ()
 
 L1AnalysisRecoTrack ()
 
void Reset ()
 
void SetTracks (const reco::TrackCollection &trackColl, unsigned maxTrack)
 
 ~L1AnalysisRecoTrack ()
 

Private Attributes

L1Analysis::L1AnalysisRecoTrackDataFormat track_
 

Detailed Description

Definition at line 16 of file L1AnalysisRecoTrack.h.

Constructor & Destructor Documentation

◆ L1AnalysisRecoTrack()

L1Analysis::L1AnalysisRecoTrack::L1AnalysisRecoTrack ( )
inline

Definition at line 18 of file L1AnalysisRecoTrack.h.

References Reset().

◆ ~L1AnalysisRecoTrack()

L1Analysis::L1AnalysisRecoTrack::~L1AnalysisRecoTrack ( )
inline

Definition at line 19 of file L1AnalysisRecoTrack.h.

19 {};

Member Function Documentation

◆ getData()

L1Analysis::L1AnalysisRecoTrackDataFormat* L1Analysis::L1AnalysisRecoTrack::getData ( void  )
inline

Definition at line 22 of file L1AnalysisRecoTrack.h.

References track_.

22 { return (&track_); }
L1Analysis::L1AnalysisRecoTrackDataFormat track_

◆ Reset()

void L1Analysis::L1AnalysisRecoTrack::Reset ( )
inline

◆ SetTracks()

void L1Analysis::L1AnalysisRecoTrack::SetTracks ( const reco::TrackCollection trackColl,
unsigned  maxTrack 
)

Definition at line 3 of file L1AnalysisRecoTrack.cc.

References L1Analysis::L1AnalysisRecoTrackDataFormat::fHighPurity, L1Analysis::L1AnalysisRecoTrackDataFormat::nHighPurity, L1Analysis::L1AnalysisRecoTrackDataFormat::nTrk, reco::TrackBase::qualityByName(), track_, and pfDisplacedTrackerVertex_cfi::trackColl.

3  {
4  track_.nTrk = trackColl.size();
5 
7  for (reco::TrackCollection::const_iterator itk = trackColl.begin(); itk != trackColl.end(); ++itk) {
8  if (itk->quality(hiPurity))
10  }
11  track_.fHighPurity = static_cast<float>(track_.nHighPurity) / static_cast<float>(track_.nTrk);
12 }
TrackQuality
track quality
Definition: TrackBase.h:150
L1Analysis::L1AnalysisRecoTrackDataFormat track_
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126

Member Data Documentation

◆ track_

L1Analysis::L1AnalysisRecoTrackDataFormat L1Analysis::L1AnalysisRecoTrack::track_
private

Definition at line 26 of file L1AnalysisRecoTrack.h.

Referenced by getData(), Reset(), and SetTracks().