CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types
SiPixelPhase1GeometryDebug Class Reference
Inheritance diagram for SiPixelPhase1GeometryDebug:
SiPixelPhase1Base DQMEDAnalyzer HistogramManagerHolder edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

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 bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &run, edm::EventSetup const &) override
 
 SiPixelPhase1Base (const edm::ParameterSet &iConfig)
 
 ~SiPixelPhase1Base () 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
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 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
 
- Public Member Functions inherited from HistogramManagerHolder
 HistogramManagerHolder (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC, edm::Transition transition=edm::Transition::BeginRun)
 

Private Types

enum  { DETID, LADBLD, ROC, FED }
 

Additional Inherited Members

- 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
 
- 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 &)
 
- Protected Types inherited from SiPixelPhase1Base
enum  { DCS }
 
- Protected Member Functions inherited from SiPixelPhase1Base
bool checktrigger (const edm::Event &iEvent, const edm::EventSetup &, const unsigned trgidx) const
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 
- 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

anonymous enum
private
Enumerator
DETID 
LADBLD 
ROC 
FED 

Definition at line 15 of file SiPixelPhase1GeometryDebug.cc.

15 { DETID, LADBLD, ROC, FED };

Constructor & Destructor Documentation

◆ SiPixelPhase1GeometryDebug()

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

Definition at line 18 of file SiPixelPhase1GeometryDebug.cc.

18 : SiPixelPhase1Base(conf) {}

Member Function Documentation

◆ analyze()

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

Implements SiPixelPhase1Base.

Definition at line 20 of file SiPixelPhase1GeometryDebug.cc.

20  {
26 
27  for (auto iq : all) {
28  auto rocno = geometryInterface.extract(roc, iq);
29  auto fedno = geometryInterface.extract(fed, iq);
30  auto detid = iq.sourceModule.rawId();
31 
32  auto ladbld = geometryInterface.extract(ladder, iq);
33  if (ladbld.second == GeometryInterface::UNDEFINED)
34  ladbld = geometryInterface.extract(blade, iq);
35 
36  histo[DETID].fill((float)detid, iq.sourceModule, &iEvent, iq.col, iq.row);
37  histo[LADBLD].fill((float)ladbld.second, iq.sourceModule, &iEvent, iq.col, iq.row);
38  histo[ROC].fill((float)rocno.second, iq.sourceModule, &iEvent, iq.col, iq.row);
39  histo[FED].fill((float)fedno.second, iq.sourceModule, &iEvent, iq.col, iq.row);
40  }
41  }

References python.cmstools::all(), GeometryInterface::allModules(), DETID, GeometryInterface::extract(), FED, HistogramManagerHolder::geometryInterface, HistogramManagerHolder::histo, iEvent, GeometryInterface::intern(), LADBLD, PVValHelper::ladder, ROC, PixelMapPlotter::roc, and GeometryInterface::UNDEFINED.

HistogramManagerHolder::histo
std::vector< HistogramManager > histo
Definition: SiPixelPhase1Base.h:37
python.cmstools.all
def all(container)
workaround iterator generators for ROOT classes
Definition: cmstools.py:26
SiPixelPhase1Base::SiPixelPhase1Base
SiPixelPhase1Base(const edm::ParameterSet &iConfig)
Definition: SiPixelPhase1Base.cc:14
SiPixelPhase1GeometryDebug::FED
Definition: SiPixelPhase1GeometryDebug.cc:15
GeometryInterface::UNDEFINED
static const Value UNDEFINED
Definition: GeometryInterface.h:42
SiPixelPhase1GeometryDebug::LADBLD
Definition: SiPixelPhase1GeometryDebug.cc:15
iEvent
int iEvent
Definition: GenABIO.cc:224
GeometryInterface::Column
ID Column
Definition: GeometryInterface.h:40
GeometryInterface::intern
ID intern(std::string const &id)
Definition: GeometryInterface.h:106
GeometryInterface::extract
std::pair< Column, Value > extract(Column const &col, InterestingQuantities const &iq)
Definition: GeometryInterface.h:76
PVValHelper::ladder
Definition: PVValidationHelpers.h:72
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498
HistogramManagerHolder::geometryInterface
GeometryInterface geometryInterface
Definition: SiPixelPhase1Base.h:41
SiPixelPhase1GeometryDebug::DETID
Definition: SiPixelPhase1GeometryDebug.cc:15
GeometryInterface::allModules
std::vector< InterestingQuantities > const & allModules()
Definition: GeometryInterface.h:99
SiPixelPhase1GeometryDebug::ROC
Definition: SiPixelPhase1GeometryDebug.cc:15