CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataMixingSiStripRawWorker.h
Go to the documentation of this file.
1 #ifndef DataMixingSiStripRawWorker_h
2 #define SimDataMixingSiStripRawWorker_h
3 
21 
24 //Data Formats
29 
30 #include <map>
31 #include <vector>
32 #include <string>
33 
34 
35 namespace edm
36 {
37  class ModuleCallingContext;
38 
40  {
41  public:
42 
44 
47 
50 
51  void putSiStrip(edm::Event &e) ;
52  void addSiStripSignals(const edm::Event &e);
53  void addSiStripPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,
54  ModuleCallingContext const*);
55 
56 
57  private:
58  // data specifiers
59 
60  edm::InputTag Sistripdigi_collectionSig_ ; // primary name given to collection of SiStrip digis
61  edm::InputTag SistripLabelSig_ ; // secondary name given to collection of SiStrip digis
62  edm::InputTag SiStripPileInputTag_; // InputTag for pileup strips
63  edm::InputTag SiStripRawInputTag_; // InputTag for strips with rawdigis
64  edm::EDGetTokenT<edm::DetSetVector<SiStripDigi>> SiStripInputTok_ ; // InputToken for strips with rawdigis
66  std::string SiStripDigiCollectionDM_ ; // secondary name to be given to new SiStrip raw digis
67  std::string SiStripRawDigiSource_ ; // which collection is rawdigis: either "SIGNAL" or "PILEUP"
68 
69  //
70 
71  typedef std::vector<SiStripDigi> OneDetectorMap; // maps by strip ID for later combination - can have duplicate strips
72  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
73 
75 
76  // SiStripDigi and SiStripRawDigi collections
79 
81 
82  };
83 }//edm
84 
85 #endif
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_
const edm::DetSetVector< SiStripRawDigi > * rawdigicollection_