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.

18 { Reset(); };

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.

22 { return (&track_); }

References track_.

◆ Reset()

void L1Analysis::L1AnalysisRecoTrack::Reset ( )
inline

Definition at line 23 of file L1AnalysisRecoTrack.h.

23 { track_.Reset(); }

References L1Analysis::L1AnalysisRecoTrackDataFormat::Reset(), and track_.

Referenced by L1AnalysisRecoTrack().

◆ SetTracks()

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

Definition at line 3 of file L1AnalysisRecoTrack.cc.

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 }

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

Member Data Documentation

◆ track_

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

Definition at line 26 of file L1AnalysisRecoTrack.h.

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

pfDisplacedTrackerVertex_cfi.trackColl
trackColl
Definition: pfDisplacedTrackerVertex_cfi.py:6
reco::TrackBase::TrackQuality
TrackQuality
track quality
Definition: TrackBase.h:150
L1Analysis::L1AnalysisRecoTrackDataFormat::nTrk
unsigned int nTrk
Definition: L1AnalysisRecoTrackDataFormat.h:24
L1Analysis::L1AnalysisRecoTrackDataFormat::nHighPurity
unsigned int nHighPurity
Definition: L1AnalysisRecoTrackDataFormat.h:25
L1Analysis::L1AnalysisRecoTrack::track_
L1Analysis::L1AnalysisRecoTrackDataFormat track_
Definition: L1AnalysisRecoTrack.h:26
L1Analysis::L1AnalysisRecoTrack::Reset
void Reset()
Definition: L1AnalysisRecoTrack.h:23
L1Analysis::L1AnalysisRecoTrackDataFormat::Reset
void Reset()
Definition: L1AnalysisRecoTrackDataFormat.h:18
reco::TrackBase::qualityByName
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
L1Analysis::L1AnalysisRecoTrackDataFormat::fHighPurity
double fHighPurity
Definition: L1AnalysisRecoTrackDataFormat.h:26