26 DataMixingSiStripRawWorker::DataMixingSiStripRawWorker() { }
30 label_(ps.getParameter<std::
string>(
"Label"))
90 LogDebug(
"DataMixingSiStripRawWorker") <<
"\n===============> adding pileups from event "
91 << ep->
id() <<
" for bunchcrossing " << bcr;
93 boost::shared_ptr<Wrapper<edm::DetSetVector<SiStripDigi> >
const> pSSD;
94 boost::shared_ptr<Wrapper<edm::DetSetVector<SiStripRawDigi> >
const> pSSRD;
100 pSSRD = getProductByTag<edm::DetSetVector<SiStripRawDigi> >(*ep,
SiStripRawInputTag_, mcc);
103 std::cout <<
"you shouldn't be here" << std::endl;
124 LogDebug(
"DataMixingSiStripRawWorker") <<
"Processing DetID " << DSViter->id;
128 LocalMap.
reserve((DSViter->data).size());
129 LocalMap.insert(LocalMap.end(),(DSViter->data).
begin(),(DSViter->data).
end());
140 std::vector< edm::DetSet<SiStripRawDigi> > vSiStripRawDigi;
150 SiGlobalIndex::const_iterator itest;
157 LogDebug(
"DataMixingSiStripRawWorker") <<
"Pileups: Processing DetID " << rawDSViter->id;
161 LocalMap = itest->second;
162 OneDetectorMap::const_iterator iLocal = LocalMap.
begin();
167 while( iRawDigi != rawDSViter->
end() ) {
169 int ADCSum = iRawDigi->adc();
172 if(iLocal->strip() == currentstrip) {
173 ADCSum += iLocal->adc();
189 vSiStripRawDigi.push_back(*rawDSViter);
T getParameter(std::string const &) const
edm::InputTag SistripLabelSig_
const edm::DetSetVector< SiStripDigi > * digicollection_
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_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Container::value_type value_type
std::string SiStripDigiCollectionDM_
iterator end()
Return the off-the-end iterator.
edm::InputTag SiStripRawInputTag_
void putSiStrip(edm::Event &e)
edm::InputTag SiStripPileInputTag_
T const * product() const
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 ...