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::shared_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 ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()(false)
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer () noexcept(false)
 
- 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

ReturnType myComputer
 

Additional Inherited Members

- 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::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())
 
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: 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 myComputer, and edm::ESProducer::setWhatProduced().

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  myComputer = std::make_shared<HcalSeverityLevelComputer>(iConfig);
75 }
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
HcalRecAlgoESProducer::~HcalRecAlgoESProducer ( )

Definition at line 78 of file HcalRecAlgoESProducer.cc.

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

Member Function Documentation

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

Definition at line 100 of file HcalRecAlgoESProducer.cc.

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

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

References myComputer.

94 {
95  using namespace edm::es;
96 
97  return myComputer ;
98 }

Member Data Documentation

ReturnType HcalRecAlgoESProducer::myComputer
private

Definition at line 53 of file HcalRecAlgoESProducer.cc.

Referenced by HcalRecAlgoESProducer(), and produce().