test
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

boost::shared_ptr
< L1RCTChannelMask
produceL1RCTChannelMask (const L1RCTChannelMaskRcd &)
 
boost::shared_ptr
< L1RCTNoisyChannelMask
produceL1RCTNoisyChannelMask (const L1RCTNoisyChannelMaskRcd &)
 
boost::shared_ptr
< L1RCTParameters
produceL1RCTParameters (const L1RCTParametersRcd &)
 
 RCTConfigProducers (const edm::ParameterSet &)
 
 ~RCTConfigProducers ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- 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 ()
 

Private Attributes

L1RCTChannelMask rctChannelMask
 
L1RCTNoisyChannelMask rctNoisyChannelMask
 
L1RCTParameters rctParameters
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey, boost::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::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_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 41 of file RCTConfigProducers.cc.

Constructor & Destructor Documentation

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

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

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

Definition at line 161 of file RCTConfigProducers.cc.

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

Member Function Documentation

boost::shared_ptr< L1RCTChannelMask > RCTConfigProducers::produceL1RCTChannelMask ( const L1RCTChannelMaskRcd iRecord)

Definition at line 187 of file RCTConfigProducers.cc.

References rctChannelMask.

Referenced by RCTConfigProducers().

188 {
189  using namespace edm::es;
190  boost::shared_ptr<L1RCTChannelMask> pL1RCTChannelMask =
191  boost::shared_ptr<L1RCTChannelMask>( new L1RCTChannelMask( rctChannelMask ) ) ;
192  return pL1RCTChannelMask ;
193 }
L1RCTChannelMask rctChannelMask
boost::shared_ptr< L1RCTNoisyChannelMask > RCTConfigProducers::produceL1RCTNoisyChannelMask ( const L1RCTNoisyChannelMaskRcd iRecord)

Definition at line 196 of file RCTConfigProducers.cc.

References rctNoisyChannelMask.

Referenced by RCTConfigProducers().

197 {
198  using namespace edm::es;
199  boost::shared_ptr<L1RCTNoisyChannelMask> pL1RCTChannelMask =
200  boost::shared_ptr<L1RCTNoisyChannelMask>( new L1RCTNoisyChannelMask( rctNoisyChannelMask ) ) ;
201  return pL1RCTChannelMask ;
202 }
L1RCTNoisyChannelMask rctNoisyChannelMask
boost::shared_ptr< L1RCTParameters > RCTConfigProducers::produceL1RCTParameters ( const L1RCTParametersRcd iRecord)

Definition at line 177 of file RCTConfigProducers.cc.

References rctParameters.

Referenced by RCTConfigProducers().

178 {
179  using namespace edm::es;
180  boost::shared_ptr<L1RCTParameters> pL1RCTParameters =
181  boost::shared_ptr<L1RCTParameters>( new L1RCTParameters( rctParameters ) ) ;
182  return pL1RCTParameters ;
183  //return products( pL1RCTParameters, pL1RCTChannelMask );
184 }
L1RCTParameters rctParameters

Member Data Documentation

L1RCTChannelMask RCTConfigProducers::rctChannelMask
private

Definition at line 57 of file RCTConfigProducers.cc.

Referenced by produceL1RCTChannelMask(), and RCTConfigProducers().

L1RCTNoisyChannelMask RCTConfigProducers::rctNoisyChannelMask
private

Definition at line 58 of file RCTConfigProducers.cc.

Referenced by produceL1RCTNoisyChannelMask(), and RCTConfigProducers().

L1RCTParameters RCTConfigProducers::rctParameters
private

Definition at line 56 of file RCTConfigProducers.cc.

Referenced by produceL1RCTParameters(), and RCTConfigProducers().