CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
EcalMixingModuleValidation Class Reference

#include <EcalMixingModuleValidation.h>

Inheritance diagram for EcalMixingModuleValidation:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
 
 EcalMixingModuleValidation (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~EcalMixingModuleValidation ()
 Destructor. More...
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual 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
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &c)
 Analyze. More...
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
void endRun (const edm::Run &r, const edm::EventSetup &c)
 
- 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)
 

Private Types

typedef std::map< uint32_t,
float, std::less< uint32_t > > 
MapType
 

Private Member Functions

void bunchSumTest (std::vector< MonitorElement * > &theBunches, MonitorElement *&theTotal, MonitorElement *&theRatio, int nSample)
 
void checkCalibrations (edm::EventSetup const &c)
 
void checkPedestals (const edm::EventSetup &c)
 
void computeSDBunchDigi (const edm::EventSetup &eventSetup, MixCollection< PCaloHit > &theHits, MapType &ebSignalSimMap, const EcalSubdetector &thisDet, const double &theSimThreshold, CLHEP::HepRandomEngine *)
 
void findPedestal (const DetId &detId, int gainId, double &ped) const
 
CLHEP::HepRandomEngine * randomEngine (edm::StreamID const &streamID)
 

Private Attributes

double barrelADCtoGeV_
 
edm::EDGetTokenT
< CrossingFrame< PCaloHit > > 
crossingFramePCaloHitEBToken_
 
edm::EDGetTokenT
< CrossingFrame< PCaloHit > > 
crossingFramePCaloHitEEToken_
 
edm::EDGetTokenT
< CrossingFrame< PCaloHit > > 
crossingFramePCaloHitESToken_
 
DQMStoredbe_
 
edm::EDGetTokenT
< EBDigiCollection
EBdigiCollectionToken_
 
edm::EDGetTokenT
< EEDigiCollection
EEdigiCollectionToken_
 
double endcapADCtoGeV_
 
double esADCtokeV_
 
double esBaseline_
 
edm::EDGetTokenT
< ESDigiCollection
ESdigiCollectionToken_
 
double esThreshold_
 
std::map< int, double,
std::less< int > > 
gainConv_
 
edm::EDGetTokenT
< edm::HepMCProduct
HepMCToken_
 
double m_ESeffwei
 
int m_ESgain
 
const ESIntercalibConstantsm_ESmips
 
const ESPedestalsm_ESpeds
 
MonitorElementmeEBbunchCrossing_
 
MonitorElementmeEBBunchShape_ [nBunch]
 
MonitorElementmeEBDigiMixRatiogt100ADC_
 
MonitorElementmeEBDigiMixRatioOriggt50pc_
 
MonitorElementmeEBShape_
 
MonitorElementmeEBShapeRatio_
 
MonitorElementmeEEbunchCrossing_
 
MonitorElementmeEEBunchShape_ [nBunch]
 
MonitorElementmeEEDigiMixRatiogt100ADC_
 
MonitorElementmeEEDigiMixRatioOriggt40pc_
 
MonitorElementmeEEShape_
 
MonitorElementmeEEShapeRatio_
 
MonitorElementmeESbunchCrossing_
 
MonitorElementmeESBunchShape_ [nBunch]
 
MonitorElementmeESShape_
 
MonitorElementmeESShapeRatio_
 
std::string outputFile_
 
std::vector
< CLHEP::HepRandomEngine * > 
randomEngines_
 
CaloHitResponsetheEBResponse
 
const EBShapetheEBShape
 
CaloHitResponsetheEEResponse
 
const EEShapetheEEShape
 
CaloHitResponsetheESResponse
 
ESShapetheESShape
 
const CaloGeometrytheGeometry
 
int theMaxBunch
 
int theMinBunch
 
const EcalSimParameterMaptheParameterMap
 
const EcalPedestalsthePedestals
 
bool verbose_
 

Static Private Attributes

static const int nBunch = 21
 

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, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
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::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (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)
 

Detailed Description

Definition at line 75 of file EcalMixingModuleValidation.h.

Member Typedef Documentation

typedef std::map<uint32_t,float,std::less<uint32_t> > EcalMixingModuleValidation::MapType
private

Definition at line 77 of file EcalMixingModuleValidation.h.

Constructor & Destructor Documentation

EcalMixingModuleValidation::EcalMixingModuleValidation ( const edm::ParameterSet ps)

Constructor.

Definition at line 19 of file EcalMixingModuleValidation.cc.

EcalMixingModuleValidation::~EcalMixingModuleValidation ( )

Destructor.

Definition at line 134 of file EcalMixingModuleValidation.cc.

Member Function Documentation

void EcalMixingModuleValidation::analyze ( edm::Event const &  e,
edm::EventSetup const &  c 
)
protectedvirtual

Analyze.

Implements edm::stream::EDAnalyzerBase.

Definition at line 286 of file EcalMixingModuleValidation.cc.

void EcalMixingModuleValidation::bookHistograms ( DQMStore::IBooker i,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 142 of file EcalMixingModuleValidation.cc.

void EcalMixingModuleValidation::bunchSumTest ( std::vector< MonitorElement * > &  theBunches,
MonitorElement *&  theTotal,
MonitorElement *&  theRatio,
int  nSample 
)
private

Definition at line 228 of file EcalMixingModuleValidation.cc.

void EcalMixingModuleValidation::checkCalibrations ( edm::EventSetup const &  c)
private

Definition at line 634 of file EcalMixingModuleValidation.cc.

void EcalMixingModuleValidation::checkPedestals ( const edm::EventSetup c)
private

Definition at line 686 of file EcalMixingModuleValidation.cc.

void EcalMixingModuleValidation::computeSDBunchDigi ( const edm::EventSetup eventSetup,
MixCollection< PCaloHit > &  theHits,
MapType ebSignalSimMap,
const EcalSubdetector thisDet,
const double &  theSimThreshold,
CLHEP::HepRandomEngine *  engine 
)
private

Definition at line 727 of file EcalMixingModuleValidation.cc.

void EcalMixingModuleValidation::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &  c 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 136 of file EcalMixingModuleValidation.cc.

void EcalMixingModuleValidation::endRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 202 of file EcalMixingModuleValidation.cc.

void EcalMixingModuleValidation::findPedestal ( const DetId detId,
int  gainId,
double &  ped 
) const
private

Definition at line 697 of file EcalMixingModuleValidation.cc.

CLHEP::HepRandomEngine * EcalMixingModuleValidation::randomEngine ( edm::StreamID const &  streamID)
private

Definition at line 821 of file EcalMixingModuleValidation.cc.

Member Data Documentation

double EcalMixingModuleValidation::barrelADCtoGeV_
private

Definition at line 124 of file EcalMixingModuleValidation.h.

edm::EDGetTokenT< CrossingFrame<PCaloHit> > EcalMixingModuleValidation::crossingFramePCaloHitEBToken_
private

Definition at line 120 of file EcalMixingModuleValidation.h.

edm::EDGetTokenT< CrossingFrame<PCaloHit> > EcalMixingModuleValidation::crossingFramePCaloHitEEToken_
private

Definition at line 120 of file EcalMixingModuleValidation.h.

edm::EDGetTokenT< CrossingFrame<PCaloHit> > EcalMixingModuleValidation::crossingFramePCaloHitESToken_
private

Definition at line 120 of file EcalMixingModuleValidation.h.

DQMStore* EcalMixingModuleValidation::dbe_
private

Definition at line 110 of file EcalMixingModuleValidation.h.

edm::EDGetTokenT<EBDigiCollection> EcalMixingModuleValidation::EBdigiCollectionToken_
private

Definition at line 116 of file EcalMixingModuleValidation.h.

edm::EDGetTokenT<EEDigiCollection> EcalMixingModuleValidation::EEdigiCollectionToken_
private

Definition at line 117 of file EcalMixingModuleValidation.h.

double EcalMixingModuleValidation::endcapADCtoGeV_
private

Definition at line 125 of file EcalMixingModuleValidation.h.

double EcalMixingModuleValidation::esADCtokeV_
private

Definition at line 170 of file EcalMixingModuleValidation.h.

double EcalMixingModuleValidation::esBaseline_
private

Definition at line 169 of file EcalMixingModuleValidation.h.

edm::EDGetTokenT<ESDigiCollection> EcalMixingModuleValidation::ESdigiCollectionToken_
private

Definition at line 118 of file EcalMixingModuleValidation.h.

double EcalMixingModuleValidation::esThreshold_
private

Definition at line 171 of file EcalMixingModuleValidation.h.

std::map<int, double, std::less<int> > EcalMixingModuleValidation::gainConv_
private

Definition at line 122 of file EcalMixingModuleValidation.h.

edm::EDGetTokenT<edm::HepMCProduct> EcalMixingModuleValidation::HepMCToken_
private

Definition at line 114 of file EcalMixingModuleValidation.h.

double EcalMixingModuleValidation::m_ESeffwei
private

Definition at line 184 of file EcalMixingModuleValidation.h.

int EcalMixingModuleValidation::m_ESgain
private

Definition at line 181 of file EcalMixingModuleValidation.h.

const ESIntercalibConstants* EcalMixingModuleValidation::m_ESmips
private

Definition at line 183 of file EcalMixingModuleValidation.h.

const ESPedestals* EcalMixingModuleValidation::m_ESpeds
private

Definition at line 182 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEBbunchCrossing_
private

Definition at line 133 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEBBunchShape_[nBunch]
private

Definition at line 139 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEBDigiMixRatiogt100ADC_
private

Definition at line 127 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEBDigiMixRatioOriggt50pc_
private

Definition at line 130 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEBShape_
private

Definition at line 143 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEBShapeRatio_
private

Definition at line 147 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEEbunchCrossing_
private

Definition at line 134 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEEBunchShape_[nBunch]
private

Definition at line 140 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEEDigiMixRatiogt100ADC_
private

Definition at line 128 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEEDigiMixRatioOriggt40pc_
private

Definition at line 131 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEEShape_
private

Definition at line 144 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meEEShapeRatio_
private

Definition at line 148 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meESbunchCrossing_
private

Definition at line 135 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meESBunchShape_[nBunch]
private

Definition at line 141 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meESShape_
private

Definition at line 145 of file EcalMixingModuleValidation.h.

MonitorElement* EcalMixingModuleValidation::meESShapeRatio_
private

Definition at line 149 of file EcalMixingModuleValidation.h.

const int EcalMixingModuleValidation::nBunch = 21
staticprivate

Definition at line 137 of file EcalMixingModuleValidation.h.

std::string EcalMixingModuleValidation::outputFile_
private

Definition at line 112 of file EcalMixingModuleValidation.h.

std::vector<CLHEP::HepRandomEngine*> EcalMixingModuleValidation::randomEngines_
private

Definition at line 186 of file EcalMixingModuleValidation.h.

CaloHitResponse* EcalMixingModuleValidation::theEBResponse
private

Definition at line 160 of file EcalMixingModuleValidation.h.

const EBShape* EcalMixingModuleValidation::theEBShape
private

Definition at line 154 of file EcalMixingModuleValidation.h.

CaloHitResponse* EcalMixingModuleValidation::theEEResponse
private

Definition at line 161 of file EcalMixingModuleValidation.h.

const EEShape* EcalMixingModuleValidation::theEEShape
private

Definition at line 155 of file EcalMixingModuleValidation.h.

CaloHitResponse* EcalMixingModuleValidation::theESResponse
private

Definition at line 159 of file EcalMixingModuleValidation.h.

ESShape* EcalMixingModuleValidation::theESShape
private

Definition at line 153 of file EcalMixingModuleValidation.h.

const CaloGeometry* EcalMixingModuleValidation::theGeometry
private

Definition at line 176 of file EcalMixingModuleValidation.h.

int EcalMixingModuleValidation::theMaxBunch
private

Definition at line 174 of file EcalMixingModuleValidation.h.

int EcalMixingModuleValidation::theMinBunch
private

Definition at line 173 of file EcalMixingModuleValidation.h.

const EcalSimParameterMap* EcalMixingModuleValidation::theParameterMap
private

Definition at line 151 of file EcalMixingModuleValidation.h.

const EcalPedestals* EcalMixingModuleValidation::thePedestals
private

Definition at line 179 of file EcalMixingModuleValidation.h.

bool EcalMixingModuleValidation::verbose_
private

Definition at line 108 of file EcalMixingModuleValidation.h.