test
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 {
36  class ModuleCallingContext;
37 
39  {
40  public:
41 
43 
46 
48  virtual ~DataMixingSiPixelWorker();
49 
50  void putSiPixel(edm::Event &e) ;
51  void addSiPixelSignals(const edm::Event &e);
52  void addSiPixelPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId, ModuleCallingContext const*);
53 
54 
55  private:
56  // data specifiers
57 
58  edm::InputTag pixeldigi_collectionSig_ ; // secondary name given to collection of SiPixel digis
59  edm::InputTag pixeldigi_collectionPile_ ; // secondary name given to collection of SiPixel digis
60  std::string PixelDigiCollectionDM_ ; // secondary name to be given to new SiPixel digis
61 
62  edm::EDGetTokenT<edm::DetSetVector<PixelDigi> > PixelDigiToken_ ; // Token to retrieve information
64 
65  //
66 
67  typedef std::multimap<int, PixelDigi> OneDetectorMap; // maps by pixel ID for later combination - can have duplicate pixels
68  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
69 
71 
72 
73  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
74 
76 
77  };
78 }//edm
79 
80 #endif
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
void addSiPixelSignals(const edm::Event &e)