test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataMixingSiStripWorker.h
Go to the documentation of this file.
1 #ifndef DataMixingSiStripWorker_h
2 #define SimDataMixingSiStripWorker_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 ~DataMixingSiStripWorker();
49 
50  void putSiStrip(edm::Event &e) ;
51  void addSiStripSignals(const edm::Event &e);
52  void addSiStripPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,
53  ModuleCallingContext const*);
54 
55 
56  private:
57  // data specifiers
58 
59  edm::InputTag SistripLabelSig_ ; // name given to collection of SiStrip digis
60  edm::InputTag SiStripPileInputTag_ ; // InputTag for pileup strips
61  std::string SiStripDigiCollectionDM_ ; // secondary name to be given to new SiStrip digis
62 
65 
66 
67  //
68 
69  typedef std::vector<SiStripDigi> OneDetectorMap; // maps by strip ID for later combination - can have duplicate strips
70  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
71 
73 
74 
75  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
76 
78 
80  public:
81  bool operator() (SiStripDigi i,SiStripDigi j) const {return i.strip() < j.strip();}
82  };
83 
84 
85  };
86 }//edm
87 
88 #endif
int i
Definition: DBlmapReader.cc:9
std::vector< SiStripDigi > OneDetectorMap
bool operator()(SiStripDigi i, SiStripDigi j) const
const uint16_t & strip() const
Definition: SiStripDigi.h:40
int j
Definition: DBlmapReader.cc:9
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
Definition: SiStripDigi.h:12
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripDigiToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripDigiPToken_
void addSiStripSignals(const edm::Event &e)
std::map< uint32_t, OneDetectorMap > SiGlobalIndex