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 Member Functions

 HcalRecAlgoESProducer (const edm::ParameterSet &)
 
ReturnType produce (const HcalSeverityLevelComputerRcd &)
 
 ~HcalRecAlgoESProducer () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename Record >
void updateFromMayConsumes (unsigned int iIndex, const Record &iRecord)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
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 Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy >>>
 
- Protected Member Functions inherited from edm::ESProducer
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 EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Description: Producer for HcalSeverityLevelComputer, that delivers the severity level for HCAL cells

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

Definition at line 39 of file HcalRecAlgoESProducer.cc.

Member Typedef Documentation

Definition at line 47 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  //the following line is needed to tell the framework what
69  // data is being produced
70  setWhatProduced(this);
71 
72  //now do what ever other initialization is needed
73 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
const edm::ParameterSet mConfig
HcalRecAlgoESProducer::~HcalRecAlgoESProducer ( )
override

Definition at line 75 of file HcalRecAlgoESProducer.cc.

75  {
76  // do anything here that needs to be done at desctruction time
77  // (e.g. close files, deallocate resources etc.)
78 }

Member Function Documentation

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

Definition at line 90 of file HcalRecAlgoESProducer.cc.

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

90  {
92  desc.add<unsigned int>("phase", 0);
93  desc.add<std::vector<std::string>>("RecoveredRecHitBits",
94  {
95  "TimingAddedBit",
96  "TimingSubtractedBit",
97  });
98  {
100  vpsd1.add<std::vector<std::string>>("RecHitFlags",
101  {
102  "",
103  });
104  vpsd1.add<std::vector<std::string>>("ChannelStatus",
105  {
106  "",
107  });
108  vpsd1.add<int>("Level", 0);
109  std::vector<edm::ParameterSet> temp1;
110  temp1.reserve(8);
111  {
112  edm::ParameterSet temp2;
113  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
114  {
115  "",
116  });
117  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
118  {
119  "",
120  });
121  temp2.addParameter<int>("Level", 0);
122  temp1.push_back(temp2);
123  }
124  {
125  edm::ParameterSet temp2;
126  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
127  {
128  "",
129  });
130  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
131  {
132  "HcalCellCaloTowerProb",
133  });
134  temp2.addParameter<int>("Level", 1);
135  temp1.push_back(temp2);
136  }
137  {
138  edm::ParameterSet temp2;
139  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
140  {
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  {
151  "HcalCellExcludeFromHBHENoiseSummary",
152  });
153  temp2.addParameter<int>("Level", 5);
154  temp1.push_back(temp2);
155  }
156  {
157  edm::ParameterSet temp2;
158  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
159  {
160  "HBHEHpdHitMultiplicity",
161  "HBHEPulseShape",
162  "HOBit",
163  "HFDigiTime",
164  "HFInTimeWindow",
165  "ZDCBit",
166  "CalibrationBit",
167  "TimingErrorBit",
168  "HBHEFlatNoise",
169  "HBHESpikeNoise",
170  "HBHETriangleNoise",
171  "HBHETS4TS5Noise",
172  "HBHENegativeNoise",
173  "HBHEOOTPU",
174  });
175  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
176  {
177  "",
178  });
179  temp2.addParameter<int>("Level", 8);
180  temp1.push_back(temp2);
181  }
182  {
183  edm::ParameterSet temp2;
184  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
185  {
186  "HFLongShort",
187  "HFPET",
188  "HFS8S1Ratio",
189  });
190  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
191  {
192  "",
193  });
194  temp2.addParameter<int>("Level", 11);
195  temp1.push_back(temp2);
196  }
197  {
198  edm::ParameterSet temp2;
199  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
200  {
201  "",
202  });
203  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
204  {
205  "HcalCellCaloTowerMask",
206  });
207  temp2.addParameter<int>("Level", 12);
208  temp1.push_back(temp2);
209  }
210  {
211  edm::ParameterSet temp2;
212  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
213  {
214  "",
215  });
216  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
217  {
218  "HcalCellHot",
219  });
220  temp2.addParameter<int>("Level", 15);
221  temp1.push_back(temp2);
222  }
223  {
224  edm::ParameterSet temp2;
225  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
226  {
227  "",
228  });
229  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
230  {
231  "HcalCellOff",
232  "HcalCellDead",
233  });
234  temp2.addParameter<int>("Level", 20);
235  temp1.push_back(temp2);
236  }
237  desc.addVPSet("SeverityLevels", vpsd1, temp1);
238  }
239  desc.add<std::vector<std::string>>("DropChannelStatusBits",
240  {
241  "HcalCellMask",
242  "HcalCellOff",
243  "HcalCellDead",
244  });
245  descriptions.add("hcalRecAlgos", desc);
246 }
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:124
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 85 of file HcalRecAlgoESProducer.cc.

References mConfig.

85  {
86  using namespace edm::es;
87  return std::make_unique<HcalSeverityLevelComputer>(mConfig);
88 }
const edm::ParameterSet mConfig

Member Data Documentation

const edm::ParameterSet HcalRecAlgoESProducer::mConfig
private

Definition at line 53 of file HcalRecAlgoESProducer.cc.

Referenced by produce().