27 DataMixingSiStripRawWorker::DataMixingSiStripRawWorker() { }
31 label_(ps.getParameter<
std::
string>(
"Label"))
91 LogDebug(
"DataMixingSiStripRawWorker") <<
"\n===============> adding pileups from event " 92 << ep->
id() <<
" for bunchcrossing " << bcr;
94 std::shared_ptr<Wrapper<edm::DetSetVector<SiStripDigi> >
const> pSSD;
95 std::shared_ptr<Wrapper<edm::DetSetVector<SiStripRawDigi> >
const> pSSRD;
101 pSSRD = getProductByTag<edm::DetSetVector<SiStripRawDigi> >(*ep,
SiStripRawInputTag_, mcc);
104 std::cout <<
"you shouldn't be here" << std::endl;
125 LogDebug(
"DataMixingSiStripRawWorker") <<
"Processing DetID " << DSViter->id;
129 LocalMap.
reserve((DSViter->data).size());
130 LocalMap.insert(LocalMap.end(),(DSViter->data).
begin(),(DSViter->data).
end());
141 std::vector< edm::DetSet<SiStripRawDigi> > vSiStripRawDigi;
151 SiGlobalIndex::const_iterator itest;
158 LogDebug(
"DataMixingSiStripRawWorker") <<
"Pileups: Processing DetID " << rawDSViter->id;
162 LocalMap = itest->second;
163 OneDetectorMap::const_iterator iLocal = LocalMap.
begin();
168 while( iRawDigi != rawDSViter->
end() ) {
170 int ADCSum = iRawDigi->adc();
173 if(iLocal->strip() == currentstrip) {
174 ADCSum += iLocal->adc();
190 vSiStripRawDigi.push_back(*rawDSViter);
T getParameter(std::string const &) const
edm::InputTag SistripLabelSig_
const edm::DetSetVector< SiStripDigi > * digicollection_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void push_back(const T &t)
void addSiStripSignals(const edm::Event &e)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EventID const & id() const
virtual ~DataMixingSiStripRawWorker()
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > SiStripInputTok_
std::vector< SiStripDigi > OneDetectorMap
SiGlobalIndex SiHitStorage_
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
edm::InputTag Sistripdigi_collectionSig_
Container::value_type value_type
std::string SiStripDigiCollectionDM_
iterator end()
Return the off-the-end iterator.
edm::InputTag SiStripRawInputTag_
void putSiStrip(edm::Event &e)
T const * product() const
edm::InputTag SiStripPileInputTag_
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > SiStripRawInputTok_
std::string SiStripRawDigiSource_
iterator begin()
Return an iterator to the first DetSet.
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
const edm::DetSetVector< SiStripRawDigi > * rawdigicollection_
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...