27 DataMixingMuonWorker::DataMixingMuonWorker() { sel_=0;}
31 label_(ps.getParameter<std::string>(
"Label"))
82 LogDebug(
"DataMixingMuonWorker")<<
"===============> adding MC signals for "<<e.
id();
98 for (DLayerIt = DTdigis->begin(); DLayerIt != DTdigis->end(); ++DLayerIt) {
100 const DTLayerId& layerId = (*DLayerIt).first;
122 for (RLayerIt = RPCdigis->begin(); RLayerIt != RPCdigis->end(); ++RLayerIt) {
124 const RPCDetId& layerId = (*RLayerIt).first;
151 for (CSLayerIt = CSCStripdigis->begin(); CSLayerIt != CSCStripdigis->end(); ++CSLayerIt) {
153 const CSCDetId& layerId = (*CSLayerIt).first;
179 for (CWLayerIt = CSCWiredigis->begin(); CWLayerIt != CSCWiredigis->end(); ++CWLayerIt) {
181 const CSCDetId& layerId = (*CWLayerIt).first;
211 for (CWLayerIt = CSCComparatordigis->begin(); CWLayerIt != CSCComparatordigis->end(); ++CWLayerIt) {
213 const CSCDetId& layerId = (*CWLayerIt).first;
228 LogDebug(
"DataMixingMuonWorker") <<
"\n===============> adding pileups from event "<<ep->
id()<<
" for bunchcrossing "<<bcr;
236 boost::shared_ptr<Wrapper<DTDigiCollection>
const> DTDigisPTR =
244 for (DTLayerIt = DTDigis->begin(); DTLayerIt != DTDigis->end(); ++DTLayerIt) {
246 const DTLayerId& layerId = (*DTLayerIt).first;
261 boost::shared_ptr<Wrapper<RPCDigiCollection>
const> RPCDigisPTR =
269 for (RPCLayerIt = RPCDigis->begin(); RPCLayerIt != RPCDigis->end(); ++RPCLayerIt) {
271 const RPCDetId& layerId = (*RPCLayerIt).first;
286 boost::shared_ptr<Wrapper<CSCStripDigiCollection>
const> CSCStripDigisPTR =
289 if(CSCStripDigisPTR ) {
294 for (CSCStripLayerIt = CSCStripDigis->begin(); CSCStripLayerIt != CSCStripDigis->end(); ++CSCStripLayerIt) {
296 const CSCDetId& layerId = (*CSCStripLayerIt).first;
311 boost::shared_ptr<Wrapper<CSCWireDigiCollection>
const> CSCWireDigisPTR =
314 if(CSCWireDigisPTR ) {
319 for (CSCWireLayerIt = CSCWireDigis->begin(); CSCWireLayerIt != CSCWireDigis->end(); ++CSCWireLayerIt) {
321 const CSCDetId& layerId = (*CSCWireLayerIt).first;
336 boost::shared_ptr<Wrapper<CSCComparatorDigiCollection>
const> CSCComparatorDigisPTR =
339 if(CSCComparatorDigisPTR ) {
344 for (CSCComparatorLayerIt = CSCComparatorDigis->begin(); CSCComparatorLayerIt != CSCComparatorDigis->end(); ++CSCComparatorLayerIt) {
346 const CSCDetId& layerId = (*CSCComparatorLayerIt).first;
373 const DTLayerId& layerId = (*DLayerIt).first;
378 DTDigiMerge->put(range, layerId);
387 const RPCDetId& layerId = (*RLayerIt).first;
392 RPCDigiMerge->put(range, layerId);
400 const CSCDetId& layerId = (*CSLayerIt).first;
405 CSCStripDigiMerge->put(range, layerId);
413 const CSCDetId& layerId = (*CWLayerIt).first;
418 CSCWireDigiMerge->put(range, layerId);
427 const CSCDetId& layerId = (*CCLayerIt).first;
432 CSCComparatorDigiMerge->put(range, layerId);
443 e.
put( DTDigiMerge );
444 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_