CMS 3D CMS Logo

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

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
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Attributes

L1RCTChannelMask rctChannelMask
 
L1RCTNoisyChannelMask rctNoisyChannelMask
 
L1RCTParameters rctParameters
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &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 TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
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::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
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.

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 }

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().

◆ ~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.

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

References rctChannelMask.

Referenced by RCTConfigProducers().

◆ produceL1RCTNoisyChannelMask()

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

Definition at line 160 of file RCTConfigProducers.cc.

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

References rctNoisyChannelMask.

Referenced by RCTConfigProducers().

◆ produceL1RCTParameters()

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

Definition at line 152 of file RCTConfigProducers.cc.

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

References rctParameters.

Referenced by RCTConfigProducers().

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().

mps_fire.i
i
Definition: mps_fire.py:428
L1RCTNoisyChannelMask::hfThreshold
float hfThreshold
Definition: L1RCTNoisyChannelMask.h:14
RCTConfigProducers::rctChannelMask
L1RCTChannelMask rctChannelMask
Definition: RCTConfigProducers.cc:55
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
L1RCTChannelMask::hfMask
bool hfMask[18][2][4]
Definition: L1RCTChannelMask.h:10
L1RCTNoisyChannelMask::ecalMask
bool ecalMask[18][2][28]
Definition: L1RCTNoisyChannelMask.h:8
RCTConfigProducers::produceL1RCTNoisyChannelMask
std::unique_ptr< L1RCTNoisyChannelMask > produceL1RCTNoisyChannelMask(const L1RCTNoisyChannelMaskRcd &)
Definition: RCTConfigProducers.cc:160
RCTConfigProducers::rctParameters
L1RCTParameters rctParameters
Definition: RCTConfigProducers.cc:54
dqmdumpme.k
k
Definition: dqmdumpme.py:60
RCTConfigProducers::produceL1RCTParameters
std::unique_ptr< L1RCTParameters > produceL1RCTParameters(const L1RCTParametersRcd &)
Definition: RCTConfigProducers.cc:152
RCTConfigProducers::rctNoisyChannelMask
L1RCTNoisyChannelMask rctNoisyChannelMask
Definition: RCTConfigProducers.cc:56
L1RCTNoisyChannelMask::ecalThreshold
float ecalThreshold
Definition: L1RCTNoisyChannelMask.h:12
L1RCTNoisyChannelMask::hfMask
bool hfMask[18][2][4]
Definition: L1RCTNoisyChannelMask.h:10
L1RCTChannelMask::hcalMask
bool hcalMask[18][2][28]
Definition: L1RCTChannelMask.h:9
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1RCTParameters
Definition: L1RCTParameters.h:27
L1RCTChannelMask::ecalMask
bool ecalMask[18][2][28]
Definition: L1RCTChannelMask.h:8
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
RCTConfigProducers::produceL1RCTChannelMask
std::unique_ptr< L1RCTChannelMask > produceL1RCTChannelMask(const L1RCTChannelMaskRcd &)
Definition: RCTConfigProducers.cc:156
L1RCTNoisyChannelMask::hcalThreshold
float hcalThreshold
Definition: L1RCTNoisyChannelMask.h:13
L1RCTNoisyChannelMask::hcalMask
bool hcalMask[18][2][28]
Definition: L1RCTNoisyChannelMask.h:9