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;
13 class RandomEngine;
14 
15 namespace edm {
16  class ParameterSet;
17  class Event;
18  class EventSetup;
19 }
20 
22 {
23  public:
24 
26  const RandomEngine* random);
27 
29 
31  void init(const edm::EventSetup &es);
32 
33 
34 
35  private:
36 
37  void loadPCaloHits(const edm::Event & iEvent);
38 
39  void clean();
40 
41  unsigned createVectorsOfCells(const edm::EventSetup &es);
42  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);
44  void noisify();
45  void Fill(uint32_t id,float energy, std::map<uint32_t,std::pair<float,bool> >& myHits,bool signal=true);
46 
47  private:
49  double threshold_;
50  double noise_;
53  unsigned ncells_;
54  std::map<uint32_t,std::pair<float,bool> > ecalsRecHits_;
55  std::vector<uint32_t> escells_;
58 };
59 
60 #endif
std::vector< uint32_t > escells_
std::map< uint32_t, std::pair< float, bool > > ecalsRecHits_
TRandom random
Definition: MVATrainer.cc:138
void noisifySubdet(std::map< uint32_t, std::pair< float, bool > > &theMap, const std::vector< uint32_t > &thecells, unsigned ncells)
unsigned createVectorsOfCells(const edm::EventSetup &es)
int iEvent
Definition: GenABIO.cc:243
EcalPreshowerRecHitsMaker(edm::ParameterSet const &p, const RandomEngine *random)
const GaussianTail * myGaussianTailGenerator_
void Fill(uint32_t id, float energy, std::map< uint32_t, std::pair< float, bool > > &myHits, bool signal=true)
void loadPCaloHits(const edm::Event &iEvent)
void noisifySignal(std::map< uint32_t, std::pair< float, bool > > &theMap)
void loadEcalPreshowerRecHits(edm::Event &iEvent, ESRecHitCollection &esRecHits)
void init(const edm::EventSetup &es)