CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

Definition at line 16 of file TrackerPhase2DQMUtil.h.

Definition at line 15 of file TrackerPhase2DQMUtil.h.

Function Documentation

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

Definition at line 50 of file TrackerPhase2DQMUtil.cc.

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

Referenced by Phase2ITMonitorCluster::bookHistograms(), Phase2OTMonitorCluster::bookHistograms(), Phase2ITMonitorRecHit::bookHistograms(), Phase2OTMonitorRecHit::bookHistograms(), Phase2ITValidateRecHitBase::bookLayerHistos(), Phase2ITMonitorRecHit::bookLayerHistos(), Phase2OTValidateRecHitBase::bookLayerHistos(), Phase2OTMonitorRecHit::bookLayerHistos(), Phase2ITMonitorCluster::bookLayerHistos(), Phase2OTMonitorCluster::bookLayerHistos(), Phase2ITValidateCluster::bookLayerHistos(), and Phase2OTValidateCluster::bookLayerHistos().

50  {
51  MonitorElement* temp = nullptr;
52  if (hpars.getParameter<bool>("switch")) {
53  temp = ibooker.book1D(hpars.getParameter<std::string>("name"),
54  hpars.getParameter<std::string>("title"),
55  hpars.getParameter<int32_t>("NxBins"),
56  hpars.getParameter<double>("xmin"),
57  hpars.getParameter<double>("xmax"));
58  }
59  return temp;
60 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
MonitorElement * phase2tkutil::book2DFromPSet ( const edm::ParameterSet hpars,
DQMStore::IBooker ibooker 
)

Definition at line 62 of file TrackerPhase2DQMUtil.cc.

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

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

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 }
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
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MonitorElement * phase2tkutil::bookProfile1DFromPSet ( const edm::ParameterSet hpars,
DQMStore::IBooker ibooker 
)

Definition at line 77 of file TrackerPhase2DQMUtil.cc.

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

Referenced by Phase2ITValidateRecHitBase::bookLayerHistos(), Phase2ITMonitorRecHit::bookLayerHistos(), and Phase2OTValidateRecHitBase::bookLayerHistos().

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 }
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
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::string phase2tkutil::getITHistoId ( uint32_t  det_id,
const TrackerTopology tTopo 
)

Definition at line 2 of file TrackerPhase2DQMUtil.cc.

References 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(), Phase2ITValidateRecHitBase::bookLayerHistos(), Phase2ITMonitorRecHit::bookLayerHistos(), Phase2ITMonitorCluster::bookLayerHistos(), Phase2ITValidateCluster::bookLayerHistos(), Phase2ITMonitorRecHit::fillITHistos(), Phase2ITValidateRecHit::fillITHistos(), Phase2ITValidateTrackingRecHit::fillITHistos(), Phase2ITValidateCluster::fillITHistos(), Phase2ITValidateRecHitBase::fillRechitHistos(), Phase2TrackerMonitorDigi::getHistoId(), and Phase2TrackerValidateDigi::getHistoId().

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 }
unsigned int pxfDisk(const DetId &id) const
constexpr std::array< uint8_t, layerIndexSize > layer
int getITPixelLayerNumber(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
unsigned int pxfBlade(const DetId &id) const
std::string phase2tkutil::getOTHistoId ( uint32_t  det_id,
const TrackerTopology tTopo 
)

Definition at line 25 of file TrackerPhase2DQMUtil.cc.

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

Referenced by Phase2OTMonitorCluster::analyze(), Phase2OTMonitorRecHit::analyze(), Phase2OTValidateRecHitBase::bookLayerHistos(), Phase2OTMonitorRecHit::bookLayerHistos(), Phase2OTMonitorCluster::bookLayerHistos(), Phase2OTValidateCluster::bookLayerHistos(), Phase2OTValidateRecHit::fillOTHistos(), Phase2OTValidateTrackingRecHit::fillOTHistos(), Phase2OTValidateCluster::fillOTHistos(), Phase2OTValidateRecHitBase::fillOTRecHitHistos(), Phase2TrackerMonitorDigi::getHistoId(), and Phase2TrackerValidateDigi::getHistoId().

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 }
unsigned int tidRing(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
constexpr std::array< uint8_t, layerIndexSize > layer
unsigned int tidSide(const DetId &id) const
int getOTLayerNumber(const DetId &id) const
bool phase2tkutil::isPrimary ( const SimTrack simTrk,
const PSimHit simHit 
)

Definition at line 2 of file TrackerPhase2ValidationUtil.cc.

References PSimHit::processType(), CoreSimTrack::trackId(), PSimHit::trackId(), and SimTrack::vertIndex().

Referenced by PFAlgo::createCandidatesHCAL(), Phase2ITValidateCluster::fillITHistos(), Phase2OTValidateCluster::fillOTHistos(), Phase2OTValidateRecHitBase::fillOTRecHitHistos(), Phase2ITValidateRecHitBase::fillRechitHistos(), PFEGammaAlgo::isPrimaryTrack(), and PFAlgo::recoTracksNotHCAL().

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 }
int vertIndex() const
index of the vertex in the Event container (-1 if no vertex)
Definition: SimTrack.h:33
unsigned int trackId() const
Definition: CoreSimTrack.h:31
unsigned short processType() const
Definition: PSimHit.h:120
unsigned int trackId() const
Definition: PSimHit.h:106

Variable Documentation

constexpr float phase2tkutil::cmtomicron = 1e4
static