CMS 3D CMS Logo

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

Public Types

typedef std::unique_ptr< HcalSeverityLevelComputerReturnType
 
- 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
 

Public Member Functions

 HcalRecAlgoESProducer (const edm::ParameterSet &)
 
ReturnType produce (const HcalSeverityLevelComputerRcd &)
 
 ~HcalRecAlgoESProducer () 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)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Private Attributes

const edm::ParameterSet mConfig
 

Additional Inherited Members

- 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: Producer for HcalSeverityLevelComputer, that delivers the severity level for HCAL cells

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

Definition at line 40 of file HcalRecAlgoESProducer.cc.

Member Typedef Documentation

Definition at line 48 of file HcalRecAlgoESProducer.cc.

Constructor & Destructor Documentation

HcalRecAlgoESProducer::HcalRecAlgoESProducer ( const edm::ParameterSet iConfig)

Definition at line 67 of file HcalRecAlgoESProducer.cc.

References edm::ESProducer::setWhatProduced().

67  : mConfig(iConfig)
68 {
69  //the following line is needed to tell the framework what
70  // data is being produced
71  setWhatProduced(this);
72 
73  //now do what ever other initialization is needed
74 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
const edm::ParameterSet mConfig
HcalRecAlgoESProducer::~HcalRecAlgoESProducer ( )
override

Definition at line 77 of file HcalRecAlgoESProducer.cc.

78 {
79 
80  // do anything here that needs to be done at desctruction time
81  // (e.g. close files, deallocate resources etc.)
82 
83 }

Member Function Documentation

void HcalRecAlgoESProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 98 of file HcalRecAlgoESProducer.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSet::addParameter(), edm::ParameterSetDescription::addVPSet(), and DEFINE_FWK_EVENTSETUP_MODULE.

98  {
100  desc.add<unsigned int>("phase", 0);
101  desc.add<std::vector<std::string>>("RecoveredRecHitBits", {
102  "TimingAddedBit",
103  "TimingSubtractedBit",
104  });
105  {
107  vpsd1.add<std::vector<std::string>>("RecHitFlags", {
108  "",
109  });
110  vpsd1.add<std::vector<std::string>>("ChannelStatus", {
111  "",
112  });
113  vpsd1.add<int>("Level", 0);
114  std::vector<edm::ParameterSet> temp1;
115  temp1.reserve(8);
116  {
117  edm::ParameterSet temp2;
118  temp2.addParameter<std::vector<std::string>>("RecHitFlags", {
119  "",
120  });
121  temp2.addParameter<std::vector<std::string>>("ChannelStatus", {
122  "",
123  });
124  temp2.addParameter<int>("Level", 0);
125  temp1.push_back(temp2);
126  }
127  {
128  edm::ParameterSet temp2;
129  temp2.addParameter<std::vector<std::string>>("RecHitFlags", {
130  "",
131  });
132  temp2.addParameter<std::vector<std::string>>("ChannelStatus", {
133  "HcalCellCaloTowerProb",
134  });
135  temp2.addParameter<int>("Level", 1);
136  temp1.push_back(temp2);
137  }
138  {
139  edm::ParameterSet temp2;
140  temp2.addParameter<std::vector<std::string>>("RecHitFlags", {
141  "HSCP_R1R2",
142  "HSCP_FracLeader",
143  "HSCP_OuterEnergy",
144  "HSCP_ExpFit",
145  "ADCSaturationBit",
146  "HBHEIsolatedNoise",
147  "AddedSimHcalNoise",
148  });
149  temp2.addParameter<std::vector<std::string>>("ChannelStatus", {
150  "HcalCellExcludeFromHBHENoiseSummary",
151  });
152  temp2.addParameter<int>("Level", 5);
153  temp1.push_back(temp2);
154  }
155  {
156  edm::ParameterSet temp2;
157  temp2.addParameter<std::vector<std::string>>("RecHitFlags", {
158  "HBHEHpdHitMultiplicity",
159  "HBHEPulseShape",
160  "HOBit",
161  "HFDigiTime",
162  "HFInTimeWindow",
163  "ZDCBit",
164  "CalibrationBit",
165  "TimingErrorBit",
166  "HBHEFlatNoise",
167  "HBHESpikeNoise",
168  "HBHETriangleNoise",
169  "HBHETS4TS5Noise",
170  "HBHENegativeNoise",
171  "HBHEOOTPU",
172  });
173  temp2.addParameter<std::vector<std::string>>("ChannelStatus", {
174  "",
175  });
176  temp2.addParameter<int>("Level", 8);
177  temp1.push_back(temp2);
178  }
179  {
180  edm::ParameterSet temp2;
181  temp2.addParameter<std::vector<std::string>>("RecHitFlags", {
182  "HFLongShort",
183  "HFPET",
184  "HFS8S1Ratio",
185  });
186  temp2.addParameter<std::vector<std::string>>("ChannelStatus", {
187  "",
188  });
189  temp2.addParameter<int>("Level", 11);
190  temp1.push_back(temp2);
191  }
192  {
193  edm::ParameterSet temp2;
194  temp2.addParameter<std::vector<std::string>>("RecHitFlags", {
195  "",
196  });
197  temp2.addParameter<std::vector<std::string>>("ChannelStatus", {
198  "HcalCellCaloTowerMask",
199  });
200  temp2.addParameter<int>("Level", 12);
201  temp1.push_back(temp2);
202  }
203  {
204  edm::ParameterSet temp2;
205  temp2.addParameter<std::vector<std::string>>("RecHitFlags", {
206  "",
207  });
208  temp2.addParameter<std::vector<std::string>>("ChannelStatus", {
209  "HcalCellHot",
210  });
211  temp2.addParameter<int>("Level", 15);
212  temp1.push_back(temp2);
213  }
214  {
215  edm::ParameterSet temp2;
216  temp2.addParameter<std::vector<std::string>>("RecHitFlags", {
217  "",
218  });
219  temp2.addParameter<std::vector<std::string>>("ChannelStatus", {
220  "HcalCellOff",
221  "HcalCellDead",
222  });
223  temp2.addParameter<int>("Level", 20);
224  temp1.push_back(temp2);
225  }
226  desc.addVPSet("SeverityLevels", vpsd1, temp1);
227  }
228  desc.add<std::vector<std::string>>("DropChannelStatusBits", {
229  "HcalCellMask",
230  "HcalCellOff",
231  "HcalCellDead",
232  });
233  descriptions.add("hcalRecAlgos", desc);
234 }
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:125
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HcalRecAlgoESProducer::ReturnType HcalRecAlgoESProducer::produce ( const HcalSeverityLevelComputerRcd iRecord)

Definition at line 92 of file HcalRecAlgoESProducer.cc.

References mConfig.

93 {
94  using namespace edm::es;
95  return std::make_unique<HcalSeverityLevelComputer>(mConfig);
96 }
const edm::ParameterSet mConfig

Member Data Documentation

const edm::ParameterSet HcalRecAlgoESProducer::mConfig
private

Definition at line 53 of file HcalRecAlgoESProducer.cc.

Referenced by produce().