CMS 3D CMS Logo

DataMixingSiPixelWorker.h
Go to the documentation of this file.
1 #ifndef SimDataMixingSiPixelWorker_h
2 #define SimDataMixingSiPixelWorker_h
3 
21 
24 // Data Formats
28 
29 #include <map>
30 #include <string>
31 #include <vector>
32 
33 namespace edm {
34  class ModuleCallingContext;
35 
37  public:
39 
42 
44  virtual ~DataMixingSiPixelWorker();
45 
46  void putSiPixel(edm::Event &e);
47  void addSiPixelSignals(const edm::Event &e);
48  void addSiPixelPileups(const int bcr,
49  const edm::EventPrincipal *,
50  unsigned int EventId,
51  ModuleCallingContext const *);
52 
53  private:
54  // data specifiers
55 
56  edm::InputTag pixeldigi_collectionSig_; // secondary name given to collection
57  // of SiPixel digis
58  edm::InputTag pixeldigi_collectionPile_; // secondary name given to collection
59  // of SiPixel digis
60  std::string PixelDigiCollectionDM_; // secondary name to be given to new SiPixel digis
61 
64 
65  //
66 
67  typedef std::multimap<int, PixelDigi> OneDetectorMap; // maps by pixel ID for later combination - can have
68  // duplicate pixels
69  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
70 
71  SiGlobalIndex SiHitStorage_;
72 
73  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
74 
76  };
77 } // namespace edm
78 
79 #endif // SimDataMixingSiPixelWorker_h
std::map< uint32_t, OneDetectorMap > SiGlobalIndex
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > PixelDigiToken_
void addSiPixelPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > PixelDigiPToken_
std::multimap< int, PixelDigi > OneDetectorMap
HLT enums.
void addSiPixelSignals(const edm::Event &e)