CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
OuterTrackerMonitorTTStub Class Reference

#include <OuterTrackerMonitorTTStub.h>

Inheritance diagram for OuterTrackerMonitorTTStub:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginRun (const edm::Run &, const edm::EventSetup &)
 
virtual void endJob ()
 
 OuterTrackerMonitorTTStub (const edm::ParameterSet &)
 
 ~OuterTrackerMonitorTTStub ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Public Attributes

MonitorElementStub_Barrel = 0
 
MonitorElementStub_Barrel_O = 0
 
MonitorElementStub_Barrel_W = 0
 
MonitorElementStub_Barrel_XY = 0
 
MonitorElementStub_Barrel_XY_Zoom = 0
 
MonitorElementStub_Endcap_Bw_RZ_Zoom = 0
 
MonitorElementStub_Endcap_Bw_XY = 0
 
MonitorElementStub_Endcap_Disc = 0
 
MonitorElementStub_Endcap_Disc_Bw = 0
 
MonitorElementStub_Endcap_Disc_Fw = 0
 
MonitorElementStub_Endcap_Disc_O = 0
 
MonitorElementStub_Endcap_Disc_W = 0
 
MonitorElementStub_Endcap_Fw_RZ_Zoom = 0
 
MonitorElementStub_Endcap_Fw_XY = 0
 
MonitorElementStub_Endcap_Ring = 0
 
MonitorElementStub_Endcap_Ring_Bw [5] = {0, 0, 0, 0, 0}
 
MonitorElementStub_Endcap_Ring_Fw [5] = {0, 0, 0, 0, 0}
 
MonitorElementStub_Endcap_Ring_O = 0
 
MonitorElementStub_Endcap_Ring_O_Bw [5] = {0, 0, 0, 0, 0}
 
MonitorElementStub_Endcap_Ring_O_Fw [5] = {0, 0, 0, 0, 0}
 
MonitorElementStub_Endcap_Ring_W = 0
 
MonitorElementStub_Endcap_Ring_W_Bw [5] = {0, 0, 0, 0, 0}
 
MonitorElementStub_Endcap_Ring_W_Fw [5] = {0, 0, 0, 0, 0}
 
MonitorElementStub_Eta = 0
 
MonitorElementStub_RZ = 0
 

Private Attributes

edm::ParameterSet conf_
 
DQMStoredqmStore_
 
edm::EDGetTokenT< edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > > > tagTTStubsToken_
 
std::string topFolderName_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 21 of file OuterTrackerMonitorTTStub.h.

Constructor & Destructor Documentation

OuterTrackerMonitorTTStub::OuterTrackerMonitorTTStub ( const edm::ParameterSet iConfig)
explicit

Definition at line 44 of file OuterTrackerMonitorTTStub.cc.

References conf_, edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, tagTTStubsToken_, and topFolderName_.

46 {
47  //now do what ever initialization is needed
48  topFolderName_ = conf_.getParameter<std::string>("TopFolderName");
49  tagTTStubsToken_ = consumes<edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > > > (conf_.getParameter<edm::InputTag>("TTStubs") );
50 }
T getParameter(std::string const &) const
edm::EDGetTokenT< edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > > > tagTTStubsToken_
OuterTrackerMonitorTTStub::~OuterTrackerMonitorTTStub ( )

Definition at line 53 of file OuterTrackerMonitorTTStub.cc.

54 {
55 
56  // do anything here that needs to be done at desctruction time
57  // (e.g. close files, deallocate resources etc.)
58 
59 }

Member Function Documentation

void OuterTrackerMonitorTTStub::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Track Trigger Stubs

Geometry

Loop over input Stubs

Make reference stub

Get det ID (place of the stub)

Get trigger displacement/offset

Define position stub by position inner cluster

Definition at line 68 of file OuterTrackerMonitorTTStub.cc.

References edmNew::DetSetVector< T >::begin(), TtSemiLepEvtBuilder_cfi::disc, edmNew::DetSetVector< T >::end(), stringResolutionProvider_cfi::eta, PV3DBase< T, PVType, FrameType >::eta(), MonitorElement::Fill(), edm::EventSetup::get(), edm::Event::getByToken(), TrackerGeometry::idToDet(), edm::HandleBase::isValid(), TrackerTopology::layer(), Topology::localPosition(), edmNew::makeRefTo(), PV3DBase< T, PVType, FrameType >::perp(), edm::ESHandle< T >::product(), relativeConstraints::ring, Stub_Barrel, Stub_Barrel_O, Stub_Barrel_W, Stub_Barrel_XY, Stub_Barrel_XY_Zoom, Stub_Endcap_Bw_RZ_Zoom, Stub_Endcap_Bw_XY, Stub_Endcap_Disc, Stub_Endcap_Disc_Bw, Stub_Endcap_Disc_Fw, Stub_Endcap_Disc_O, Stub_Endcap_Disc_W, Stub_Endcap_Fw_RZ_Zoom, Stub_Endcap_Fw_XY, Stub_Endcap_Ring, Stub_Endcap_Ring_Bw, Stub_Endcap_Ring_Fw, Stub_Endcap_Ring_O, Stub_Endcap_Ring_O_Bw, Stub_Endcap_Ring_O_Fw, Stub_Endcap_Ring_W, Stub_Endcap_Ring_W_Bw, Stub_Endcap_Ring_W_Fw, Stub_Eta, Stub_RZ, DetId::subdetId(), GeomDet::surface(), tagTTStubsToken_, StripSubdetector::TID, TrackerTopology::tidRing(), StripSubdetector::TOB, Surface::toGlobal(), GeomDet::topology(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

69 {
72  iEvent.getByToken( tagTTStubsToken_, Phase2TrackerDigiTTStubHandle );
73 
76  const TrackerTopology* tTopo;
77  iSetup.get< TrackerTopologyRcd >().get(tTopoHandle);
78  tTopo = tTopoHandle.product();
79 
80  edm::ESHandle< TrackerGeometry > tGeometryHandle;
81  const TrackerGeometry* theTrackerGeometry;
82  iSetup.get< TrackerDigiGeometryRecord >().get( tGeometryHandle );
83  theTrackerGeometry = tGeometryHandle.product();
84 
85 
87  typename edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > >::const_iterator inputIter;
88  typename edmNew::DetSet< TTStub< Ref_Phase2TrackerDigi_ > >::const_iterator contentIter;
89  //Adding protection
90  if ( !Phase2TrackerDigiTTStubHandle.isValid() ) return;
91 
92  for ( inputIter = Phase2TrackerDigiTTStubHandle->begin();
93  inputIter != Phase2TrackerDigiTTStubHandle->end();
94  ++inputIter )
95  {
96  for ( contentIter = inputIter->begin(); contentIter != inputIter->end(); ++contentIter )
97  {
100 
102  // tempStubRef->getDetId() gives the stackDetId, not rawId
103  DetId detIdStub = theTrackerGeometry->idToDet( (tempStubRef->getClusterRef(0))->getDetId() )->geographicalId();
104 
106  double displStub = tempStubRef->getTriggerDisplacement();
107  double offsetStub = tempStubRef->getTriggerOffset();
108 
110  MeasurementPoint mp = (tempStubRef->getClusterRef(0))->findAverageLocalCoordinates();
111  const GeomDet* theGeomDet = theTrackerGeometry->idToDet(detIdStub);
112  Global3DPoint posStub = theGeomDet->surface().toGlobal( theGeomDet->topology().localPosition(mp) );
113 
114  double eta = posStub.eta();
115 
116  Stub_Eta->Fill(eta);
117  Stub_RZ->Fill( posStub.z(), posStub.perp() );
118 
119  if ( detIdStub.subdetId() == static_cast<int>(StripSubdetector::TOB) ) // Phase 2 Outer Tracker Barrel
120  {
121  Stub_Barrel->Fill(tTopo->layer(detIdStub));
122 
123  Stub_Barrel_XY->Fill( posStub.x(), posStub.y() );
124  Stub_Barrel_XY_Zoom->Fill( posStub.x(), posStub.y() );
125 
126  Stub_Barrel_W->Fill(tTopo->layer(detIdStub), displStub - offsetStub);
127  Stub_Barrel_O->Fill(tTopo->layer(detIdStub), offsetStub);
128  }
129  else if ( detIdStub.subdetId() == static_cast<int>(StripSubdetector::TID) ) // Phase 2 Outer Tracker Endcap
130  {
131  int disc = tTopo->layer(detIdStub); // returns wheel
132  int ring = tTopo->tidRing(detIdStub);
133  Stub_Endcap_Disc->Fill(disc);
134  Stub_Endcap_Ring->Fill(ring);
135  Stub_Endcap_Disc_W->Fill(disc, displStub - offsetStub);
136  Stub_Endcap_Ring_W->Fill(ring, displStub - offsetStub);
137  Stub_Endcap_Disc_O->Fill(disc, offsetStub);
138  Stub_Endcap_Ring_O->Fill(ring, offsetStub);
139 
140  if ( posStub.z() > 0 )
141  {
142  Stub_Endcap_Fw_XY->Fill( posStub.x(), posStub.y() );
143  Stub_Endcap_Fw_RZ_Zoom->Fill( posStub.z(), posStub.perp() );
144  Stub_Endcap_Disc_Fw->Fill(disc);
145  Stub_Endcap_Ring_Fw[disc-1]->Fill(ring);
146  Stub_Endcap_Ring_W_Fw[disc-1]->Fill(ring, displStub - offsetStub);
147  Stub_Endcap_Ring_O_Fw[disc-1]->Fill(ring, offsetStub);
148  }
149  else
150  {
151  Stub_Endcap_Bw_XY->Fill( posStub.x(), posStub.y() );
152  Stub_Endcap_Bw_RZ_Zoom->Fill( posStub.z(), posStub.perp() );
153  Stub_Endcap_Disc_Bw->Fill(disc);
154  Stub_Endcap_Ring_Bw[disc-1]->Fill(ring);
155  Stub_Endcap_Ring_W_Bw[disc-1]->Fill(ring, displStub - offsetStub);
156  Stub_Endcap_Ring_O_Bw[disc-1]->Fill(ring, offsetStub);
157  }
158  }
159  }
160  }
161 } // end of method
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:106
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
T perp() const
Definition: PV3DBase.h:72
unsigned int tidRing(const DetId &id) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:457
virtual const Topology & topology() const
Definition: GeomDet.cc:81
T y() const
Definition: PV3DBase.h:63
MonitorElement * Stub_Endcap_Ring_O_Fw[5]
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
void Fill(long long x)
MonitorElement * Stub_Endcap_Ring_Bw[5]
MonitorElement * Stub_Endcap_Ring_O_Bw[5]
T z() const
Definition: PV3DBase.h:64
bool isValid() const
Definition: HandleBase.h:74
Class to store the L1 Track Trigger stubs.
Definition: TTStub.h:22
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
Definition: DetId.h:18
const T & get() const
Definition: EventSetup.h:56
edm::EDGetTokenT< edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > > > tagTTStubsToken_
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
unsigned int layer(const DetId &id) const
T eta() const
Definition: PV3DBase.h:76
MonitorElement * Stub_Endcap_Ring_Fw[5]
MonitorElement * Stub_Endcap_Ring_W_Bw[5]
T x() const
Definition: PV3DBase.h:62
T const * product() const
Definition: ESHandle.h:86
const_iterator begin(bool update=false) const
const TrackerGeomDet * idToDet(DetId) const
MonitorElement * Stub_Endcap_Ring_W_Fw[5]
void OuterTrackerMonitorTTStub::beginRun ( const edm::Run ,
const edm::EventSetup  
)
virtual

Definition at line 166 of file OuterTrackerMonitorTTStub.cc.

References DQMStore::book1D(), DQMStore::book2D(), conf_, dqmStore_, edm::ParameterSet::getParameter(), mps_fire::i, MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, Stub_Barrel, Stub_Barrel_O, Stub_Barrel_W, Stub_Barrel_XY, Stub_Barrel_XY_Zoom, Stub_Endcap_Bw_RZ_Zoom, Stub_Endcap_Bw_XY, Stub_Endcap_Disc, Stub_Endcap_Disc_Bw, Stub_Endcap_Disc_Fw, Stub_Endcap_Disc_O, Stub_Endcap_Disc_W, Stub_Endcap_Fw_RZ_Zoom, Stub_Endcap_Fw_XY, Stub_Endcap_Ring, Stub_Endcap_Ring_Bw, Stub_Endcap_Ring_Fw, Stub_Endcap_Ring_O, Stub_Endcap_Ring_O_Bw, Stub_Endcap_Ring_O_Fw, Stub_Endcap_Ring_W, Stub_Endcap_Ring_W_Bw, Stub_Endcap_Ring_W_Fw, Stub_Eta, Stub_RZ, and topFolderName_.

167 {
169 
170  dqmStore_->setCurrentFolder(topFolderName_+"/Stubs/Position");
171 
172 
176 
177  edm::ParameterSet psTTStub_Barrel_XY = conf_.getParameter<edm::ParameterSet>("TH2TTStub_Position");
178  HistoName = "Stub_Barrel_XY";
179  Stub_Barrel_XY = dqmStore_->book2D(HistoName, HistoName,
180  psTTStub_Barrel_XY.getParameter<int32_t>("Nbinsx"),
181  psTTStub_Barrel_XY.getParameter<double>("xmin"),
182  psTTStub_Barrel_XY.getParameter<double>("xmax"),
183  psTTStub_Barrel_XY.getParameter<int32_t>("Nbinsy"),
184  psTTStub_Barrel_XY.getParameter<double>("ymin"),
185  psTTStub_Barrel_XY.getParameter<double>("ymax"));
186  Stub_Barrel_XY->setAxisTitle("L1 Stub Barrel position x [cm]", 1);
187  Stub_Barrel_XY->setAxisTitle("L1 Stub Barrel position y [cm]", 2);
188 
189  edm::ParameterSet psTTStub_Barrel_XY_Zoom = conf_.getParameter<edm::ParameterSet>("TH2TTStub_Barrel_XY_Zoom");
190  HistoName = "Stub_Barrel_XY_Zoom";
191  Stub_Barrel_XY_Zoom = dqmStore_->book2D(HistoName, HistoName,
192  psTTStub_Barrel_XY_Zoom.getParameter<int32_t>("Nbinsx"),
193  psTTStub_Barrel_XY_Zoom.getParameter<double>("xmin"),
194  psTTStub_Barrel_XY_Zoom.getParameter<double>("xmax"),
195  psTTStub_Barrel_XY_Zoom.getParameter<int32_t>("Nbinsy"),
196  psTTStub_Barrel_XY_Zoom.getParameter<double>("ymin"),
197  psTTStub_Barrel_XY_Zoom.getParameter<double>("ymax"));
198  Stub_Barrel_XY_Zoom->setAxisTitle("L1 Stub Barrel position x [cm]", 1);
199  Stub_Barrel_XY_Zoom->setAxisTitle("L1 Stub Barrel position y [cm]", 2);
200 
201 
202  edm::ParameterSet psTTStub_Endcap_Fw_XY = conf_.getParameter<edm::ParameterSet>("TH2TTStub_Position");
203  HistoName = "Stub_Endcap_Fw_XY";
204  Stub_Endcap_Fw_XY = dqmStore_->book2D(HistoName, HistoName,
205  psTTStub_Endcap_Fw_XY.getParameter<int32_t>("Nbinsx"),
206  psTTStub_Endcap_Fw_XY.getParameter<double>("xmin"),
207  psTTStub_Endcap_Fw_XY.getParameter<double>("xmax"),
208  psTTStub_Endcap_Fw_XY.getParameter<int32_t>("Nbinsy"),
209  psTTStub_Endcap_Fw_XY.getParameter<double>("ymin"),
210  psTTStub_Endcap_Fw_XY.getParameter<double>("ymax"));
211  Stub_Endcap_Fw_XY->setAxisTitle("L1 Stub Endcap position x [cm]", 1);
212  Stub_Endcap_Fw_XY->setAxisTitle("L1 Stub Endcap position y [cm]", 2);
213 
214 
215  edm::ParameterSet psTTStub_Endcap_Bw_XY = conf_.getParameter<edm::ParameterSet>("TH2TTStub_Position");
216  HistoName = "Stub_Endcap_Bw_XY";
217  Stub_Endcap_Bw_XY = dqmStore_->book2D(HistoName, HistoName,
218  psTTStub_Endcap_Bw_XY.getParameter<int32_t>("Nbinsx"),
219  psTTStub_Endcap_Bw_XY.getParameter<double>("xmin"),
220  psTTStub_Endcap_Bw_XY.getParameter<double>("xmax"),
221  psTTStub_Endcap_Bw_XY.getParameter<int32_t>("Nbinsy"),
222  psTTStub_Endcap_Bw_XY.getParameter<double>("ymin"),
223  psTTStub_Endcap_Bw_XY.getParameter<double>("ymax"));
224  Stub_Endcap_Bw_XY->setAxisTitle("L1 Stub Endcap position x [cm]", 1);
225  Stub_Endcap_Bw_XY->setAxisTitle("L1 Stub Endcap position y [cm]", 2);
226 
227  //TTStub #rho vs. z
228  edm::ParameterSet psTTStub_RZ = conf_.getParameter<edm::ParameterSet>("TH2TTStub_RZ");
229  HistoName = "Stub_RZ";
230  Stub_RZ = dqmStore_->book2D(HistoName, HistoName,
231  psTTStub_RZ.getParameter<int32_t>("Nbinsx"),
232  psTTStub_RZ.getParameter<double>("xmin"),
233  psTTStub_RZ.getParameter<double>("xmax"),
234  psTTStub_RZ.getParameter<int32_t>("Nbinsy"),
235  psTTStub_RZ.getParameter<double>("ymin"),
236  psTTStub_RZ.getParameter<double>("ymax"));
237  Stub_RZ->setAxisTitle("L1 Stub position z [cm]", 1);
238  Stub_RZ->setAxisTitle("L1 Stub position #rho [cm]", 2);
239 
240  //TTStub Forward Endcap #rho vs. z
241  edm::ParameterSet psTTStub_Endcap_Fw_RZ_Zoom = conf_.getParameter<edm::ParameterSet>("TH2TTStub_Endcap_Fw_RZ_Zoom");
242  HistoName = "Stub_Endcap_Fw_RZ_Zoom";
243  Stub_Endcap_Fw_RZ_Zoom = dqmStore_->book2D(HistoName, HistoName,
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"));
250  Stub_Endcap_Fw_RZ_Zoom->setAxisTitle("L1 Stub Endcap position z [cm]", 1);
251  Stub_Endcap_Fw_RZ_Zoom->setAxisTitle("L1 Stub Endcap position #rho [cm]", 2);
252 
253  //TTStub Backward Endcap #rho vs. z
254  edm::ParameterSet psTTStub_Endcap_Bw_RZ_Zoom = conf_.getParameter<edm::ParameterSet>("TH2TTStub_Endcap_Bw_RZ_Zoom");
255  HistoName = "Stub_Endcap_Bw_RZ_Zoom";
256  Stub_Endcap_Bw_RZ_Zoom = dqmStore_->book2D(HistoName, HistoName,
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"));
263  Stub_Endcap_Bw_RZ_Zoom->setAxisTitle("L1 Stub Endcap position z [cm]", 1);
264  Stub_Endcap_Bw_RZ_Zoom->setAxisTitle("L1 Stub Endcap position #rho [cm]", 2);
265 
267 
268  //TTStub eta
269  edm::ParameterSet psTTStub_Eta = conf_.getParameter<edm::ParameterSet>("TH1TTStub_Eta");
270  HistoName = "Stub_Eta";
271  Stub_Eta = dqmStore_ ->book1D(HistoName,HistoName,
272  psTTStub_Eta.getParameter<int32_t>("Nbinsx"),
273  psTTStub_Eta.getParameter<double>("xmin"),
274  psTTStub_Eta.getParameter<double>("xmax"));
275  Stub_Eta->setAxisTitle("#eta",1);
276  Stub_Eta->setAxisTitle("# L1 Stubs ",2);
277 
278  dqmStore_->setCurrentFolder(topFolderName_+"/Stubs/NStubs");
279 
280  //TTStub barrel stack
281  edm::ParameterSet psTTStub_Barrel = conf_.getParameter<edm::ParameterSet>("TH1TTStub_Layers");
282  HistoName = "NStubs_Barrel";
283  Stub_Barrel = dqmStore_ ->book1D(HistoName,HistoName,
284  psTTStub_Barrel.getParameter<int32_t>("Nbinsx"),
285  psTTStub_Barrel.getParameter<double>("xmin"),
286  psTTStub_Barrel.getParameter<double>("xmax"));
287  Stub_Barrel->setAxisTitle("Barrel Layer",1);
288  Stub_Barrel->setAxisTitle("# L1 Stubs ",2);
289 
290  //TTStub Endcap stack
291  edm::ParameterSet psTTStub_ECDisc = conf_.getParameter<edm::ParameterSet>("TH1TTStub_Discs");
292  HistoName = "NStubs_Endcap_Disc";
293  Stub_Endcap_Disc = dqmStore_ ->book1D(HistoName,HistoName,
294  psTTStub_ECDisc.getParameter<int32_t>("Nbinsx"),
295  psTTStub_ECDisc.getParameter<double>("xmin"),
296  psTTStub_ECDisc.getParameter<double>("xmax"));
297  Stub_Endcap_Disc->setAxisTitle("Endcap Disc",1);
298  Stub_Endcap_Disc->setAxisTitle("# L1 Stubs ",2);
299 
300  //TTStub Endcap stack
301  HistoName = "NStubs_Endcap_Disc_Fw";
302  Stub_Endcap_Disc_Fw = dqmStore_ ->book1D(HistoName,HistoName,
303  psTTStub_ECDisc.getParameter<int32_t>("Nbinsx"),
304  psTTStub_ECDisc.getParameter<double>("xmin"),
305  psTTStub_ECDisc.getParameter<double>("xmax"));
306  Stub_Endcap_Disc_Fw->setAxisTitle("Forward Endcap Disc",1);
307  Stub_Endcap_Disc_Fw->setAxisTitle("# L1 Stubs ",2);
308 
309  //TTStub Endcap stack
310  HistoName = "NStubs_Endcap_Disc_Bw";
311  Stub_Endcap_Disc_Bw = dqmStore_ ->book1D(HistoName,HistoName,
312  psTTStub_ECDisc.getParameter<int32_t>("Nbinsx"),
313  psTTStub_ECDisc.getParameter<double>("xmin"),
314  psTTStub_ECDisc.getParameter<double>("xmax"));
315  Stub_Endcap_Disc_Bw->setAxisTitle("Backward Endcap Disc",1);
316  Stub_Endcap_Disc_Bw->setAxisTitle("# L1 Stubs ",2);
317 
318  edm::ParameterSet psTTStub_ECRing = conf_.getParameter<edm::ParameterSet>("TH1TTStub_Rings");
319 
320  HistoName = "NStubs_Endcap_Ring";
321  Stub_Endcap_Ring = dqmStore_ ->book1D(HistoName,HistoName,
322  psTTStub_ECRing.getParameter<int32_t>("Nbinsx"),
323  psTTStub_ECRing.getParameter<double>("xmin"),
324  psTTStub_ECRing.getParameter<double>("xmax"));
325  Stub_Endcap_Ring->setAxisTitle("Endcap Ring",1);
326  Stub_Endcap_Ring->setAxisTitle("# L1 Stubs ",2);
327 
328  for (int i = 0; i < 5; i++)
329  {
330  HistoName = "NStubs_Disc+"+std::to_string(i+1);
331  //TTStub Endcap stack
332  Stub_Endcap_Ring_Fw[i] = dqmStore_ ->book1D(HistoName, HistoName,
333  psTTStub_ECRing.getParameter<int32_t>("Nbinsx"),
334  psTTStub_ECRing.getParameter<double>("xmin"),
335  psTTStub_ECRing.getParameter<double>("xmax"));
336  Stub_Endcap_Ring_Fw[i]->setAxisTitle("Endcap Ring",1);
337  Stub_Endcap_Ring_Fw[i]->setAxisTitle("# L1 Stubs ",2);
338  }
339 
340  for (int i = 0; i < 5; i++)
341  {
342  HistoName = "NStubs_Disc-"+std::to_string(i+1);
343  //TTStub Endcap stack
344  Stub_Endcap_Ring_Bw[i] = dqmStore_ ->book1D(HistoName, HistoName,
345  psTTStub_ECRing.getParameter<int32_t>("Nbinsx"),
346  psTTStub_ECRing.getParameter<double>("xmin"),
347  psTTStub_ECRing.getParameter<double>("xmax"));
348  Stub_Endcap_Ring_Bw[i]->setAxisTitle("Endcap Ring",1);
349  Stub_Endcap_Ring_Bw[i]->setAxisTitle("# L1 Stubs ",2);
350  }
351 
352  //TTStub displ/offset
353  edm::ParameterSet psTTStub_Barrel_2D = conf_.getParameter<edm::ParameterSet>("TH2TTStub_DisOf_Layer");
354  edm::ParameterSet psTTStub_ECDisc_2D = conf_.getParameter<edm::ParameterSet>("TH2TTStub_DisOf_Disc");
355  edm::ParameterSet psTTStub_ECRing_2D = conf_.getParameter<edm::ParameterSet>("TH2TTStub_DisOf_Ring");
356 
357  dqmStore_->setCurrentFolder(topFolderName_+"/Stubs/Width");
358 
359  HistoName = "Stub_Width_Barrel";
360  Stub_Barrel_W = dqmStore_->book2D(HistoName, HistoName,
361  psTTStub_Barrel_2D.getParameter<int32_t>("Nbinsx"),
362  psTTStub_Barrel_2D.getParameter<double>("xmin"),
363  psTTStub_Barrel_2D.getParameter<double>("xmax"),
364  psTTStub_Barrel_2D.getParameter<int32_t>("Nbinsy"),
365  psTTStub_Barrel_2D.getParameter<double>("ymin"),
366  psTTStub_Barrel_2D.getParameter<double>("ymax"));
367  Stub_Barrel_W->setAxisTitle("Barrel Layer",1);
368  Stub_Barrel_W->setAxisTitle("Displacement - Offset",2);
369 
370  HistoName = "Stub_Width_Endcap_Disc";
371  Stub_Endcap_Disc_W = dqmStore_->book2D(HistoName, HistoName,
372  psTTStub_ECDisc_2D.getParameter<int32_t>("Nbinsx"),
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"));
378  Stub_Endcap_Disc_W->setAxisTitle("Endcap Disc",1);
379  Stub_Endcap_Disc_W->setAxisTitle("Displacement - Offset",2);
380 
381  HistoName = "Stub_Width_Endcap_Ring";
382  Stub_Endcap_Ring_W = dqmStore_->book2D(HistoName, HistoName,
383  psTTStub_ECRing_2D.getParameter<int32_t>("Nbinsx"),
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"));
389  Stub_Endcap_Ring_W->setAxisTitle("Endcap Ring",1);
390  Stub_Endcap_Ring_W->setAxisTitle("Trigger Offset",2);
391 
392  for (int i = 0; i < 5; i++)
393  {
394  HistoName = "Stub_Width_Disc+"+std::to_string(i+1);
395  Stub_Endcap_Ring_W_Fw[i] = dqmStore_->book2D(HistoName, HistoName,
396  psTTStub_ECRing_2D.getParameter<int32_t>("Nbinsx"),
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"));
402  Stub_Endcap_Ring_W_Fw[i]->setAxisTitle("Endcap Ring",1);
403  Stub_Endcap_Ring_W_Fw[i]->setAxisTitle("Displacement - Offset",2);
404  }
405 
406  for (int i = 0; i < 5; i++)
407  {
408  HistoName = "Stub_Width_Disc-"+std::to_string(i+1);
409  Stub_Endcap_Ring_W_Bw[i] = dqmStore_->book2D(HistoName, HistoName,
410  psTTStub_ECRing_2D.getParameter<int32_t>("Nbinsx"),
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"));
416  Stub_Endcap_Ring_W_Bw[i]->setAxisTitle("Endcap Ring",1);
417  Stub_Endcap_Ring_W_Bw[i]->setAxisTitle("Displacement - Offset",2);
418  }
419 
420  dqmStore_->setCurrentFolder(topFolderName_+"/Stubs/Offset");
421 
422  HistoName = "Stub_Offset_Barrel";
423  Stub_Barrel_O = dqmStore_->book2D(HistoName, HistoName,
424  psTTStub_Barrel_2D.getParameter<int32_t>("Nbinsx"),
425  psTTStub_Barrel_2D.getParameter<double>("xmin"),
426  psTTStub_Barrel_2D.getParameter<double>("xmax"),
427  psTTStub_Barrel_2D.getParameter<int32_t>("Nbinsy"),
428  psTTStub_Barrel_2D.getParameter<double>("ymin"),
429  psTTStub_Barrel_2D.getParameter<double>("ymax"));
430  Stub_Barrel_O->setAxisTitle("Barrel Layer",1);
431  Stub_Barrel_O->setAxisTitle("Trigger Offset",2);
432 
433  HistoName = "Stub_Offset_Endcap_Disc";
434  Stub_Endcap_Disc_O = dqmStore_->book2D(HistoName, HistoName,
435  psTTStub_ECDisc_2D.getParameter<int32_t>("Nbinsx"),
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"));
441  Stub_Endcap_Disc_O->setAxisTitle("Endcap Disc",1);
442  Stub_Endcap_Disc_O->setAxisTitle("Trigger Offset",2);
443 
444  HistoName = "Stub_Offset_Endcap_Ring";
445  Stub_Endcap_Ring_O = dqmStore_->book2D(HistoName, HistoName,
446  psTTStub_ECRing_2D.getParameter<int32_t>("Nbinsx"),
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"));
452  Stub_Endcap_Ring_O->setAxisTitle("Endcap Ring",1);
453  Stub_Endcap_Ring_O->setAxisTitle("Trigger Offset",2);
454 
455  for (int i = 0; i < 5; i++)
456  {
457  HistoName = "Stub_Offset_Disc+"+std::to_string(i+1);
458  Stub_Endcap_Ring_O_Fw[i] = dqmStore_->book2D(HistoName, HistoName,
459  psTTStub_ECRing_2D.getParameter<int32_t>("Nbinsx"),
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"));
465  Stub_Endcap_Ring_O_Fw[i]->setAxisTitle("Endcap Ring",1);
466  Stub_Endcap_Ring_O_Fw[i]->setAxisTitle("Trigger Offset",2);
467  }
468 
469  for (int i = 0; i < 5; i++)
470  {
471  HistoName = "Stub_Offset_Disc-"+std::to_string(i+1);
472  Stub_Endcap_Ring_O_Bw[i] = dqmStore_->book2D(HistoName, HistoName,
473  psTTStub_ECRing_2D.getParameter<int32_t>("Nbinsx"),
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"));
479  Stub_Endcap_Ring_O_Bw[i]->setAxisTitle("Endcap Ring",1);
480  Stub_Endcap_Ring_O_Bw[i]->setAxisTitle("Trigger Offset",2);
481  }
482 }
T getParameter(std::string const &) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:1034
MonitorElement * Stub_Endcap_Ring_O_Fw[5]
MonitorElement * Stub_Endcap_Ring_Bw[5]
MonitorElement * Stub_Endcap_Ring_O_Bw[5]
std::string HistoName
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.
Definition: DQMStore.cc:1162
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:740
MonitorElement * Stub_Endcap_Ring_W_Fw[5]
void OuterTrackerMonitorTTStub::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 486 of file OuterTrackerMonitorTTStub.cc.

References DEFINE_FWK_MODULE.

487 {
488 }

Member Data Documentation

edm::ParameterSet OuterTrackerMonitorTTStub::conf_
private

Definition at line 66 of file OuterTrackerMonitorTTStub.h.

Referenced by beginRun(), and OuterTrackerMonitorTTStub().

DQMStore* OuterTrackerMonitorTTStub::dqmStore_
private

Definition at line 65 of file OuterTrackerMonitorTTStub.h.

Referenced by beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Barrel = 0

Definition at line 41 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Barrel_O = 0

Definition at line 54 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Barrel_W = 0

Definition at line 53 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Barrel_XY = 0

Definition at line 32 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Barrel_XY_Zoom = 0

Definition at line 33 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Bw_RZ_Zoom = 0

Definition at line 38 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Bw_XY = 0

Definition at line 35 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Disc = 0

Definition at line 42 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Disc_Bw = 0

Definition at line 44 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Disc_Fw = 0

Definition at line 43 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Disc_O = 0

Definition at line 56 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Disc_W = 0

Definition at line 55 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Fw_RZ_Zoom = 0

Definition at line 37 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Fw_XY = 0

Definition at line 34 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Ring = 0

Definition at line 45 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Ring_Bw[5] = {0, 0, 0, 0, 0}

Definition at line 47 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Ring_Fw[5] = {0, 0, 0, 0, 0}

Definition at line 46 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Ring_O = 0

Definition at line 58 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Ring_O_Bw[5] = {0, 0, 0, 0, 0}

Definition at line 62 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Ring_O_Fw[5] = {0, 0, 0, 0, 0}

Definition at line 60 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Ring_W = 0

Definition at line 57 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Ring_W_Bw[5] = {0, 0, 0, 0, 0}

Definition at line 61 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Endcap_Ring_W_Fw[5] = {0, 0, 0, 0, 0}

Definition at line 59 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_Eta = 0

Definition at line 50 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTStub::Stub_RZ = 0

Definition at line 36 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and beginRun().

edm::EDGetTokenT<edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > > > OuterTrackerMonitorTTStub::tagTTStubsToken_
private

Definition at line 67 of file OuterTrackerMonitorTTStub.h.

Referenced by analyze(), and OuterTrackerMonitorTTStub().

std::string OuterTrackerMonitorTTStub::topFolderName_
private

Definition at line 69 of file OuterTrackerMonitorTTStub.h.

Referenced by beginRun(), and OuterTrackerMonitorTTStub().