CMS 3D CMS Logo

ShallowDigisProducer.h
Go to the documentation of this file.
1 #ifndef SHALLOW_DIGIS_PRODUCER
2 #define SHALLOW_DIGIS_PRODUCER
3 
8 class SiStripNoises;
9 
11 public:
12  explicit ShallowDigisProducer(const edm::ParameterSet &);
13 
14 private:
15  struct products {
16  std::unique_ptr<std::vector<unsigned> > id;
17  std::unique_ptr<std::vector<unsigned> > subdet;
18  std::unique_ptr<std::vector<unsigned> > strip;
19  std::unique_ptr<std::vector<unsigned> > adc;
20  std::unique_ptr<std::vector<float> > noise;
22  : id(new std::vector<unsigned>()),
23  subdet(new std::vector<unsigned>()),
24  strip(new std::vector<unsigned>()),
25  adc(new std::vector<unsigned>()),
26  noise(new std::vector<float>()) {}
27  };
28  std::vector<edm::InputTag> inputTags;
30 
31  void produce(edm::Event &, const edm::EventSetup &) override;
32  template <class T>
33  bool findInput(edm::Handle<T> &, const edm::Event &);
34  template <class T>
35  void recordDigis(const T &, products &);
36  void insert(products &, edm::Event &);
37 };
38 
39 #endif
ShallowDigisProducer::products::subdet
std::unique_ptr< std::vector< unsigned > > subdet
Definition: ShallowDigisProducer.h:17
ShallowDigisProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: ShallowDigisProducer.cc:44
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
EDProducer.h
ESHandle.h
ShallowDigisProducer::recordDigis
void recordDigis(const T &, products &)
Definition: ShallowDigisProducer.cc:31
SiStripNoises
Definition: SiStripNoises.h:25
ShallowDigisProducer::insert
void insert(products &, edm::Event &)
Definition: ShallowDigisProducer.cc:22
ShallowDigisProducer::products::id
std::unique_ptr< std::vector< unsigned > > id
Definition: ShallowDigisProducer.h:16
edm::Handle
Definition: AssociativeIterator.h:50
ShallowDigisProducer::products::noise
std::unique_ptr< std::vector< float > > noise
Definition: ShallowDigisProducer.h:20
ShallowDigisProducer::findInput
bool findInput(edm::Handle< T > &, const edm::Event &)
Definition: ShallowDigisProducer.cc:59
edm::ESHandle< SiStripNoises >
ShallowDigisProducer::products::strip
std::unique_ptr< std::vector< unsigned > > strip
Definition: ShallowDigisProducer.h:18
edm::ParameterSet
Definition: ParameterSet.h:36
ShallowDigisProducer::ShallowDigisProducer
ShallowDigisProducer(const edm::ParameterSet &)
Definition: ShallowDigisProducer.cc:13
edm::EventSetup
Definition: EventSetup.h:57
ShallowDigisProducer::products::adc
std::unique_ptr< std::vector< unsigned > > adc
Definition: ShallowDigisProducer.h:19
InputTag.h
std
Definition: JetResolutionObject.h:76
Frameworkfwd.h
T
long double T
Definition: Basic3DVectorLD.h:48
ShallowDigisProducer::products::products
products()
Definition: ShallowDigisProducer.h:21
ShallowDigisProducer::inputTags
std::vector< edm::InputTag > inputTags
Definition: ShallowDigisProducer.h:28
ShallowDigisProducer::products
Definition: ShallowDigisProducer.h:15
edm::EDProducer
Definition: EDProducer.h:36
ShallowDigisProducer
Definition: ShallowDigisProducer.h:10
edm::Event
Definition: Event.h:73
ShallowDigisProducer::noiseHandle
edm::ESHandle< SiStripNoises > noiseHandle
Definition: ShallowDigisProducer.h:29