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
reco::CSCHaloData Class Reference

#include <CSCHaloData.h>

Public Member Functions

 CSCHaloData ()
 
bool CSCHaloHLTAccept () const
 
const std::vector< GlobalPoint > & GetCSCTrackImpactPositions () const
 
std::vector< GlobalPoint > & GetCSCTrackImpactPositions ()
 
edm::RefVector
< reco::TrackCollection > & 
GetTracks ()
 
const edm::RefVector
< reco::TrackCollection > & 
GetTracks () const
 
int NHaloTracks (HaloData::Endcap z=HaloData::both) const
 
int NHaloTriggers (HaloData::Endcap z=HaloData::both) const
 
short int NOutOfTimeHits () const
 
short int NOutOfTimeTriggers (HaloData::Endcap z=HaloData::both) const
 
int NumberOfHaloTracks (HaloData::Endcap z=HaloData::both) const
 
int NumberOfHaloTriggers (HaloData::Endcap z=HaloData::both) const
 
short int NumberOfOutOfTimeTriggers (HaloData::Endcap z=HaloData::both) const
 
short int NumberOfOutTimeHits () const
 
void SetHLTBit (bool status)
 
void SetNOutOfTimeHits (short int num)
 
void SetNOutOfTimeTriggers (short int PlusZ, short int MinusZ)
 
void SetNumberOfHaloTriggers (int PlusZ, int MinusZ)
 
virtual ~CSCHaloData ()
 

Private Attributes

bool HLTAccept
 
short int nOutOfTimeHits
 
short int nOutOfTimeTriggers_MinusZ
 
short int nOutOfTimeTriggers_PlusZ
 
int nTracks_MinusZ
 
int nTracks_PlusZ
 
int nTriggers_MinusZ
 
int nTriggers_PlusZ
 
std::vector< GlobalPointTheGlobalPositions
 
edm::RefVector
< reco::TrackCollection
TheTrackRefs
 

Detailed Description

Definition at line 32 of file CSCHaloData.h.

Constructor & Destructor Documentation

CSCHaloData::CSCHaloData ( )
virtual reco::CSCHaloData::~CSCHaloData ( )
inlinevirtual

Definition at line 38 of file CSCHaloData.h.

38 {}

Member Function Documentation

bool reco::CSCHaloData::CSCHaloHLTAccept ( ) const
inline

Definition at line 48 of file CSCHaloData.h.

References HLTAccept.

Referenced by BeamHaloAnalyzer::analyze().

48 {return HLTAccept;}
const std::vector<GlobalPoint>& reco::CSCHaloData::GetCSCTrackImpactPositions ( ) const
inline

Definition at line 74 of file CSCHaloData.h.

References TheGlobalPositions.

Referenced by BeamHaloAnalyzer::analyze(), GlobalHaloAlgo::Calculate(), and CSCHaloAlgo::Calculate().

74 {return TheGlobalPositions;}
std::vector< GlobalPoint > TheGlobalPositions
Definition: CSCHaloData.h:81
std::vector<GlobalPoint>& reco::CSCHaloData::GetCSCTrackImpactPositions ( )
inline

Definition at line 75 of file CSCHaloData.h.

References TheGlobalPositions.

75 {return TheGlobalPositions;}
std::vector< GlobalPoint > TheGlobalPositions
Definition: CSCHaloData.h:81
edm::RefVector<reco::TrackCollection>& reco::CSCHaloData::GetTracks ( )
inline

Definition at line 58 of file CSCHaloData.h.

References TheTrackRefs.

Referenced by BeamHaloAnalyzer::analyze(), and CSCHaloAlgo::Calculate().

58 {return TheTrackRefs;}
edm::RefVector< reco::TrackCollection > TheTrackRefs
Definition: CSCHaloData.h:78
const edm::RefVector<reco::TrackCollection>& reco::CSCHaloData::GetTracks ( ) const
inline

Definition at line 59 of file CSCHaloData.h.

References TheTrackRefs.

59 {return TheTrackRefs;}
edm::RefVector< reco::TrackCollection > TheTrackRefs
Definition: CSCHaloData.h:78
int reco::CSCHaloData::NHaloTracks ( HaloData::Endcap  z = HaloData::both) const
inline

Definition at line 45 of file CSCHaloData.h.

References NumberOfHaloTracks(), and z.

45 { return NumberOfHaloTracks(z) ;}
int NumberOfHaloTracks(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:83
Definition: DDAxes.h:10
int reco::CSCHaloData::NHaloTriggers ( HaloData::Endcap  z = HaloData::both) const
inline

Definition at line 42 of file CSCHaloData.h.

References NumberOfHaloTriggers(), and z.

42 { return NumberOfHaloTriggers(z);}
Definition: DDAxes.h:10
int NumberOfHaloTriggers(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:63
short int reco::CSCHaloData::NOutOfTimeHits ( ) const
inline

Definition at line 55 of file CSCHaloData.h.

References nOutOfTimeHits.

Referenced by BeamHaloAnalyzer::analyze().

55 {return nOutOfTimeHits;}
short int nOutOfTimeHits
Definition: CSCHaloData.h:95
short int reco::CSCHaloData::NOutOfTimeTriggers ( HaloData::Endcap  z = HaloData::both) const
inline

Definition at line 52 of file CSCHaloData.h.

References NumberOfOutOfTimeTriggers(), and z.

Referenced by BeamHaloAnalyzer::analyze().

short int NumberOfOutOfTimeTriggers(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:73
Definition: DDAxes.h:10
int CSCHaloData::NumberOfHaloTracks ( HaloData::Endcap  z = HaloData::both) const

Definition at line 83 of file CSCHaloData.cc.

References reco::HaloData::both, i, reco::HaloData::minus, n, reco::HaloData::plus, edm::RefVector< C, T, F >::size(), and TheTrackRefs.

Referenced by BeamHaloAnalyzer::analyze(), NHaloTracks(), and reco::BeamHaloSummaryProducer::produce().

84 {
85  int n = 0 ;
86  for(unsigned int i = 0 ; i < TheTrackRefs.size() ; i++ )
87  {
89  // Does the track go through both endcaps ?
90  bool Traversing = (iTrack->outerPosition().z() > 0 && iTrack->innerPosition().z() < 0) || (iTrack->outerPosition().z() < 0 && iTrack->innerPosition().z() > 0);
91  // Does the track go through only +Z endcap ?
92  bool PlusZ = (iTrack->outerPosition().z() > 0 && iTrack->innerPosition().z() > 0 ) ;
93  // Does the track go through only -Z endcap ?
94  bool MinusZ = (iTrack->outerPosition().z()< 0 && iTrack->innerPosition().z() < 0) ;
95 
96  if( (z == HaloData::plus) && ( PlusZ || Traversing) )
97  n++;
98  else if( (z == HaloData::minus) && ( MinusZ || Traversing ) )
99  n++;
100  else if( (z == HaloData::both) && (PlusZ || MinusZ || Traversing) )
101  n++ ;
102  }
103  return n;
104 }
int i
Definition: DBlmapReader.cc:9
Definition: DDAxes.h:10
edm::RefVector< reco::TrackCollection > TheTrackRefs
Definition: CSCHaloData.h:78
size_type size() const
Size of the RefVector.
Definition: RefVector.h:85
int CSCHaloData::NumberOfHaloTriggers ( HaloData::Endcap  z = HaloData::both) const
short int CSCHaloData::NumberOfOutOfTimeTriggers ( HaloData::Endcap  z = HaloData::both) const
short int reco::CSCHaloData::NumberOfOutTimeHits ( ) const
inline

Definition at line 54 of file CSCHaloData.h.

References nOutOfTimeHits.

54 { return nOutOfTimeHits;}
short int nOutOfTimeHits
Definition: CSCHaloData.h:95
void reco::CSCHaloData::SetHLTBit ( bool  status)
inline

Definition at line 70 of file CSCHaloData.h.

References HLTAccept, and ntuplemaker::status.

Referenced by CSCHaloAlgo::Calculate().

70 { HLTAccept = status ;}
tuple status
Definition: ntuplemaker.py:245
void reco::CSCHaloData::SetNOutOfTimeHits ( short int  num)
inline

Definition at line 67 of file CSCHaloData.h.

References nOutOfTimeHits.

Referenced by CSCHaloAlgo::Calculate().

67 { nOutOfTimeHits = num ;}
short int nOutOfTimeHits
Definition: CSCHaloData.h:95
long long int num
Definition: procUtils.cc:71
void reco::CSCHaloData::SetNOutOfTimeTriggers ( short int  PlusZ,
short int  MinusZ 
)
inline

Definition at line 65 of file CSCHaloData.h.

References nOutOfTimeTriggers_MinusZ, and nOutOfTimeTriggers_PlusZ.

Referenced by CSCHaloAlgo::Calculate().

short int nOutOfTimeTriggers_MinusZ
Definition: CSCHaloData.h:93
short int nOutOfTimeTriggers_PlusZ
Definition: CSCHaloData.h:92
void reco::CSCHaloData::SetNumberOfHaloTriggers ( int  PlusZ,
int  MinusZ 
)
inline

Definition at line 62 of file CSCHaloData.h.

References nTriggers_MinusZ, and nTriggers_PlusZ.

Referenced by CSCHaloAlgo::Calculate().

62 { nTriggers_PlusZ =PlusZ; nTriggers_MinusZ = MinusZ ;}

Member Data Documentation

bool reco::CSCHaloData::HLTAccept
private

Definition at line 86 of file CSCHaloData.h.

Referenced by CSCHaloData(), CSCHaloHLTAccept(), and SetHLTBit().

short int reco::CSCHaloData::nOutOfTimeHits
private

Definition at line 95 of file CSCHaloData.h.

Referenced by CSCHaloData(), NOutOfTimeHits(), NumberOfOutTimeHits(), and SetNOutOfTimeHits().

short int reco::CSCHaloData::nOutOfTimeTriggers_MinusZ
private

Definition at line 93 of file CSCHaloData.h.

Referenced by CSCHaloData(), NumberOfOutOfTimeTriggers(), and SetNOutOfTimeTriggers().

short int reco::CSCHaloData::nOutOfTimeTriggers_PlusZ
private

Definition at line 92 of file CSCHaloData.h.

Referenced by CSCHaloData(), NumberOfOutOfTimeTriggers(), and SetNOutOfTimeTriggers().

int reco::CSCHaloData::nTracks_MinusZ
private

Definition at line 89 of file CSCHaloData.h.

Referenced by CSCHaloData().

int reco::CSCHaloData::nTracks_PlusZ
private

Definition at line 88 of file CSCHaloData.h.

Referenced by CSCHaloData().

int reco::CSCHaloData::nTriggers_MinusZ
private

Definition at line 83 of file CSCHaloData.h.

Referenced by CSCHaloData(), NumberOfHaloTriggers(), and SetNumberOfHaloTriggers().

int reco::CSCHaloData::nTriggers_PlusZ
private

Definition at line 82 of file CSCHaloData.h.

Referenced by CSCHaloData(), NumberOfHaloTriggers(), and SetNumberOfHaloTriggers().

std::vector<GlobalPoint> reco::CSCHaloData::TheGlobalPositions
private

Definition at line 81 of file CSCHaloData.h.

Referenced by GetCSCTrackImpactPositions().

edm::RefVector<reco::TrackCollection> reco::CSCHaloData::TheTrackRefs
private

Definition at line 78 of file CSCHaloData.h.

Referenced by GetTracks(), and NumberOfHaloTracks().