CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
Phase2ITValidateCluster Class Reference

bookLayer More...

#include <Phase2ITValidateCluster.cc>

Inheritance diagram for Phase2ITValidateCluster:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Classes

struct  ClusterMEs
 

Public Types

typedef std::map< unsigned int, std::vector< PSimHit > > SimHitsMap
 
typedef std::map< unsigned int, SimTrackSimTracksMap
 
- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Public Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void bookHistograms (DQMStore::IBooker &ibooker, edm::Run const &iRun, edm::EventSetup const &iSetup) override
 
void dqmBeginRun (const edm::Run &iRun, const edm::EventSetup &iSetup) override
 
 Phase2ITValidateCluster (const edm::ParameterSet &)
 
 ~Phase2ITValidateCluster () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 

Private Member Functions

void bookLayerHistos (DQMStore::IBooker &ibooker, uint32_t det_it, const std::string &subdir)
 
void fillITHistos (const edm::Event &iEvent, const std::vector< edm::Handle< edm::PSimHitContainer >> &simHits, const std::map< unsigned int, SimTrack > &simTracks)
 
std::vector< unsigned int > getSimTrackId (const edm::Handle< edm::DetSetVector< PixelDigiSimLink >> &pixelSimLinks, const DetId &detId, unsigned int channel)
 

Private Attributes

edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > clustersToken_
 
edm::ParameterSet config_
 
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordgeomToken_
 
std::map< std::string, ClusterMEslayerMEs_
 
std::vector< edm::InputTagpSimHitSrc_
 
std::vector< edm::EDGetTokenT< edm::PSimHitContainer > > simHitTokens_
 
edm::EDGetTokenT< edm::DetSetVector< PixelDigiSimLink > > simITLinksToken_
 
double simtrackminpt_
 
edm::EDGetTokenT< edm::SimTrackContainersimTracksToken_
 
const TrackerGeometrytkGeom_ = nullptr
 
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtopoToken_
 
const TrackerTopologytTopo_ = nullptr
 

Additional Inherited Members

- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

bookLayer

Description: Validation plots tracker clusters.

Definition at line 49 of file Phase2ITValidateCluster.cc.

Member Typedef Documentation

◆ SimHitsMap

typedef std::map<unsigned int, std::vector<PSimHit> > Phase2ITValidateCluster::SimHitsMap

Definition at line 51 of file Phase2ITValidateCluster.cc.

◆ SimTracksMap

typedef std::map<unsigned int, SimTrack> Phase2ITValidateCluster::SimTracksMap

Definition at line 52 of file Phase2ITValidateCluster.cc.

Constructor & Destructor Documentation

◆ Phase2ITValidateCluster()

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

Definition at line 98 of file Phase2ITValidateCluster.cc.

99  : config_(iConfig),
100  simtrackminpt_(config_.getParameter<double>("SimTrackMinPt")),
102  config_.getParameter<edm::InputTag>("InnerTrackerDigiSimLinkSource"))),
103  simTracksToken_(consumes<edm::SimTrackContainer>(config_.getParameter<edm::InputTag>("simtracks"))),
106  pSimHitSrc_(config_.getParameter<std::vector<edm::InputTag>>("PSimHitSource")),
107  geomToken_(esConsumes<TrackerGeometry, TrackerDigiGeometryRecord, edm::Transition::BeginRun>()),
108  topoToken_(esConsumes<TrackerTopology, TrackerTopologyRcd, edm::Transition::BeginRun>()) {
109  edm::LogInfo("Phase2ITValidateCluster") << ">>> Construct Phase2ITValidateCluster ";
110  for (const auto& itag : pSimHitSrc_)
111  simHitTokens_.push_back(consumes<edm::PSimHitContainer>(itag));
112 }

References pSimHitSrc_, and simHitTokens_.

◆ ~Phase2ITValidateCluster()

Phase2ITValidateCluster::~Phase2ITValidateCluster ( )
override

Definition at line 114 of file Phase2ITValidateCluster.cc.

114  {
115  // do anything here that needs to be done at desctruction time
116  // (e.g. close files, deallocate resources etc.)
117  edm::LogInfo("Phase2ITValidateCluster") << ">>> Destroy Phase2ITValidateCluster ";
118 }

Member Function Documentation

◆ analyze()

void Phase2ITValidateCluster::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 131 of file Phase2ITValidateCluster.cc.

131  {
132  // Getting simHits
133  std::vector<edm::Handle<edm::PSimHitContainer>> simHits;
134  for (const auto& itoken : simHitTokens_) {
136  iEvent.getByToken(itoken, simHitHandle);
137  if (!simHitHandle.isValid())
138  continue;
139  simHits.emplace_back(simHitHandle);
140  }
141  // Get the SimTracks
143  iEvent.getByToken(simTracksToken_, simTracksRaw);
144 
145  // Rearrange the simTracks for ease of use <simTrackID, simTrack>
147  for (edm::SimTrackContainer::const_iterator simTrackIt(simTracksRaw->begin()); simTrackIt != simTracksRaw->end();
148  ++simTrackIt) {
149  if (simTrackIt->momentum().pt() > simtrackminpt_) {
150  simTracks.emplace(simTrackIt->trackId(), *simTrackIt);
151  }
152  }
154 }

References fillITHistos(), iEvent, edm::HandleBase::isValid(), FastTrackerRecHitCombiner_cfi::simHits, simHitTokens_, simtrackminpt_, TrackCandidateProducer_cfi::simTracks, and simTracksToken_.

◆ bookHistograms()

void Phase2ITValidateCluster::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 247 of file Phase2ITValidateCluster.cc.

249  {
250  std::string top_folder = config_.getParameter<std::string>("TopFolderName");
251  edm::LogInfo("Phase2ITValidateCluster") << " Booking Histograms in: " << top_folder;
252 
253  edm::ESWatcher<TrackerDigiGeometryRecord> theTkDigiGeomWatcher;
254  if (theTkDigiGeomWatcher.check(iSetup)) {
255  for (auto const& det_u : tkGeom_->detUnits()) {
256  //Always check TrackerNumberingBuilder before changing this part
257  if (!(det_u->subDetector() == GeomDetEnumerators::SubDetector::P2PXB ||
258  det_u->subDetector() == GeomDetEnumerators::SubDetector::P2PXEC))
259  continue; //continue if not Pixel
260  uint32_t detId_raw = det_u->geographicalId().rawId();
261  bookLayerHistos(ibooker, detId_raw, top_folder);
262  }
263  }
264 }

References bookLayerHistos(), edm::ESWatcher< T >::check(), config_, TrackerGeometry::detUnits(), edm::ParameterSet::getParameter(), GeomDetEnumerators::P2PXB, GeomDetEnumerators::P2PXEC, AlCaHLTBitMon_QueryRunRegistry::string, and tkGeom_.

◆ bookLayerHistos()

void Phase2ITValidateCluster::bookLayerHistos ( DQMStore::IBooker ibooker,
uint32_t  det_it,
const std::string &  subdir 
)
private

Definition at line 267 of file Phase2ITValidateCluster.cc.

267  {
269  if (folderName.empty()) {
270  edm::LogWarning("Phase2ITValidateCluster") << ">>>> Invalid histo_id ";
271  return;
272  }
273 
274  if (layerMEs_.find(folderName) == layerMEs_.end()) {
275  ibooker.cd();
276  ibooker.setCurrentFolder(subdir + '/' + folderName);
277  edm::LogInfo("Phase2TrackerValidateDigi") << " Booking Histograms in: " << subdir + '/' + folderName;
278  ClusterMEs local_mes;
279 
280  local_mes.deltaX_P =
282 
283  local_mes.deltaY_P =
285 
286  // Puting primary digis in a subfolder
287  ibooker.setCurrentFolder(subdir + '/' + folderName + "/PrimarySimHits");
288 
289  local_mes.deltaX_P_primary =
290  phase2tkutil::book1DFromPSet(config_.getParameter<edm::ParameterSet>("Delta_X_Pixel_Primary"), ibooker);
291 
292  local_mes.deltaY_P_primary =
293  phase2tkutil::book1DFromPSet(config_.getParameter<edm::ParameterSet>("Delta_Y_Pixel_Primary"), ibooker);
294  layerMEs_.emplace(folderName, local_mes);
295  }
296 }

References phase2tkutil::book1DFromPSet(), dqm::implementation::NavigatorBase::cd(), config_, Phase2ITValidateCluster::ClusterMEs::deltaX_P, Phase2ITValidateCluster::ClusterMEs::deltaX_P_primary, Phase2ITValidateCluster::ClusterMEs::deltaY_P, Phase2ITValidateCluster::ClusterMEs::deltaY_P_primary, ALCARECODTCalibSynchCosmicsDQM_cff::folderName, phase2tkutil::getITHistoId(), edm::ParameterSet::getParameter(), layerMEs_, dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and tTopo_.

Referenced by bookHistograms().

◆ dqmBeginRun()

void Phase2ITValidateCluster::dqmBeginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overridevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 122 of file Phase2ITValidateCluster.cc.

122  {
124  tkGeom_ = &(*geomHandle);
126  tTopo_ = tTopoHandle.product();
127 }

References geomToken_, edm::EventSetup::getHandle(), edm::ESHandle< T >::product(), tkGeom_, topoToken_, and tTopo_.

◆ fillDescriptions()

void Phase2ITValidateCluster::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 312 of file Phase2ITValidateCluster.cc.

312  {
314  //for macro-pixel sensors
315  {
317  psd0.add<std::string>("name", "Delta_X_Pixel");
318  psd0.add<std::string>("title", "#Delta X;Cluster resolution X coordinate [#mum]");
319  psd0.add<bool>("switch", true);
320  psd0.add<double>("xmax", 250.);
321  psd0.add<double>("xmin", -250.);
322  psd0.add<int>("NxBins", 100);
323  desc.add<edm::ParameterSetDescription>("Delta_X_Pixel", psd0);
324  }
325  {
327  psd0.add<std::string>("name", "Delta_Y_Pixel");
328  psd0.add<std::string>("title", "#Delta Y ;Cluster resolution Y coordinate [#mum]");
329  psd0.add<double>("xmin", -250.);
330  psd0.add<double>("xmax", 250.);
331  psd0.add<bool>("switch", true);
332  psd0.add<int>("NxBins", 100);
333  desc.add<edm::ParameterSetDescription>("Delta_Y_Pixel", psd0);
334  }
335  {
337  psd0.add<std::string>("name", "Delta_X_Pixel_Primary");
338  psd0.add<std::string>("title", "#Delta X ;cluster resolution X coordinate [#mum]");
339  psd0.add<double>("xmin", -250.);
340  psd0.add<double>("xmax", 250.);
341  psd0.add<bool>("switch", true);
342  psd0.add<int>("NxBins", 100);
343  desc.add<edm::ParameterSetDescription>("Delta_X_Pixel_Primary", psd0);
344  }
345  {
347  psd0.add<std::string>("name", "Delta_Y_Pixel_Primary");
348  psd0.add<std::string>("title", "#Delta Y ;cluster resolution Y coordinate [#mum]");
349  psd0.add<double>("xmin", -250.);
350  psd0.add<double>("xmax", 250.);
351  psd0.add<bool>("switch", true);
352  psd0.add<int>("NxBins", 100);
353  desc.add<edm::ParameterSetDescription>("Delta_Y_Pixel_Primary", psd0);
354  }
355 
356  desc.add<std::string>("TopFolderName", "TrackerPhase2ITClusterV");
357  desc.add<edm::InputTag>("ClusterSource", edm::InputTag("siPixelClusters"));
358  desc.add<edm::InputTag>("InnerTrackerDigiSimLinkSource", edm::InputTag("simSiPixelDigis", "Pixel"));
359  desc.add<edm::InputTag>("simtracks", edm::InputTag("g4SimHits"));
360  desc.add<double>("SimTrackMinPt", 0.0);
361  desc.add<std::vector<edm::InputTag>>("PSimHitSource",
362  {
363  edm::InputTag("g4SimHits:TrackerHitsPixelBarrelLowTof"),
364  edm::InputTag("g4SimHits:TrackerHitsPixelBarrelHighTof"),
365  edm::InputTag("g4SimHits:TrackerHitsPixelEndcapLowTof"),
366  edm::InputTag("g4SimHits:TrackerHitsPixelEndcapHighTof"),
367  });
368  descriptions.add("Phase2ITValidateCluster", desc);
369 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ fillITHistos()

void Phase2ITValidateCluster::fillITHistos ( const edm::Event iEvent,
const std::vector< edm::Handle< edm::PSimHitContainer >> &  simHits,
const std::map< unsigned int, SimTrack > &  simTracks 
)
private

Definition at line 156 of file Phase2ITValidateCluster.cc.

158  {
159  // Getting the clusters
161  iEvent.getByToken(clustersToken_, clusterHandle);
162 
163  // Getting PixelDigiSimLinks
165  iEvent.getByToken(simITLinksToken_, pixelSimLinksHandle);
166 
167  for (const auto& DSVItr : *clusterHandle) {
168  // Getting the id of detector unit
169  uint32_t rawid = DSVItr.detId();
170  DetId detId(rawid);
171  const GeomDetUnit* geomDetUnit(tkGeom_->idToDetUnit(detId));
172  if (!geomDetUnit)
173  continue;
174 
175  std::string folderkey = phase2tkutil::getITHistoId(detId, tTopo_);
176  for (const auto& clusterItr : DSVItr) {
177  MeasurementPoint mpCluster(clusterItr.x(), clusterItr.y());
178  Local3DPoint localPosCluster = geomDetUnit->topology().localPosition(mpCluster);
179  // Get simTracks from the cluster
180  std::vector<unsigned int> clusterSimTrackIds;
181  for (int irow = clusterItr.minPixelRow(); irow <= clusterItr.maxPixelRow(); ++irow) {
182  for (int icol = clusterItr.minPixelCol(); icol <= clusterItr.maxPixelCol(); ++icol) {
183  uint32_t channel = PixelChannelIdentifier::pixelToChannel(irow, icol);
184  std::vector<unsigned int> simTrackIds(getSimTrackId(pixelSimLinksHandle, detId, channel));
185  for (auto it : simTrackIds) {
186  bool add = true;
187  for (unsigned int j = 0; j < clusterSimTrackIds.size(); ++j) {
188  // only save simtrackids that are not present yet
189  if (it == clusterSimTrackIds.at(j))
190  add = false;
191  }
192  if (add)
193  clusterSimTrackIds.push_back(it);
194  }
195  }
196  }
197  std::sort(clusterSimTrackIds.begin(), clusterSimTrackIds.end());
198  const PSimHit* closestSimHit = nullptr;
199  float mind = 10000.;
200  // Get the SimHit
201  for (const auto& psimhitCont : simHits) {
202  for (const auto& simhitIt : *psimhitCont) {
203  if (rawid == simhitIt.detUnitId()) {
204  auto it = std::lower_bound(clusterSimTrackIds.begin(), clusterSimTrackIds.end(), simhitIt.trackId());
205  if (it != clusterSimTrackIds.end() && *it == simhitIt.trackId()) {
206  float dx = simhitIt.localPosition().x() - localPosCluster.x();
207  float dy = simhitIt.localPosition().y() - localPosCluster.y();
208  float dist = std::sqrt(dx * dx + dy * dy);
209  if (!closestSimHit || dist < mind) {
210  mind = dist;
211  closestSimHit = &simhitIt;
212  }
213  }
214  }
215  } //end loop over PSimhitcontainers
216  } //end loop over simHits
217 
218  if (!closestSimHit)
219  continue;
220  // only look at simhits from highpT tracks
221  auto simTrackIt(simTracks.find(closestSimHit->trackId()));
222  if (simTrackIt == simTracks.end())
223  continue;
224  Local3DPoint localPosSimHit(closestSimHit->localPosition());
225  const double deltaX = phase2tkutil::cmtomicron * (localPosCluster.x() - localPosSimHit.x());
226  const double deltaY = phase2tkutil::cmtomicron * (localPosCluster.y() - localPosSimHit.y());
227 
228  auto layerMEIt = layerMEs_.find(folderkey);
229  if (layerMEIt == layerMEs_.end())
230  continue;
231 
232  ClusterMEs& local_mes = layerMEIt->second;
233  local_mes.deltaX_P->Fill(deltaX);
234  local_mes.deltaY_P->Fill(deltaY);
235  // Primary particles only
236  if (phase2tkutil::isPrimary(simTrackIt->second, closestSimHit)) {
237  local_mes.deltaX_P_primary->Fill(deltaX);
238  local_mes.deltaY_P_primary->Fill(deltaY);
239  }
240  }
241  }
242 }

References PVValHelper::add(), clustersToken_, phase2tkutil::cmtomicron, Phase2ITValidateCluster::ClusterMEs::deltaX_P, Phase2ITValidateCluster::ClusterMEs::deltaX_P_primary, Phase2ITValidateCluster::ClusterMEs::deltaY_P, Phase2ITValidateCluster::ClusterMEs::deltaY_P_primary, PVValHelper::dx, PVValHelper::dy, dqm::impl::MonitorElement::Fill(), phase2tkutil::getITHistoId(), getSimTrackId(), TrackerGeometry::idToDetUnit(), iEvent, phase2tkutil::isPrimary(), dqmiolumiharvest::j, layerMEs_, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, PixelChannelIdentifier::pixelToChannel(), FastTrackerRecHitCombiner_cfi::simHits, simITLinksToken_, TrackCandidateProducer_cfi::simTracks, jetUpdater_cfi::sort, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, tkGeom_, and tTopo_.

Referenced by analyze().

◆ getSimTrackId()

std::vector< unsigned int > Phase2ITValidateCluster::getSimTrackId ( const edm::Handle< edm::DetSetVector< PixelDigiSimLink >> &  pixelSimLinks,
const DetId detId,
unsigned int  channel 
)
private

Definition at line 298 of file Phase2ITValidateCluster.cc.

299  {
300  std::vector<unsigned int> retvec;
301  edm::DetSetVector<PixelDigiSimLink>::const_iterator DSViter(pixelSimLinks->find(detId));
302  if (DSViter == pixelSimLinks->end())
303  return retvec;
304  for (edm::DetSet<PixelDigiSimLink>::const_iterator it = DSViter->data.begin(); it != DSViter->data.end(); ++it) {
305  if (channel == it->channel()) {
306  retvec.push_back(it->SimTrackId());
307  }
308  }
309  return retvec;
310 }

Referenced by fillITHistos().

Member Data Documentation

◆ clustersToken_

edm::EDGetTokenT<edmNew::DetSetVector<SiPixelCluster> > Phase2ITValidateCluster::clustersToken_
private

Definition at line 84 of file Phase2ITValidateCluster.cc.

Referenced by fillITHistos().

◆ config_

edm::ParameterSet Phase2ITValidateCluster::config_
private

Definition at line 79 of file Phase2ITValidateCluster.cc.

Referenced by bookHistograms(), and bookLayerHistos().

◆ geomToken_

const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> Phase2ITValidateCluster::geomToken_
private

Definition at line 86 of file Phase2ITValidateCluster.cc.

Referenced by dqmBeginRun().

◆ layerMEs_

std::map<std::string, ClusterMEs> Phase2ITValidateCluster::layerMEs_
private

Definition at line 77 of file Phase2ITValidateCluster.cc.

Referenced by bookLayerHistos(), and fillITHistos().

◆ pSimHitSrc_

std::vector<edm::InputTag> Phase2ITValidateCluster::pSimHitSrc_
private

Definition at line 85 of file Phase2ITValidateCluster.cc.

Referenced by Phase2ITValidateCluster().

◆ simHitTokens_

std::vector<edm::EDGetTokenT<edm::PSimHitContainer> > Phase2ITValidateCluster::simHitTokens_
private

Definition at line 81 of file Phase2ITValidateCluster.cc.

Referenced by analyze(), and Phase2ITValidateCluster().

◆ simITLinksToken_

edm::EDGetTokenT<edm::DetSetVector<PixelDigiSimLink> > Phase2ITValidateCluster::simITLinksToken_
private

Definition at line 82 of file Phase2ITValidateCluster.cc.

Referenced by fillITHistos().

◆ simtrackminpt_

double Phase2ITValidateCluster::simtrackminpt_
private

Definition at line 80 of file Phase2ITValidateCluster.cc.

Referenced by analyze().

◆ simTracksToken_

edm::EDGetTokenT<edm::SimTrackContainer> Phase2ITValidateCluster::simTracksToken_
private

Definition at line 83 of file Phase2ITValidateCluster.cc.

Referenced by analyze().

◆ tkGeom_

const TrackerGeometry* Phase2ITValidateCluster::tkGeom_ = nullptr
private

Definition at line 88 of file Phase2ITValidateCluster.cc.

Referenced by bookHistograms(), dqmBeginRun(), and fillITHistos().

◆ topoToken_

const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> Phase2ITValidateCluster::topoToken_
private

Definition at line 87 of file Phase2ITValidateCluster.cc.

Referenced by dqmBeginRun().

◆ tTopo_

const TrackerTopology* Phase2ITValidateCluster::tTopo_ = nullptr
private

Definition at line 89 of file Phase2ITValidateCluster.cc.

Referenced by bookLayerHistos(), dqmBeginRun(), and fillITHistos().

edm::ESWatcher::check
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:52
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
edm::DetSetVector
Definition: DetSetVector.h:61
Point2DBase
Definition: Point2DBase.h:9
phase2tkutil::book1DFromPSet
MonitorElement * book1DFromPSet(const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
Definition: TrackerPhase2DQMUtil.cc:50
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
GeomDet
Definition: GeomDet.h:27
Phase2ITValidateCluster::simITLinksToken_
edm::EDGetTokenT< edm::DetSetVector< PixelDigiSimLink > > simITLinksToken_
Definition: Phase2ITValidateCluster.cc:82
Phase2ITValidateCluster::tkGeom_
const TrackerGeometry * tkGeom_
Definition: Phase2ITValidateCluster.cc:88
edm::ESWatcher< TrackerDigiGeometryRecord >
Phase2ITValidateCluster::pSimHitSrc_
std::vector< edm::InputTag > pSimHitSrc_
Definition: Phase2ITValidateCluster.cc:85
Phase2ITValidateCluster::layerMEs_
std::map< std::string, ClusterMEs > layerMEs_
Definition: Phase2ITValidateCluster.cc:77
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89281
Phase2ITValidateCluster::tTopo_
const TrackerTopology * tTopo_
Definition: Phase2ITValidateCluster.cc:89
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
FastTrackerRecHitCombiner_cfi.simHits
simHits
Definition: FastTrackerRecHitCombiner_cfi.py:5
TrackCandidateProducer_cfi.simTracks
simTracks
Definition: TrackCandidateProducer_cfi.py:15
Phase2ITValidateCluster::simTracksToken_
edm::EDGetTokenT< edm::SimTrackContainer > simTracksToken_
Definition: Phase2ITValidateCluster.cc:83
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::Handle< edm::PSimHitContainer >
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
TrackerGeometry::idToDetUnit
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Definition: TrackerGeometry.cc:183
Phase2ITValidateCluster::simHitTokens_
std::vector< edm::EDGetTokenT< edm::PSimHitContainer > > simHitTokens_
Definition: Phase2ITValidateCluster.cc:81
DetId
Definition: DetId.h:17
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
PixelChannelIdentifier::pixelToChannel
static int pixelToChannel(int row, int col)
Definition: PixelChannelIdentifier.h:65
TrackerGeometry::detUnits
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
Definition: TrackerGeometry.h:61
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
Phase2ITValidateCluster::config_
edm::ParameterSet config_
Definition: Phase2ITValidateCluster.cc:79
edm::ESHandle< TrackerGeometry >
dqm::implementation::NavigatorBase::cd
virtual void cd()
Definition: DQMStore.cc:29
Point3DBase< float, LocalTag >
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pfDeepBoostedJetPreprocessParams_cfi.lower_bound
lower_bound
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:15
edm::ParameterSet
Definition: ParameterSet.h:47
phase2tkutil::isPrimary
bool isPrimary(const SimTrack &simTrk, const PSimHit *simHit)
Definition: TrackerPhase2ValidationUtil.cc:2
PVValHelper::add
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
Definition: PVValidationHelpers.cc:12
edm::DetSetVector::const_iterator
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:102
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
iEvent
int iEvent
Definition: GenABIO.cc:224
Phase2ITValidateCluster::geomToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: Phase2ITValidateCluster.cc:86
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
PVValHelper::dy
Definition: PVValidationHelpers.h:50
Phase2ITValidateCluster::SimTracksMap
std::map< unsigned int, SimTrack > SimTracksMap
Definition: Phase2ITValidateCluster.cc:52
phase2tkutil::cmtomicron
static constexpr float cmtomicron
Definition: TrackerPhase2ValidationUtil.h:9
ALCARECODTCalibSynchCosmicsDQM_cff.folderName
folderName
Definition: ALCARECODTCalibSynchCosmicsDQM_cff.py:9
Phase2ITValidateCluster::getSimTrackId
std::vector< unsigned int > getSimTrackId(const edm::Handle< edm::DetSetVector< PixelDigiSimLink >> &pixelSimLinks, const DetId &detId, unsigned int channel)
Definition: Phase2ITValidateCluster.cc:298
edmNew::DetSetVector
Definition: DetSetNew.h:13
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
phase2tkutil::getITHistoId
std::string getITHistoId(uint32_t det_id, const TrackerTopology *tTopo)
Definition: TrackerPhase2DQMUtil.cc:2
Phase2ITValidateCluster::bookLayerHistos
void bookLayerHistos(DQMStore::IBooker &ibooker, uint32_t det_it, const std::string &subdir)
Definition: Phase2ITValidateCluster.cc:267
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
GeomDetEnumerators::P2PXB
Definition: GeomDetEnumerators.h:27
Phase2ITValidateCluster::fillITHistos
void fillITHistos(const edm::Event &iEvent, const std::vector< edm::Handle< edm::PSimHitContainer >> &simHits, const std::map< unsigned int, SimTrack > &simTracks)
Definition: Phase2ITValidateCluster.cc:156
Phase2ITValidateCluster::clustersToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > clustersToken_
Definition: Phase2ITValidateCluster.cc:84
PSimHit
Definition: PSimHit.h:15
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
Phase2ITValidateCluster::topoToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: Phase2ITValidateCluster.cc:87
edm::InputTag
Definition: InputTag.h:15
Phase2ITValidateCluster::simtrackminpt_
double simtrackminpt_
Definition: Phase2ITValidateCluster.cc:80
PVValHelper::dx
Definition: PVValidationHelpers.h:49
GeomDetEnumerators::P2PXEC
Definition: GeomDetEnumerators.h:28
edm::DetSet::const_iterator
collection_type::const_iterator const_iterator
Definition: DetSet.h:31