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 ()
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) override
 overrides DataProxyProvider method More...
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
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

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
 ESProducer (const ESProducer &)=delete
 
ESProducer const & operator= (const ESProducer &)=delete
 
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 TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
- 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 eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

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

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

Definition at line 40 of file RCTConfigProducers.cc.

Constructor & Destructor Documentation

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

Definition at line 71 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, gen::k, produceL1RCTChannelMask(), produceL1RCTNoisyChannelMask(), produceL1RCTParameters(), rctChannelMask, rctNoisyChannelMask, rctParameters, and edm::ESProducer::setWhatProduced().

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

Definition at line 160 of file RCTConfigProducers.cc.

161 {
162 
163  // do anything here that needs to be done at desctruction time
164  // (e.g. close files, deallocate resources etc.)
165 
166 }

Member Function Documentation

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

Definition at line 182 of file RCTConfigProducers.cc.

References rctChannelMask.

Referenced by RCTConfigProducers().

183 {
184  return std::make_unique<L1RCTChannelMask>( rctChannelMask ) ;
185 }
L1RCTChannelMask rctChannelMask
std::unique_ptr< L1RCTNoisyChannelMask > RCTConfigProducers::produceL1RCTNoisyChannelMask ( const L1RCTNoisyChannelMaskRcd iRecord)

Definition at line 188 of file RCTConfigProducers.cc.

References DEFINE_FWK_EVENTSETUP_MODULE, and rctNoisyChannelMask.

Referenced by RCTConfigProducers().

189 {
190  return std::make_unique<L1RCTNoisyChannelMask>( rctNoisyChannelMask ) ;
191 }
L1RCTNoisyChannelMask rctNoisyChannelMask
std::unique_ptr< L1RCTParameters > RCTConfigProducers::produceL1RCTParameters ( const L1RCTParametersRcd iRecord)

Definition at line 176 of file RCTConfigProducers.cc.

References rctParameters.

Referenced by RCTConfigProducers().

177 {
178  return std::make_unique<L1RCTParameters>( rctParameters ) ;
179 }
L1RCTParameters rctParameters

Member Data Documentation

L1RCTChannelMask RCTConfigProducers::rctChannelMask
private

Definition at line 56 of file RCTConfigProducers.cc.

Referenced by produceL1RCTChannelMask(), and RCTConfigProducers().

L1RCTNoisyChannelMask RCTConfigProducers::rctNoisyChannelMask
private

Definition at line 57 of file RCTConfigProducers.cc.

Referenced by produceL1RCTNoisyChannelMask(), and RCTConfigProducers().

L1RCTParameters RCTConfigProducers::rctParameters
private

Definition at line 55 of file RCTConfigProducers.cc.

Referenced by produceL1RCTParameters(), and RCTConfigProducers().