73 theTrackerGeometry = tGeometryHandle.
product();
79 if ( !Phase2TrackerDigiTTStubHandle.
isValid() )
return;
81 for ( inputIter = Phase2TrackerDigiTTStubHandle->begin(); inputIter != Phase2TrackerDigiTTStubHandle->end(); ++inputIter ) {
82 for ( contentIter = inputIter->
begin(); contentIter != inputIter->
end(); ++contentIter ) {
88 DetId detIdStub = theTrackerGeometry->
idToDet( (tempStubRef->getClusterRef(0))->getDetId() )->geographicalId();
91 double displStub = tempStubRef->getTriggerDisplacement();
92 double offsetStub = tempStubRef->getTriggerOffset();
95 MeasurementPoint mp = (tempStubRef->getClusterRef(0))->findAverageLocalCoordinates();
96 const GeomDet* theGeomDet = theTrackerGeometry->
idToDet(detIdStub);
120 if ( posStub.
z() > 0 ) {
142 const int numDiscs = 5;
146 HistoName =
"Stub_Barrel_XY";
158 HistoName =
"Stub_Endcap_Fw_XY";
170 HistoName =
"Stub_Endcap_Bw_XY";
183 HistoName =
"Stub_RZ";
197 HistoName =
"Stub_Eta";
207 HistoName =
"Stub_Phi";
217 HistoName =
"Stub_R";
228 HistoName =
"NStubs_Barrel";
238 HistoName =
"NStubs_Endcap_Disc";
247 HistoName =
"NStubs_Endcap_Disc_Fw";
256 HistoName =
"NStubs_Endcap_Disc_Bw";
265 HistoName =
"NStubs_Endcap_Ring";
273 for (
int i = 0;
i < numDiscs;
i++) {
274 HistoName =
"NStubs_Disc+"+std::to_string(
i+1);
284 for (
int i = 0;
i < numDiscs;
i++) {
285 HistoName =
"NStubs_Disc-"+std::to_string(
i+1);
301 HistoName =
"Stub_Width_Barrel";
312 HistoName =
"Stub_Width_Endcap_Disc";
315 psTTStub_ECDisc_2D.getParameter<
double>(
"xmin"),
316 psTTStub_ECDisc_2D.getParameter<
double>(
"xmax"),
317 psTTStub_ECDisc_2D.getParameter<int32_t>(
"Nbinsy"),
318 psTTStub_ECDisc_2D.getParameter<
double>(
"ymin"),
319 psTTStub_ECDisc_2D.getParameter<
double>(
"ymax"));
323 HistoName =
"Stub_Width_Endcap_Ring";
326 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
327 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
328 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
329 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
330 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
334 for (
int i = 0;
i < numDiscs;
i++) {
335 HistoName =
"Stub_Width_Disc+"+std::to_string(
i+1);
338 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
339 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
340 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
341 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
342 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
347 for (
int i = 0;
i < numDiscs;
i++) {
348 HistoName =
"Stub_Width_Disc-"+std::to_string(
i+1);
351 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
352 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
353 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
354 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
355 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
361 HistoName =
"Stub_Offset_Barrel";
372 HistoName =
"Stub_Offset_Endcap_Disc";
375 psTTStub_ECDisc_2D.getParameter<
double>(
"xmin"),
376 psTTStub_ECDisc_2D.getParameter<
double>(
"xmax"),
377 psTTStub_ECDisc_2D.getParameter<int32_t>(
"Nbinsy"),
378 psTTStub_ECDisc_2D.getParameter<
double>(
"ymin"),
379 psTTStub_ECDisc_2D.getParameter<
double>(
"ymax"));
383 HistoName =
"Stub_Offset_Endcap_Ring";
386 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
387 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
388 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
389 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
390 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
394 for (
int i = 0;
i < numDiscs;
i++) {
395 HistoName =
"Stub_Offset_Disc+"+std::to_string(
i+1);
398 psTTStub_ECRing_2D.getParameter<
double>(
"xmin"),
399 psTTStub_ECRing_2D.getParameter<
double>(
"xmax"),
400 psTTStub_ECRing_2D.getParameter<int32_t>(
"Nbinsy"),
401 psTTStub_ECRing_2D.getParameter<
double>(
"ymin"),
402 psTTStub_ECRing_2D.getParameter<
double>(
"ymax"));
407 for (
int i = 0;
i < numDiscs;
i++) {
408 HistoName =
"Stub_Offset_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"));
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_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual const Topology & topology() const
#define DEFINE_FWK_MODULE(type)
Geom::Phi< T > phi() const
MonitorElement * Stub_Endcap_Ring_O_Fw[5]
MonitorElement * Stub_Endcap_Fw_XY
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_Endcap_Disc
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * book1D(Args &&...args)
MonitorElement * Stub_Endcap_Disc_Bw
Class to store the L1 Track Trigger stubs.
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]
MonitorElement * Stub_Phi
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]