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 
21 
24 //Data Formats
28 
29 #include <map>
30 #include <vector>
31 #include <string>
32 
33 
34 namespace edm
35 {
37  {
38  public:
39 
41 
43  explicit DataMixingSiPixelWorker(const edm::ParameterSet& ps);
44 
46  virtual ~DataMixingSiPixelWorker();
47 
48  void putSiPixel(edm::Event &e) ;
49  void addSiPixelSignals(const edm::Event &e);
50  void addSiPixelPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId);
51 
52 
53  private:
54  // data specifiers
55 
56  edm::InputTag pixeldigi_collectionSig_ ; // secondary name given to collection of SiPixel digis
57  edm::InputTag pixeldigi_collectionPile_ ; // secondary name given to collection of SiPixel digis
58  std::string PixelDigiCollectionDM_ ; // secondary name to be given to new SiPixel digis
59 
60  //
61 
62  typedef std::multimap<int, PixelDigi> OneDetectorMap; // maps by pixel ID for later combination - can have duplicate pixels
63  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
64 
66 
67 
68  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
69 
71  std::string label_;
72 
73  };
74 }//edm
75 
76 #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)