Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
METReco
src
CSCHaloData.cc
Go to the documentation of this file.
1
#include "
DataFormats/METReco/interface/CSCHaloData.h
"
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
#include "
DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigiCollection.h
"
11
#include "
DataFormats/CSCDigi/interface/CSCWireDigi.h
"
12
#include "
DataFormats/CSCDigi/interface/CSCWireDigiCollection.h
"
13
#include "
DataFormats/CSCDigi/interface/CSCStripDigi.h
"
14
#include "
DataFormats/CSCDigi/interface/CSCStripDigiCollection.h
"
15
#include "
DataFormats/CSCDigi/interface/CSCComparatorDigi.h
"
16
#include "
DataFormats/CSCDigi/interface/CSCComparatorDigiCollection.h
"
17
#include "
DataFormats/CSCRecHit/interface/CSCRecHit2D.h
"
18
#include "
DataFormats/CSCRecHit/interface/CSCSegmentCollection.h
"
19
#include "
DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h
"
20
#include "
DataFormats/CSCRecHit/interface/CSCSegment.h
"
21
#include "
DataFormats/GeometrySurface/interface/Cylinder.h
"
22
#include "
DataFormats/GeometrySurface/interface/Plane.h
"
23
#include "
DataFormats/GeometrySurface/interface/Cone.h
"
24
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
25
#include "
DataFormats/GeometryVector/interface/GlobalVector.h
"
26
#include "
DataFormats/GeometryVector/interface/LocalPoint.h
"
27
#include "
DataFormats/GeometryVector/interface/LocalVector.h
"
28
#include "
DataFormats/L1CSCTrackFinder/interface/L1CSCTrackCollection.h
"
29
#include "
DataFormats/L1CSCTrackFinder/interface/L1CSCStatusDigiCollection.h
"
30
#include "
DataFormats/L1GlobalMuonTrigger/interface/L1MuRegionalCand.h
"
31
#include "
DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutRecord.h
"
32
#include "
DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutCollection.h
"
33
#include "
DataFormats/MuonDetId/interface/CSCIndexer.h
"
34
#include "
DataFormats/MuonDetId/interface/CSCDetId.h
"
35
#include "
DataFormats/MuonDetId/interface/RPCDetId.h
"
36
#include "
DataFormats/MuonDetId/interface/DTWireId.h
"
37
#include "
DataFormats/MuonReco/interface/MuonFwd.h
"
38
#include "
DataFormats/MuonReco/interface/Muon.h
"
39
#include "
DataFormats/TrackingRecHit/interface/RecSegment.h
"
40
#include "
DataFormats/TrackerRecHit2D/interface/SiPixelRecHitCollection.h
"
41
#include "
DataFormats/TrackerRecHit2D/interface/SiStripRecHit2DCollection.h
"
42
#include "
DataFormats/TrackerRecHit2D/interface/SiStripMatchedRecHit2DCollection.h
"
43
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
44
#include "
DataFormats/TrackReco/interface/Track.h
"
45
46
#include "
DataFormats/TrajectorySeed/interface/TrajectorySeedCollection.h
"
47
48
49
using namespace
reco
;
50
CSCHaloData::CSCHaloData
()
51
{
52
nTriggers_PlusZ
= 0;
53
nTriggers_MinusZ
= 0 ;
54
nTracks_PlusZ
= 0 ;
55
nTracks_MinusZ
= 0;
56
HLTAccept
=
false
;
57
58
nOutOfTimeTriggers_PlusZ
=0;
59
nOutOfTimeTriggers_MinusZ
=0;
60
nOutOfTimeHits
= 0 ;
61
}
62
63
int
CSCHaloData::NumberOfHaloTriggers
(
HaloData::Endcap
z
)
const
64
{
65
if
( z ==
HaloData::plus
)
66
return
nTriggers_PlusZ
;
67
else
if
( z ==
HaloData::minus
)
68
return
nTriggers_MinusZ
;
69
else
70
return
nTriggers_MinusZ
+
nTriggers_PlusZ
;
71
}
72
73
short
int
CSCHaloData::NumberOfOutOfTimeTriggers
(
HaloData::Endcap
z
)
const
74
{
75
if
( z ==
HaloData::plus
)
76
return
nOutOfTimeTriggers_PlusZ
;
77
else
if
( z ==
HaloData::minus
)
78
return
nOutOfTimeTriggers_MinusZ
;
79
else
80
return
nOutOfTimeTriggers_PlusZ
+
nOutOfTimeTriggers_MinusZ
;
81
}
82
83
int
CSCHaloData::NumberOfHaloTracks
(
HaloData::Endcap
z
)
const
84
{
85
int
n
= 0 ;
86
for
(
unsigned
int
i
= 0 ;
i
<
TheTrackRefs
.
size
() ;
i
++ )
87
{
88
edm::Ref<reco::TrackCollection>
iTrack(
TheTrackRefs
,
i
) ;
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
}
reco::CSCHaloData::nTracks_PlusZ
int nTracks_PlusZ
Definition:
CSCHaloData.h:88
CSCStripDigiCollection.h
SiStripRecHit2DCollection.h
CSCIndexer.h
i
int i
Definition:
DBlmapReader.cc:9
LocalPoint.h
reco::CSCHaloData::NumberOfHaloTracks
int NumberOfHaloTracks(HaloData::Endcap z=HaloData::both) const
Definition:
CSCHaloData.cc:83
reco::HaloData::Endcap
Endcap
Definition:
HaloData.h:19
CSCRecHit2DCollection.h
L1MuRegionalCand.h
CSCDetId.h
reco::CSCHaloData::nTriggers_MinusZ
int nTriggers_MinusZ
Definition:
CSCHaloData.h:83
RPCDetId.h
L1MuGMTReadoutCollection.h
Plane.h
L1CSCTrackCollection.h
CSCWireDigi.h
CSCSegment.h
reco::CSCHaloData::NumberOfOutOfTimeTriggers
short int NumberOfOutOfTimeTriggers(HaloData::Endcap z=HaloData::both) const
Definition:
CSCHaloData.cc:73
TrackFwd.h
reco::CSCHaloData::nOutOfTimeHits
short int nOutOfTimeHits
Definition:
CSCHaloData.h:95
reco::CSCHaloData::HLTAccept
bool HLTAccept
Definition:
CSCHaloData.h:86
MuonFwd.h
reco::CSCHaloData::CSCHaloData
CSCHaloData()
Definition:
CSCHaloData.cc:50
reco::HaloData::plus
Definition:
HaloData.h:19
z
Definition:
DDAxes.h:10
dt_offlineAnalysis_common_cff.reco
tuple reco
Definition:
dt_offlineAnalysis_common_cff.py:54
reco::CSCHaloData::nTracks_MinusZ
int nTracks_MinusZ
Definition:
CSCHaloData.h:89
SiPixelRecHitCollection.h
CSCComparatorDigi.h
CSCComparatorDigiCollection.h
L1CSCStatusDigiCollection.h
L1MuGMTReadoutRecord.h
Muon.h
CSCCorrelatedLCTDigiCollection.h
reco::CSCHaloData::NumberOfHaloTriggers
int NumberOfHaloTriggers(HaloData::Endcap z=HaloData::both) const
Definition:
CSCHaloData.cc:63
GlobalVector.h
reco::CSCHaloData::TheTrackRefs
edm::RefVector< reco::TrackCollection > TheTrackRefs
Definition:
CSCHaloData.h:78
CSCSegmentCollection.h
RecSegment.h
CSCHaloData.h
n
int n
Definition:
DTDataIntegrityTask.cc:32
CSCRecHit2D.h
CSCStripDigi.h
DTWireId.h
CSCWireDigiCollection.h
reco::CSCHaloData::nTriggers_PlusZ
int nTriggers_PlusZ
Definition:
CSCHaloData.h:82
reco::CSCHaloData::nOutOfTimeTriggers_MinusZ
short int nOutOfTimeTriggers_MinusZ
Definition:
CSCHaloData.h:93
reco::HaloData::minus
Definition:
HaloData.h:19
TrajectorySeedCollection.h
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition:
RefVector.h:85
Track.h
Cylinder.h
reco::CSCHaloData::nOutOfTimeTriggers_PlusZ
short int nOutOfTimeTriggers_PlusZ
Definition:
CSCHaloData.h:92
edm::Ref
Definition:
AssociativeIterator.h:52
Cone.h
SiStripMatchedRecHit2DCollection.h
LocalVector.h
reco::HaloData::both
Definition:
HaloData.h:19
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.5