CMS 3D CMS Logo

CSCHaloData.cc
Go to the documentation of this file.
2 
3 /*
4  [class]: CSCHaloData
5  [authors]: R. Remington, The University of Florida
6  [description]: See CSCHaloData.h
7  [date]: October 15, 2009
8 */
9 
10 using namespace reco;
12  nTriggers_PlusZ = 0;
13  nTriggers_MinusZ = 0;
14  nTracks_PlusZ = 0;
15  nTracks_MinusZ = 0;
16  HLTAccept = false;
17 
20  nOutOfTimeHits = 0;
21 
22  nTracks_Small_dT = 0;
25 
26  // MLR
28  // End MLR
29 
32  HLTAccept = false;
33 
38  segmentiscalomatched = false;
39  segmentisHcalomatched = false;
40  segmentisEBcalomatched = false;
41  segmentisEEcalomatched = false;
42 }
43 
45  if (z == HaloData::plus)
46  return nTriggers_PlusZ;
47  else if (z == HaloData::minus)
48  return nTriggers_MinusZ;
49  else
51 }
52 
54  if (z == HaloData::plus)
56  else if (z == HaloData::minus)
58  else
60 }
61 
63  if (z == HaloData::plus)
65  else if (z == HaloData::minus)
67  else
69 }
70 
72  int n = 0;
73  for (unsigned int i = 0; i < TheTrackRefs.size(); i++) {
75  // Does the track go through both endcaps ?
76  bool Traversing = (iTrack->outerPosition().z() > 0 && iTrack->innerPosition().z() < 0) ||
77  (iTrack->outerPosition().z() < 0 && iTrack->innerPosition().z() > 0);
78  // Does the track go through only +Z endcap ?
79  bool PlusZ = (iTrack->outerPosition().z() > 0 && iTrack->innerPosition().z() > 0);
80  // Does the track go through only -Z endcap ?
81  bool MinusZ = (iTrack->outerPosition().z() < 0 && iTrack->innerPosition().z() < 0);
82 
83  if ((z == HaloData::plus) && (PlusZ || Traversing))
84  n++;
85  else if ((z == HaloData::minus) && (MinusZ || Traversing))
86  n++;
87  else if ((z == HaloData::both) && (PlusZ || MinusZ || Traversing))
88  n++;
89  }
90  return n;
91 }
int NumberOfHaloTriggers(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:44
short int nTracks_Small_dT
Definition: CSCHaloData.h:141
int NumberOfHaloTracks(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:71
short int nTracks_Small_beta
Definition: CSCHaloData.h:143
bool segmentisHcalomatched
Definition: CSCHaloData.h:157
int NumberOfHaloTriggers_TrkMuUnVeto(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:53
short int nOutOfTimeHits
Definition: CSCHaloData.h:139
short int NumberOfOutOfTimeTriggers(HaloData::Endcap z=HaloData::both) const
Definition: CSCHaloData.cc:62
edm::RefVector< reco::TrackCollection > TheTrackRefs
Definition: CSCHaloData.h:121
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
bool segments_in_both_endcaps
Definition: CSCHaloData.h:151
bool segments_in_both_endcaps_loose_dtcut_TrkMuUnVeto
Definition: CSCHaloData.h:155
fixed size matrix
bool segments_in_both_endcaps_loose_TrkMuUnVeto
Definition: CSCHaloData.h:154
short int nOutOfTimeTriggers_MinusZ
Definition: CSCHaloData.h:137
bool segmentisEEcalomatched
Definition: CSCHaloData.h:159
int nTriggers_MinusZ_TrkMuUnVeto
Definition: CSCHaloData.h:128
bool segmentisEBcalomatched
Definition: CSCHaloData.h:158
short int nFlatHaloSegments_TrkMuUnVeto
Definition: CSCHaloData.h:153
short int nOutOfTimeTriggers_PlusZ
Definition: CSCHaloData.h:136
int nTriggers_PlusZ_TrkMuUnVeto
Definition: CSCHaloData.h:127
short int nTracks_Small_dT_Small_beta
Definition: CSCHaloData.h:146
short int nFlatHaloSegments
Definition: CSCHaloData.h:150