26 DataMixingSiStripRawWorker::DataMixingSiStripRawWorker() { }
30 label_(ps.getParameter<std::
string>(
"Label"))
74 std::cout <<
"you shouldn't be here" << std::endl;
84 LogDebug(
"DataMixingSiStripRawWorker") <<
"\n===============> adding pileups from event "
85 << ep->
id() <<
" for bunchcrossing " << bcr;
87 boost::shared_ptr<Wrapper<edm::DetSetVector<SiStripDigi> >
const> pSSD;
88 boost::shared_ptr<Wrapper<edm::DetSetVector<SiStripRawDigi> >
const> pSSRD;
97 std::cout <<
"you shouldn't be here" << std::endl;
118 LogDebug(
"DataMixingSiStripRawWorker") <<
"Processing DetID " << DSViter->id;
122 LocalMap.reserve((DSViter->data).size());
123 LocalMap.
insert(LocalMap.end(),(DSViter->data).
begin(),(DSViter->data).
end());
134 std::vector< edm::DetSet<SiStripRawDigi> > vSiStripRawDigi;
144 SiGlobalIndex::const_iterator itest;
151 LogDebug(
"DataMixingSiStripRawWorker") <<
"Pileups: Processing DetID " << rawDSViter->id;
155 LocalMap = itest->second;
156 OneDetectorMap::const_iterator iLocal = LocalMap.
begin();
161 while( iRawDigi != rawDSViter->
end() ) {
163 int ADCSum = iRawDigi->adc();
166 if(iLocal->strip() == currentstrip) {
167 ADCSum += iLocal->adc();
183 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)
EventID const & id() const
virtual ~DataMixingSiStripRawWorker()
std::vector< SiStripDigi > OneDetectorMap
SiGlobalIndex SiHitStorage_
edm::InputTag Sistripdigi_collectionSig_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Container::value_type value_type
std::string SiStripDigiCollectionDM_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
iterator end()
Return the off-the-end iterator.
edm::InputTag SiStripRawInputTag_
void addSiStripPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId)
void putSiStrip(edm::Event &e)
edm::InputTag SiStripPileInputTag_
T const * product() const
std::string SiStripRawDigiSource_
void insert(detset const &s)
Insert the given DetSet.
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 ...