CMS 3D CMS Logo

Typedefs | Functions | Variables
phase2tkutil Namespace Reference

Typedefs

typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 

Functions

MonitorElementbook1DFromPSet (const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
 
MonitorElementbook2DFromPSet (const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
 
MonitorElementbookProfile1DFromPSet (const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
 
std::string getITHistoId (uint32_t det_id, const TrackerTopology *tTopo)
 
std::string getOTHistoId (uint32_t det_id, const TrackerTopology *tTopo)
 
bool isPrimary (const SimTrack &simTrk, const PSimHit *simHit)
 

Variables

static constexpr float cmtomicron = 1e4
 

Typedef Documentation

◆ DQMStore

Definition at line 16 of file TrackerPhase2DQMUtil.h.

◆ MonitorElement

Definition at line 15 of file TrackerPhase2DQMUtil.h.

Function Documentation

◆ book1DFromPSet()

MonitorElement * phase2tkutil::book1DFromPSet ( const edm::ParameterSet hpars,
DQMStore::IBooker ibooker 
)

◆ book2DFromPSet()

MonitorElement * phase2tkutil::book2DFromPSet ( const edm::ParameterSet hpars,
DQMStore::IBooker ibooker 
)

Definition at line 62 of file TrackerPhase2DQMUtil.cc.

62  {
63  MonitorElement* temp = nullptr;
64  if (hpars.getParameter<bool>("switch")) {
65  temp = ibooker.book2D(hpars.getParameter<std::string>("name"),
66  hpars.getParameter<std::string>("title"),
67  hpars.getParameter<int32_t>("NxBins"),
68  hpars.getParameter<double>("xmin"),
69  hpars.getParameter<double>("xmax"),
70  hpars.getParameter<int32_t>("NyBins"),
71  hpars.getParameter<double>("ymin"),
72  hpars.getParameter<double>("ymax"));
73  }
74  return temp;
75 }

References dqm::implementation::IBooker::book2D(), edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.

Referenced by Phase2ITMonitorCluster::bookHistograms(), Phase2OTMonitorCluster::bookHistograms(), Phase2ITMonitorRecHit::bookHistograms(), Phase2ITMonitorRecHit::bookLayerHistos(), Phase2ITMonitorCluster::bookLayerHistos(), and Phase2OTMonitorCluster::bookLayerHistos().

◆ bookProfile1DFromPSet()

MonitorElement * phase2tkutil::bookProfile1DFromPSet ( const edm::ParameterSet hpars,
DQMStore::IBooker ibooker 
)

Definition at line 77 of file TrackerPhase2DQMUtil.cc.

77  {
78  MonitorElement* temp = nullptr;
79  if (hpars.getParameter<bool>("switch")) {
80  temp = ibooker.bookProfile(hpars.getParameter<std::string>("name"),
81  hpars.getParameter<std::string>("title"),
82  hpars.getParameter<int32_t>("NxBins"),
83  hpars.getParameter<double>("xmin"),
84  hpars.getParameter<double>("xmax"),
85  hpars.getParameter<double>("ymin"),
86  hpars.getParameter<double>("ymax"));
87  }
88  return temp;
89 }

References dqm::implementation::IBooker::bookProfile(), edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.

Referenced by Phase2ITMonitorRecHit::bookLayerHistos(), and Phase2ITValidateRecHit::bookLayerHistos().

◆ getITHistoId()

std::string phase2tkutil::getITHistoId ( uint32_t  det_id,
const TrackerTopology tTopo 
)

Definition at line 2 of file TrackerPhase2DQMUtil.cc.

2  {
3  std::string Disc;
4  std::ostringstream fname1;
5  int layer = tTopo->getITPixelLayerNumber(det_id);
6 
7  if (layer < 0)
8  return "";
9  if (layer < 100) {
10  fname1 << "Barrel/";
11  fname1 << "Layer" << layer;
12  fname1 << "";
13  } else {
14  int side = tTopo->pxfSide(det_id);
15  fname1 << "EndCap_Side" << side << "/";
16  int disc = tTopo->pxfDisk(det_id);
17  Disc = (disc < 9) ? "FPix" : "EPix";
18  fname1 << Disc << "/";
19  int ring = tTopo->pxfBlade(det_id);
20  fname1 << "Ring" << ring;
21  }
22  return fname1.str();
23 }

References TtSemiLepEvtBuilder_cfi::disc, TrackerTopology::getITPixelLayerNumber(), phase1PixelTopology::layer, TrackerTopology::pxfBlade(), TrackerTopology::pxfDisk(), TrackerTopology::pxfSide(), relativeConstraints::ring, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by Phase2ITMonitorCluster::analyze(), Phase2ITMonitorCluster::bookHistograms(), Phase2OTMonitorCluster::bookHistograms(), Phase2ITMonitorRecHit::bookHistograms(), Phase2ITMonitorRecHit::bookLayerHistos(), Phase2ITMonitorCluster::bookLayerHistos(), Phase2ITValidateRecHit::bookLayerHistos(), Phase2ITValidateCluster::bookLayerHistos(), Phase2ITMonitorRecHit::fillITHistos(), Phase2ITValidateRecHit::fillITHistos(), Phase2ITValidateCluster::fillITHistos(), Phase2TrackerMonitorDigi::getHistoId(), and Phase2TrackerValidateDigi::getHistoId().

◆ getOTHistoId()

std::string phase2tkutil::getOTHistoId ( uint32_t  det_id,
const TrackerTopology tTopo 
)

Definition at line 25 of file TrackerPhase2DQMUtil.cc.

25  {
26  std::string Disc;
27  std::ostringstream fname1;
28  int layer = tTopo->getOTLayerNumber(det_id);
29 
30  if (layer < 0)
31  return "";
32  if (layer < 100) {
33  fname1 << "Barrel/";
34  fname1 << "Layer" << layer;
35  fname1 << "";
36  } else {
37  int side = tTopo->tidSide(det_id);
38  fname1 << "EndCap_Side" << side << "/";
39  int disc = tTopo->tidWheel(det_id);
40  Disc = (disc < 3) ? "TEDD_1" : "TEDD_2";
41  fname1 << Disc << "/";
42  int ring = tTopo->tidRing(det_id);
43  fname1 << "Ring" << ring;
44  }
45  return fname1.str();
46 }

References TtSemiLepEvtBuilder_cfi::disc, TrackerTopology::getOTLayerNumber(), phase1PixelTopology::layer, relativeConstraints::ring, AlCaHLTBitMon_QueryRunRegistry::string, TrackerTopology::tidRing(), TrackerTopology::tidSide(), and TrackerTopology::tidWheel().

Referenced by Phase2OTMonitorCluster::analyze(), Phase2OTMonitorCluster::bookLayerHistos(), Phase2OTValidateCluster::bookLayerHistos(), Phase2OTValidateCluster::fillOTHistos(), Phase2TrackerMonitorDigi::getHistoId(), and Phase2TrackerValidateDigi::getHistoId().

◆ isPrimary()

bool phase2tkutil::isPrimary ( const SimTrack simTrk,
const PSimHit simHit 
)

Definition at line 2 of file TrackerPhase2ValidationUtil.cc.

2  {
3  bool retval = false;
4  unsigned int trkId = simTrk.trackId();
5  if (trkId != simHit->trackId())
6  return retval;
7  int vtxIndex = simTrk.vertIndex();
8  int ptype = simHit->processType();
9  return ((vtxIndex == 0) && (ptype == 0));
10 }

References OfflineHarvestingSequence_cosmic::ptype, rpcPointValidation_cfi::simHit, CoreSimTrack::trackId(), and SimTrack::vertIndex().

Referenced by PFAlgo::createCandidatesHCAL(), Phase2ITValidateRecHit::fillITHistos(), Phase2ITValidateCluster::fillITHistos(), Phase2OTValidateCluster::fillOTHistos(), PFEGammaAlgo::isPrimaryTrack(), reco::GhostTrackVertexFinder::mergeVertices(), and PFAlgo::recoTracksNotHCAL().

Variable Documentation

◆ cmtomicron

constexpr float phase2tkutil::cmtomicron = 1e4
staticconstexpr
TrackerTopology::pxfSide
unsigned int pxfSide(const DetId &id) const
Definition: TrackerTopology.h:192
TrackerTopology::getITPixelLayerNumber
int getITPixelLayerNumber(const DetId &id) const
Definition: TrackerTopology.cc:436
TrackerTopology::getOTLayerNumber
int getOTLayerNumber(const DetId &id) const
Definition: TrackerTopology.cc:421
OfflineHarvestingSequence_cosmic.ptype
ptype
Definition: OfflineHarvestingSequence_cosmic.py:7
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
TtSemiLepEvtBuilder_cfi.disc
disc
Definition: TtSemiLepEvtBuilder_cfi.py:60
TrackerTopology::tidRing
unsigned int tidRing(const DetId &id) const
Definition: TrackerTopology.h:218
TrackerTopology::tidWheel
unsigned int tidWheel(const DetId &id) const
Definition: TrackerTopology.h:201
rpcPointValidation_cfi.simHit
simHit
Definition: rpcPointValidation_cfi.py:24
dqm::implementation::IBooker::bookProfile
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
Definition: DQMStore.h:322
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TrackerTopology::tidSide
unsigned int tidSide(const DetId &id) const
Definition: TrackerTopology.h:190
TrackerTopology::pxfDisk
unsigned int pxfDisk(const DetId &id) const
Definition: TrackerTopology.h:446
CoreSimTrack::trackId
unsigned int trackId() const
Definition: CoreSimTrack.h:31
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
SimTrack::vertIndex
int vertIndex() const
index of the vertex in the Event container (-1 if no vertex)
Definition: SimTrack.h:33
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TrackerTopology::pxfBlade
unsigned int pxfBlade(const DetId &id) const
Definition: TrackerTopology.h:447
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98