83 theTrackerGeometry = tGeometryHandle.
product();
90 if ( !Phase2TrackerDigiTTStubHandle.
isValid() )
return;
92 for ( inputIter = Phase2TrackerDigiTTStubHandle->begin();
93 inputIter != Phase2TrackerDigiTTStubHandle->end();
96 for ( contentIter = inputIter->
begin(); contentIter != inputIter->
end(); ++contentIter )
103 DetId detIdStub = theTrackerGeometry->
idToDet( (tempStubRef->getClusterRef(0))->getDetId() )->geographicalId();
106 double displStub = tempStubRef->getTriggerDisplacement();
107 double offsetStub = tempStubRef->getTriggerOffset();
110 MeasurementPoint mp = (tempStubRef->getClusterRef(0))->findAverageLocalCoordinates();
111 const GeomDet* theGeomDet = theTrackerGeometry->
idToDet(detIdStub);
114 double eta = posStub.
eta();
140 if ( posStub.
z() > 0 )
178 HistoName =
"Stub_Barrel_XY";
190 HistoName =
"Stub_Barrel_XY_Zoom";
192 psTTStub_Barrel_XY_Zoom.
getParameter<int32_t>(
"Nbinsx"),
195 psTTStub_Barrel_XY_Zoom.
getParameter<int32_t>(
"Nbinsy"),
203 HistoName =
"Stub_Endcap_Fw_XY";
216 HistoName =
"Stub_Endcap_Bw_XY";
229 HistoName =
"Stub_RZ";
242 HistoName =
"Stub_Endcap_Fw_RZ_Zoom";
244 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsx"),
245 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"xmin"),
246 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"xmax"),
247 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsy"),
248 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"ymin"),
249 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"ymax"));
255 HistoName =
"Stub_Endcap_Bw_RZ_Zoom";
257 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsx"),
258 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"xmin"),
259 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"xmax"),
260 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsy"),
261 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"ymin"),
262 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"ymax"));
270 HistoName =
"Stub_Eta";
282 HistoName =
"NStubs_Barrel";
292 HistoName =
"NStubs_Endcap_Disc";
301 HistoName =
"NStubs_Endcap_Disc_Fw";
310 HistoName =
"NStubs_Endcap_Disc_Bw";
320 HistoName =
"NStubs_Endcap_Ring";
328 for (
int i = 0;
i < 5;
i++)
330 HistoName =
"NStubs_Disc+"+std::to_string(
i+1);
340 for (
int i = 0;
i < 5;
i++)
342 HistoName =
"NStubs_Disc-"+std::to_string(
i+1);
359 HistoName =
"Stub_Width_Barrel";
370 HistoName =
"Stub_Width_Endcap_Disc";
373 psTTStub_ECDisc_2D.getParameter<
double>(
"xmin"),
374 psTTStub_ECDisc_2D.getParameter<
double>(
"xmax"),
375 psTTStub_ECDisc_2D.getParameter<int32_t>(
"Nbinsy"),
376 psTTStub_ECDisc_2D.getParameter<
double>(
"ymin"),
377 psTTStub_ECDisc_2D.getParameter<
double>(
"ymax"));
381 HistoName =
"Stub_Width_Endcap_Ring";
384 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
385 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
386 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
387 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
388 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
392 for (
int i = 0;
i < 5;
i++)
394 HistoName =
"Stub_Width_Disc+"+std::to_string(
i+1);
397 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
398 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
399 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
400 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
401 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
406 for (
int i = 0;
i < 5;
i++)
408 HistoName =
"Stub_Width_Disc-"+std::to_string(
i+1);
411 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
412 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
413 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
414 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
415 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
422 HistoName =
"Stub_Offset_Barrel";
433 HistoName =
"Stub_Offset_Endcap_Disc";
436 psTTStub_ECDisc_2D.getParameter<
double>(
"xmin"),
437 psTTStub_ECDisc_2D.getParameter<
double>(
"xmax"),
438 psTTStub_ECDisc_2D.getParameter<int32_t>(
"Nbinsy"),
439 psTTStub_ECDisc_2D.getParameter<
double>(
"ymin"),
440 psTTStub_ECDisc_2D.getParameter<
double>(
"ymax"));
444 HistoName =
"Stub_Offset_Endcap_Ring";
447 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
448 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
449 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
450 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
451 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
455 for (
int i = 0;
i < 5;
i++)
457 HistoName =
"Stub_Offset_Disc+"+std::to_string(
i+1);
460 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
461 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
462 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
463 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
464 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
469 for (
int i = 0;
i < 5;
i++)
471 HistoName =
"Stub_Offset_Disc-"+std::to_string(
i+1);
474 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
475 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
476 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
477 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
478 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
T getParameter(std::string const &) const
edm::Ref< typename HandleT::element_type, typename HandleT::element_type::value_type::value_type > makeRefTo(const HandleT &iHandle, typename HandleT::element_type::value_type::const_iterator itIter)
const_iterator end(bool update=false) const
MonitorElement * Stub_Endcap_Bw_XY
unsigned int tidRing(const DetId &id) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
std::string topFolderName_
MonitorElement * Stub_Endcap_Fw_RZ_Zoom
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual const Topology & topology() const
#define DEFINE_FWK_MODULE(type)
MonitorElement * Stub_Endcap_Ring_O_Fw[5]
MonitorElement * Stub_Endcap_Fw_XY
MonitorElement * Stub_Endcap_Bw_RZ_Zoom
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * Stub_Barrel_O
const Plane & surface() const
The nominal surface of the GeomDet.
MonitorElement * Stub_Barrel_XY
MonitorElement * Stub_Endcap_Ring_Bw[5]
MonitorElement * Stub_Endcap_Disc_Fw
MonitorElement * Stub_Eta
virtual void analyze(const edm::Event &, const edm::EventSetup &)
OuterTrackerMonitorTTStub(const edm::ParameterSet &)
MonitorElement * Stub_Endcap_Ring_O_Bw[5]
MonitorElement * Stub_Barrel_XY_Zoom
MonitorElement * Stub_Endcap_Disc
MonitorElement * Stub_Endcap_Disc_Bw
Class to store the L1 Track Trigger stubs.
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * Stub_Endcap_Ring
MonitorElement * Stub_Endcap_Ring_O
edm::EDGetTokenT< edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > > > tagTTStubsToken_
MonitorElement * Stub_Endcap_Disc_O
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
MonitorElement * Stub_Endcap_Disc_W
unsigned int layer(const DetId &id) const
~OuterTrackerMonitorTTStub()
MonitorElement * Stub_Barrel
MonitorElement * Stub_Endcap_Ring_Fw[5]
MonitorElement * Stub_Endcap_Ring_W_Bw[5]
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
T const * product() const
MonitorElement * Stub_Barrel_W
void setCurrentFolder(const std::string &fullpath)
const_iterator begin(bool update=false) const
const TrackerGeomDet * idToDet(DetId) const
MonitorElement * Stub_Endcap_Ring_W
MonitorElement * Stub_Endcap_Ring_W_Fw[5]