CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataMixingSiPixelWorker.h
Go to the documentation of this file.
1 #ifndef DataMixingSiPixelWorker_h
2 #define SimDataMixingSiPixelWorker_h
3 
20 
23 //Data Formats
27 
28 #include <map>
29 #include <vector>
30 #include <string>
31 
32 
33 namespace edm
34 {
36  {
37  public:
38 
40 
42  explicit DataMixingSiPixelWorker(const edm::ParameterSet& ps);
43 
45  virtual ~DataMixingSiPixelWorker();
46 
47  void putSiPixel(edm::Event &e) ;
48  void addSiPixelSignals(const edm::Event &e);
49  void addSiPixelPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId);
50 
51 
52  private:
53  // data specifiers
54 
55  edm::InputTag pixeldigi_collectionSig_ ; // secondary name given to collection of SiPixel digis
56  edm::InputTag pixeldigi_collectionPile_ ; // secondary name given to collection of SiPixel digis
57  std::string PixelDigiCollectionDM_ ; // secondary name to be given to new SiPixel digis
58 
59  //
60 
61  typedef std::multimap<int, PixelDigi> OneDetectorMap; // maps by pixel ID for later combination - can have duplicate pixels
62  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
63 
65 
66 
67  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
68 
70 
71  };
72 }//edm
73 
74 #endif
void addSiPixelPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId)
std::map< uint32_t, OneDetectorMap > SiGlobalIndex
std::multimap< int, PixelDigi > OneDetectorMap
void addSiPixelSignals(const edm::Event &e)