27 DataMixingMuonWorker::DataMixingMuonWorker() { }
31 label_(ps.getParameter<std::
string>(
"Label"))
72 LogDebug(
"DataMixingMuonWorker")<<
"===============> adding MC signals for "<<e.
id();
88 for (DLayerIt = DTdigis->begin(); DLayerIt != DTdigis->end(); ++DLayerIt) {
90 const DTLayerId& layerId = (*DLayerIt).first;
112 for (RLayerIt = RPCdigis->begin(); RLayerIt != RPCdigis->end(); ++RLayerIt) {
114 const RPCDetId& layerId = (*RLayerIt).first;
141 for (CSLayerIt = CSCStripdigis->begin(); CSLayerIt != CSCStripdigis->end(); ++CSLayerIt) {
143 const CSCDetId& layerId = (*CSLayerIt).first;
169 for (CWLayerIt = CSCWiredigis->begin(); CWLayerIt != CSCWiredigis->end(); ++CWLayerIt) {
171 const CSCDetId& layerId = (*CWLayerIt).first;
201 for (CWLayerIt = CSCComparatordigis->begin(); CWLayerIt != CSCComparatordigis->end(); ++CWLayerIt) {
203 const CSCDetId& layerId = (*CWLayerIt).first;
218 LogDebug(
"DataMixingMuonWorker") <<
"\n===============> adding pileups from event "<<ep->
id()<<
" for bunchcrossing "<<bcr;
226 boost::shared_ptr<Wrapper<DTDigiCollection>
const> DTDigisPTR =
234 for (DTLayerIt = DTDigis->begin(); DTLayerIt != DTDigis->end(); ++DTLayerIt) {
236 const DTLayerId& layerId = (*DTLayerIt).first;
251 boost::shared_ptr<Wrapper<RPCDigiCollection>
const> RPCDigisPTR =
259 for (RPCLayerIt = RPCDigis->begin(); RPCLayerIt != RPCDigis->end(); ++RPCLayerIt) {
261 const RPCDetId& layerId = (*RPCLayerIt).first;
276 boost::shared_ptr<Wrapper<CSCStripDigiCollection>
const> CSCStripDigisPTR =
279 if(CSCStripDigisPTR ) {
284 for (CSCStripLayerIt = CSCStripDigis->begin(); CSCStripLayerIt != CSCStripDigis->end(); ++CSCStripLayerIt) {
286 const CSCDetId& layerId = (*CSCStripLayerIt).first;
301 boost::shared_ptr<Wrapper<CSCWireDigiCollection>
const> CSCWireDigisPTR =
304 if(CSCWireDigisPTR ) {
309 for (CSCWireLayerIt = CSCWireDigis->begin(); CSCWireLayerIt != CSCWireDigis->end(); ++CSCWireLayerIt) {
311 const CSCDetId& layerId = (*CSCWireLayerIt).first;
326 boost::shared_ptr<Wrapper<CSCComparatorDigiCollection>
const> CSCComparatorDigisPTR =
329 if(CSCComparatorDigisPTR ) {
334 for (CSCComparatorLayerIt = CSCComparatorDigis->begin(); CSCComparatorLayerIt != CSCComparatorDigis->end(); ++CSCComparatorLayerIt) {
336 const CSCDetId& layerId = (*CSCComparatorLayerIt).first;
363 const DTLayerId& layerId = (*DLayerIt).first;
368 DTDigiMerge->put(range, layerId);
377 const RPCDetId& layerId = (*RLayerIt).first;
382 RPCDigiMerge->put(range, layerId);
390 const CSCDetId& layerId = (*CSLayerIt).first;
395 CSCStripDigiMerge->put(range, layerId);
403 const CSCDetId& layerId = (*CWLayerIt).first;
408 CSCWireDigiMerge->put(range, layerId);
417 const CSCDetId& layerId = (*CCLayerIt).first;
422 CSCComparatorDigiMerge->put(range, layerId);
433 e.
put( DTDigiMerge );
434 e.
put( RPCDigiMerge );
T getParameter(std::string const &) const
void addMuonSignals(const edm::Event &e)
std::string DTDigiCollectionDM_
edm::InputTag DTDigiTagSig_
EventID const & id() const
edm::InputTag CSCwiredigi_collectionSig_
MuonDigiCollection< CSCDetId, CSCStripDigi > CSCStripDigiCollection
virtual ~DataMixingMuonWorker()
CSCStripDigiCollection * OurCSCStripDigis_
DTDigiCollection * OurDTDigis_
MuonDigiCollection< CSCDetId, CSCComparatorDigi > CSCComparatorDigiCollection
edm::InputTag DTPileInputTag_
edm::InputTag CSCStripPileInputTag_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
MuonDigiCollection< RPCDetId, RPCDigi > RPCDigiCollection
std::string RPCDigiCollectionDM_
edm::InputTag CSCWirePileInputTag_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
RPCDigiCollection * OurRPCDigis_
CSCWireDigiCollection * OurCSCWireDigis_
MuonDigiCollection< CSCDetId, CSCWireDigi > CSCWireDigiCollection
edm::InputTag RPCDigiTagSig_
CSCComparatorDigiCollection * OurCSCComparatorDigis_
edm::InputTag CSCCompPileInputTag_
T const * product() const
void addMuonPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId)
edm::InputTag RPCPileInputTag_
std::string CSCWireDigiCollectionDM_
MuonDigiCollection< DTLayerId, DTDigi > DTDigiCollection
edm::InputTag CSCCompdigi_collectionSig_
std::pair< const_iterator, const_iterator > Range
void putMuon(edm::Event &e)
std::string CSCComparatorDigiCollectionDM_
std::string CSCStripDigiCollectionDM_
edm::InputTag CSCstripdigi_collectionSig_