test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
12  public:
13 
14  explicit ShallowDigisProducer(const edm::ParameterSet&);
15 
16  private:
17  struct products {
18  std::auto_ptr<std::vector<unsigned> > id;
19  std::auto_ptr<std::vector<unsigned> > subdet;
20  std::auto_ptr<std::vector<unsigned> > strip;
21  std::auto_ptr<std::vector<unsigned> > adc;
22  std::auto_ptr<std::vector<float> > noise;
24  : id(new std::vector<unsigned>()),
25  subdet(new std::vector<unsigned>()),
26  strip(new std::vector<unsigned>()),
27  adc(new std::vector<unsigned>()),
28  noise(new std::vector<float>()) {}
29  };
30  std::vector<edm::InputTag> inputTags;
32 
33  void produce(edm::Event&, const edm::EventSetup&);
34  template<class T> bool findInput(edm::Handle<T>&, const edm::Event&);
35  template<class T> void recordDigis(const T &, products&);
36  void insert(products&, edm::Event&);
37 
38 };
39 
40 #endif
edm::ESHandle< SiStripNoises > noiseHandle
std::vector< edm::InputTag > inputTags
std::auto_ptr< std::vector< unsigned > > adc
void insert(products &, edm::Event &)
std::auto_ptr< std::vector< unsigned > > subdet
ShallowDigisProducer(const edm::ParameterSet &)
void recordDigis(const T &, products &)
std::auto_ptr< std::vector< float > > noise
bool findInput(edm::Handle< T > &, const edm::Event &)
std::auto_ptr< std::vector< unsigned > > id
void produce(edm::Event &, const edm::EventSetup &)
long double T
std::auto_ptr< std::vector< unsigned > > strip