22 DataMixingGeneralTrackWorker::DataMixingGeneralTrackWorker() {}
43 DataMixingGeneralTrackWorker::~DataMixingGeneralTrackWorker() {}
45 void DataMixingGeneralTrackWorker::addGeneralTrackSignals(
const edm::Event &
e) {
58 if (tracks.isValid()) {
59 for (reco::TrackCollection::const_iterator
track = tracks->begin();
track != tracks->end(); ++
track) {
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);
81 for (reco::TrackCollection::const_iterator
track = tracks->begin();
track != tracks->end(); ++
track) {
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_);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EventID const & id() const
std::vector< Track > TrackCollection
collection of Tracks