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
 
- 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 42 of file RCTConfigProducers.cc.

Constructor & Destructor Documentation

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

Definition at line 73 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().

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

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

Member Function Documentation

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

Definition at line 188 of file RCTConfigProducers.cc.

References rctChannelMask.

Referenced by RCTConfigProducers().

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

Definition at line 197 of file RCTConfigProducers.cc.

References rctNoisyChannelMask.

Referenced by RCTConfigProducers().

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

Definition at line 178 of file RCTConfigProducers.cc.

References rctParameters.

Referenced by RCTConfigProducers().

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

Member Data Documentation

L1RCTChannelMask RCTConfigProducers::rctChannelMask
private

Definition at line 58 of file RCTConfigProducers.cc.

Referenced by produceL1RCTChannelMask(), and RCTConfigProducers().

L1RCTNoisyChannelMask RCTConfigProducers::rctNoisyChannelMask
private

Definition at line 59 of file RCTConfigProducers.cc.

Referenced by produceL1RCTNoisyChannelMask(), and RCTConfigProducers().

L1RCTParameters RCTConfigProducers::rctParameters
private

Definition at line 57 of file RCTConfigProducers.cc.

Referenced by produceL1RCTParameters(), and RCTConfigProducers().