HGCal Test Beam  03a93d6239a951948e06fb3ef8dae4cbdebfad30
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HGCalTBRecHitProducer.h
Go to the documentation of this file.
1 #ifndef HGCALTBRECHITPRODUCER_H
2 #define HGCALTBRECHITPRODUCER_H
3 /** \class Reco/plugins/HGCalTBRecHitProducer.h HGCalTBRecHitProducer HGCalTBRecHitProducer
4  \brief
5 
6  \author Shervin Nourbakhsh
7  */
8 
9 #include "FWCore/Framework/interface/EDProducer.h"
10 #include "FWCore/Framework/interface/Event.h"
11 #include "FWCore/Framework/interface/EventSetup.h"
12 #include "FWCore/Framework/interface/MakerMacros.h"
13 #include "FWCore/ServiceRegistry/interface/Service.h"
14 #include "FWCore/Framework/interface/ESHandle.h"
15 
16 #include "HGCal/DataFormats/interface/HGCalTBRecHitCollections.h"
17 //#include "HGCal/DataFormats/interface/HGCalTBDetId.h"
18 #include "HGCal/DataFormats/interface/HGCalTBDigiCollections.h"
19 
20 
21 // here are defined objects containing pedestals and ADCtoGeV factors
22 #include "HGCal/CondObjects/interface/HGCalCondObjects.h"
23 #include "HGCal/CondObjects/interface/HGCalCondObjectTextIO.h"
24 #include "HGCal/CondObjects/interface/HGCalTBNumberingScheme.h"
25 //#define DEBUG
26 
27 
28 #ifdef DEBUG
29 #include <iostream>
30 #endif
31 
32 class HGCalTBRecHitProducer : public edm::EDProducer
33 {
34 
35 public:
36  HGCalTBRecHitProducer(const edm::ParameterSet&);
37  virtual void produce(edm::Event&, const edm::EventSetup&);
38 private:
39  std::string outputCollectionName; ///<label name of collection made by this producer
40  edm::EDGetTokenT<HGCalTBDigiCollection> _digisToken;
41  std::string _pedestalLow_filename, _pedestalHigh_filename;
42  std::string _gainsLow_filename, _gainsHigh_filename;
43  unsigned int _adcSaturation;
44 };
45 
46 
47 
48 #endif
HGCalTBRecHitProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &)