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;
219 LogDebug(
"DataMixingMuonWorker") <<
"\n===============> adding pileups from event "<<ep->
id()<<
" for bunchcrossing "<<bcr;
227 boost::shared_ptr<Wrapper<DTDigiCollection>
const> DTDigisPTR =
235 for (DTLayerIt = DTDigis->begin(); DTLayerIt != DTDigis->end(); ++DTLayerIt) {
237 const DTLayerId& layerId = (*DTLayerIt).first;
252 boost::shared_ptr<Wrapper<RPCDigiCollection>
const> RPCDigisPTR =
260 for (RPCLayerIt = RPCDigis->begin(); RPCLayerIt != RPCDigis->end(); ++RPCLayerIt) {
262 const RPCDetId& layerId = (*RPCLayerIt).first;
277 boost::shared_ptr<Wrapper<CSCStripDigiCollection>
const> CSCStripDigisPTR =
280 if(CSCStripDigisPTR ) {
285 for (CSCStripLayerIt = CSCStripDigis->begin(); CSCStripLayerIt != CSCStripDigis->end(); ++CSCStripLayerIt) {
287 const CSCDetId& layerId = (*CSCStripLayerIt).first;
302 boost::shared_ptr<Wrapper<CSCWireDigiCollection>
const> CSCWireDigisPTR =
305 if(CSCWireDigisPTR ) {
310 for (CSCWireLayerIt = CSCWireDigis->begin(); CSCWireLayerIt != CSCWireDigis->end(); ++CSCWireLayerIt) {
312 const CSCDetId& layerId = (*CSCWireLayerIt).first;
327 boost::shared_ptr<Wrapper<CSCComparatorDigiCollection>
const> CSCComparatorDigisPTR =
330 if(CSCComparatorDigisPTR ) {
335 for (CSCComparatorLayerIt = CSCComparatorDigis->begin(); CSCComparatorLayerIt != CSCComparatorDigis->end(); ++CSCComparatorLayerIt) {
337 const CSCDetId& layerId = (*CSCComparatorLayerIt).first;
364 const DTLayerId& layerId = (*DLayerIt).first;
369 DTDigiMerge->put(range, layerId);
378 const RPCDetId& layerId = (*RLayerIt).first;
383 RPCDigiMerge->put(range, layerId);
391 const CSCDetId& layerId = (*CSLayerIt).first;
396 CSCStripDigiMerge->put(range, layerId);
404 const CSCDetId& layerId = (*CWLayerIt).first;
409 CSCWireDigiMerge->put(range, layerId);
418 const CSCDetId& layerId = (*CCLayerIt).first;
423 CSCComparatorDigiMerge->put(range, layerId);
434 e.
put( DTDigiMerge );
435 e.
put( RPCDigiMerge );
T getParameter(std::string const &) const
void addMuonSignals(const edm::Event &e)
std::string DTDigiCollectionDM_
void addMuonPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
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
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_