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 {
38  {
39  public:
40 
42 
45 
48 
49  void putSiStrip(edm::Event &e) ;
50  void addSiStripSignals(const edm::Event &e);
51  void addSiStripPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId);
52 
53 
54  private:
55  // data specifiers
56 
57  edm::InputTag Sistripdigi_collectionSig_ ; // primary name given to collection of SiStrip digis
58  edm::InputTag SistripLabelSig_ ; // secondary name given to collection of SiStrip digis
59  edm::InputTag SiStripPileInputTag_; // InputTag for pileup strips
60  edm::InputTag SiStripRawInputTag_ ; // InputTag for strips with rawdigis
61  std::string SiStripDigiCollectionDM_ ; // secondary name to be given to new SiStrip raw digis
62  std::string SiStripRawDigiSource_ ; // which collection is rawdigis: either "SIGNAL" or "PILEUP"
63 
64  //
65 
66  typedef std::vector<SiStripDigi> OneDetectorMap; // maps by strip ID for later combination - can have duplicate strips
67  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
68 
70 
71  // SiStripDigi and SiStripRawDigi collections
74 
76  std::string label_;
77 
78  };
79 }//edm
80 
81 #endif
const edm::DetSetVector< SiStripDigi > * digicollection_
void addSiStripSignals(const edm::Event &e)
std::vector< SiStripDigi > OneDetectorMap
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId)
std::map< uint32_t, OneDetectorMap > SiGlobalIndex
const edm::DetSetVector< SiStripRawDigi > * rawdigicollection_