12 phi = phi < 0 ? phi + 2.*
TMath::Pi() : phi ;
13 float phi_degrees = phi * (360.) / ( 2. *
TMath::Pi() ) ;
14 int iPhi = (
int) ( ( phi_degrees/5. ) + 1.);
16 return iPhi < 73 ? iPhi : 73 ;
25 if(!TextFileName.empty())
26 out =
new std::ofstream(TextFileName.c_str() );
29 if( iConfig.
exists(
"StandardDQM") )
49 IT_CosmicStandAloneMuon = consumes<reco::MuonCollection > (iConfig.
getParameter<
edm::InputTag>(
"CosmicStandAloneMuonLabel"));
52 IT_CollisionStandAloneMuon = consumes<reco::MuonCollection > (iConfig.
getParameter<
edm::InputTag>(
"CollisionStandAloneMuonLabel"));
87 hEcalHaloData_PhiWedgeMultiplicity = ibooker.
book1D(
"EcalHaloData_PhiWedgeMultiplicity",
"",20, -0.5, 19.5);
88 hEcalHaloData_PhiWedgeConstituents = ibooker.
book1D(
"EcalHaloData_PhiWedgeConstituents",
"",20,-0.5, 19.5);
90 hEcalHaloData_PhiWedgeZDirectionConfidence = ibooker.
book1D(
"EcalHaloData_ZDirectionConfidence",
"", 120, -1.2, 1.2);
91 hEcalHaloData_SuperClusterShowerShapes = ibooker.
book2D(
"EcalHaloData_SuperClusterShowerShapes",
"", 30, 0, 3.2, 25,0.0, 2.0);
92 hEcalHaloData_SuperClusterEnergy = ibooker.
book1D(
"EcalHaloData_SuperClusterEnergy",
"",50,-0.5,99.5);
93 hEcalHaloData_SuperClusterNHits = ibooker.
book1D(
"EcalHaloData_SuperClusterNHits",
"", 20, -0.5, 19.5);
97 hEcalHaloData_PhiWedgeMultiplicity = ibooker.
book1D(
"EcalHaloData_PhiWedgeMultiplicity",
"",20, -0.5, 19.5);
98 hEcalHaloData_PhiWedgeEnergy = ibooker.
book1D(
"EcalHaloData_PhiWedgeEnergy",
"", 50,-0.5,199.5);
99 hEcalHaloData_PhiWedgeConstituents = ibooker.
book1D(
"EcalHaloData_PhiWedgeConstituents",
"",20,-0.5, 19.5);
100 hEcalHaloData_PhiWedgeMinTime = ibooker.
book1D(
"EcalHaloData_PhiWedgeMinTime",
"", 100, -225.0, 225.0);
101 hEcalHaloData_PhiWedgeMaxTime = ibooker.
book1D(
"EcalHaloData_PhiWedgeMaxTime",
"", 100, -225.0, 225.0);
102 hEcalHaloData_PhiWedgeiPhi = ibooker.
book1D(
"EcalHaloData_PhiWedgeiPhi",
"", 360, 0.5, 360.5) ;
103 hEcalHaloData_PhiWedgePlusZDirectionConfidence = ibooker.
book1D(
"EcalHaloData_PlusZDirectionConfidence",
"", 50, 0., 1.0);
104 hEcalHaloData_PhiWedgeZDirectionConfidence = ibooker.
book1D(
"EcalHaloData_ZDirectionConfidence",
"", 120, -1.2, 1.2);
105 hEcalHaloData_PhiWedgeMinVsMaxTime = ibooker.
book2D(
"EcalHaloData_PhiWedgeMinVsMaxTime",
"", 50,-100.0, 100.0, 50, -100.0, 100.0);
106 hEcalHaloData_SuperClusterShowerShapes = ibooker.
book2D(
"EcalHaloData_SuperClusterShowerShapes",
"", 30, 0, 3.2, 25,0.0, 2.0);
107 hEcalHaloData_SuperClusterEnergy = ibooker.
book1D(
"EcalHaloData_SuperClusterEnergy",
"",100,-0.5,99.5);
108 hEcalHaloData_SuperClusterNHits = ibooker.
book1D(
"EcalHaloData_SuperClusterNHits",
"", 20, -0.5, 19.5);
109 hEcalHaloData_SuperClusterPhiVsEta = ibooker.
book2D(
"EcalHaloData_SuperClusterPhiVsEta",
"",60, -3.0, 3.0, 60, -3.2, 3.2);
116 hHcalHaloData_PhiWedgeMultiplicity = ibooker.
book1D(
"HcalHaloData_PhiWedgeMultiplicity",
"", 20, -0.5, 19.5);
117 hHcalHaloData_PhiWedgeConstituents = ibooker.
book1D(
"HcalHaloData_PhiWedgeConstituents",
"", 20,-0.5, 19.5);
119 hHcalHaloData_PhiWedgeZDirectionConfidence = ibooker.
book1D(
"HcalHaloData_ZDirectionConfidence",
"", 120, -1.2, 1.2);
123 hHcalHaloData_PhiWedgeMultiplicity = ibooker.
book1D(
"HcalHaloData_PhiWedgeMultiplicity",
"", 20, -0.5, 19.5);
124 hHcalHaloData_PhiWedgeEnergy = ibooker.
book1D(
"HcalHaloData_PhiWedgeEnergy",
"", 50,-0.5,199.5);
125 hHcalHaloData_PhiWedgeConstituents = ibooker.
book1D(
"HcalHaloData_PhiWedgeConstituents",
"", 20,-0.5, 19.5);
126 hHcalHaloData_PhiWedgeiPhi = ibooker.
book1D(
"HcalHaloData_PhiWedgeiPhi",
"", 72, 0.5,72.5);
127 hHcalHaloData_PhiWedgeMinTime = ibooker.
book1D(
"HcalHaloData_PhiWedgeMinTime",
"", 50, -100.0, 100.0);
128 hHcalHaloData_PhiWedgeMaxTime = ibooker.
book1D(
"HcalHaloData_PhiWedgeMaxTime",
"", 50, -100.0, 100.0);
129 hHcalHaloData_PhiWedgePlusZDirectionConfidence = ibooker.
book1D(
"HcalHaloData_PlusZDirectionConfidence",
"", 50, 0., 1.0);
130 hHcalHaloData_PhiWedgeZDirectionConfidence = ibooker.
book1D(
"HcalHaloData_ZDirectionConfidence",
"", 120, -1.2, 1.2);
131 hHcalHaloData_PhiWedgeMinVsMaxTime = ibooker.
book2D(
"HcalHaloData_PhiWedgeMinVsMaxTime",
"" , 50,-100.0, 100.0, 50, -100.0, 100.0);
138 hCSCHaloData_TrackMultiplicity = ibooker.
book1D(
"CSCHaloData_TrackMultiplicity",
"", 15, -0.5, 14.5);
139 hCSCHaloData_TrackMultiplicityMEPlus = ibooker.
book1D(
"CSCHaloData_TrackMultiplicityMEPlus",
"", 15, -0.5, 14.5);
140 hCSCHaloData_TrackMultiplicityMEMinus = ibooker.
book1D(
"CSCHaloData_TrackMultiplicityMEMinus",
"", 15, -0.5, 14.5);
141 hCSCHaloData_InnerMostTrackHitR = ibooker.
book1D(
"CSCHaloData_InnerMostTrackHitR",
"", 70, 99.5, 799.5);
142 hCSCHaloData_InnerMostTrackHitPhi = ibooker.
book1D(
"CSCHaloData_InnerMostTrackHitPhi",
"", 60, -3.2, 3.2);
143 hCSCHaloData_L1HaloTriggersMEPlus = ibooker.
book1D(
"CSCHaloData_L1HaloTriggersMEPlus",
"", 10, -0.5, 9.5);
144 hCSCHaloData_L1HaloTriggersMEMinus = ibooker.
book1D(
"CSCHaloData_L1HaloTriggersMEMinus",
"" , 10, -0.5, 9.5);
145 hCSCHaloData_L1HaloTriggers = ibooker.
book1D(
"CSCHaloData_L1HaloTriggers",
"", 10, -0.5, 9.5);
146 hCSCHaloData_HLHaloTriggers = ibooker.
book1D(
"CSCHaloData_HLHaloTriggers",
"", 2, -0.5, 1.5);
147 hCSCHaloData_NOutOfTimeTriggersvsL1HaloExists = ibooker.
book2D(
"CSCHaloData_NOutOfTimeTriggersvsL1HaloExists",
"", 20, -0.5, 19.5, 2, -0.5, 1.5);
148 hCSCHaloData_NOutOfTimeTriggersMEPlus = ibooker.
book1D(
"CSCHaloData_NOutOfTimeTriggersMEPlus",
"", 20, -0.5, 19.5);
149 hCSCHaloData_NOutOfTimeTriggersMEMinus = ibooker.
book1D(
"CSCHaloData_NOutOfTimeTriggersMEMinus",
"", 20, -0.5, 19.5);
150 hCSCHaloData_NOutOfTimeTriggers = ibooker.
book1D(
"CSCHaloData_NOutOfTimeTriggers",
"", 20, -0.5, 19.5);
151 hCSCHaloData_NOutOfTimeHits = ibooker.
book1D(
"CSCHaloData_NOutOfTimeHits",
"", 60, -0.5, 59.5);
152 hCSCHaloData_NTracksSmalldT = ibooker.
book1D(
"CSCHaloData_NTracksSmalldT",
"", 15, -0.5, 14.5);
153 hCSCHaloData_NTracksSmallBeta = ibooker.
book1D(
"CSCHaloData_NTracksSmallBeta",
"", 15, -0.5, 14.5);
154 hCSCHaloData_NTracksSmallBetaAndSmalldT = ibooker.
book1D(
"CSCHaloData_NTracksSmallBetaAndSmalldT",
"", 15, -0.5, 14.5);
155 hCSCHaloData_NTracksSmalldTvsNHaloTracks = ibooker.
book2D(
"CSCHaloData_NTracksSmalldTvsNHaloTracks",
"",15, -0.5, 14.5,15, -0.5, 14.5);
156 hCSCHaloData_SegmentdT = ibooker.
book1D(
"CSCHaloData_SegmentdT",
"",100,-100,100);
157 hCSCHaloData_FreeInverseBeta = ibooker.
book1D(
"CSCHaloData_FreeInverseBeta",
"",80,-4,4);
158 hCSCHaloData_FreeInverseBetaVsSegmentdT = ibooker.
book2D(
"CSCHaloData_FreeInverseBetaVsSegmentdT",
"",100,-100,100,80,-4,4);
160 hCSCHaloData_NFlatHaloSegments = ibooker.
book1D(
"CSCHaloData_NFlatHaloSegments",
"",20,0,20);
161 hCSCHaloData_SegmentsInBothEndcaps = ibooker.
book1D(
"CSCHaloData_SegmentsInBothEndcaps",
"",2,0,2);
162 hCSCHaloData_NFlatSegmentsInBothEndcaps = ibooker.
book1D(
"CSCHaloData_NFlatSegmentsInBothEndcaps",
"",20,0,20);
167 hCSCHaloData_TrackMultiplicity = ibooker.
book1D(
"CSCHaloData_TrackMultiplicity",
"", 15, -0.5, 14.5);
168 hCSCHaloData_TrackMultiplicityMEPlus = ibooker.
book1D(
"CSCHaloData_TrackMultiplicityMEPlus",
"", 15, -0.5, 14.5);
169 hCSCHaloData_TrackMultiplicityMEMinus = ibooker.
book1D(
"CSCHaloData_TrackMultiplicityMEMinus",
"", 15, -0.5, 14.5);
170 hCSCHaloData_InnerMostTrackHitXY = ibooker.
book2D(
"CSCHaloData_InnerMostTrackHitXY",
"", 100,-700,700,100, -700,700);
171 hCSCHaloData_InnerMostTrackHitR = ibooker.
book1D(
"CSCHaloData_InnerMostTrackHitR",
"", 400, -0.5, 799.5);
172 hCSCHaloData_InnerMostTrackHitRPlusZ = ibooker.
book2D(
"CSCHaloData_InnerMostTrackHitRPlusZ",
"", 400 , 400, 1200, 400, -0.5, 799.5 );
173 hCSCHaloData_InnerMostTrackHitRMinusZ = ibooker.
book2D(
"CSCHaloData_InnerMostTrackHitRMinusZ",
"", 400 , -1200, -400, 400, -0.5, 799.5 );
174 hCSCHaloData_InnerMostTrackHitiPhi = ibooker.
book1D(
"CSCHaloData_InnerMostTrackHitiPhi",
"", 72, 0.5, 72.5);
175 hCSCHaloData_InnerMostTrackHitPhi = ibooker.
book1D(
"CSCHaloData_InnerMostTrackHitPhi",
"", 60, -3.2, 3.2);
176 hCSCHaloData_L1HaloTriggersMEPlus = ibooker.
book1D(
"CSCHaloData_L1HaloTriggersMEPlus",
"", 10, -0.5, 9.5);
177 hCSCHaloData_L1HaloTriggersMEMinus = ibooker.
book1D(
"CSCHaloData_L1HaloTriggersMEMinus",
"" , 10, -0.5, 9.5);
178 hCSCHaloData_L1HaloTriggers = ibooker.
book1D(
"CSCHaloData_L1HaloTriggers",
"", 10, -0.5, 9.5);
179 hCSCHaloData_HLHaloTriggers = ibooker.
book1D(
"CSCHaloData_HLHaloTriggers",
"", 2, -0.5, 1.5);
180 hCSCHaloData_NOutOfTimeTriggersvsL1HaloExists = ibooker.
book2D(
"CSCHaloData_NOutOfTimeTriggersvsL1HaloExists",
"", 20, -0.5, 19.5, 2, -0.5, 1.5);
181 hCSCHaloData_NOutOfTimeTriggers = ibooker.
book1D(
"CSCHaloData_NOutOfTimeTriggers",
"", 20, -0.5, 19.5);
182 hCSCHaloData_NOutOfTimeHits = ibooker.
book1D(
"CSCHaloData_NOutOfTimeHits",
"", 60, -0.5, 59.5);
183 hCSCHaloData_NTracksSmalldT = ibooker.
book1D(
"CSCHaloData_NTracksSmalldT",
"", 15, -0.5, 14.5);
184 hCSCHaloData_NTracksSmallBeta = ibooker.
book1D(
"CSCHaloData_NTracksSmallBeta",
"", 15, -0.5, 14.5);
185 hCSCHaloData_NTracksSmallBetaAndSmalldT = ibooker.
book1D(
"CSCHaloData_NTracksSmallBetaAndSmalldT",
"", 15, -0.5, 14.5);
186 hCSCHaloData_NTracksSmalldTvsNHaloTracks = ibooker.
book2D(
"CSCHaloData_NTracksSmalldTvsNHaloTracks",
"",15, -0.5, 14.5,15, -0.5, 14.5);
187 hCSCHaloData_SegmentdT = ibooker.
book1D(
"CSCHaloData_SegmentdT",
"",100,-100,100);
188 hCSCHaloData_FreeInverseBeta = ibooker.
book1D(
"CSCHaloData_FreeInverseBeta",
"",80,-4,4);
189 hCSCHaloData_FreeInverseBetaVsSegmentdT = ibooker.
book2D(
"CSCHaloData_FreeInverseBetaVsSegmentdT",
"",100,-100,100,80,-4,4);
191 hCSCHaloData_NFlatHaloSegments = ibooker.
book1D(
"CSCHaloData_NFlatHaloSegments",
"",20,0,20);
192 hCSCHaloData_SegmentsInBothEndcaps = ibooker.
book1D(
"CSCHaloData_SegmentsInBothEndcaps",
"",2,0,2);
193 hCSCHaloData_NFlatSegmentsInBothEndcaps = ibooker.
book1D(
"CSCHaloData_NFlatSegmentsInBothEndcaps",
"",20,0,20);
201 hGlobalHaloData_MExCorrection = ibooker.
book1D(
"GlobalHaloData_MExCorrection",
"" , 200, -200., 200.);
202 hGlobalHaloData_MEyCorrection = ibooker.
book1D(
"GlobalHaloData_MEyCorrection",
"" , 200, -200., 200.);
203 hGlobalHaloData_SumEtCorrection = ibooker.
book1D(
"GlobalHaloData_SumEtCorrection",
"" , 200, -0.5, 399.5);
204 hGlobalHaloData_HaloCorrectedMET = ibooker.
book1D(
"GlobalHaloData_HaloCorrectedMET",
"" , 500, -0.5, 1999.5);
205 hGlobalHaloData_RawMETMinusHaloCorrectedMET = ibooker.
book1D(
"GlobalHaloData_RawMETMinusHaloCorrectedMET",
"" , 250, -500., 500.);
206 hGlobalHaloData_RawMETOverSumEt = ibooker.
book1D(
"GlobalHaloData_RawMETOverSumEt",
"" , 100, 0.0, 1.0);
207 hGlobalHaloData_MatchedHcalPhiWedgeMultiplicity = ibooker.
book1D(
"GlobalHaloData_MatchedHcalPhiWedgeMultiplicity",
"", 15, -0.5, 14.5);
208 hGlobalHaloData_MatchedHcalPhiWedgeEnergy = ibooker.
book1D(
"GlobalHaloData_MatchedHcalPhiWedgeEnergy",
"", 50,-0.5,199.5);
209 hGlobalHaloData_MatchedHcalPhiWedgeConstituents = ibooker.
book1D(
"GlobalHaloData_MatchedHcalPhiWedgeConstituents",
"", 20,-0.5, 19.5);
210 hGlobalHaloData_MatchedHcalPhiWedgeiPhi = ibooker.
book1D(
"GlobalHaloData_MatchedHcalPhiWedgeiPhi",
"", 1, 0.5,72.5);
211 hGlobalHaloData_MatchedHcalPhiWedgeMinTime = ibooker.
book1D(
"GlobalHaloData_MatchedHcalPhiWedgeMinTime",
"", 50, -100.0, 100.0);
212 hGlobalHaloData_MatchedHcalPhiWedgeMaxTime = ibooker.
book1D(
"GlobalHaloData_MatchedHcalPhiWedgeMaxTime",
"", 50, -100.0, 100.0);
213 hGlobalHaloData_MatchedHcalPhiWedgeZDirectionConfidence = ibooker.
book1D(
"GlobalHaloData_MatchedHcalPhiWedgeZDirectionConfidence",
"", 120, -1.2, 1.2);
214 hGlobalHaloData_MatchedEcalPhiWedgeMultiplicity = ibooker.
book1D(
"GlobalHaloData_MatchedEcalPhiWedgeMultiplicity",
"", 15, -0.5, 14.5);
215 hGlobalHaloData_MatchedEcalPhiWedgeEnergy = ibooker.
book1D(
"GlobalHaloData_MatchedEcalPhiWedgeEnergy",
"", 50,-0.5,199.5);
216 hGlobalHaloData_MatchedEcalPhiWedgeConstituents = ibooker.
book1D(
"GlobalHaloData_MatchedEcalPhiWedgeConstituents",
"", 20,-0.5, 19.5);
217 hGlobalHaloData_MatchedEcalPhiWedgeiPhi = ibooker.
book1D(
"GlobalHaloData_MatchedEcalPhiWedgeiPhi",
"", 360, 0.5,360.5);
218 hGlobalHaloData_MatchedEcalPhiWedgeMinTime = ibooker.
book1D(
"GlobalHaloData_MatchedEcalPhiWedgeMinTime",
"", 50, -100.0, 100.0);
219 hGlobalHaloData_MatchedEcalPhiWedgeMaxTime = ibooker.
book1D(
"GlobalHaloData_MatchedEcalPhiWedgeMaxTime",
"", 50, -100.0, 100.0);
220 hGlobalHaloData_MatchedEcalPhiWedgeZDirectionConfidence = ibooker.
book1D(
"GlobalHaloData_MatchedEcalPhiWedgeZDirectionConfidence",
"", 120, 1.2, 1.2);
225 hBeamHaloSummary_Id = ibooker.
book1D(
"BeamHaloSumamry_Id",
"", 11, 0.5,11.5);
227 hBeamHaloSummary_Id ->setBinLabel(2,
"CSC Tight");
228 hBeamHaloSummary_Id ->setBinLabel(3,
"Ecal Loose");
229 hBeamHaloSummary_Id ->setBinLabel(4,
"Ecal Tight");
230 hBeamHaloSummary_Id ->setBinLabel(5,
"Hcal Loose");
231 hBeamHaloSummary_Id ->setBinLabel(6,
"Hcal Tight");
232 hBeamHaloSummary_Id ->setBinLabel(7,
"Global Loose");
233 hBeamHaloSummary_Id ->setBinLabel(8,
"Global Tight");
234 hBeamHaloSummary_Id ->setBinLabel(9,
"Event Loose");
235 hBeamHaloSummary_Id ->setBinLabel(10,
"Event Tight");
236 hBeamHaloSummary_Id ->setBinLabel(11,
"Nothing");
239 hBeamHaloSummary_BXN = ibooker.
book2D(
"BeamHaloSummary_BXN",
"",11, 0.5, 11.5, 4000, -0.5,3999.5);
241 hBeamHaloSummary_BXN ->setBinLabel(2,
"CSC Tight");
242 hBeamHaloSummary_BXN ->setBinLabel(3,
"Ecal Loose");
243 hBeamHaloSummary_BXN ->setBinLabel(4,
"Ecal Tight");
244 hBeamHaloSummary_BXN ->setBinLabel(5,
"Hcal Loose");
245 hBeamHaloSummary_BXN ->setBinLabel(6,
"Hcal Tight");
246 hBeamHaloSummary_BXN ->setBinLabel(7,
"Global Loose");
247 hBeamHaloSummary_BXN ->setBinLabel(8,
"Global Tight");
248 hBeamHaloSummary_BXN ->setBinLabel(9,
"Event Loose");
249 hBeamHaloSummary_BXN ->setBinLabel(10,
"Event Tight");
250 hBeamHaloSummary_BXN ->setBinLabel(11,
"Nothing");
256 hExtra_CSCTrackInnerOuterDPhi = ibooker.
book1D(
"Extra_CSCTrackInnerOuterDPhi",
"", 30, 0, 3.2);
257 hExtra_CSCTrackInnerOuterDEta = ibooker.
book1D(
"Extra_CSCTrackInnerOuterDEta",
"", 100, 0, 3.0 );
258 hExtra_CSCTrackChi2Ndof = ibooker.
book1D(
"Extra_CSCTrackChi2Ndof",
"", 25, 0, 10);
259 hExtra_CSCTrackNHits = ibooker.
book1D(
"Extra_CSCTrackNHits",
"", 75,0, 75);
260 hExtra_CSCActivityWithMET= ibooker.
book2D(
"Extra_CSCActivityWithMET",
"", 4, 0.5, 4.5, 4, 0.5, 4.5);
261 hExtra_CSCActivityWithMET->
setBinLabel(1,
"Track",1);
262 hExtra_CSCActivityWithMET->setBinLabel(1,
"Track",2);
263 hExtra_CSCActivityWithMET->setBinLabel(2,
"Segments",1);
264 hExtra_CSCActivityWithMET->setBinLabel(2,
"Segments",2);
265 hExtra_CSCActivityWithMET->setBinLabel(3,
"RecHits", 1);
266 hExtra_CSCActivityWithMET->setBinLabel(3,
"RecHits", 2);
267 hExtra_CSCActivityWithMET->setBinLabel(4,
"Nothing", 1);
268 hExtra_CSCActivityWithMET->setBinLabel(4,
"Nothing", 2);
269 hExtra_InnerMostTrackHitR = ibooker.
book1D(
"Extra_InnerMostTrackHitR",
"", 70, 99.5, 799.5);
270 hExtra_InnerMostTrackHitPhi = ibooker.
book1D(
"Extra_InnerMostTrackHitPhi",
"", 60, -3.2, 3.2);
274 hExtra_CSCActivityWithMET= ibooker.
book2D(
"Extra_CSCActivityWithMET",
"", 4, 0.5, 4.5, 4, 0.5, 4.5);
275 hExtra_CSCActivityWithMET->
setBinLabel(1,
"Track",1);
276 hExtra_CSCActivityWithMET->setBinLabel(1,
"Track",2);
277 hExtra_CSCActivityWithMET->setBinLabel(2,
"Segments",1);
278 hExtra_CSCActivityWithMET->setBinLabel(2,
"Segments",2);
279 hExtra_CSCActivityWithMET->setBinLabel(3,
"RecHits", 1);
280 hExtra_CSCActivityWithMET->setBinLabel(3,
"RecHits", 2);
281 hExtra_CSCActivityWithMET->setBinLabel(4,
"Nothing", 1);
282 hExtra_CSCActivityWithMET->setBinLabel(4,
"Nothing", 2);
283 hExtra_HcalToF = ibooker.
book2D(
"Extra_HcalToF",
"" , 83,-41.5,41.5 , 1000, -125., 125.);
284 hExtra_HcalToF_HaloId = ibooker.
book2D(
"Extra_HcalToF_HaloId",
"", 83,-41.5,41.5 , 1000, -125., 125.);
285 hExtra_EcalToF = ibooker.
book2D(
"Extra_EcalToF",
"", 171,-85.5,85.5 , 2000, -225., 225.);
286 hExtra_EcalToF_HaloId = ibooker.
book2D(
"Extra_EcalToF_HaloId",
"", 171,-85.5,85.5 , 2000, -225., 225.);
287 hExtra_CSCTrackInnerOuterDPhi = ibooker.
book1D(
"Extra_CSCTrackInnerOuterDPhi",
"", 30, 0, 3.2);
288 hExtra_CSCTrackInnerOuterDEta = ibooker.
book1D(
"Extra_CSCTrackInnerOuterDEta",
"", 30, 0, 3.2);
289 hExtra_CSCTrackChi2Ndof = ibooker.
book1D(
"Extra_CSCTrackChi2Ndof",
"", 100, 0, 10);
290 hExtra_CSCTrackNHits = ibooker.
book1D(
"Extra_CSCTrackNHits",
"", 75,0, 75);
291 hExtra_InnerMostTrackHitXY = ibooker.
book2D(
"Extra_InnerMostTrackHitXY",
"", 100,-700,700,100, -700,700);
292 hExtra_InnerMostTrackHitR = ibooker.
book1D(
"Extra_InnerMostTrackHitR",
"", 400, -0.5, 799.5);
293 hExtra_InnerMostTrackHitRPlusZ = ibooker.
book2D(
"Extra_InnerMostTrackHitRPlusZ",
"", 400 , 400, 1200, 400, -0.5, 799.5 );
294 hExtra_InnerMostTrackHitRMinusZ = ibooker.
book2D(
"Extra_InnerMostTrackHitRMinusZ",
"", 400 , -1200, -400, 400, -0.5, 799.5 );
295 hExtra_InnerMostTrackHitiPhi = ibooker.
book1D(
"Extra_InnerMostTrackHitiPhi",
"", 72, 0.5, 72.5);
296 hExtra_InnerMostTrackHitPhi = ibooker.
book1D(
"Extra_InnerMostTrackHitPhi",
"", 60, -3.2, 3.2);
297 hExtra_BXN = ibooker.
book1D(
"Extra_BXN",
"BXN Occupancy", 4000, 0.5, 4000.5);
305 bool Dump = !TextFileName.empty();
320 iEvent.
getByToken(IT_CosmicStandAloneMuon, TheCosmics);
322 iEvent.
getByToken(IT_CSCTimeMapToken,TheCSCTimeMap);
323 bool CSCTrackPlus =
false;
bool CSCTrackMinus =
false;
327 for( reco::MuonCollection::const_iterator iMuon = TheCosmics->begin() ; iMuon != TheCosmics->end() ; iMuon++, imucount++ )
332 if( !CSCTrackPlus || !CSCTrackMinus )
334 if( Track->eta() > 0 || Track->outerPosition().z() > 0 || Track->innerPosition().z() > 0 ) CSCTrackPlus =
true ;
335 else if( Track->eta() < 0 || Track->outerPosition().z() < 0 || Track->innerPosition().z() < 0) CSCTrackMinus =
true;
338 float innermost_phi = 0.;
339 float outermost_phi = 0.;
340 float innermost_z = 99999.;
341 float outermost_z = 0.;
342 float innermost_eta = 0.;
343 float outermost_eta = 0.;
344 float innermost_x =0.;
345 float innermost_y =0.;
346 float innermost_r =0.;
347 for(
unsigned int j = 0 ; j < Track->extra()->recHitsSize(); j++ )
349 auto hit = Track->extra()->recHitRef(j);
350 DetId TheDetUnitId(
hit->geographicalId());
357 const GlobalPoint TheGlobalPosition = TheSurface.toGlobal(TheLocalPosition);
359 float z = TheGlobalPosition.
z();
362 innermost_phi = TheGlobalPosition.
phi();
363 innermost_eta = TheGlobalPosition.
eta();
364 innermost_z = TheGlobalPosition.
z();
365 innermost_x = TheGlobalPosition.
x();
366 innermost_y = TheGlobalPosition.
y();
367 innermost_r = TMath::Sqrt( innermost_x*innermost_x + innermost_y*innermost_y );
371 outermost_phi = TheGlobalPosition.
phi() ;
372 outermost_eta = TheGlobalPosition.
eta() ;
373 outermost_z = TheGlobalPosition.
z();
376 float dphi =
TMath::Abs( outermost_phi - innermost_phi );
377 float deta =
TMath::Abs( outermost_eta - innermost_eta );
378 hExtra_CSCTrackInnerOuterDPhi ->
Fill( dphi );
379 hExtra_CSCTrackInnerOuterDEta ->
Fill( deta );
380 hExtra_CSCTrackChi2Ndof ->
Fill(Track->normalizedChi2() );
381 hExtra_CSCTrackNHits ->
Fill(Track->numberOfValidHits() );
382 hExtra_InnerMostTrackHitR ->Fill(innermost_r);
383 hExtra_InnerMostTrackHitPhi ->Fill(innermost_phi);
386 hExtra_InnerMostTrackHitXY ->Fill(innermost_x, innermost_y);
387 hExtra_InnerMostTrackHitiPhi ->Fill(
Phi_To_iPhi(innermost_phi));
389 hExtra_InnerMostTrackHitRPlusZ ->Fill(innermost_z, innermost_r);
391 hExtra_InnerMostTrackHitRMinusZ ->Fill(innermost_z, innermost_r);
394 std::vector<const CSCSegment*> MatchedSegments = TheMatcher->matchCSC(*Track,iEvent);
397 float InnerSegmentTime[2] = {0,0};
398 float OuterSegmentTime[2] = {0,0};
399 float innermost_seg_z[2] = {1500,1500};
400 float outermost_seg_z[2] = {0,0};
401 for (std::vector<const CSCSegment*>::const_iterator segment =MatchedSegments.begin();
402 segment != MatchedSegments.end(); ++segment)
404 CSCDetId TheCSCDetId((*segment)->cscDetId());
406 LocalPoint TheLocalPosition = (*segment)->localPosition();
407 const GlobalPoint TheGlobalPosition = TheCSCChamber->toGlobal(TheLocalPosition);
408 float z = TheGlobalPosition.
z();
409 int TheEndcap = TheCSCDetId.endcap();
410 if(
TMath::Abs(z) < innermost_seg_z[TheEndcap-1] )
413 InnerSegmentTime[TheEndcap-1] = (*segment)->time();
415 if(
TMath::Abs(z) > outermost_seg_z[TheEndcap-1] )
418 OuterSegmentTime[TheEndcap-1] = (*segment)->time();
422 float dT_Segment = 0;
423 if( innermost_seg_z[0] < outermost_seg_z[0])
424 dT_Segment = OuterSegmentTime[0]-InnerSegmentTime[0];
425 if( innermost_seg_z[1] < outermost_seg_z[1])
429 if (dT_Segment == 0.0 || OuterSegmentTime[1]-InnerSegmentTime[1] < dT_Segment)
430 dT_Segment = OuterSegmentTime[1]-InnerSegmentTime[1] ;
432 hCSCHaloData_SegmentdT->Fill(dT_Segment);
440 hCSCHaloData_FreeInverseBeta->Fill(freeInverseBeta);
441 hCSCHaloData_FreeInverseBetaVsSegmentdT->Fill(dT_Segment,freeInverseBeta);
449 iEvent.
getByToken(IT_CSCSegment, TheCSCSegments);
452 std::vector< CSCSegment> vCSCSegments_Plus;
453 std::vector< CSCSegment> vCSCSegments_Minus;
455 bool CSCSegmentPlus =
false;
456 bool CSCSegmentMinus=
false;
461 const std::vector<CSCRecHit2D> vCSCRecHits = iSegment->specificRecHits();
464 if ( iDetId.
endcap() == 1 ) vCSCSegments_Plus.push_back( *iSegment );
465 else vCSCSegments_Minus.push_back( *iSegment );
470 if( !vCSCSegments_Plus.empty() ) CSCSegmentPlus =
true;
471 if( !vCSCSegments_Minus.empty() ) CSCSegmentMinus =
true;
475 iEvent.
getByToken(IT_CSCRecHit, TheCSCRecHits);
476 bool CSCRecHitPlus =
false;
477 bool CSCRecHitMinus =
false;
482 DetId TheDetUnitId(iCSCRecHit->geographicalId());
483 const GeomDetUnit *TheUnit = (*TheCSCGeometry).idToDetUnit(TheDetUnitId);
484 LocalPoint TheLocalPosition = iCSCRecHit->localPosition();
485 const BoundPlane& TheSurface = TheUnit->surface();
486 GlobalPoint TheGlobalPosition = TheSurface.toGlobal(TheLocalPosition);
489 if ( TheGlobalPosition.
z() > 0 ) CSCRecHitPlus =
true;
490 else CSCRecHitMinus =
true;
502 if( iEBRecHit->energy() < 0.5 )
continue;
505 int ieta = EcalId.ieta() ;
507 hExtra_EcalToF ->Fill(ieta, iEBRecHit->time() );
515 iEvent.
getByToken(IT_HBHERecHit, TheHBHERecHits);
520 if( iHBHERecHit->energy() < 1.)
continue;
523 hExtra_HcalToF->Fill(
id.ieta(), iHBHERecHit->time() ) ;
533 iEvent.
getByToken(IT_CSCHaloData,TheCSCDataHandle);
534 int TheHaloOrigin = 0;
535 if (TheCSCDataHandle.
isValid())
545 float r = TMath::Sqrt(
i->x()*
i->x() +
i->y()*
i->y() );
548 hCSCHaloData_InnerMostTrackHitXY->Fill(
i->x(),
i->y() );
549 hCSCHaloData_InnerMostTrackHitiPhi ->Fill(
Phi_To_iPhi(
i->phi()));
551 hCSCHaloData_InnerMostTrackHitRPlusZ ->
Fill(
i->z(),
r) ;
553 hCSCHaloData_InnerMostTrackHitRMinusZ ->Fill(
i->z(),
r) ;
555 hCSCHaloData_InnerMostTrackHitR ->Fill(r);
556 hCSCHaloData_InnerMostTrackHitPhi ->Fill(
i->phi());
564 hCSCHaloData_TrackMultiplicity->Fill( CSCData.
GetTracks().
size() );
584 iEvent.
getByToken(IT_EcalHaloData, TheEcalHaloData );
585 if( TheEcalHaloData.
isValid() )
588 std::vector<PhiWedge> EcalWedges = EcalData.
GetPhiWedges();
589 for(std::vector<PhiWedge>::const_iterator iWedge = EcalWedges.begin() ; iWedge != EcalWedges.end(); iWedge ++ )
593 hEcalHaloData_PhiWedgeEnergy->Fill( iWedge->Energy() );
594 hEcalHaloData_PhiWedgeMinTime ->Fill( iWedge->MinTime() );
595 hEcalHaloData_PhiWedgeMaxTime ->Fill( iWedge->MaxTime() );
596 hEcalHaloData_PhiWedgeMinVsMaxTime->Fill(iWedge->MinTime() , iWedge->MaxTime() ) ;
597 hEcalHaloData_PhiWedgePlusZDirectionConfidence->Fill( iWedge->PlusZDirectionConfidence() );
598 hEcalHaloData_PhiWedgeiPhi->Fill(iWedge->iPhi() ) ;
600 hEcalHaloData_PhiWedgeZDirectionConfidence ->Fill( iWedge->ZDirectionConfidence() );
601 hEcalHaloData_PhiWedgeConstituents->Fill( iWedge->NumberOfConstituents() ) ;
604 hEcalHaloData_PhiWedgeMultiplicity->Fill( EcalWedges.size() );
612 float angle = vm_Angle[cluster];
613 float roundness = vm_Roundness[cluster];
614 hEcalHaloData_SuperClusterShowerShapes->Fill(angle, roundness);
615 hEcalHaloData_SuperClusterNHits->Fill( cluster->size() );
616 hEcalHaloData_SuperClusterEnergy->Fill(cluster->energy() );
620 hEcalHaloData_SuperClusterPhiVsEta->Fill(cluster->eta() ,cluster->phi() );
627 iEvent.
getByToken(IT_HcalHaloData ,TheHcalHaloData );
628 if( TheHcalHaloData.
isValid( ) )
631 std::vector<PhiWedge> HcalWedges = HcalData.
GetPhiWedges();
632 hHcalHaloData_PhiWedgeMultiplicity ->Fill( HcalWedges.size() );
633 for(std::vector<PhiWedge>::const_iterator iWedge = HcalWedges.begin() ; iWedge != HcalWedges.end(); iWedge ++ )
637 hHcalHaloData_PhiWedgeEnergy ->Fill( iWedge->Energy() );
638 hHcalHaloData_PhiWedgeMinTime ->Fill( iWedge->MinTime() );
639 hHcalHaloData_PhiWedgeMaxTime ->Fill( iWedge->MaxTime() );
640 hHcalHaloData_PhiWedgePlusZDirectionConfidence ->Fill( iWedge->PlusZDirectionConfidence() );
641 hHcalHaloData_PhiWedgeMinVsMaxTime ->Fill( iWedge->MinTime() , iWedge->MaxTime() );
642 hHcalHaloData_PhiWedgeiPhi ->Fill( iWedge->iPhi() );
645 hHcalHaloData_PhiWedgeConstituents ->Fill( iWedge->NumberOfConstituents() );
646 hHcalHaloData_PhiWedgeZDirectionConfidence ->Fill( iWedge->ZDirectionConfidence() );
655 iEvent.
getByToken(IT_GlobalHaloData, TheGlobalHaloData );
656 if( TheGlobalHaloData.
isValid() )
667 hGlobalHaloData_MExCorrection ->Fill( GlobalData.
DeltaMEx() );
668 hGlobalHaloData_MEyCorrection ->Fill( GlobalData.
DeltaMEy() );
669 hGlobalHaloData_HaloCorrectedMET->Fill(CorrectedMET.
pt() );
670 hGlobalHaloData_RawMETMinusHaloCorrectedMET ->Fill( RawMET->
pt() - CorrectedMET.
pt() );
671 if( RawMET->
sumEt() )
672 hGlobalHaloData_RawMETOverSumEt ->
Fill( RawMET->
pt() / RawMET->
sumEt() );
678 hGlobalHaloData_MatchedHcalPhiWedgeMultiplicity ->Fill(HcalWedges.size());
680 for( std::vector<PhiWedge>::const_iterator iWedge = HcalWedges.begin() ; iWedge != HcalWedges.end() ; iWedge ++ )
682 hGlobalHaloData_MatchedHcalPhiWedgeEnergy ->Fill( iWedge->Energy() );
683 hGlobalHaloData_MatchedHcalPhiWedgeConstituents ->Fill( iWedge->NumberOfConstituents());
684 hGlobalHaloData_MatchedHcalPhiWedgeiPhi ->Fill( iWedge->iPhi() );
685 hGlobalHaloData_MatchedHcalPhiWedgeMinTime ->Fill( iWedge->MinTime() );
686 hGlobalHaloData_MatchedHcalPhiWedgeMaxTime ->Fill( iWedge->MaxTime() );
687 hGlobalHaloData_MatchedHcalPhiWedgeZDirectionConfidence ->Fill( iWedge->ZDirectionConfidence() ) ;
693 int iphi =
id.
iphi() ;
694 if( iphi != iWedge->iPhi() )
continue;
695 if( iHBHERecHit->energy() < 1.0)
continue;
697 float time = iHBHERecHit->time();
698 int ieta =
id.ieta();
699 hExtra_HcalToF_HaloId ->Fill( ieta, time );
706 hGlobalHaloData_MatchedEcalPhiWedgeMultiplicity ->Fill(EcalWedges.size());
707 for( std::vector<PhiWedge>::const_iterator iWedge = EcalWedges.begin() ; iWedge != EcalWedges.end() ; iWedge ++ )
709 hGlobalHaloData_MatchedEcalPhiWedgeEnergy ->Fill(iWedge->Energy());
710 hGlobalHaloData_MatchedEcalPhiWedgeConstituents ->Fill(iWedge->NumberOfConstituents());
711 hGlobalHaloData_MatchedEcalPhiWedgeiPhi ->Fill(iWedge->iPhi());
712 hGlobalHaloData_MatchedEcalPhiWedgeMinTime ->Fill(iWedge->MinTime());
713 hGlobalHaloData_MatchedEcalPhiWedgeMaxTime ->Fill(iWedge->MaxTime());
714 hGlobalHaloData_MatchedEcalPhiWedgeZDirectionConfidence ->Fill( iWedge->ZDirectionConfidence() ) ;
719 if( iEBRecHit->energy() < 0.5 )
continue;
722 int iPhi = EcalId.iphi() ;
723 iPhi = (iPhi-1)/5 + 1;
724 if( iPhi != iWedge->iPhi() )
continue;
725 hExtra_EcalToF_HaloId ->Fill(EcalId.ieta(), iEBRecHit->time() );
735 iEvent.
getByToken(IT_BeamHaloSummary, TheBeamHaloSummary) ;
736 if( TheBeamHaloSummary.
isValid() )
741 hBeamHaloSummary_Id ->Fill(1);
742 if(!StandardDQM) hBeamHaloSummary_BXN ->
Fill( 1, BXN );
743 if(Dump)*
out << std::setw(15) <<
"CSCLoose" << std::setw(15) << Run << std::setw(15) << Lumi << std::setw(15) << TheEventNumber << std::endl;
747 hBeamHaloSummary_Id ->Fill(2);
748 if(!StandardDQM)hBeamHaloSummary_BXN ->
Fill( 2, BXN );
752 hBeamHaloSummary_Id ->Fill(3);
753 if(!StandardDQM) hBeamHaloSummary_BXN ->
Fill( 3, BXN );
754 if(Dump) *
out << std::setw(15) <<
"EcalLoose" << std::setw(15) << Run << std::setw(15) << Lumi << std::setw(15) << TheEventNumber << std::endl;
758 hBeamHaloSummary_Id ->Fill(4);
759 if(!StandardDQM)hBeamHaloSummary_BXN ->
Fill( 4, BXN );
763 hBeamHaloSummary_Id ->Fill(5);
764 if(!StandardDQM) hBeamHaloSummary_BXN ->
Fill( 5, BXN );
765 if(Dump) *
out << std::setw(15) <<
"HcalLoose" << std::setw(15) << Run << std::setw(15) << Lumi << std::setw(15) << TheEventNumber << std::endl;
769 hBeamHaloSummary_Id ->Fill(6);
770 if(!StandardDQM)hBeamHaloSummary_BXN ->
Fill( 6, BXN );
774 hBeamHaloSummary_Id ->Fill(7);
775 if(!StandardDQM)hBeamHaloSummary_BXN ->
Fill( 7, BXN );
776 if(Dump) *
out << std::setw(15) <<
"GlobalLoose" << std::setw(15) << Run << std::setw(15) << Lumi << std::setw(15) << TheEventNumber << std::endl;
780 hBeamHaloSummary_Id ->Fill(8);
781 if(!StandardDQM)hBeamHaloSummary_BXN ->
Fill( 8, BXN );
785 hBeamHaloSummary_Id ->Fill(9);
786 if(!StandardDQM)hBeamHaloSummary_BXN ->
Fill( 9, BXN );
790 hBeamHaloSummary_Id ->Fill(10);
791 if(!StandardDQM)hBeamHaloSummary_BXN ->
Fill( 10, BXN );
795 hBeamHaloSummary_Id ->Fill(11);
796 if(!StandardDQM)hBeamHaloSummary_BXN ->
Fill( 11, BXN );
803 const CaloMET *calomet = &(calometcol->front());
805 if( calomet->
pt() > DumpMET )
806 if(Dump) *
out << std::setw(15) <<
"HighMET" << std::setw(15) << Run << std::setw(15) << Lumi << std::setw(15) << TheEventNumber << std::endl;
809 if( calomet->
pt() > 15.0 )
811 if( TheHaloOrigin > 0 )
813 if( CSCTrackPlus && CSCTrackMinus )
814 hExtra_CSCActivityWithMET->Fill(1,1);
815 else if( CSCTrackPlus && CSCSegmentMinus)
816 hExtra_CSCActivityWithMET->Fill(1,2);
817 else if( CSCTrackPlus && CSCRecHitMinus )
818 hExtra_CSCActivityWithMET->Fill(1,3);
819 else if( CSCTrackPlus )
820 hExtra_CSCActivityWithMET->Fill(1,4);
821 else if( CSCSegmentPlus && CSCTrackMinus )
822 hExtra_CSCActivityWithMET->Fill(2,1);
823 else if( CSCSegmentPlus && CSCSegmentMinus )
824 hExtra_CSCActivityWithMET->
Fill(2,2);
825 else if( CSCSegmentPlus && CSCRecHitMinus )
826 hExtra_CSCActivityWithMET->
Fill(2,3);
827 else if( CSCSegmentPlus )
828 hExtra_CSCActivityWithMET->Fill(2,4 );
829 else if( CSCRecHitPlus && CSCTrackMinus )
830 hExtra_CSCActivityWithMET->Fill(3,1);
831 else if( CSCRecHitPlus && CSCSegmentMinus )
832 hExtra_CSCActivityWithMET->Fill(3,2);
833 else if( CSCRecHitPlus && CSCRecHitMinus )
834 hExtra_CSCActivityWithMET->Fill(3,3);
835 else if( CSCRecHitPlus )
836 hExtra_CSCActivityWithMET->Fill(3,4);
838 hExtra_CSCActivityWithMET->Fill(4,4);
840 else if( TheHaloOrigin < 0 )
842 if( CSCTrackMinus && CSCTrackPlus )
843 hExtra_CSCActivityWithMET->Fill(1,1);
844 else if( CSCTrackMinus && CSCSegmentPlus)
845 hExtra_CSCActivityWithMET->Fill(1,2);
846 else if( CSCTrackMinus && CSCRecHitPlus )
847 hExtra_CSCActivityWithMET->Fill(1,3);
848 else if( CSCTrackMinus )
849 hExtra_CSCActivityWithMET->Fill(1,4);
850 else if( CSCSegmentMinus && CSCTrackPlus)
851 hExtra_CSCActivityWithMET->Fill(2,1);
852 else if( CSCSegmentMinus && CSCSegmentPlus )
853 hExtra_CSCActivityWithMET->Fill(2,2 );
854 else if( CSCSegmentMinus && CSCRecHitPlus )
855 hExtra_CSCActivityWithMET->Fill(2,3);
856 else if( CSCSegmentMinus )
857 hExtra_CSCActivityWithMET->Fill(2,4);
858 else if( CSCRecHitMinus && CSCTrackPlus )
859 hExtra_CSCActivityWithMET->Fill(3,1 );
860 else if( CSCRecHitMinus && CSCSegmentPlus )
861 hExtra_CSCActivityWithMET->Fill(3,2 );
862 else if( CSCRecHitMinus && CSCRecHitPlus )
863 hExtra_CSCActivityWithMET->Fill(3,3);
864 else if( CSCRecHitMinus )
865 hExtra_CSCActivityWithMET->Fill(3,4);
866 else hExtra_CSCActivityWithMET->Fill(4,4);
short int NOutOfTimeTriggers(HaloData::Endcap z=HaloData::both) const
const bool EcalTightHaloId() const
T getParameter(std::string const &) const
EventNumber_t event() const
~BeamHaloAnalyzer() override
int NumberOfHaloTracks(HaloData::Endcap z=HaloData::both) const
edm::ValueMap< float > & GetShowerShapesRoundness()
const bool HcalTightHaloId() const
const bool GlobalLooseHaloId() const
const std::vector< PhiWedge > & GetPhiWedges() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::RefVector< reco::SuperClusterCollection > & GetSuperClusters()
const bool LooseId() const
edm::ValueMap< float > & GetShowerShapesAngle()
bool CSCHaloHLTAccept() const
short int NTracksSmallBetaAndSmalldT() const
Geom::Phi< T > phi() const
std::vector< EcalRecHit >::const_iterator const_iterator
bool exists(std::string const ¶meterName) const
checks if a parameter exists
int bunchCrossing() const
unsigned long long EventNumber_t
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
edm::LuminosityBlockNumber_t luminosityBlock() const
short int NumberOfOutOfTimeTriggers(HaloData::Endcap z=HaloData::both) const
double pt() const final
transverse momentum
const bool TightId() const
const bool GlobalTightHaloId() const
std::vector< PhiWedge > & GetMatchedEcalPhiWedges()
short int NFlatHaloSegments() const
const Plane & surface() const
The nominal surface of the GeomDet.
unsigned int LuminosityBlockNumber_t
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
bool GetSegmentsInBothEndcaps() const
const bool HcalLooseHaloId() const
const bool CSCTightHaloId() const
int Phi_To_iPhi(float phi)
short int NTracksSmallBeta() const
void setCurrentFolder(std::string const &fullpath)
short int NTracksSmalldT() const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
const std::vector< GlobalPoint > & GetCSCTrackImpactPositions() const
void analyze(const edm::Event &, const edm::EventSetup &) override
short int NOutOfTimeHits() const
int NumberOfHaloTriggers(HaloData::Endcap z=HaloData::both) const
reco::CaloMET GetCorrectedCaloMET(const reco::CaloMET &RawMET) const
const_iterator end() const
int iphi() const
get the cell iphi
T const * product() const
MonitorElement * book2D(Args &&...args)
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
const bool CSCLooseHaloId() const
std::vector< PhiWedge > & GetMatchedHcalPhiWedges()
size_type size() const
Size of the RefVector.
const std::vector< PhiWedge > & GetPhiWedges() const
BeamHaloAnalyzer(const edm::ParameterSet &)
const bool EcalLooseHaloId() const
const_iterator begin() const
edm::RefVector< reco::TrackCollection > & GetTracks()
T angle(T x1, T y1, T z1, T x2, T y2, T z2)