83 theTrackerGeometry = tGeometryHandle.
product();
89 for ( inputIter = Phase2TrackerDigiTTStubHandle->begin();
90 inputIter != Phase2TrackerDigiTTStubHandle->end();
93 for ( contentIter = inputIter->
begin(); contentIter != inputIter->
end(); ++contentIter )
100 DetId detIdStub = theTrackerGeometry->
idToDet( (tempStubRef->getClusterRef(0))->getDetId() )->geographicalId();
103 double displStub = tempStubRef->getTriggerDisplacement();
104 double offsetStub = tempStubRef->getTriggerOffset();
107 MeasurementPoint mp = (tempStubRef->getClusterRef(0))->findAverageLocalCoordinates();
108 const GeomDet* theGeomDet = theTrackerGeometry->
idToDet(detIdStub);
111 double eta = posStub.
eta();
137 if ( posStub.
z() > 0 )
175 HistoName =
"Stub_Barrel_XY";
187 HistoName =
"Stub_Barrel_XY_Zoom";
189 psTTStub_Barrel_XY_Zoom.
getParameter<int32_t>(
"Nbinsx"),
192 psTTStub_Barrel_XY_Zoom.
getParameter<int32_t>(
"Nbinsy"),
200 HistoName =
"Stub_Endcap_Fw_XY";
213 HistoName =
"Stub_Endcap_Bw_XY";
226 HistoName =
"Stub_RZ";
239 HistoName =
"Stub_Endcap_Fw_RZ_Zoom";
241 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsx"),
242 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"xmin"),
243 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"xmax"),
244 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsy"),
245 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"ymin"),
246 psTTStub_Endcap_Fw_RZ_Zoom.
getParameter<
double>(
"ymax"));
252 HistoName =
"Stub_Endcap_Bw_RZ_Zoom";
254 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsx"),
255 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"xmin"),
256 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"xmax"),
257 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<int32_t>(
"Nbinsy"),
258 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"ymin"),
259 psTTStub_Endcap_Bw_RZ_Zoom.
getParameter<
double>(
"ymax"));
267 HistoName =
"Stub_Eta";
279 HistoName =
"NStubs_Barrel";
289 HistoName =
"NStubs_Endcap_Disc";
298 HistoName =
"NStubs_Endcap_Disc_Fw";
307 HistoName =
"NStubs_Endcap_Disc_Bw";
317 HistoName =
"NStubs_Endcap_Ring";
325 for (
int i = 0;
i < 5;
i++)
327 HistoName =
"NStubs_Disc+"+std::to_string(
i+1);
337 for (
int i = 0;
i < 5;
i++)
339 HistoName =
"NStubs_Disc-"+std::to_string(
i+1);
356 HistoName =
"Stub_Width_Barrel";
367 HistoName =
"Stub_Width_Endcap_Disc";
370 psTTStub_ECDisc_2D.getParameter<
double>(
"xmin"),
371 psTTStub_ECDisc_2D.getParameter<
double>(
"xmax"),
372 psTTStub_ECDisc_2D.getParameter<int32_t>(
"Nbinsy"),
373 psTTStub_ECDisc_2D.getParameter<
double>(
"ymin"),
374 psTTStub_ECDisc_2D.getParameter<
double>(
"ymax"));
378 HistoName =
"Stub_Width_Endcap_Ring";
381 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
382 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
383 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
384 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
385 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
389 for (
int i = 0;
i < 5;
i++)
391 HistoName =
"Stub_Width_Disc+"+std::to_string(
i+1);
394 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
395 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
396 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
397 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
398 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
403 for (
int i = 0;
i < 5;
i++)
405 HistoName =
"Stub_Width_Disc-"+std::to_string(
i+1);
408 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
409 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
410 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
411 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
412 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
419 HistoName =
"Stub_Offset_Barrel";
430 HistoName =
"Stub_Offset_Endcap_Disc";
433 psTTStub_ECDisc_2D.getParameter<
double>(
"xmin"),
434 psTTStub_ECDisc_2D.getParameter<
double>(
"xmax"),
435 psTTStub_ECDisc_2D.getParameter<int32_t>(
"Nbinsy"),
436 psTTStub_ECDisc_2D.getParameter<
double>(
"ymin"),
437 psTTStub_ECDisc_2D.getParameter<
double>(
"ymax"));
441 HistoName =
"Stub_Offset_Endcap_Ring";
444 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
445 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
446 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
447 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
448 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
452 for (
int i = 0;
i < 5;
i++)
454 HistoName =
"Stub_Offset_Disc+"+std::to_string(
i+1);
457 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
458 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
459 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
460 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
461 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
466 for (
int i = 0;
i < 5;
i++)
468 HistoName =
"Stub_Offset_Disc-"+std::to_string(
i+1);
471 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
472 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
473 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
474 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
475 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]