22 DataMixingGeneralTrackWorker::DataMixingGeneralTrackWorker() {}
43 DataMixingGeneralTrackWorker::~DataMixingGeneralTrackWorker() {}
45 void DataMixingGeneralTrackWorker::addGeneralTrackSignals(
const edm::Event &
e) {
56 e.getByToken(GTrackSigToken_,
tracks);
60 NewTrackList_->push_back(*
track);
66 void DataMixingGeneralTrackWorker::addGeneralTrackPileups(
const int bcr,
70 LogDebug(
"DataMixingGeneralTrackWorker")
71 <<
"\n===============> adding pileups from event " <<
ep->id() <<
" for bunchcrossing " << bcr;
73 std::shared_ptr<Wrapper<reco::TrackCollection>
const> inputPTR =
74 getProductByTag<reco::TrackCollection>(*
ep, GeneralTrackPileInputTag_, mcc);
82 NewTrackList_->push_back(*
track);
87 void DataMixingGeneralTrackWorker::putGeneralTrack(
edm::Event &
e) {
91 LogInfo(
"DataMixingGeneralTrackWorker") <<
"total # Merged Tracks: " << NewTrackList_->size();
95 e.put(
std::move(NewTrackList_), GeneralTrackCollectionDM_);