CMS 3D CMS Logo

DataMixingSiStripRawWorker.h
Go to the documentation of this file.
1 #ifndef SimDataMixingSiStripRawWorker_h
2 #define SimDataMixingSiStripRawWorker_h
3 
21 
24 // Data Formats
29 
30 #include <map>
31 #include <string>
32 #include <vector>
33 
34 namespace edm {
35  class ModuleCallingContext;
36 
38  public:
40 
43 
46 
47  void putSiStrip(edm::Event &e);
48  void addSiStripSignals(const edm::Event &e);
49  void addSiStripPileups(const int bcr,
50  const edm::EventPrincipal *,
51  unsigned int EventId,
52  ModuleCallingContext const *);
53 
54  private:
55  // data specifiers
56 
57  edm::InputTag Sistripdigi_collectionSig_; // primary name given to collection
58  // of SiStrip digis
59  edm::InputTag SistripLabelSig_; // secondary name given to collection of SiStrip digis
60  edm::InputTag SiStripPileInputTag_; // InputTag for pileup strips
61  edm::InputTag SiStripRawInputTag_; // InputTag for strips with rawdigis
62  edm::EDGetTokenT<edm::DetSetVector<SiStripDigi>> SiStripInputTok_; // InputToken for strips with rawdigis
64  std::string SiStripDigiCollectionDM_; // secondary name to be given to new
65  // SiStrip raw digis
66  std::string SiStripRawDigiSource_; // which collection is rawdigis: either
67  // "SIGNAL" or "PILEUP"
68 
69  //
70 
71  typedef std::vector<SiStripDigi> OneDetectorMap; // maps by strip ID for later combination - can have
72  // duplicate strips
73  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
74 
76 
77  // SiStripDigi and SiStripRawDigi collections
80 
82  };
83 } // namespace edm
84 
85 #endif // SimDataMixingSiStripRawWorker_h
const edm::DetSetVector< SiStripDigi > * digicollection_
void addSiStripSignals(const edm::Event &e)
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripInputTok_
std::vector< SiStripDigi > OneDetectorMap
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
std::map< uint32_t, OneDetectorMap > SiGlobalIndex
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > SiStripRawInputTok_
HLT enums.
std::tuple< uint32_t, uint32_t, uint32_t > EventId
Event index (L1A/BX/orbit)
Definition: SlinkTypes.h:14
const edm::DetSetVector< SiStripRawDigi > * rawdigicollection_