CMS 3D CMS Logo

DataMixingSiStripWorker.h
Go to the documentation of this file.
1 #ifndef SimDataMixingSiStripWorker_h
2 #define SimDataMixingSiStripWorker_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 ~DataMixingSiStripWorker();
45 
46  void putSiStrip(edm::Event &e);
47  void addSiStripSignals(const edm::Event &e);
48  void addSiStripPileups(const int bcr,
49  const edm::EventPrincipal *,
50  unsigned int EventId,
51  ModuleCallingContext const *);
52 
53  private:
54  // data specifiers
55 
56  edm::InputTag SistripLabelSig_; // name given to collection of SiStrip digis
57  edm::InputTag SiStripPileInputTag_; // InputTag for pileup strips
58  std::string SiStripDigiCollectionDM_; // secondary name to be given to new
59  // SiStrip digis
60 
63 
64  //
65 
66  typedef std::vector<SiStripDigi> OneDetectorMap; // maps by strip ID for later combination - can have
67  // duplicate strips
68  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
69 
71 
72  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
73 
75 
77  public:
78  bool operator()(SiStripDigi i, SiStripDigi j) const { return i.strip() < j.strip(); }
79  };
80  };
81 } // namespace edm
82 
83 #endif // SimDataMixingSiStripWorker_h
std::vector< SiStripDigi > OneDetectorMap
bool operator()(SiStripDigi i, SiStripDigi j) const
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_
HLT enums.
void addSiStripSignals(const edm::Event &e)
std::map< uint32_t, OneDetectorMap > SiGlobalIndex