CMS 3D CMS Logo

DataMixingSiStripWorker.h
Go to the documentation of this file.
1 #ifndef SimDataMixingSiStripWorker_h
2 #define SimDataMixingSiStripWorker_h
3 
21 
24 // Data Formats
28 
29 #include <map>
30 #include <string>
31 #include <vector>
32 
33 namespace edm {
34  class ModuleCallingContext;
35 
37  public:
39 
42 
44  virtual ~DataMixingSiStripWorker();
45 
46  void putSiStrip(edm::Event &e);
47  void addSiStripSignals(const edm::Event &e);
48  void addSiStripPileups(const int bcr,
49  const edm::EventPrincipal *,
50  unsigned int EventId,
51  ModuleCallingContext const *);
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
59  // SiStrip digis
60 
63 
64  //
65 
66  typedef std::vector<SiStripDigi> OneDetectorMap; // maps by strip ID for later combination - can have
67  // duplicate strips
68  typedef std::map<uint32_t, OneDetectorMap> SiGlobalIndex; // map to all data for each detector ID
69 
71 
72  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
73 
75 
77  public:
78  bool operator()(SiStripDigi i, SiStripDigi j) const { return i.strip() < j.strip(); }
79  };
80  };
81 } // namespace edm
82 
83 #endif // SimDataMixingSiStripWorker_h
edm::DataMixingSiStripWorker::SiStripDigiToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripDigiToken_
Definition: DataMixingSiStripWorker.h:61
Handle.h
mps_fire.i
i
Definition: mps_fire.py:428
edm::DataMixingSiStripWorker::~DataMixingSiStripWorker
virtual ~DataMixingSiStripWorker()
Definition: DataMixingSiStripWorker.cc:47
edm::EDGetTokenT
Definition: EDGetToken.h:33
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::DataMixingSiStripWorker::SiGlobalIndex
std::map< uint32_t, OneDetectorMap > SiGlobalIndex
Definition: DataMixingSiStripWorker.h:68
edm::DataMixingSiStripWorker::addSiStripPileups
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
Definition: DataMixingSiStripWorker.cc:73
edm::DataMixingSiStripWorker::addSiStripSignals
void addSiStripSignals(const edm::Event &e)
Definition: DataMixingSiStripWorker.cc:49
edm::DataMixingSiStripWorker::SiStripDigiPToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripDigiPToken_
Definition: DataMixingSiStripWorker.h:62
edm::EventPrincipal
Definition: EventPrincipal.h:46
EventPrincipal.h
SiStripDigi.h
ProductID.h
edm::DataMixingSiStripWorker
Definition: DataMixingSiStripWorker.h:36
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::DataMixingSiStripWorker::OneDetectorMap
std::vector< SiStripDigi > OneDetectorMap
Definition: DataMixingSiStripWorker.h:66
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
edm::DataMixingSiStripWorker::SiHitStorage_
SiGlobalIndex SiHitStorage_
Definition: DataMixingSiStripWorker.h:70
edm::DataMixingSiStripWorker::putSiStrip
void putSiStrip(edm::Event &e)
Definition: DataMixingSiStripWorker.cc:132
DetSetVector.h
edm::DataMixingSiStripWorker::StrictWeakOrdering
Definition: DataMixingSiStripWorker.h:76
edm::DataMixingSiStripWorker::StrictWeakOrdering::operator()
bool operator()(SiStripDigi i, SiStripDigi j) const
Definition: DataMixingSiStripWorker.h:78
edm::DataMixingSiStripWorker::label_
std::string label_
Definition: DataMixingSiStripWorker.h:74
edm::DataMixingSiStripWorker::DataMixingSiStripWorker
DataMixingSiStripWorker()
Definition: DataMixingSiStripWorker.cc:21
edm::DataMixingSiStripWorker::SiStripPileInputTag_
edm::InputTag SiStripPileInputTag_
Definition: DataMixingSiStripWorker.h:57
SiStripDigi
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
Definition: SiStripDigi.h:12
DetSet.h
ConsumesCollector.h
ParameterSet.h
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
edm::Event
Definition: Event.h:73
edm::DataMixingSiStripWorker::SistripLabelSig_
edm::InputTag SistripLabelSig_
Definition: DataMixingSiStripWorker.h:56
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
edm::DataMixingSiStripWorker::SiStripDigiCollectionDM_
std::string SiStripDigiCollectionDM_
Definition: DataMixingSiStripWorker.h:58
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29