CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::shared_ptr< L1RCTChannelMaskproduceL1RCTChannelMask (const L1RCTChannelMaskRcd &)
 
std::shared_ptr
< L1RCTNoisyChannelMask
produceL1RCTNoisyChannelMask (const L1RCTNoisyChannelMaskRcd &)
 
std::shared_ptr< L1RCTParametersproduceL1RCTParameters (const L1RCTParametersRcd &)
 
 RCTConfigProducers (const edm::ParameterSet &)
 
 ~RCTConfigProducers ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()(false)
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer () noexcept(false)
 
- 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
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- 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())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 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, i, j, relval_2017::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
int i
Definition: DBlmapReader.cc:9
std::shared_ptr< L1RCTParameters > produceL1RCTParameters(const L1RCTParametersRcd &)
bool ecalMask[18][2][28]
L1RCTChannelMask rctChannelMask
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
L1RCTParameters rctParameters
std::shared_ptr< L1RCTChannelMask > produceL1RCTChannelMask(const L1RCTChannelMaskRcd &)
std::shared_ptr< L1RCTNoisyChannelMask > produceL1RCTNoisyChannelMask(const L1RCTNoisyChannelMaskRcd &)
int j
Definition: DBlmapReader.cc:9
L1RCTNoisyChannelMask rctNoisyChannelMask
bool hcalMask[18][2][28]
bool hfMask[18][2][4]
RCTConfigProducers::~RCTConfigProducers ( )

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::shared_ptr< L1RCTChannelMask > RCTConfigProducers::produceL1RCTChannelMask ( const L1RCTChannelMaskRcd iRecord)

Definition at line 184 of file RCTConfigProducers.cc.

References rctChannelMask.

Referenced by RCTConfigProducers().

185 {
186  using namespace edm::es;
187  return std::make_shared<L1RCTChannelMask>( rctChannelMask ) ;
188 }
L1RCTChannelMask rctChannelMask
std::shared_ptr< L1RCTNoisyChannelMask > RCTConfigProducers::produceL1RCTNoisyChannelMask ( const L1RCTNoisyChannelMaskRcd iRecord)

Definition at line 191 of file RCTConfigProducers.cc.

References rctNoisyChannelMask.

Referenced by RCTConfigProducers().

192 {
193  using namespace edm::es;
194  return std::make_shared<L1RCTNoisyChannelMask>( rctNoisyChannelMask ) ;
195 }
L1RCTNoisyChannelMask rctNoisyChannelMask
std::shared_ptr< L1RCTParameters > RCTConfigProducers::produceL1RCTParameters ( const L1RCTParametersRcd iRecord)

Definition at line 176 of file RCTConfigProducers.cc.

References rctParameters.

Referenced by RCTConfigProducers().

177 {
178  using namespace edm::es;
179  return std::make_shared<L1RCTParameters>( rctParameters ) ;
180  //return products( pL1RCTParameters, pL1RCTChannelMask );
181 }
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().