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 
21 
24 //Data Formats
28 
29 #include <map>
30 #include <vector>
31 #include <string>
32 
33 
34 namespace edm
35 {
37  {
38  public:
39 
41 
43  explicit DataMixingSiStripWorker(const edm::ParameterSet& ps);
44 
46  virtual ~DataMixingSiStripWorker();
47 
48  void putSiStrip(edm::Event &e) ;
49  void addSiStripSignals(const edm::Event &e);
50  void addSiStripPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId);
51 
52 
53  private:
54  // data specifiers
55 
56  edm::InputTag SistripLabelSig_ ; // name given to collection of SiStrip digis
57  edm::InputTag SiStripPileInputTag_ ; // InputTag for pileup strips
58  std::string SiStripDigiCollectionDM_ ; // secondary name to be given to new SiStrip digis
59 
60  //
61 
62  typedef std::vector<SiStripDigi> OneDetectorMap; // maps by strip ID for later combination - can have duplicate strips
63  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
64 
66 
67 
68  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
69 
71  std::string label_;
72 
74  public:
75  bool operator() (SiStripDigi i,SiStripDigi j) const {return i.strip() < j.strip();}
76  };
77 
78 
79  };
80 }//edm
81 
82 #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