CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
ME0BaseValidation Class Referenceabstract

#include <ME0BaseValidation.h>

Inheritance diagram for ME0BaseValidation:
DQMEDAnalyzer edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper ME0DigisValidation ME0HitsValidation ME0RecHitsValidation ME0SegmentsValidation

Public Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &) override=0
 
MonitorElementBookHistXY (DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int layer_num=99)
 
MonitorElementBookHistZR (DQMStore::IBooker &, const char *name, const char *label, unsigned int region_num, unsigned int layer_num=99)
 
 ME0BaseValidation (const edm::ParameterSet &ps)
 
 ~ME0BaseValidation () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
virtual void dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Attributes

edm::EDGetToken InputTagToken_
 
std::vector< std::string > layerLabel
 
int nBinXY_
 
std::vector< double > nBinZR_
 
std::vector< double > RangeZR_
 
std::vector< std::string > regionLabel
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 21 of file ME0BaseValidation.h.

Constructor & Destructor Documentation

ME0BaseValidation::ME0BaseValidation ( const edm::ParameterSet ps)
explicit

Definition at line 5 of file ME0BaseValidation.cc.

References edm::ParameterSet::getUntrackedParameter().

5  {
6  nBinZR_ = ps.getUntrackedParameter<std::vector<double>>("nBinGlobalZR");
7  RangeZR_ = ps.getUntrackedParameter<std::vector<double>>("RangeGlobalZR");
8  nBinXY_ = ps.getUntrackedParameter<int>("nBinGlobalXY", 160);
9 
10  regionLabel.push_back("-1");
11  regionLabel.push_back("1");
12 
13  layerLabel.push_back("1");
14  layerLabel.push_back("2");
15  layerLabel.push_back("3");
16  layerLabel.push_back("4");
17  layerLabel.push_back("5");
18  layerLabel.push_back("6");
19 }
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > regionLabel
std::vector< double > RangeZR_
std::vector< std::string > layerLabel
std::vector< double > nBinZR_
ME0BaseValidation::~ME0BaseValidation ( )
override

Definition at line 21 of file ME0BaseValidation.cc.

21 {}

Member Function Documentation

void ME0BaseValidation::analyze ( const edm::Event e,
const edm::EventSetup  
)
overridepure virtual
ME0BaseValidation::MonitorElement * ME0BaseValidation::BookHistXY ( DQMStore::IBooker ibooker,
const char *  name,
const char *  label,
unsigned int  region_num,
unsigned int  layer_num = 99 
)

Definition at line 55 of file ME0BaseValidation.cc.

References dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ME0HitsValidation::bookHistograms(), ME0DigisValidation::bookHistograms(), ME0RecHitsValidation::bookHistograms(), and ME0SegmentsValidation::bookHistograms().

56  {
57  string hist_name, hist_label;
58  if (layer_num == 0 || layer_num == 1 || layer_num == 2 || layer_num == 3 || layer_num == 4 || layer_num == 5 ||
59  layer_num == 6) {
60  hist_name = name + string("_xy_r") + regionLabel[region_num] + "_l" + layerLabel[layer_num];
61  hist_label = label + string(" occupancy : region") + regionLabel[region_num] + " layer " + layerLabel[layer_num] +
62  " " + " ; globalX [cm]; globalY[cm]";
63  } else {
64  hist_name = name + string("_xy_r") + regionLabel[region_num];
65  hist_label = label + string(" occupancy : region") + regionLabel[region_num] + " ; globalX [cm]; globalY[cm]";
66  }
67  return ibooker.book2D(hist_name, hist_label, nBinXY_, -160, 160, nBinXY_, -160, 160);
68 }
std::vector< std::string > regionLabel
char const * label
std::vector< std::string > layerLabel
ME0BaseValidation::MonitorElement * ME0BaseValidation::BookHistZR ( DQMStore::IBooker ibooker,
const char *  name,
const char *  label,
unsigned int  region_num,
unsigned int  layer_num = 99 
)

Definition at line 23 of file ME0BaseValidation.cc.

References dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), createfilelist::int, AlCaHLTBitMon_QueryRunRegistry::string, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.

Referenced by ME0HitsValidation::bookHistograms(), ME0DigisValidation::bookHistograms(), ME0RecHitsValidation::bookHistograms(), and ME0SegmentsValidation::bookHistograms().

24  {
25  string hist_name, hist_label;
26  if (layer_num == 0 || layer_num == 1 || layer_num == 2 || layer_num == 3 || layer_num == 4 || layer_num == 5 ||
27  layer_num == 6) {
28  hist_name = name + string("_zr_r") + regionLabel[region_num] + "_l" + layerLabel[layer_num];
29  hist_label = label + string(" occupancy : region") + regionLabel[region_num] + " layer " + layerLabel[layer_num] +
30  " " + " ; globalZ [cm]; globalR[cm]";
31  } else {
32  hist_name = name + string("_zr_r") + regionLabel[region_num];
33  hist_label = label + string(" occupancy : region") + regionLabel[region_num] + " ; globalZ [cm]; globalR[cm]";
34  }
35  int xbin = (int)nBinZR_[0];
36  int ybin = (int)nBinZR_[1];
37  double xmin = 0;
38  double xmax = 0;
39  double ymin = 0;
40  double ymax = 0;
41  ymin = RangeZR_[RangeZR_.size() / 2 + 0];
42  ;
43  ymax = RangeZR_[RangeZR_.size() / 2 + 1];
44  ;
45  if (region_num == 0) {
46  xmin = -RangeZR_[1];
47  xmax = -RangeZR_[0];
48  } else {
49  xmin = RangeZR_[0];
50  xmax = RangeZR_[1];
51  }
52  return ibooker.book2D(hist_name, hist_label, xbin, xmin, xmax, ybin, ymin, ymax);
53 }
std::vector< std::string > regionLabel
std::vector< double > RangeZR_
char const * label
std::vector< std::string > layerLabel
std::vector< double > nBinZR_

Member Data Documentation

edm::EDGetToken ME0BaseValidation::InputTagToken_
protected
std::vector<std::string> ME0BaseValidation::layerLabel
protected
int ME0BaseValidation::nBinXY_
protected

Definition at line 37 of file ME0BaseValidation.h.

std::vector<double> ME0BaseValidation::nBinZR_
protected

Definition at line 34 of file ME0BaseValidation.h.

std::vector<double> ME0BaseValidation::RangeZR_
protected

Definition at line 35 of file ME0BaseValidation.h.

std::vector<std::string> ME0BaseValidation::regionLabel
protected