CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RCTConfigProducers Class Reference
Inheritance diagram for RCTConfigProducers:
edm::ESProducer edm::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

Public Member Functions

std::unique_ptr< L1RCTChannelMaskproduceL1RCTChannelMask (const L1RCTChannelMaskRcd &)
 
std::unique_ptr< L1RCTNoisyChannelMaskproduceL1RCTNoisyChannelMask (const L1RCTNoisyChannelMaskRcd &)
 
std::unique_ptr< L1RCTParametersproduceL1RCTParameters (const L1RCTParametersRcd &)
 
 RCTConfigProducers (const edm::ParameterSet &)
 
 ~RCTConfigProducers () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
 ESProducer (ESProducer &&)=delete
 
ESResolverIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (ESProducer &&)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () noexcept(false)
 

Private Attributes

L1RCTChannelMask rctChannelMask
 
L1RCTNoisyChannelMask rctNoisyChannelMask
 
L1RCTParameters rctParameters
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 
- Protected Member Functions inherited from edm::ESProducer
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProductResolverFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 39 of file RCTConfigProducers.cc.

Constructor & Destructor Documentation

◆ RCTConfigProducers()

RCTConfigProducers::RCTConfigProducers ( const edm::ParameterSet iConfig)

Definition at line 70 of file RCTConfigProducers.cc.

References L1RCTChannelMask::ecalMask, L1RCTNoisyChannelMask::ecalMask, L1RCTNoisyChannelMask::ecalThreshold, edm::ParameterSet::getParameter(), L1RCTNoisyChannelMask::hcalMask, L1RCTChannelMask::hcalMask, L1RCTNoisyChannelMask::hcalThreshold, L1RCTNoisyChannelMask::hfMask, L1RCTChannelMask::hfMask, L1RCTNoisyChannelMask::hfThreshold, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, produceL1RCTChannelMask(), produceL1RCTNoisyChannelMask(), produceL1RCTParameters(), rctChannelMask, rctNoisyChannelMask, rctParameters, and edm::ESProducer::setWhatProduced().

70  {
71  //the following line is needed to tell the framework what
72  // data is being produced
73  //setWhatProduced(this);
77 
78  //now do what ever other initialization is needed
79  rctParameters = L1RCTParameters(iConfig.getParameter<double>("eGammaLSB"),
80  iConfig.getParameter<double>("jetMETLSB"),
81  iConfig.getParameter<double>("eMinForFGCut"),
82  iConfig.getParameter<double>("eMaxForFGCut"),
83  iConfig.getParameter<double>("hOeCut"),
84  iConfig.getParameter<double>("eMinForHoECut"),
85  iConfig.getParameter<double>("eMaxForHoECut"),
86  iConfig.getParameter<double>("hMinForHoECut"),
87  iConfig.getParameter<double>("eActivityCut"),
88  iConfig.getParameter<double>("hActivityCut"),
89  iConfig.getParameter<unsigned>("eicIsolationThreshold"),
90  iConfig.getParameter<unsigned>("jscQuietThresholdBarrel"),
91  iConfig.getParameter<unsigned>("jscQuietThresholdEndcap"),
92  iConfig.getParameter<bool>("noiseVetoHB"),
93  iConfig.getParameter<bool>("noiseVetoHEplus"),
94  iConfig.getParameter<bool>("noiseVetoHEminus"),
95  iConfig.getParameter<bool>("useCorrectionsLindsey"),
96  iConfig.getParameter<std::vector<double> >("eGammaECalScaleFactors"),
97  iConfig.getParameter<std::vector<double> >("eGammaHCalScaleFactors"),
98  iConfig.getParameter<std::vector<double> >("jetMETECalScaleFactors"),
99  iConfig.getParameter<std::vector<double> >("jetMETHCalScaleFactors"),
100  iConfig.getParameter<std::vector<double> >("ecal_calib_Lindsey"),
101  iConfig.getParameter<std::vector<double> >("hcal_calib_Lindsey"),
102  iConfig.getParameter<std::vector<double> >("hcal_high_calib_Lindsey"),
103  iConfig.getParameter<std::vector<double> >("cross_terms_Lindsey"),
104  iConfig.getParameter<std::vector<double> >("HoverE_low_Lindsey"),
105  iConfig.getParameter<std::vector<double> >("HoverE_high_Lindsey"));
106 
107  // value of true if channel is masked, false if not masked
108  for (int i = 0; i < 18; i++) {
109  for (int j = 0; j < 2; j++) {
110  for (int k = 0; k < 28; k++) {
111  rctChannelMask.ecalMask[i][j][k] = false;
112  rctChannelMask.hcalMask[i][j][k] = false;
113  }
114  for (int k = 0; k < 4; k++) {
115  rctChannelMask.hfMask[i][j][k] = false;
116  }
117  }
118  }
119 
120  //Now the hot tower mask
121 
122  //first the thresholds
123 
127 
128  for (int i = 0; i < 18; i++) {
129  for (int j = 0; j < 2; j++) {
130  for (int k = 0; k < 28; k++) {
131  rctNoisyChannelMask.ecalMask[i][j][k] = false;
132  rctNoisyChannelMask.hcalMask[i][j][k] = false;
133  }
134  for (int k = 0; k < 4; k++) {
135  rctNoisyChannelMask.hfMask[i][j][k] = false;
136  }
137  }
138  }
139 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
std::unique_ptr< L1RCTChannelMask > produceL1RCTChannelMask(const L1RCTChannelMaskRcd &)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::unique_ptr< L1RCTNoisyChannelMask > produceL1RCTNoisyChannelMask(const L1RCTNoisyChannelMaskRcd &)
bool ecalMask[18][2][28]
L1RCTChannelMask rctChannelMask
L1RCTParameters rctParameters
L1RCTNoisyChannelMask rctNoisyChannelMask
bool hcalMask[18][2][28]
std::unique_ptr< L1RCTParameters > produceL1RCTParameters(const L1RCTParametersRcd &)
bool hfMask[18][2][4]

◆ ~RCTConfigProducers()

RCTConfigProducers::~RCTConfigProducers ( )
override

Definition at line 141 of file RCTConfigProducers.cc.

141  {
142  // do anything here that needs to be done at desctruction time
143  // (e.g. close files, deallocate resources etc.)
144 }

Member Function Documentation

◆ produceL1RCTChannelMask()

std::unique_ptr< L1RCTChannelMask > RCTConfigProducers::produceL1RCTChannelMask ( const L1RCTChannelMaskRcd iRecord)

Definition at line 156 of file RCTConfigProducers.cc.

References rctChannelMask.

Referenced by RCTConfigProducers().

156  {
157  return std::make_unique<L1RCTChannelMask>(rctChannelMask);
158 }
L1RCTChannelMask rctChannelMask

◆ produceL1RCTNoisyChannelMask()

std::unique_ptr< L1RCTNoisyChannelMask > RCTConfigProducers::produceL1RCTNoisyChannelMask ( const L1RCTNoisyChannelMaskRcd iRecord)

Definition at line 160 of file RCTConfigProducers.cc.

References rctNoisyChannelMask.

Referenced by RCTConfigProducers().

161  {
162  return std::make_unique<L1RCTNoisyChannelMask>(rctNoisyChannelMask);
163 }
L1RCTNoisyChannelMask rctNoisyChannelMask

◆ produceL1RCTParameters()

std::unique_ptr< L1RCTParameters > RCTConfigProducers::produceL1RCTParameters ( const L1RCTParametersRcd iRecord)

Definition at line 152 of file RCTConfigProducers.cc.

References rctParameters.

Referenced by RCTConfigProducers().

152  {
153  return std::make_unique<L1RCTParameters>(rctParameters);
154 }
L1RCTParameters rctParameters

Member Data Documentation

◆ rctChannelMask

L1RCTChannelMask RCTConfigProducers::rctChannelMask
private

Definition at line 55 of file RCTConfigProducers.cc.

Referenced by produceL1RCTChannelMask(), and RCTConfigProducers().

◆ rctNoisyChannelMask

L1RCTNoisyChannelMask RCTConfigProducers::rctNoisyChannelMask
private

Definition at line 56 of file RCTConfigProducers.cc.

Referenced by produceL1RCTNoisyChannelMask(), and RCTConfigProducers().

◆ rctParameters

L1RCTParameters RCTConfigProducers::rctParameters
private

Definition at line 54 of file RCTConfigProducers.cc.

Referenced by produceL1RCTParameters(), and RCTConfigProducers().