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::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase ME0DigisValidation ME0HitsValidation ME0RecHitsValidation ME0SegmentsValidation

Public Member Functions

virtual void analyze (const edm::Event &e, const edm::EventSetup &)=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)
 
virtual ~ME0BaseValidation ()
 
- Public Member Functions inherited from DQMEDAnalyzer
void beginRun (edm::Run const &, edm::EventSetup const &) final
 
void beginStream (edm::StreamID id) final
 
virtual void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer (void)
 
void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDAnalyzerBase () 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
 
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
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
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
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
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
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr< dqmDetails::NoCacheglobalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr< dqmDetails::NoCacheglobalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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 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 22 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().

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

Definition at line 24 of file ME0BaseValidation.cc.

24  {
25 }

Member Function Documentation

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

Definition at line 56 of file ME0BaseValidation.cc.

References 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 || layer_num==6 ) {
59  hist_name = name+string("_xy_r") + regionLabel[region_num]+"_l"+layerLabel[layer_num];
60  hist_label = label+string(" occupancy : region")+regionLabel[region_num]+" layer "+layerLabel[layer_num]+" "+" ; globalX [cm]; globalY[cm]";
61  }
62  else {
63  hist_name = name+string("_xy_r") + regionLabel[region_num];
64  hist_label = label+string(" occupancy : region")+regionLabel[region_num]+" ; globalX [cm]; globalY[cm]";
65  }
66  return ibooker.book2D( hist_name, hist_label, nBinXY_, -160,160,nBinXY_,-160,160);
67 }
std::vector< std::string > layerLabel
std::vector< std::string > regionLabel
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
MonitorElement * ME0BaseValidation::BookHistZR ( DQMStore::IBooker ibooker,
const char *  name,
const char *  label,
unsigned int  region_num,
unsigned int  layer_num = 99 
)

Definition at line 27 of file ME0BaseValidation.cc.

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

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

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

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

Definition at line 33 of file ME0BaseValidation.h.

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

Definition at line 34 of file ME0BaseValidation.h.

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