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 )
176 HistoName =
"Stub_Barrel_XY";
188 HistoName =
"Stub_Barrel_XY_Zoom";
190 psTTStub_Barrel_XY_Zoom.
getParameter<int32_t>(
"Nbinsx"),
193 psTTStub_Barrel_XY_Zoom.
getParameter<int32_t>(
"Nbinsy"),
201 HistoName =
"Stub_Endcap_Fw_XY";
214 HistoName =
"Stub_Endcap_Bw_XY";
227 HistoName =
"Stub_RZ";
240 HistoName =
"Stub_Endcap_Fw_RZ_Zoom";
242 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsx"),
243 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"xmin"),
244 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"xmax"),
245 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsy"),
246 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"ymin"),
247 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"ymax"));
253 HistoName =
"Stub_Endcap_Bw_RZ_Zoom";
255 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsx"),
256 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"xmin"),
257 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"xmax"),
258 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsy"),
259 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"ymin"),
260 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"ymax"));
268 HistoName =
"Stub_Eta";
280 HistoName =
"NStubs_Barrel";
290 HistoName =
"NStubs_Endcap_Disc";
299 HistoName =
"NStubs_Endcap_Disc_Fw";
308 HistoName =
"NStubs_Endcap_Disc_Bw";
318 HistoName =
"NStubs_Endcap_Ring";
326 for (
int i = 0;
i < 5;
i++)
328 HistoName =
"NStubs_Disc+"+std::to_string(
i+1);
338 for (
int i = 0;
i < 5;
i++)
340 HistoName =
"NStubs_Disc-"+std::to_string(
i+1);
357 HistoName =
"Stub_Width_Barrel";
368 HistoName =
"Stub_Width_Endcap_Disc";
371 psTTStub_ECDisc_2D.getParameter<
double>(
"xmin"),
372 psTTStub_ECDisc_2D.getParameter<
double>(
"xmax"),
373 psTTStub_ECDisc_2D.getParameter<int32_t>(
"Nbinsy"),
374 psTTStub_ECDisc_2D.getParameter<
double>(
"ymin"),
375 psTTStub_ECDisc_2D.getParameter<
double>(
"ymax"));
379 HistoName =
"Stub_Width_Endcap_Ring";
382 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
383 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
384 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
385 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
386 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
390 for (
int i = 0;
i < 5;
i++)
392 HistoName =
"Stub_Width_Disc+"+std::to_string(
i+1);
395 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
396 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
397 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
398 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
399 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
404 for (
int i = 0;
i < 5;
i++)
406 HistoName =
"Stub_Width_Disc-"+std::to_string(
i+1);
409 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
410 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
411 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
412 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
413 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
420 HistoName =
"Stub_Offset_Barrel";
431 HistoName =
"Stub_Offset_Endcap_Disc";
434 psTTStub_ECDisc_2D.getParameter<
double>(
"xmin"),
435 psTTStub_ECDisc_2D.getParameter<
double>(
"xmax"),
436 psTTStub_ECDisc_2D.getParameter<int32_t>(
"Nbinsy"),
437 psTTStub_ECDisc_2D.getParameter<
double>(
"ymin"),
438 psTTStub_ECDisc_2D.getParameter<
double>(
"ymax"));
442 HistoName =
"Stub_Offset_Endcap_Ring";
445 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
446 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
447 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
448 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
449 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
453 for (
int i = 0;
i < 5;
i++)
455 HistoName =
"Stub_Offset_Disc+"+std::to_string(
i+1);
458 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
459 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
460 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
461 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
462 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
467 for (
int i = 0;
i < 5;
i++)
469 HistoName =
"Stub_Offset_Disc-"+std::to_string(
i+1);
472 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
473 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
474 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
475 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
476 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
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
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * Stub_Barrel_O
const Plane & surface() const
The nominal surface of the GeomDet.
MonitorElement * Stub_Barrel_XY
~OuterTrackerMonitorTTStub() override
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * Stub_Endcap_Ring_Bw[5]
MonitorElement * Stub_Endcap_Disc_Fw
MonitorElement * Stub_Eta
OuterTrackerMonitorTTStub(const edm::ParameterSet &)
MonitorElement * Stub_Endcap_Ring_O_Bw[5]
MonitorElement * Stub_Barrel_XY_Zoom
MonitorElement * Stub_Endcap_Disc
MonitorElement * book1D(Args &&...args)
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
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
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
MonitorElement * Stub_Barrel
MonitorElement * Stub_Endcap_Ring_Fw[5]
const TrackerGeomDet * idToDet(DetId) const override
MonitorElement * Stub_Endcap_Ring_W_Bw[5]
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
const_iterator begin(bool update=false) const
MonitorElement * Stub_Endcap_Ring_W
MonitorElement * Stub_Endcap_Ring_W_Fw[5]