74 theTrackerGeometry = tGeometryHandle.
product();
82 if ( !Phase2TrackerDigiTTClusterHandle.
isValid() )
return;
84 for ( inputIter = Phase2TrackerDigiTTClusterHandle->begin();
85 inputIter != Phase2TrackerDigiTTClusterHandle->end();
88 for(contentIter = inputIter->
begin(); contentIter != inputIter->
end(); ++contentIter)
93 DetId detIdClu = theTrackerGeometry->
idToDet( tempCluRef->getDetId() )->geographicalId();
94 unsigned int memberClu = tempCluRef->getStackMember();
95 unsigned int widClu = tempCluRef->findWidth();
101 double eta = posClu.
eta();
120 if ( memberClu == 0 )
131 if ( posClu.
z() > 0 )
161 HistoName =
"NClusters_IMem_Barrel";
169 HistoName =
"NClusters_OMem_Barrel";
178 HistoName =
"NClusters_IMem_Endcap_Disc";
186 HistoName =
"NClusters_OMem_Endcap_Disc";
195 HistoName =
"NClusters_IMem_Endcap_Ring";
203 HistoName =
"NClusters_OMem_Endcap_Ring";
211 for (
int i = 0;
i < 5;
i++)
213 HistoName =
"NClusters_IMem_Disc+"+std::to_string(
i+1);
222 for (
int i = 0;
i < 5;
i++)
224 HistoName =
"NClusters_IMem_Disc-"+std::to_string(
i+1);
233 for (
int i = 0;
i < 5;
i++)
235 HistoName =
"NClusters_OMem_Disc+"+std::to_string(
i+1);
244 for (
int i = 0;
i < 5;
i++)
246 HistoName =
"NClusters_OMem_Disc-"+std::to_string(
i+1);
260 HistoName =
"Cluster_W";
273 HistoName =
"Cluster_Eta";
285 HistoName =
"Cluster_Barrel_XY";
297 HistoName =
"Cluster_Barrel_XY_Zoom";
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"));
309 HistoName =
"Cluster_Endcap_Fw_XY";
311 psTTCluster_Endcap_Fw_XY.
getParameter<int32_t>(
"Nbinsx"),
314 psTTCluster_Endcap_Fw_XY.
getParameter<int32_t>(
"Nbinsy"),
321 HistoName =
"Cluster_Endcap_Bw_XY";
323 psTTCluster_Endcap_Bw_XY.
getParameter<int32_t>(
"Nbinsx"),
326 psTTCluster_Endcap_Bw_XY.
getParameter<int32_t>(
"Nbinsy"),
334 HistoName =
"Cluster_RZ";
347 HistoName =
"Cluster_Endcap_Fw_RZ_Zoom";
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"));
360 HistoName =
"Cluster_Endcap_Bw_RZ_Zoom";
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"));
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)
MonitorElement * Cluster_W
const_iterator end(bool update=false) const
void beginRun(const edm::Run &, const edm::EventSetup &) override
MonitorElement * Cluster_Endcap_Fw_RZ_Zoom
unsigned int tidRing(const DetId &id) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual const Topology & topology() const
MonitorElement * Cluster_IMem_Barrel
MonitorElement * Cluster_OMem_Barrel
#define DEFINE_FWK_MODULE(type)
MonitorElement * Cluster_OMem_Endcap_Ring
MonitorElement * Cluster_Barrel_XY
MonitorElement * Cluster_Endcap_Bw_XY
const Plane & surface() const
The nominal surface of the GeomDet.
std::string topFolderName_
MonitorElement * Cluster_Endcap_Fw_XY
MonitorElement * Cluster_IMem_Endcap_Disc
OuterTrackerMonitorTTCluster(const edm::ParameterSet &)
MonitorElement * Cluster_Barrel_XY_Zoom
MonitorElement * Cluster_Eta
MonitorElement * Cluster_RZ
MonitorElement * Cluster_Endcap_Bw_RZ_Zoom
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
edm::EDGetTokenT< edmNew::DetSetVector< TTCluster< Ref_Phase2TrackerDigi_ > > > tagTTClustersToken_
MonitorElement * Cluster_OMem_Endcap_Ring_Bw[5]
void analyze(const edm::Event &, const edm::EventSetup &) override
NOTE: this is needed even if it seems not.
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
MonitorElement * Cluster_IMem_Endcap_Ring
unsigned int layer(const DetId &id) const
MonitorElement * Cluster_IMem_Endcap_Ring_Fw[5]
const TrackerGeomDet * idToDet(DetId) const override
MonitorElement * Cluster_OMem_Endcap_Ring_Fw[5]
~OuterTrackerMonitorTTCluster() override
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
void setCurrentFolder(const std::string &fullpath)
const_iterator begin(bool update=false) const
MonitorElement * Cluster_OMem_Endcap_Disc
MonitorElement * Cluster_IMem_Endcap_Ring_Bw[5]