CMS 3D CMS Logo

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

#include <OuterTrackerMonitorTTCluster.h>

Inheritance diagram for OuterTrackerMonitorTTCluster:
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 ()
 
 OuterTrackerMonitorTTCluster (const edm::ParameterSet &)
 
 ~OuterTrackerMonitorTTCluster ()
 
- 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

MonitorElementCluster_Barrel_XY = 0
 
MonitorElementCluster_Barrel_XY_Zoom = 0
 
MonitorElementCluster_Endcap_Bw_RZ_Zoom = 0
 
MonitorElementCluster_Endcap_Bw_XY = 0
 
MonitorElementCluster_Endcap_Fw_RZ_Zoom = 0
 
MonitorElementCluster_Endcap_Fw_XY = 0
 
MonitorElementCluster_Eta = 0
 
MonitorElementCluster_IMem_Barrel = 0
 
MonitorElementCluster_IMem_Endcap_Disc = 0
 
MonitorElementCluster_IMem_Endcap_Ring = 0
 
MonitorElementCluster_IMem_Endcap_Ring_Bw [5] = {0, 0, 0, 0, 0}
 
MonitorElementCluster_IMem_Endcap_Ring_Fw [5] = {0, 0, 0, 0, 0}
 
MonitorElementCluster_OMem_Barrel = 0
 
MonitorElementCluster_OMem_Endcap_Disc = 0
 
MonitorElementCluster_OMem_Endcap_Ring = 0
 
MonitorElementCluster_OMem_Endcap_Ring_Bw [5] = {0, 0, 0, 0, 0}
 
MonitorElementCluster_OMem_Endcap_Ring_Fw [5] = {0, 0, 0, 0, 0}
 
MonitorElementCluster_RZ = 0
 
MonitorElementCluster_W = 0
 

Private Attributes

edm::ParameterSet conf_
 
DQMStoredqmStore_
 
edm::EDGetTokenT< edmNew::DetSetVector< TTCluster< Ref_Phase2TrackerDigi_ > > > tagTTClustersToken_
 
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 OuterTrackerMonitorTTCluster.h.

Constructor & Destructor Documentation

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

Definition at line 41 of file OuterTrackerMonitorTTCluster.cc.

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

43 {
44  topFolderName_ = conf_.getParameter<std::string>("TopFolderName");
45  tagTTClustersToken_ = consumes<edmNew::DetSetVector< TTCluster< Ref_Phase2TrackerDigi_ > > > (conf_.getParameter<edm::InputTag>("TTClusters") );
46 }
T getParameter(std::string const &) const
edm::EDGetTokenT< edmNew::DetSetVector< TTCluster< Ref_Phase2TrackerDigi_ > > > tagTTClustersToken_
OuterTrackerMonitorTTCluster::~OuterTrackerMonitorTTCluster ( )

Definition at line 48 of file OuterTrackerMonitorTTCluster.cc.

49 {
50  // do anything here that needs to be done at desctruction time
51  // (e.g. close files, deallocate resources etc.)
52 }

Member Function Documentation

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

Track Trigger Clusters

Geometry

Loop over the input Clusters

Definition at line 59 of file OuterTrackerMonitorTTCluster.cc.

References edmNew::DetSetVector< T >::begin(), Cluster_Barrel_XY, Cluster_Barrel_XY_Zoom, Cluster_Endcap_Bw_RZ_Zoom, Cluster_Endcap_Bw_XY, Cluster_Endcap_Fw_RZ_Zoom, Cluster_Endcap_Fw_XY, Cluster_Eta, Cluster_IMem_Barrel, Cluster_IMem_Endcap_Disc, Cluster_IMem_Endcap_Ring, Cluster_IMem_Endcap_Ring_Bw, Cluster_IMem_Endcap_Ring_Fw, Cluster_OMem_Barrel, Cluster_OMem_Endcap_Disc, Cluster_OMem_Endcap_Ring, Cluster_OMem_Endcap_Ring_Bw, Cluster_OMem_Endcap_Ring_Fw, Cluster_RZ, Cluster_W, 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(), DetId::subdetId(), GeomDet::surface(), tagTTClustersToken_, 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().

60 {
63  iEvent.getByToken( tagTTClustersToken_, Phase2TrackerDigiTTClusterHandle );
64 
67  const TrackerTopology* tTopo;
68  iSetup.get< TrackerTopologyRcd >().get(tTopoHandle);
69  tTopo = tTopoHandle.product();
70 
71  edm::ESHandle< TrackerGeometry > tGeometryHandle;
72  const TrackerGeometry* theTrackerGeometry;
73  iSetup.get< TrackerDigiGeometryRecord >().get( tGeometryHandle );
74  theTrackerGeometry = tGeometryHandle.product();
75 
76 
78  typename edmNew::DetSetVector< TTCluster< Ref_Phase2TrackerDigi_ > >::const_iterator inputIter;
79  typename edmNew::DetSet< TTCluster< Ref_Phase2TrackerDigi_ > >::const_iterator contentIter;
80 
81  //Adding protection
82  if ( !Phase2TrackerDigiTTClusterHandle.isValid() ) return;
83 
84  for ( inputIter = Phase2TrackerDigiTTClusterHandle->begin();
85  inputIter != Phase2TrackerDigiTTClusterHandle->end();
86  ++inputIter )
87  {
88  for(contentIter = inputIter->begin(); contentIter != inputIter->end(); ++contentIter)
89  {
90  //Make reference cluster
92 
93  DetId detIdClu = theTrackerGeometry->idToDet( tempCluRef->getDetId() )->geographicalId();
94  unsigned int memberClu = tempCluRef->getStackMember();
95  unsigned int widClu = tempCluRef->findWidth();
96 
97  MeasurementPoint mp = tempCluRef->findAverageLocalCoordinates();
98  const GeomDet* theGeomDet = theTrackerGeometry->idToDet(detIdClu);
99  Global3DPoint posClu = theGeomDet->surface().toGlobal( theGeomDet->topology().localPosition(mp) );
100 
101  double eta = posClu.eta();
102 
103  Cluster_W->Fill(widClu, memberClu);
104  Cluster_Eta->Fill(eta);
105  Cluster_RZ->Fill( posClu.z(), posClu.perp() );
106 
107  if ( detIdClu.subdetId() == static_cast<int>(StripSubdetector::TOB) ) // Phase 2 Outer Tracker Barrel
108  {
109 
110  if ( memberClu == 0 ) Cluster_IMem_Barrel->Fill(tTopo->layer(detIdClu));
111  else Cluster_OMem_Barrel->Fill(tTopo->layer(detIdClu));
112 
113  Cluster_Barrel_XY->Fill( posClu.x(), posClu.y() );
114  Cluster_Barrel_XY_Zoom->Fill( posClu.x(), posClu.y() );
115 
116  } // end if isBarrel
117  else if ( detIdClu.subdetId() == static_cast<int>(StripSubdetector::TID) ) // Phase 2 Outer Tracker Endcap
118  {
119 
120  if ( memberClu == 0 )
121  {
122  Cluster_IMem_Endcap_Disc->Fill(tTopo->layer(detIdClu)); // returns wheel
123  Cluster_IMem_Endcap_Ring->Fill(tTopo->tidRing(detIdClu));
124  }
125  else
126  {
127  Cluster_OMem_Endcap_Disc->Fill(tTopo->layer(detIdClu)); // returns wheel
128  Cluster_OMem_Endcap_Ring->Fill(tTopo->tidRing(detIdClu));
129  }
130 
131  if ( posClu.z() > 0 )
132  {
133  Cluster_Endcap_Fw_XY->Fill( posClu.x(), posClu.y() );
134  Cluster_Endcap_Fw_RZ_Zoom->Fill( posClu.z(), posClu.perp() );
135  if (memberClu == 0) Cluster_IMem_Endcap_Ring_Fw[tTopo->layer(detIdClu)-1]->Fill(tTopo->tidRing(detIdClu));
136  else Cluster_OMem_Endcap_Ring_Fw[tTopo->layer(detIdClu)-1]->Fill(tTopo->tidRing(detIdClu));
137  }
138  else
139  {
140  Cluster_Endcap_Bw_XY->Fill( posClu.x(), posClu.y() );
141  Cluster_Endcap_Bw_RZ_Zoom->Fill( posClu.z(), posClu.perp() );
142  if (memberClu == 0) Cluster_IMem_Endcap_Ring_Bw[tTopo->layer(detIdClu)-1]->Fill(tTopo->tidRing(detIdClu));
143  else Cluster_OMem_Endcap_Ring_Bw[tTopo->layer(detIdClu)-1]->Fill(tTopo->tidRing(detIdClu));
144  }
145 
146  } // end if isEndcap
147  } // end loop contentIter
148  } // end loop inputIter
149 } // 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
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
void Fill(long long x)
T z() const
Definition: PV3DBase.h:64
bool isValid() const
Definition: HandleBase.h:74
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
edm::EDGetTokenT< edmNew::DetSetVector< TTCluster< Ref_Phase2TrackerDigi_ > > > tagTTClustersToken_
Definition: DetId.h:18
NOTE: this is needed even if it seems not.
Definition: TTCluster.h:27
const T & get() const
Definition: EventSetup.h:56
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
unsigned int layer(const DetId &id) const
T eta() const
Definition: PV3DBase.h:76
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
void OuterTrackerMonitorTTCluster::beginRun ( const edm::Run run,
const edm::EventSetup es 
)
virtual

Definition at line 153 of file OuterTrackerMonitorTTCluster.cc.

References DQMStore::book1D(), DQMStore::book2D(), Cluster_Barrel_XY, Cluster_Barrel_XY_Zoom, Cluster_Endcap_Bw_RZ_Zoom, Cluster_Endcap_Bw_XY, Cluster_Endcap_Fw_RZ_Zoom, Cluster_Endcap_Fw_XY, Cluster_Eta, Cluster_IMem_Barrel, Cluster_IMem_Endcap_Disc, Cluster_IMem_Endcap_Ring, Cluster_IMem_Endcap_Ring_Bw, Cluster_IMem_Endcap_Ring_Fw, Cluster_OMem_Barrel, Cluster_OMem_Endcap_Disc, Cluster_OMem_Endcap_Ring, Cluster_OMem_Endcap_Ring_Bw, Cluster_OMem_Endcap_Ring_Fw, Cluster_RZ, Cluster_W, conf_, dqmStore_, edm::ParameterSet::getParameter(), mps_fire::i, MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and topFolderName_.

154 {
156 
157  dqmStore_->setCurrentFolder(topFolderName_+"/Clusters/NClusters");
158 
159  // NClusters
160  edm::ParameterSet psTTCluster_Barrel = conf_.getParameter<edm::ParameterSet>("TH1TTCluster_Barrel");
161  HistoName = "NClusters_IMem_Barrel";
162  Cluster_IMem_Barrel = dqmStore_->book1D(HistoName, HistoName,
163  psTTCluster_Barrel.getParameter<int32_t>("Nbinsx"),
164  psTTCluster_Barrel.getParameter<double>("xmin"),
165  psTTCluster_Barrel.getParameter<double>("xmax"));
166  Cluster_IMem_Barrel->setAxisTitle("Barrel Layer", 1);
167  Cluster_IMem_Barrel->setAxisTitle("# L1 Clusters", 2);
168 
169  HistoName = "NClusters_OMem_Barrel";
170  Cluster_OMem_Barrel = dqmStore_->book1D(HistoName, HistoName,
171  psTTCluster_Barrel.getParameter<int32_t>("Nbinsx"),
172  psTTCluster_Barrel.getParameter<double>("xmin"),
173  psTTCluster_Barrel.getParameter<double>("xmax"));
174  Cluster_OMem_Barrel->setAxisTitle("Barrel Layer", 1);
175  Cluster_OMem_Barrel->setAxisTitle("# L1 Clusters", 2);
176 
177  edm::ParameterSet psTTCluster_ECDisc = conf_.getParameter<edm::ParameterSet>("TH1TTCluster_ECDiscs");
178  HistoName = "NClusters_IMem_Endcap_Disc";
179  Cluster_IMem_Endcap_Disc = dqmStore_->book1D(HistoName, HistoName,
180  psTTCluster_ECDisc.getParameter<int32_t>("Nbinsx"),
181  psTTCluster_ECDisc.getParameter<double>("xmin"),
182  psTTCluster_ECDisc.getParameter<double>("xmax"));
183  Cluster_IMem_Endcap_Disc->setAxisTitle("Endcap Disc", 1);
184  Cluster_IMem_Endcap_Disc->setAxisTitle("# L1 Clusters", 2);
185 
186  HistoName = "NClusters_OMem_Endcap_Disc";
187  Cluster_OMem_Endcap_Disc = dqmStore_->book1D(HistoName, HistoName,
188  psTTCluster_ECDisc.getParameter<int32_t>("Nbinsx"),
189  psTTCluster_ECDisc.getParameter<double>("xmin"),
190  psTTCluster_ECDisc.getParameter<double>("xmax"));
191  Cluster_OMem_Endcap_Disc->setAxisTitle("Endcap Disc", 1);
192  Cluster_OMem_Endcap_Disc->setAxisTitle("# L1 Clusters", 2);
193 
194  edm::ParameterSet psTTCluster_ECRing = conf_.getParameter<edm::ParameterSet>("TH1TTCluster_ECRings");
195  HistoName = "NClusters_IMem_Endcap_Ring";
196  Cluster_IMem_Endcap_Ring = dqmStore_->book1D(HistoName, HistoName,
197  psTTCluster_ECRing.getParameter<int32_t>("Nbinsx"),
198  psTTCluster_ECRing.getParameter<double>("xmin"),
199  psTTCluster_ECRing.getParameter<double>("xmax"));
200  Cluster_IMem_Endcap_Ring->setAxisTitle("Endcap Ring", 1);
201  Cluster_IMem_Endcap_Ring->setAxisTitle("# L1 Clusters", 2);
202 
203  HistoName = "NClusters_OMem_Endcap_Ring";
204  Cluster_OMem_Endcap_Ring = dqmStore_->book1D(HistoName, HistoName,
205  psTTCluster_ECRing.getParameter<int32_t>("Nbinsx"),
206  psTTCluster_ECRing.getParameter<double>("xmin"),
207  psTTCluster_ECRing.getParameter<double>("xmax"));
208  Cluster_OMem_Endcap_Ring->setAxisTitle("Endcap Ring", 1);
209  Cluster_OMem_Endcap_Ring->setAxisTitle("# L1 Clusters", 2);
210 
211  for (int i = 0; i < 5; i++)
212  {
213  HistoName = "NClusters_IMem_Disc+"+std::to_string(i+1);
214  Cluster_IMem_Endcap_Ring_Fw[i] = dqmStore_ ->book1D(HistoName, HistoName,
215  psTTCluster_ECRing.getParameter<int32_t>("Nbinsx"),
216  psTTCluster_ECRing.getParameter<double>("xmin"),
217  psTTCluster_ECRing.getParameter<double>("xmax"));
218  Cluster_IMem_Endcap_Ring_Fw[i]->setAxisTitle("Endcap Ring",1);
219  Cluster_IMem_Endcap_Ring_Fw[i]->setAxisTitle("# L1 Clusters ",2);
220  }
221 
222  for (int i = 0; i < 5; i++)
223  {
224  HistoName = "NClusters_IMem_Disc-"+std::to_string(i+1);
225  Cluster_IMem_Endcap_Ring_Bw[i] = dqmStore_ ->book1D(HistoName, HistoName,
226  psTTCluster_ECRing.getParameter<int32_t>("Nbinsx"),
227  psTTCluster_ECRing.getParameter<double>("xmin"),
228  psTTCluster_ECRing.getParameter<double>("xmax"));
229  Cluster_IMem_Endcap_Ring_Bw[i]->setAxisTitle("Endcap Ring",1);
230  Cluster_IMem_Endcap_Ring_Bw[i]->setAxisTitle("# L1 Clusters ",2);
231  }
232 
233  for (int i = 0; i < 5; i++)
234  {
235  HistoName = "NClusters_OMem_Disc+"+std::to_string(i+1);
236  Cluster_OMem_Endcap_Ring_Fw[i] = dqmStore_ ->book1D(HistoName, HistoName,
237  psTTCluster_ECRing.getParameter<int32_t>("Nbinsx"),
238  psTTCluster_ECRing.getParameter<double>("xmin"),
239  psTTCluster_ECRing.getParameter<double>("xmax"));
240  Cluster_OMem_Endcap_Ring_Fw[i]->setAxisTitle("Endcap Ring",1);
241  Cluster_OMem_Endcap_Ring_Fw[i]->setAxisTitle("# L1 Clusters ",2);
242  }
243 
244  for (int i = 0; i < 5; i++)
245  {
246  HistoName = "NClusters_OMem_Disc-"+std::to_string(i+1);
247  Cluster_OMem_Endcap_Ring_Bw[i] = dqmStore_ ->book1D(HistoName, HistoName,
248  psTTCluster_ECRing.getParameter<int32_t>("Nbinsx"),
249  psTTCluster_ECRing.getParameter<double>("xmin"),
250  psTTCluster_ECRing.getParameter<double>("xmax"));
251  Cluster_OMem_Endcap_Ring_Bw[i]->setAxisTitle("Endcap Ring",1);
252  Cluster_OMem_Endcap_Ring_Bw[i]->setAxisTitle("# L1 Clusters ",2);
253  }
254 
255 
257 
258  //Cluster Width
259  edm::ParameterSet psTTClusterWidth = conf_.getParameter<edm::ParameterSet>("TH2TTCluster_Width");
260  HistoName = "Cluster_W";
261  Cluster_W = dqmStore_->book2D(HistoName, HistoName,
262  psTTClusterWidth.getParameter<int32_t>("Nbinsx"),
263  psTTClusterWidth.getParameter<double>("xmin"),
264  psTTClusterWidth.getParameter<double>("xmax"),
265  psTTClusterWidth.getParameter<int32_t>("Nbinsy"),
266  psTTClusterWidth.getParameter<double>("ymin"),
267  psTTClusterWidth.getParameter<double>("ymax"));
268  Cluster_W->setAxisTitle("L1 Cluster Width", 1);
269  Cluster_W->setAxisTitle("Stack Member", 2);
270 
271  //Cluster eta distribution
272  edm::ParameterSet psTTClusterEta = conf_.getParameter<edm::ParameterSet>("TH1TTCluster_Eta");
273  HistoName = "Cluster_Eta";
274  Cluster_Eta = dqmStore_->book1D(HistoName, HistoName,
275  psTTClusterEta.getParameter<int32_t>("Nbinsx"),
276  psTTClusterEta.getParameter<double>("xmin"),
277  psTTClusterEta.getParameter<double>("xmax"));
278  Cluster_Eta->setAxisTitle("#eta", 1);
279  Cluster_Eta->setAxisTitle("# L1 Clusters", 2);
280 
281  dqmStore_->setCurrentFolder(topFolderName_+"/Clusters/Position");
282 
283  //Position plots
284  edm::ParameterSet psTTCluster_Barrel_XY = conf_.getParameter<edm::ParameterSet>("TH2TTCluster_Position");
285  HistoName = "Cluster_Barrel_XY";
286  Cluster_Barrel_XY = dqmStore_->book2D(HistoName, HistoName,
287  psTTCluster_Barrel_XY.getParameter<int32_t>("Nbinsx"),
288  psTTCluster_Barrel_XY.getParameter<double>("xmin"),
289  psTTCluster_Barrel_XY.getParameter<double>("xmax"),
290  psTTCluster_Barrel_XY.getParameter<int32_t>("Nbinsy"),
291  psTTCluster_Barrel_XY.getParameter<double>("ymin"),
292  psTTCluster_Barrel_XY.getParameter<double>("ymax"));
293  Cluster_Barrel_XY->setAxisTitle("L1 Cluster Barrel position x [cm]", 1);
294  Cluster_Barrel_XY->setAxisTitle("L1 Cluster Barrel position y [cm]", 2);
295 
296  edm::ParameterSet psTTCluster_Barrel_XY_Zoom = conf_.getParameter<edm::ParameterSet>("TH2TTCluster_Barrel_XY_Zoom");
297  HistoName = "Cluster_Barrel_XY_Zoom";
298  Cluster_Barrel_XY_Zoom = dqmStore_->book2D(HistoName, HistoName,
299  psTTCluster_Barrel_XY_Zoom.getParameter<int32_t>("Nbinsx"),
300  psTTCluster_Barrel_XY_Zoom.getParameter<double>("xmin"),
301  psTTCluster_Barrel_XY_Zoom.getParameter<double>("xmax"),
302  psTTCluster_Barrel_XY_Zoom.getParameter<int32_t>("Nbinsy"),
303  psTTCluster_Barrel_XY_Zoom.getParameter<double>("ymin"),
304  psTTCluster_Barrel_XY_Zoom.getParameter<double>("ymax"));
305  Cluster_Barrel_XY_Zoom->setAxisTitle("L1 Cluster Barrel position x [cm]", 1);
306  Cluster_Barrel_XY_Zoom->setAxisTitle("L1 Cluster Barrel position y [cm]", 2);
307 
308  edm::ParameterSet psTTCluster_Endcap_Fw_XY = conf_.getParameter<edm::ParameterSet>("TH2TTCluster_Position");
309  HistoName = "Cluster_Endcap_Fw_XY";
310  Cluster_Endcap_Fw_XY = dqmStore_->book2D(HistoName, HistoName,
311  psTTCluster_Endcap_Fw_XY.getParameter<int32_t>("Nbinsx"),
312  psTTCluster_Endcap_Fw_XY.getParameter<double>("xmin"),
313  psTTCluster_Endcap_Fw_XY.getParameter<double>("xmax"),
314  psTTCluster_Endcap_Fw_XY.getParameter<int32_t>("Nbinsy"),
315  psTTCluster_Endcap_Fw_XY.getParameter<double>("ymin"),
316  psTTCluster_Endcap_Fw_XY.getParameter<double>("ymax"));
317  Cluster_Endcap_Fw_XY->setAxisTitle("L1 Cluster Forward Endcap position x [cm]", 1);
318  Cluster_Endcap_Fw_XY->setAxisTitle("L1 Cluster Forward Endcap position y [cm]", 2);
319 
320  edm::ParameterSet psTTCluster_Endcap_Bw_XY = conf_.getParameter<edm::ParameterSet>("TH2TTCluster_Position");
321  HistoName = "Cluster_Endcap_Bw_XY";
322  Cluster_Endcap_Bw_XY = dqmStore_->book2D(HistoName, HistoName,
323  psTTCluster_Endcap_Bw_XY.getParameter<int32_t>("Nbinsx"),
324  psTTCluster_Endcap_Bw_XY.getParameter<double>("xmin"),
325  psTTCluster_Endcap_Bw_XY.getParameter<double>("xmax"),
326  psTTCluster_Endcap_Bw_XY.getParameter<int32_t>("Nbinsy"),
327  psTTCluster_Endcap_Bw_XY.getParameter<double>("ymin"),
328  psTTCluster_Endcap_Bw_XY.getParameter<double>("ymax"));
329  Cluster_Endcap_Bw_XY->setAxisTitle("L1 Cluster Backward Endcap position x [cm]", 1);
330  Cluster_Endcap_Bw_XY->setAxisTitle("L1 Cluster Backward Endcap position y [cm]", 2);
331 
332  //TTCluster #rho vs. z
333  edm::ParameterSet psTTCluster_RZ = conf_.getParameter<edm::ParameterSet>("TH2TTCluster_RZ");
334  HistoName = "Cluster_RZ";
335  Cluster_RZ = dqmStore_->book2D(HistoName, HistoName,
336  psTTCluster_RZ.getParameter<int32_t>("Nbinsx"),
337  psTTCluster_RZ.getParameter<double>("xmin"),
338  psTTCluster_RZ.getParameter<double>("xmax"),
339  psTTCluster_RZ.getParameter<int32_t>("Nbinsy"),
340  psTTCluster_RZ.getParameter<double>("ymin"),
341  psTTCluster_RZ.getParameter<double>("ymax"));
342  Cluster_RZ->setAxisTitle("L1 Cluster position z [cm]", 1);
343  Cluster_RZ->setAxisTitle("L1 Cluster position #rho [cm]", 2);
344 
345  //TTCluster Forward Endcap #rho vs. z
346  edm::ParameterSet psTTCluster_Endcap_Fw_RZ_Zoom = conf_.getParameter<edm::ParameterSet>("TH2TTCluster_Endcap_Fw_RZ_Zoom");
347  HistoName = "Cluster_Endcap_Fw_RZ_Zoom";
348  Cluster_Endcap_Fw_RZ_Zoom = dqmStore_->book2D(HistoName, HistoName,
349  psTTCluster_Endcap_Fw_RZ_Zoom.getParameter<int32_t>("Nbinsx"),
350  psTTCluster_Endcap_Fw_RZ_Zoom.getParameter<double>("xmin"),
351  psTTCluster_Endcap_Fw_RZ_Zoom.getParameter<double>("xmax"),
352  psTTCluster_Endcap_Fw_RZ_Zoom.getParameter<int32_t>("Nbinsy"),
353  psTTCluster_Endcap_Fw_RZ_Zoom.getParameter<double>("ymin"),
354  psTTCluster_Endcap_Fw_RZ_Zoom.getParameter<double>("ymax"));
355  Cluster_Endcap_Fw_RZ_Zoom->setAxisTitle("L1 Cluster Forward Endcap position z [cm]", 1);
356  Cluster_Endcap_Fw_RZ_Zoom->setAxisTitle("L1 Cluster Forward Endcap position #rho [cm]", 2);
357 
358  //TTCluster Backward Endcap #rho vs. z
359  edm::ParameterSet psTTCluster_Endcap_Bw_RZ_Zoom = conf_.getParameter<edm::ParameterSet>("TH2TTCluster_Endcap_Bw_RZ_Zoom");
360  HistoName = "Cluster_Endcap_Bw_RZ_Zoom";
361  Cluster_Endcap_Bw_RZ_Zoom = dqmStore_->book2D(HistoName, HistoName,
362  psTTCluster_Endcap_Bw_RZ_Zoom.getParameter<int32_t>("Nbinsx"),
363  psTTCluster_Endcap_Bw_RZ_Zoom.getParameter<double>("xmin"),
364  psTTCluster_Endcap_Bw_RZ_Zoom.getParameter<double>("xmax"),
365  psTTCluster_Endcap_Bw_RZ_Zoom.getParameter<int32_t>("Nbinsy"),
366  psTTCluster_Endcap_Bw_RZ_Zoom.getParameter<double>("ymin"),
367  psTTCluster_Endcap_Bw_RZ_Zoom.getParameter<double>("ymax"));
368  Cluster_Endcap_Bw_RZ_Zoom->setAxisTitle("L1 Cluster Backward Endcap position z [cm]", 1);
369  Cluster_Endcap_Bw_RZ_Zoom->setAxisTitle("L1 Cluster Backward Endcap position #rho [cm]", 2);
370 
371 }//end of method
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
std::string HistoName
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
void OuterTrackerMonitorTTCluster::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 375 of file OuterTrackerMonitorTTCluster.cc.

References DEFINE_FWK_MODULE.

376 {
377 
378 }

Member Data Documentation

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_Barrel_XY = 0

Definition at line 44 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_Barrel_XY_Zoom = 0

Definition at line 45 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_Endcap_Bw_RZ_Zoom = 0

Definition at line 50 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_Endcap_Bw_XY = 0

Definition at line 47 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_Endcap_Fw_RZ_Zoom = 0

Definition at line 49 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_Endcap_Fw_XY = 0

Definition at line 46 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_Eta = 0

Definition at line 42 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_IMem_Barrel = 0

Definition at line 31 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_IMem_Endcap_Disc = 0

Definition at line 32 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_IMem_Endcap_Ring = 0

Definition at line 33 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_IMem_Endcap_Ring_Bw[5] = {0, 0, 0, 0, 0}

Definition at line 35 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_IMem_Endcap_Ring_Fw[5] = {0, 0, 0, 0, 0}

Definition at line 34 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_OMem_Barrel = 0

Definition at line 36 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_OMem_Endcap_Disc = 0

Definition at line 37 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_OMem_Endcap_Ring = 0

Definition at line 38 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_OMem_Endcap_Ring_Bw[5] = {0, 0, 0, 0, 0}

Definition at line 40 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_OMem_Endcap_Ring_Fw[5] = {0, 0, 0, 0, 0}

Definition at line 39 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_RZ = 0

Definition at line 48 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

MonitorElement* OuterTrackerMonitorTTCluster::Cluster_W = 0

Definition at line 41 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and beginRun().

edm::ParameterSet OuterTrackerMonitorTTCluster::conf_
private

Definition at line 54 of file OuterTrackerMonitorTTCluster.h.

Referenced by beginRun(), and OuterTrackerMonitorTTCluster().

DQMStore* OuterTrackerMonitorTTCluster::dqmStore_
private

Definition at line 53 of file OuterTrackerMonitorTTCluster.h.

Referenced by beginRun().

edm::EDGetTokenT<edmNew::DetSetVector< TTCluster< Ref_Phase2TrackerDigi_ > > > OuterTrackerMonitorTTCluster::tagTTClustersToken_
private

Definition at line 55 of file OuterTrackerMonitorTTCluster.h.

Referenced by analyze(), and OuterTrackerMonitorTTCluster().

std::string OuterTrackerMonitorTTCluster::topFolderName_
private

Definition at line 57 of file OuterTrackerMonitorTTCluster.h.

Referenced by beginRun(), and OuterTrackerMonitorTTCluster().