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 {
36  {
37  public:
38 
40 
42  explicit DataMixingSiStripWorker(const edm::ParameterSet& ps);
43 
45  virtual ~DataMixingSiStripWorker();
46 
47  void putSiStrip(edm::Event &e) ;
48  void addSiStripSignals(const edm::Event &e);
49  void addSiStripPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId);
50 
51 
52  private:
53  // data specifiers
54 
55  edm::InputTag SistripLabelSig_ ; // name given to collection of SiStrip digis
56  edm::InputTag SiStripPileInputTag_ ; // InputTag for pileup strips
57  std::string SiStripDigiCollectionDM_ ; // secondary name to be given to new SiStrip digis
58 
59  //
60 
61  typedef std::vector<SiStripDigi> OneDetectorMap; // maps by strip ID for later combination - can have duplicate strips
62  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
63 
65 
66 
67  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
68 
70 
72  public:
73  bool operator() (SiStripDigi i,SiStripDigi j) const {return i.strip() < j.strip();}
74  };
75 
76 
77  };
78 }//edm
79 
80 #endif
int i
Definition: DBlmapReader.cc:9
std::vector< SiStripDigi > OneDetectorMap
bool operator()(SiStripDigi i, SiStripDigi j) const
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId)
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 addSiStripSignals(const edm::Event &e)
std::map< uint32_t, OneDetectorMap > SiGlobalIndex