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 ()
 
bool GetSegmentIsCaloMatched () const
 
bool GetSegmentsInBothEndcaps () const
 
bool GetSegmentsInBothEndcaps_Loose_dTcut_TrkMuUnVeto () const
 
bool GetSegmentsInBothEndcaps_Loose_TrkMuUnVeto () const
 
edm::RefVector
< reco::TrackCollection > & 
GetTracks ()
 
const edm::RefVector
< reco::TrackCollection > & 
GetTracks () const
 
short int NFlatHaloSegments () const
 
short int NFlatHaloSegments_TrkMuUnVeto () 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
 
short int NTracksSmallBeta () const
 
short int NTracksSmallBetaAndSmalldT () const
 
short int NTracksSmalldT () const
 
int NumberOfHaloTracks (HaloData::Endcap z=HaloData::both) const
 
int NumberOfHaloTriggers (HaloData::Endcap z=HaloData::both) const
 
int NumberOfHaloTriggers_TrkMuUnVeto (HaloData::Endcap z=HaloData::both) const
 
short int NumberOfOutOfTimeTriggers (HaloData::Endcap z=HaloData::both) const
 
short int NumberOfOutTimeHits () const
 
void SetHLTBit (bool status)
 
void SetNFlatHaloSegments (short int nSegments)
 
void SetNFlatHaloSegments_TrkMuUnVeto (short int nSegments)
 
void SetNIncomingTracks (short int n_small_dT, short int n_small_beta, short int n_small_both)
 
void SetNOutOfTimeHits (short int num)
 
void SetNOutOfTimeTriggers (short int PlusZ, short int MinusZ)
 
void SetNumberOfHaloTriggers (int PlusZ, int MinusZ)
 
void SetNumberOfHaloTriggers_TrkMuUnVeto (int PlusZ, int MinusZ)
 
void SetSegmentIsCaloMatched (bool b)
 
void SetSegmentsBothEndcaps (bool b)
 
void SetSegmentsBothEndcaps_Loose_dTcut_TrkMuUnVeto (bool b)
 
void SetSegmentsBothEndcaps_Loose_TrkMuUnVeto (bool b)
 
virtual ~CSCHaloData ()
 

Private Attributes

bool HLTAccept
 
short int nFlatHaloSegments
 
short int nFlatHaloSegments_TrkMuUnVeto
 
short int nOutOfTimeHits
 
short int nOutOfTimeTriggers_MinusZ
 
short int nOutOfTimeTriggers_PlusZ
 
int nTracks_MinusZ
 
int nTracks_PlusZ
 
short int nTracks_Small_beta
 
short int nTracks_Small_dT
 
short int nTracks_Small_dT_Small_beta
 
int nTriggers_MinusZ
 
int nTriggers_MinusZ_TrkMuUnVeto
 
int nTriggers_PlusZ
 
int nTriggers_PlusZ_TrkMuUnVeto
 
bool segmentiscalomatched
 
bool segments_in_both_endcaps
 
bool segments_in_both_endcaps_loose_dtcut_TrkMuUnVeto
 
bool segments_in_both_endcaps_loose_TrkMuUnVeto
 
std::vector< GlobalPointTheGlobalPositions
 
edm::RefVector
< reco::TrackCollection
TheTrackRefs
 

Detailed Description

Definition at line 24 of file CSCHaloData.h.

Constructor & Destructor Documentation

CSCHaloData::CSCHaloData ( )

Definition at line 11 of file CSCHaloData.cc.

References HLTAccept, nFlatHaloSegments, nOutOfTimeHits, nOutOfTimeTriggers_MinusZ, nOutOfTimeTriggers_PlusZ, nTracks_MinusZ, nTracks_PlusZ, nTracks_Small_beta, nTracks_Small_dT, nTracks_Small_dT_Small_beta, nTriggers_MinusZ, and nTriggers_PlusZ.

12 {
13  nTriggers_PlusZ = 0;
14  nTriggers_MinusZ = 0 ;
15  nTracks_PlusZ = 0 ;
16  nTracks_MinusZ = 0;
17  HLTAccept=false;
18 
21  nOutOfTimeHits = 0 ;
22 
23  nTracks_Small_dT = 0;
26 
27  // MLR
29  // End MLR
30 }
short int nTracks_Small_dT
Definition: CSCHaloData.h:121
short int nTracks_Small_beta
Definition: CSCHaloData.h:123
short int nOutOfTimeHits
Definition: CSCHaloData.h:119
short int nOutOfTimeTriggers_MinusZ
Definition: CSCHaloData.h:117
short int nOutOfTimeTriggers_PlusZ
Definition: CSCHaloData.h:116
short int nTracks_Small_dT_Small_beta
Definition: CSCHaloData.h:126
short int nFlatHaloSegments
Definition: CSCHaloData.h:130
virtual reco::CSCHaloData::~CSCHaloData ( )
inlinevirtual

Definition at line 30 of file CSCHaloData.h.

30 {}

Member Function Documentation

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

Definition at line 42 of file CSCHaloData.h.

References HLTAccept.

Referenced by BeamHaloAnalyzer::analyze().

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

Definition at line 85 of file CSCHaloData.h.

References TheGlobalPositions.

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

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

Definition at line 86 of file CSCHaloData.h.

References TheGlobalPositions.

86 {return TheGlobalPositions;}
std::vector< GlobalPoint > TheGlobalPositions
Definition: CSCHaloData.h:104
bool reco::CSCHaloData::GetSegmentIsCaloMatched ( ) const
inline

Definition at line 58 of file CSCHaloData.h.

References segmentiscalomatched.

Referenced by reco::BeamHaloSummaryProducer::produce().

58 { return segmentiscalomatched; }
bool reco::CSCHaloData::GetSegmentsInBothEndcaps ( ) const
inline
bool reco::CSCHaloData::GetSegmentsInBothEndcaps_Loose_dTcut_TrkMuUnVeto ( ) const
inline
bool reco::CSCHaloData::GetSegmentsInBothEndcaps_Loose_TrkMuUnVeto ( ) const
inline
edm::RefVector<reco::TrackCollection>& reco::CSCHaloData::GetTracks ( )
inline

Definition at line 66 of file CSCHaloData.h.

References TheTrackRefs.

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

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

Definition at line 67 of file CSCHaloData.h.

References TheTrackRefs.

67 {return TheTrackRefs;}
edm::RefVector< reco::TrackCollection > TheTrackRefs
Definition: CSCHaloData.h:101
short int reco::CSCHaloData::NFlatHaloSegments ( ) const
inline

Definition at line 56 of file CSCHaloData.h.

References nFlatHaloSegments.

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

56 { return nFlatHaloSegments; }
short int nFlatHaloSegments
Definition: CSCHaloData.h:130
short int reco::CSCHaloData::NFlatHaloSegments_TrkMuUnVeto ( ) const
inline

Definition at line 60 of file CSCHaloData.h.

References nFlatHaloSegments_TrkMuUnVeto.

Referenced by reco::BeamHaloSummaryProducer::produce().

short int nFlatHaloSegments_TrkMuUnVeto
Definition: CSCHaloData.h:133
int reco::CSCHaloData::NHaloTracks ( HaloData::Endcap  z = HaloData::both) const
inline

Definition at line 39 of file CSCHaloData.h.

References NumberOfHaloTracks().

39 { return NumberOfHaloTracks(z) ;}
int NumberOfHaloTracks(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:65
int reco::CSCHaloData::NHaloTriggers ( HaloData::Endcap  z = HaloData::both) const
inline

Definition at line 35 of file CSCHaloData.h.

References NumberOfHaloTriggers().

35 { return NumberOfHaloTriggers(z);}
int NumberOfHaloTriggers(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:32
short int reco::CSCHaloData::NOutOfTimeHits ( ) const
inline

Definition at line 49 of file CSCHaloData.h.

References nOutOfTimeHits.

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

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

Definition at line 46 of file CSCHaloData.h.

References NumberOfOutOfTimeTriggers().

Referenced by BeamHaloAnalyzer::analyze().

short int NumberOfOutOfTimeTriggers(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:55
short int reco::CSCHaloData::NTracksSmallBeta ( ) const
inline

Definition at line 52 of file CSCHaloData.h.

References nTracks_Small_beta.

Referenced by BeamHaloAnalyzer::analyze().

52 { return nTracks_Small_beta; }
short int nTracks_Small_beta
Definition: CSCHaloData.h:123
short int reco::CSCHaloData::NTracksSmallBetaAndSmalldT ( ) const
inline

Definition at line 53 of file CSCHaloData.h.

References nTracks_Small_dT_Small_beta.

Referenced by BeamHaloAnalyzer::analyze().

short int nTracks_Small_dT_Small_beta
Definition: CSCHaloData.h:126
short int reco::CSCHaloData::NTracksSmalldT ( ) const
inline

Definition at line 51 of file CSCHaloData.h.

References nTracks_Small_dT.

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

51 { return nTracks_Small_dT;}
short int nTracks_Small_dT
Definition: CSCHaloData.h:121
int CSCHaloData::NumberOfHaloTracks ( HaloData::Endcap  z = HaloData::both) const

Definition at line 65 of file CSCHaloData.cc.

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

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

66 {
67  int n = 0 ;
68  for(unsigned int i = 0 ; i < TheTrackRefs.size() ; i++ )
69  {
71  // Does the track go through both endcaps ?
72  bool Traversing = (iTrack->outerPosition().z() > 0 && iTrack->innerPosition().z() < 0) || (iTrack->outerPosition().z() < 0 && iTrack->innerPosition().z() > 0);
73  // Does the track go through only +Z endcap ?
74  bool PlusZ = (iTrack->outerPosition().z() > 0 && iTrack->innerPosition().z() > 0 ) ;
75  // Does the track go through only -Z endcap ?
76  bool MinusZ = (iTrack->outerPosition().z()< 0 && iTrack->innerPosition().z() < 0) ;
77 
78  if( (z == HaloData::plus) && ( PlusZ || Traversing) )
79  n++;
80  else if( (z == HaloData::minus) && ( MinusZ || Traversing ) )
81  n++;
82  else if( (z == HaloData::both) && (PlusZ || MinusZ || Traversing) )
83  n++ ;
84  }
85  return n;
86 }
int i
Definition: DBlmapReader.cc:9
edm::RefVector< reco::TrackCollection > TheTrackRefs
Definition: CSCHaloData.h:101
size_type size() const
Size of the RefVector.
Definition: RefVector.h:99
int CSCHaloData::NumberOfHaloTriggers ( HaloData::Endcap  z = HaloData::both) const
int CSCHaloData::NumberOfHaloTriggers_TrkMuUnVeto ( 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 48 of file CSCHaloData.h.

References nOutOfTimeHits.

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

Definition at line 81 of file CSCHaloData.h.

References HLTAccept, and ntuplemaker::status.

Referenced by CSCHaloAlgo::Calculate().

81 { HLTAccept = status ;}
tuple status
Definition: ntuplemaker.py:245
void reco::CSCHaloData::SetNFlatHaloSegments ( short int  nSegments)
inline

Definition at line 92 of file CSCHaloData.h.

References nFlatHaloSegments.

Referenced by CSCHaloAlgo::Calculate().

92 {nFlatHaloSegments = nSegments;}
short int nFlatHaloSegments
Definition: CSCHaloData.h:130
void reco::CSCHaloData::SetNFlatHaloSegments_TrkMuUnVeto ( short int  nSegments)
inline

Definition at line 95 of file CSCHaloData.h.

References nFlatHaloSegments_TrkMuUnVeto.

Referenced by CSCHaloAlgo::Calculate().

95 {nFlatHaloSegments_TrkMuUnVeto = nSegments;}
short int nFlatHaloSegments_TrkMuUnVeto
Definition: CSCHaloData.h:133
void reco::CSCHaloData::SetNIncomingTracks ( short int  n_small_dT,
short int  n_small_beta,
short int  n_small_both 
)
inline

Definition at line 77 of file CSCHaloData.h.

References nTracks_Small_beta, nTracks_Small_dT, and nTracks_Small_dT_Small_beta.

Referenced by CSCHaloAlgo::Calculate().

77  { nTracks_Small_dT = n_small_dT;
78  nTracks_Small_beta = n_small_beta; nTracks_Small_dT_Small_beta = n_small_both;}
short int nTracks_Small_dT
Definition: CSCHaloData.h:121
short int nTracks_Small_beta
Definition: CSCHaloData.h:123
short int nTracks_Small_dT_Small_beta
Definition: CSCHaloData.h:126
void reco::CSCHaloData::SetNOutOfTimeHits ( short int  num)
inline

Definition at line 75 of file CSCHaloData.h.

References nOutOfTimeHits, and pileupDistInMC::num.

Referenced by CSCHaloAlgo::Calculate().

75 { nOutOfTimeHits = num ;}
short int nOutOfTimeHits
Definition: CSCHaloData.h:119
void reco::CSCHaloData::SetNOutOfTimeTriggers ( short int  PlusZ,
short int  MinusZ 
)
inline

Definition at line 73 of file CSCHaloData.h.

References nOutOfTimeTriggers_MinusZ, and nOutOfTimeTriggers_PlusZ.

Referenced by CSCHaloAlgo::Calculate().

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

Definition at line 70 of file CSCHaloData.h.

References nTriggers_MinusZ, and nTriggers_PlusZ.

Referenced by CSCHaloAlgo::Calculate().

70 { nTriggers_PlusZ =PlusZ; nTriggers_MinusZ = MinusZ ;}
void reco::CSCHaloData::SetNumberOfHaloTriggers_TrkMuUnVeto ( int  PlusZ,
int  MinusZ 
)
inline
void reco::CSCHaloData::SetSegmentIsCaloMatched ( bool  b)
inline

Definition at line 98 of file CSCHaloData.h.

References b, and segmentiscalomatched.

Referenced by CSCHaloAlgo::Calculate().

double b
Definition: hdecay.h:120
void reco::CSCHaloData::SetSegmentsBothEndcaps ( bool  b)
inline

Definition at line 93 of file CSCHaloData.h.

References b, and segments_in_both_endcaps.

Referenced by CSCHaloAlgo::Calculate().

double b
Definition: hdecay.h:120
bool segments_in_both_endcaps
Definition: CSCHaloData.h:131
void reco::CSCHaloData::SetSegmentsBothEndcaps_Loose_dTcut_TrkMuUnVeto ( bool  b)
inline

Definition at line 97 of file CSCHaloData.h.

References b, and segments_in_both_endcaps_loose_dtcut_TrkMuUnVeto.

Referenced by CSCHaloAlgo::Calculate().

double b
Definition: hdecay.h:120
bool segments_in_both_endcaps_loose_dtcut_TrkMuUnVeto
Definition: CSCHaloData.h:135
void reco::CSCHaloData::SetSegmentsBothEndcaps_Loose_TrkMuUnVeto ( bool  b)
inline

Definition at line 96 of file CSCHaloData.h.

References b, and segments_in_both_endcaps_loose_TrkMuUnVeto.

Referenced by CSCHaloAlgo::Calculate().

double b
Definition: hdecay.h:120
bool segments_in_both_endcaps_loose_TrkMuUnVeto
Definition: CSCHaloData.h:134

Member Data Documentation

bool reco::CSCHaloData::HLTAccept
private

Definition at line 110 of file CSCHaloData.h.

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

short int reco::CSCHaloData::nFlatHaloSegments
private

Definition at line 130 of file CSCHaloData.h.

Referenced by CSCHaloData(), NFlatHaloSegments(), and SetNFlatHaloSegments().

short int reco::CSCHaloData::nFlatHaloSegments_TrkMuUnVeto
private
short int reco::CSCHaloData::nOutOfTimeHits
private

Definition at line 119 of file CSCHaloData.h.

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

short int reco::CSCHaloData::nOutOfTimeTriggers_MinusZ
private

Definition at line 117 of file CSCHaloData.h.

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

short int reco::CSCHaloData::nOutOfTimeTriggers_PlusZ
private

Definition at line 116 of file CSCHaloData.h.

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

int reco::CSCHaloData::nTracks_MinusZ
private

Definition at line 113 of file CSCHaloData.h.

Referenced by CSCHaloData().

int reco::CSCHaloData::nTracks_PlusZ
private

Definition at line 112 of file CSCHaloData.h.

Referenced by CSCHaloData().

short int reco::CSCHaloData::nTracks_Small_beta
private

Definition at line 123 of file CSCHaloData.h.

Referenced by CSCHaloData(), NTracksSmallBeta(), and SetNIncomingTracks().

short int reco::CSCHaloData::nTracks_Small_dT
private

Definition at line 121 of file CSCHaloData.h.

Referenced by CSCHaloData(), NTracksSmalldT(), and SetNIncomingTracks().

short int reco::CSCHaloData::nTracks_Small_dT_Small_beta
private

Definition at line 126 of file CSCHaloData.h.

Referenced by CSCHaloData(), NTracksSmallBetaAndSmalldT(), and SetNIncomingTracks().

int reco::CSCHaloData::nTriggers_MinusZ
private

Definition at line 106 of file CSCHaloData.h.

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

int reco::CSCHaloData::nTriggers_MinusZ_TrkMuUnVeto
private
int reco::CSCHaloData::nTriggers_PlusZ
private

Definition at line 105 of file CSCHaloData.h.

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

int reco::CSCHaloData::nTriggers_PlusZ_TrkMuUnVeto
private
bool reco::CSCHaloData::segmentiscalomatched
private

Definition at line 136 of file CSCHaloData.h.

Referenced by GetSegmentIsCaloMatched(), and SetSegmentIsCaloMatched().

bool reco::CSCHaloData::segments_in_both_endcaps
private

Definition at line 131 of file CSCHaloData.h.

Referenced by GetSegmentsInBothEndcaps(), and SetSegmentsBothEndcaps().

bool reco::CSCHaloData::segments_in_both_endcaps_loose_dtcut_TrkMuUnVeto
private
bool reco::CSCHaloData::segments_in_both_endcaps_loose_TrkMuUnVeto
private
std::vector<GlobalPoint> reco::CSCHaloData::TheGlobalPositions
private

Definition at line 104 of file CSCHaloData.h.

Referenced by GetCSCTrackImpactPositions().

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

Definition at line 101 of file CSCHaloData.h.

Referenced by GetTracks(), and NumberOfHaloTracks().