CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types
SiPixelPhase1GeometryDebug Class Reference
Inheritance diagram for SiPixelPhase1GeometryDebug:
SiPixelPhase1Base one::DQMEDAnalyzer< T > HistogramManagerHolder one::dqmimplementation::DQMBaseClass< T... >

Public Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &) override
 
 SiPixelPhase1GeometryDebug (const edm::ParameterSet &conf)
 
- Public Member Functions inherited from SiPixelPhase1Base
void analyze (edm::Event const &e, edm::EventSetup const &eSetup) override=0
 
void bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &run, edm::EventSetup const &iSetup) override
 
 SiPixelPhase1Base (const edm::ParameterSet &iConfig)
 
 ~SiPixelPhase1Base () override
 
- Public Member Functions inherited from one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from HistogramManagerHolder
 HistogramManagerHolder (const edm::ParameterSet &iConfig)
 

Private Types

enum  { DETID, LADBLD, ROC, FED }
 

Additional Inherited Members

- Protected Types inherited from SiPixelPhase1Base
enum  { DCS }
 
- Protected Member Functions inherited from SiPixelPhase1Base
bool checktrigger (const edm::Event &iEvent, const edm::EventSetup &iSetup, const unsigned trgidx) const
 
- Protected Attributes inherited from HistogramManagerHolder
GeometryInterface geometryInterface
 
std::vector< HistogramManagerhisto
 

Detailed Description

Definition at line 14 of file SiPixelPhase1GeometryDebug.cc.

Member Enumeration Documentation

anonymous enum
private

Constructor & Destructor Documentation

SiPixelPhase1GeometryDebug::SiPixelPhase1GeometryDebug ( const edm::ParameterSet conf)
inlineexplicit

Definition at line 23 of file SiPixelPhase1GeometryDebug.cc.

24  : SiPixelPhase1Base(conf) {
25  }
SiPixelPhase1Base(const edm::ParameterSet &iConfig)

Member Function Documentation

void SiPixelPhase1GeometryDebug::analyze ( const edm::Event iEvent,
const edm::EventSetup  
)
inlineoverride

Definition at line 27 of file SiPixelPhase1GeometryDebug.cc.

References Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), GeometryInterface::allModules(), DEFINE_FWK_MODULE, DETID, GeometryInterface::extract(), FED, HistogramManagerHolder::geometryInterface, HistogramManagerHolder::histo, GeometryInterface::intern(), LADBLD, PVValHelper::ladder, ROC, and GeometryInterface::UNDEFINED.

27  {
33 
34  for (auto iq : all) {
35  auto rocno = geometryInterface.extract(roc, iq);
36  auto fedno = geometryInterface.extract(fed, iq);
37  auto detid = iq.sourceModule.rawId();
38 
39  auto ladbld = geometryInterface.extract(ladder, iq);
40  if (ladbld.second == GeometryInterface::UNDEFINED)
41  ladbld = geometryInterface.extract(blade, iq);
42 
43  histo[DETID ].fill((float) detid, iq.sourceModule, &iEvent, iq.col, iq.row);
44  histo[LADBLD].fill((float) ladbld.second, iq.sourceModule, &iEvent, iq.col, iq.row);
45  histo[ROC ].fill((float) rocno.second, iq.sourceModule, &iEvent, iq.col, iq.row);
46  histo[FED ].fill((float) fedno.second, iq.sourceModule, &iEvent, iq.col, iq.row);
47  }
48  }
GeometryInterface geometryInterface
static const Value UNDEFINED
std::vector< HistogramManager > histo
std::pair< Column, Value > extract(Column const &col, InterestingQuantities const &iq)
std::vector< InterestingQuantities > const & allModules()
ID intern(std::string const &id)