CMS 3D CMS Logo

ShallowDigisProducer.h
Go to the documentation of this file.
1 #ifndef SHALLOW_DIGIS_PRODUCER
2 #define SHALLOW_DIGIS_PRODUCER
3 
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 &, const SiStripNoises &noises);
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:42
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
SiStripNoises
Definition: SiStripNoises.h:25
ShallowDigisProducer::insert
void insert(products &, edm::Event &)
Definition: ShallowDigisProducer.cc:20
ShallowDigisProducer::products::id
std::unique_ptr< std::vector< unsigned > > id
Definition: ShallowDigisProducer.h:16
EDProducer.h
SiStripNoises.h
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:57
ShallowDigisProducer::products::strip
std::unique_ptr< std::vector< unsigned > > strip
Definition: ShallowDigisProducer.h:18
edm::ParameterSet
Definition: ParameterSet.h:47
ShallowDigisProducer::ShallowDigisProducer
ShallowDigisProducer(const edm::ParameterSet &)
Definition: ShallowDigisProducer.cc:11
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:57
ShallowDigisProducer::products::adc
std::unique_ptr< std::vector< unsigned > > adc
Definition: ShallowDigisProducer.h:19
ShallowDigisProducer::recordDigis
void recordDigis(const T &, products &, const SiStripNoises &noises)
Definition: ShallowDigisProducer.cc:29
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd >
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
ShallowDigisProducer
Definition: ShallowDigisProducer.h:10
SiStripNoisesRcd.h
ShallowDigisProducer::noisesToken_
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noisesToken_
Definition: ShallowDigisProducer.h:29
edm::Event
Definition: Event.h:73
HLTEgPhaseIITestSequence_cff.noises
noises
Definition: HLTEgPhaseIITestSequence_cff.py:1348