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::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

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
 
 ESProducer (ESProducer &&)=delete
 
ESResolverIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (ESProducer &&)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () noexcept(false)
 

Static Public Member Functions

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

Private Attributes

const edm::ParameterSet mConfig
 

Additional Inherited Members

- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 
- Protected Member Functions inherited from edm::ESProducer
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
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 TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProductResolverFactoryProducer
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::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
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 37 of file HcalRecAlgoESProducer.cc.

Member Typedef Documentation

◆ ReturnType

Definition at line 45 of file HcalRecAlgoESProducer.cc.

Constructor & Destructor Documentation

◆ HcalRecAlgoESProducer()

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

Definition at line 65 of file HcalRecAlgoESProducer.cc.

References edm::ESProducer::setWhatProduced().

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

◆ ~HcalRecAlgoESProducer()

HcalRecAlgoESProducer::~HcalRecAlgoESProducer ( )
override

Definition at line 73 of file HcalRecAlgoESProducer.cc.

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

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 88 of file HcalRecAlgoESProducer.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSet::addParameter(), and submitPVResolutionJobs::desc.

88  {
90  desc.add<unsigned int>("phase", 0);
91  desc.add<std::vector<std::string>>("RecoveredRecHitBits",
92  {
93  "TimingAddedBit",
94  "TimingSubtractedBit",
95  });
96  {
98  vpsd1.add<std::vector<std::string>>("RecHitFlags",
99  {
100  "",
101  });
102  vpsd1.add<std::vector<std::string>>("ChannelStatus",
103  {
104  "",
105  });
106  vpsd1.add<int>("Level", 0);
107  std::vector<edm::ParameterSet> temp1;
108  temp1.reserve(8);
109  {
110  edm::ParameterSet temp2;
111  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
112  {
113  "",
114  });
115  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
116  {
117  "",
118  });
119  temp2.addParameter<int>("Level", 0);
120  temp1.push_back(temp2);
121  }
122  {
123  edm::ParameterSet temp2;
124  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
125  {
126  "",
127  });
128  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
129  {
130  "HcalCellCaloTowerProb",
131  });
132  temp2.addParameter<int>("Level", 1);
133  temp1.push_back(temp2);
134  }
135  {
136  edm::ParameterSet temp2;
137  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
138  {
139  "HSCP_R1R2",
140  "HSCP_FracLeader",
141  "HSCP_OuterEnergy",
142  "HSCP_ExpFit",
143  "ADCSaturationBit",
144  "HBHEIsolatedNoise",
145  "AddedSimHcalNoise",
146  });
147  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
148  {
149  "HcalCellExcludeFromHBHENoiseSummary",
150  });
151  temp2.addParameter<int>("Level", 5);
152  temp1.push_back(temp2);
153  }
154  {
155  edm::ParameterSet temp2;
156  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
157  {
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  });
177  temp2.addParameter<int>("Level", 8);
178  temp1.push_back(temp2);
179  }
180  {
181  edm::ParameterSet temp2;
182  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
183  {
184  "HFLongShort",
185  "HFPET",
186  "HFS8S1Ratio",
187  });
188  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
189  {
190  "",
191  });
192  temp2.addParameter<int>("Level", 11);
193  temp1.push_back(temp2);
194  }
195  {
196  edm::ParameterSet temp2;
197  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
198  {
199  "",
200  });
201  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
202  {
203  "HcalCellCaloTowerMask",
204  });
205  temp2.addParameter<int>("Level", 12);
206  temp1.push_back(temp2);
207  }
208  {
209  edm::ParameterSet temp2;
210  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
211  {
212  "",
213  });
214  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
215  {
216  "HcalCellHot",
217  });
218  temp2.addParameter<int>("Level", 15);
219  temp1.push_back(temp2);
220  }
221  {
222  edm::ParameterSet temp2;
223  temp2.addParameter<std::vector<std::string>>("RecHitFlags",
224  {
225  "",
226  });
227  temp2.addParameter<std::vector<std::string>>("ChannelStatus",
228  {
229  "HcalCellOff",
230  "HcalCellDead",
231  });
232  temp2.addParameter<int>("Level", 20);
233  temp1.push_back(temp2);
234  }
235  desc.addVPSet("SeverityLevels", vpsd1, temp1);
236  }
237  desc.add<std::vector<std::string>>("DropChannelStatusBits",
238  {
239  "HcalCellMask",
240  "HcalCellOff",
241  "HcalCellDead",
242  });
243  descriptions.add("hcalRecAlgos", desc);
244 }
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:135
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

HcalRecAlgoESProducer::ReturnType HcalRecAlgoESProducer::produce ( const HcalSeverityLevelComputerRcd iRecord)

Definition at line 83 of file HcalRecAlgoESProducer.cc.

References mConfig.

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

Member Data Documentation

◆ mConfig

const edm::ParameterSet HcalRecAlgoESProducer::mConfig
private

Definition at line 51 of file HcalRecAlgoESProducer.cc.

Referenced by produce().