CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalPreshowerRecHitsMaker.h
Go to the documentation of this file.
1 #ifndef FastSimulation__EcalPreshowerRecHitsMaker__h
2 #define FastSimulation__EcalPreshowerRecHitsMaker__h
3 
7 #include <map>
8 #include <vector>
9 
10 //#include <boost/cstdint.hpp>
11 
12 class CaloGeometry;
14 
15 namespace edm {
16  class ParameterSet;
17  class Event;
18  class EventSetup;
19 }
20 
22 {
23  public:
24 
26 
28 
30  void init(const edm::EventSetup &es);
31 
32 
33 
34  private:
35 
36  void loadPCaloHits(const edm::Event & iEvent, RandomEngineAndDistribution const*);
37 
38  void clean();
39 
40  unsigned createVectorsOfCells(const edm::EventSetup &es);
41  void noisifySubdet(std::map<uint32_t, std::pair<float,bool> >& theMap, const std::vector<uint32_t>& thecells, unsigned ncells,
43  void noisifySignal(std::map<uint32_t,std::pair<float,bool> >& theMap, RandomEngineAndDistribution const*);
45  void Fill(uint32_t id,float energy, std::map<uint32_t,std::pair<float,bool> >& myHits,
46  RandomEngineAndDistribution const*, bool signal=true);
47 
48  private:
50  double threshold_;
51  double noise_;
54  unsigned ncells_;
55  std::map<uint32_t,std::pair<float,bool> > ecalsRecHits_;
56  std::vector<uint32_t> escells_;
58 };
59 
60 #endif
std::vector< uint32_t > escells_
std::map< uint32_t, std::pair< float, bool > > ecalsRecHits_
void loadEcalPreshowerRecHits(edm::Event &iEvent, ESRecHitCollection &esRecHits, RandomEngineAndDistribution const *)
unsigned createVectorsOfCells(const edm::EventSetup &es)
int iEvent
Definition: GenABIO.cc:230
const GaussianTail * myGaussianTailGenerator_
void loadPCaloHits(const edm::Event &iEvent, RandomEngineAndDistribution const *)
void noisifySubdet(std::map< uint32_t, std::pair< float, bool > > &theMap, const std::vector< uint32_t > &thecells, unsigned ncells, RandomEngineAndDistribution const *)
void Fill(uint32_t id, float energy, std::map< uint32_t, std::pair< float, bool > > &myHits, RandomEngineAndDistribution const *, bool signal=true)
void noisify(RandomEngineAndDistribution const *)
void noisifySignal(std::map< uint32_t, std::pair< float, bool > > &theMap, RandomEngineAndDistribution const *)
void init(const edm::EventSetup &es)
EcalPreshowerRecHitsMaker(edm::ParameterSet const &p)