test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 18 of file L1AnalysisRecoTrack.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisRecoTrack::L1AnalysisRecoTrack ( )
inline

Definition at line 21 of file L1AnalysisRecoTrack.h.

References Reset().

L1Analysis::L1AnalysisRecoTrack::~L1AnalysisRecoTrack ( )
inline

Definition at line 22 of file L1AnalysisRecoTrack.h.

22 {};

Member Function Documentation

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

Definition at line 25 of file L1AnalysisRecoTrack.h.

References track_.

25 {return (&track_);}
L1Analysis::L1AnalysisRecoTrackDataFormat track_
void L1Analysis::L1AnalysisRecoTrack::Reset ( void  )
inline
void L1Analysis::L1AnalysisRecoTrack::SetTracks ( const reco::TrackCollection trackColl,
unsigned  maxTrack 
)

Definition at line 5 of file L1AnalysisRecoTrack.cc.

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

6 {
7 
8  track_.nTrk = trackColl.size();
9 
11  for(reco::TrackCollection::const_iterator itk = trackColl.begin();
12  itk!=trackColl.end();
13  ++itk){
14  if(itk->quality(hiPurity)) track_.nHighPurity++;
15  }
16  track_.fHighPurity = static_cast<float>(track_.nHighPurity)/static_cast<float>(track_.nTrk);
17 
18 }
TrackQuality
track quality
Definition: TrackBase.h:151
L1Analysis::L1AnalysisRecoTrackDataFormat track_
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:125

Member Data Documentation

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

Definition at line 29 of file L1AnalysisRecoTrack.h.

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