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 
20 
23 //Data Formats
27 
28 #include <map>
29 #include <vector>
30 #include <string>
31 
32 
33 namespace edm
34 {
35  class ModuleCallingContext;
36 
38  {
39  public:
40 
42 
44  explicit DataMixingSiStripWorker(const edm::ParameterSet& ps);
45 
47  virtual ~DataMixingSiStripWorker();
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  ModuleCallingContext const*);
53 
54 
55  private:
56  // data specifiers
57 
58  edm::InputTag SistripLabelSig_ ; // name given to collection of SiStrip digis
59  edm::InputTag SiStripPileInputTag_ ; // InputTag for pileup strips
60  std::string SiStripDigiCollectionDM_ ; // secondary name to be given to new SiStrip digis
61 
62  //
63 
64  typedef std::vector<SiStripDigi> OneDetectorMap; // maps by strip ID for later combination - can have duplicate strips
65  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
66 
68 
69 
70  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
71 
73 
75  public:
76  bool operator() (SiStripDigi i,SiStripDigi j) const {return i.strip() < j.strip();}
77  };
78 
79 
80  };
81 }//edm
82 
83 #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 *)
void addSiStripSignals(const edm::Event &e)
std::map< uint32_t, OneDetectorMap > SiGlobalIndex