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 {
35  class ModuleCallingContext;
36 
38  {
39  public:
40 
42 
44  explicit DataMixingSiPixelWorker(const edm::ParameterSet& ps);
45 
47  virtual ~DataMixingSiPixelWorker();
48 
49  void putSiPixel(edm::Event &e) ;
50  void addSiPixelSignals(const edm::Event &e);
51  void addSiPixelPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId, ModuleCallingContext const*);
52 
53 
54  private:
55  // data specifiers
56 
57  edm::InputTag pixeldigi_collectionSig_ ; // secondary name given to collection of SiPixel digis
58  edm::InputTag pixeldigi_collectionPile_ ; // secondary name given to collection of SiPixel digis
59  std::string PixelDigiCollectionDM_ ; // secondary name to be given to new SiPixel digis
60 
61  //
62 
63  typedef std::multimap<int, PixelDigi> OneDetectorMap; // maps by pixel ID for later combination - can have duplicate pixels
64  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
65 
67 
68 
69  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
70 
72 
73  };
74 }//edm
75 
76 #endif
std::map< uint32_t, OneDetectorMap > SiGlobalIndex
void addSiPixelPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
std::multimap< int, PixelDigi > OneDetectorMap
void addSiPixelSignals(const edm::Event &e)