#include <CSCHaloData.h>
Definition at line 24 of file CSCHaloData.h.
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.
{ nTriggers_PlusZ = 0; nTriggers_MinusZ = 0 ; nTracks_PlusZ = 0 ; nTracks_MinusZ = 0; HLTAccept=false; nOutOfTimeTriggers_PlusZ=0; nOutOfTimeTriggers_MinusZ=0; nOutOfTimeHits = 0 ; nTracks_Small_dT = 0; nTracks_Small_beta =0; nTracks_Small_dT_Small_beta = 0; // MLR nFlatHaloSegments = 0; // End MLR }
virtual reco::CSCHaloData::~CSCHaloData | ( | ) | [inline, virtual] |
Definition at line 30 of file CSCHaloData.h.
{}
bool reco::CSCHaloData::CSCHaloHLTAccept | ( | ) | const [inline] |
Definition at line 40 of file CSCHaloData.h.
References HLTAccept.
Referenced by BeamHaloAnalyzer::analyze().
{return HLTAccept;}
const std::vector<GlobalPoint>& reco::CSCHaloData::GetCSCTrackImpactPositions | ( | ) | const [inline] |
Definition at line 78 of file CSCHaloData.h.
References TheGlobalPositions.
Referenced by BeamHaloAnalyzer::analyze(), CSCHaloAlgo::Calculate(), and GlobalHaloAlgo::Calculate().
{return TheGlobalPositions;}
std::vector<GlobalPoint>& reco::CSCHaloData::GetCSCTrackImpactPositions | ( | ) | [inline] |
Definition at line 79 of file CSCHaloData.h.
References TheGlobalPositions.
{return TheGlobalPositions;}
bool reco::CSCHaloData::GetSegmentsInBothEndcaps | ( | ) | const [inline] |
Definition at line 55 of file CSCHaloData.h.
References segments_in_both_endcaps.
Referenced by BeamHaloAnalyzer::analyze(), and reco::BeamHaloSummaryProducer::produce().
{ return segments_in_both_endcaps; }
const edm::RefVector<reco::TrackCollection>& reco::CSCHaloData::GetTracks | ( | ) | const [inline] |
edm::RefVector<reco::TrackCollection>& reco::CSCHaloData::GetTracks | ( | ) | [inline] |
Definition at line 59 of file CSCHaloData.h.
References TheTrackRefs.
Referenced by BeamHaloAnalyzer::analyze(), and CSCHaloAlgo::Calculate().
{return TheTrackRefs;}
short int reco::CSCHaloData::NFlatHaloSegments | ( | ) | const [inline] |
Definition at line 54 of file CSCHaloData.h.
References nFlatHaloSegments.
Referenced by BeamHaloAnalyzer::analyze(), and reco::BeamHaloSummaryProducer::produce().
{ return nFlatHaloSegments; }
int reco::CSCHaloData::NHaloTracks | ( | HaloData::Endcap | z = HaloData::both | ) | const [inline] |
Definition at line 37 of file CSCHaloData.h.
References NumberOfHaloTracks(), and z.
{ return NumberOfHaloTracks(z) ;}
int reco::CSCHaloData::NHaloTriggers | ( | HaloData::Endcap | z = HaloData::both | ) | const [inline] |
Definition at line 34 of file CSCHaloData.h.
References NumberOfHaloTriggers(), and z.
{ return NumberOfHaloTriggers(z);}
short int reco::CSCHaloData::NOutOfTimeHits | ( | ) | const [inline] |
Definition at line 47 of file CSCHaloData.h.
References nOutOfTimeHits.
Referenced by BeamHaloAnalyzer::analyze(), and reco::BeamHaloSummaryProducer::produce().
{return nOutOfTimeHits;}
short int reco::CSCHaloData::NOutOfTimeTriggers | ( | HaloData::Endcap | z = HaloData::both | ) | const [inline] |
Definition at line 44 of file CSCHaloData.h.
References NumberOfOutOfTimeTriggers(), and z.
Referenced by BeamHaloAnalyzer::analyze().
{return NumberOfOutOfTimeTriggers(z);}
short int reco::CSCHaloData::NTracksSmallBeta | ( | ) | const [inline] |
Definition at line 50 of file CSCHaloData.h.
References nTracks_Small_beta.
Referenced by BeamHaloAnalyzer::analyze().
{ return nTracks_Small_beta; }
short int reco::CSCHaloData::NTracksSmallBetaAndSmalldT | ( | ) | const [inline] |
Definition at line 51 of file CSCHaloData.h.
References nTracks_Small_dT_Small_beta.
Referenced by BeamHaloAnalyzer::analyze().
{ return nTracks_Small_dT_Small_beta; }
short int reco::CSCHaloData::NTracksSmalldT | ( | ) | const [inline] |
Definition at line 49 of file CSCHaloData.h.
References nTracks_Small_dT.
Referenced by BeamHaloAnalyzer::analyze(), and reco::BeamHaloSummaryProducer::produce().
{ return nTracks_Small_dT;}
int CSCHaloData::NumberOfHaloTracks | ( | HaloData::Endcap | z = HaloData::both | ) | const |
Definition at line 52 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().
{ int n = 0 ; for(unsigned int i = 0 ; i < TheTrackRefs.size() ; i++ ) { edm::Ref<reco::TrackCollection> iTrack( TheTrackRefs, i ) ; // Does the track go through both endcaps ? bool Traversing = (iTrack->outerPosition().z() > 0 && iTrack->innerPosition().z() < 0) || (iTrack->outerPosition().z() < 0 && iTrack->innerPosition().z() > 0); // Does the track go through only +Z endcap ? bool PlusZ = (iTrack->outerPosition().z() > 0 && iTrack->innerPosition().z() > 0 ) ; // Does the track go through only -Z endcap ? bool MinusZ = (iTrack->outerPosition().z()< 0 && iTrack->innerPosition().z() < 0) ; if( (z == HaloData::plus) && ( PlusZ || Traversing) ) n++; else if( (z == HaloData::minus) && ( MinusZ || Traversing ) ) n++; else if( (z == HaloData::both) && (PlusZ || MinusZ || Traversing) ) n++ ; } return n; }
int CSCHaloData::NumberOfHaloTriggers | ( | HaloData::Endcap | z = HaloData::both | ) | const |
Definition at line 32 of file CSCHaloData.cc.
References reco::HaloData::minus, nTriggers_MinusZ, nTriggers_PlusZ, and reco::HaloData::plus.
Referenced by BeamHaloAnalyzer::analyze(), NHaloTriggers(), and reco::BeamHaloSummaryProducer::produce().
{ if( z == HaloData::plus ) return nTriggers_PlusZ; else if( z == HaloData::minus ) return nTriggers_MinusZ; else return nTriggers_MinusZ + nTriggers_PlusZ; }
short int CSCHaloData::NumberOfOutOfTimeTriggers | ( | HaloData::Endcap | z = HaloData::both | ) | const |
Definition at line 42 of file CSCHaloData.cc.
References reco::HaloData::minus, nOutOfTimeTriggers_MinusZ, nOutOfTimeTriggers_PlusZ, and reco::HaloData::plus.
Referenced by BeamHaloAnalyzer::analyze(), NOutOfTimeTriggers(), and reco::BeamHaloSummaryProducer::produce().
{ if( z == HaloData::plus ) return nOutOfTimeTriggers_PlusZ; else if( z == HaloData::minus ) return nOutOfTimeTriggers_MinusZ; else return nOutOfTimeTriggers_PlusZ+nOutOfTimeTriggers_MinusZ; }
short int reco::CSCHaloData::NumberOfOutTimeHits | ( | ) | const [inline] |
void reco::CSCHaloData::SetHLTBit | ( | bool | status | ) | [inline] |
Definition at line 74 of file CSCHaloData.h.
References HLTAccept, and ntuplemaker::status.
Referenced by CSCHaloAlgo::Calculate().
void reco::CSCHaloData::SetNFlatHaloSegments | ( | short int | nSegments | ) | [inline] |
Definition at line 85 of file CSCHaloData.h.
References nFlatHaloSegments.
Referenced by CSCHaloAlgo::Calculate().
{nFlatHaloSegments = nSegments;}
void reco::CSCHaloData::SetNIncomingTracks | ( | short int | n_small_dT, |
short int | n_small_beta, | ||
short int | n_small_both | ||
) | [inline] |
Definition at line 70 of file CSCHaloData.h.
References nTracks_Small_beta, nTracks_Small_dT, and nTracks_Small_dT_Small_beta.
Referenced by CSCHaloAlgo::Calculate().
{ nTracks_Small_dT = n_small_dT; nTracks_Small_beta = n_small_beta; nTracks_Small_dT_Small_beta = n_small_both;}
void reco::CSCHaloData::SetNOutOfTimeHits | ( | short int | num | ) | [inline] |
Definition at line 68 of file CSCHaloData.h.
References nOutOfTimeHits.
Referenced by CSCHaloAlgo::Calculate().
{ nOutOfTimeHits = num ;}
void reco::CSCHaloData::SetNOutOfTimeTriggers | ( | short int | PlusZ, |
short int | MinusZ | ||
) | [inline] |
Definition at line 66 of file CSCHaloData.h.
References nOutOfTimeTriggers_MinusZ, and nOutOfTimeTriggers_PlusZ.
Referenced by CSCHaloAlgo::Calculate().
{ nOutOfTimeTriggers_PlusZ = PlusZ ; nOutOfTimeTriggers_MinusZ = MinusZ;}
void reco::CSCHaloData::SetNumberOfHaloTriggers | ( | int | PlusZ, |
int | MinusZ | ||
) | [inline] |
Definition at line 63 of file CSCHaloData.h.
References nTriggers_MinusZ, and nTriggers_PlusZ.
Referenced by CSCHaloAlgo::Calculate().
{ nTriggers_PlusZ =PlusZ; nTriggers_MinusZ = MinusZ ;}
void reco::CSCHaloData::SetSegmentsBothEndcaps | ( | bool | b | ) | [inline] |
Definition at line 86 of file CSCHaloData.h.
References b, and segments_in_both_endcaps.
Referenced by CSCHaloAlgo::Calculate().
{ segments_in_both_endcaps = b; }
bool reco::CSCHaloData::HLTAccept [private] |
Definition at line 97 of file CSCHaloData.h.
Referenced by CSCHaloData(), CSCHaloHLTAccept(), and SetHLTBit().
short int reco::CSCHaloData::nFlatHaloSegments [private] |
Definition at line 117 of file CSCHaloData.h.
Referenced by CSCHaloData(), NFlatHaloSegments(), and SetNFlatHaloSegments().
short int reco::CSCHaloData::nOutOfTimeHits [private] |
Definition at line 106 of file CSCHaloData.h.
Referenced by CSCHaloData(), NOutOfTimeHits(), NumberOfOutTimeHits(), and SetNOutOfTimeHits().
short int reco::CSCHaloData::nOutOfTimeTriggers_MinusZ [private] |
Definition at line 104 of file CSCHaloData.h.
Referenced by CSCHaloData(), NumberOfOutOfTimeTriggers(), and SetNOutOfTimeTriggers().
short int reco::CSCHaloData::nOutOfTimeTriggers_PlusZ [private] |
Definition at line 103 of file CSCHaloData.h.
Referenced by CSCHaloData(), NumberOfOutOfTimeTriggers(), and SetNOutOfTimeTriggers().
int reco::CSCHaloData::nTracks_MinusZ [private] |
Definition at line 100 of file CSCHaloData.h.
Referenced by CSCHaloData().
int reco::CSCHaloData::nTracks_PlusZ [private] |
Definition at line 99 of file CSCHaloData.h.
Referenced by CSCHaloData().
short int reco::CSCHaloData::nTracks_Small_beta [private] |
Definition at line 110 of file CSCHaloData.h.
Referenced by CSCHaloData(), NTracksSmallBeta(), and SetNIncomingTracks().
short int reco::CSCHaloData::nTracks_Small_dT [private] |
Definition at line 108 of file CSCHaloData.h.
Referenced by CSCHaloData(), NTracksSmalldT(), and SetNIncomingTracks().
short int reco::CSCHaloData::nTracks_Small_dT_Small_beta [private] |
Definition at line 113 of file CSCHaloData.h.
Referenced by CSCHaloData(), NTracksSmallBetaAndSmalldT(), and SetNIncomingTracks().
int reco::CSCHaloData::nTriggers_MinusZ [private] |
Definition at line 94 of file CSCHaloData.h.
Referenced by CSCHaloData(), NumberOfHaloTriggers(), and SetNumberOfHaloTriggers().
int reco::CSCHaloData::nTriggers_PlusZ [private] |
Definition at line 93 of file CSCHaloData.h.
Referenced by CSCHaloData(), NumberOfHaloTriggers(), and SetNumberOfHaloTriggers().
bool reco::CSCHaloData::segments_in_both_endcaps [private] |
Definition at line 118 of file CSCHaloData.h.
Referenced by GetSegmentsInBothEndcaps(), and SetSegmentsBothEndcaps().
std::vector<GlobalPoint> reco::CSCHaloData::TheGlobalPositions [private] |
Definition at line 92 of file CSCHaloData.h.
Referenced by GetCSCTrackImpactPositions().
Definition at line 89 of file CSCHaloData.h.
Referenced by GetTracks(), and NumberOfHaloTracks().