28 DataMixingGeneralTrackWorker::DataMixingGeneralTrackWorker() { }
52 DataMixingGeneralTrackWorker::~DataMixingGeneralTrackWorker() {
57 void DataMixingGeneralTrackWorker::addGeneralTrackSignals(
const edm::Event &
e) {
70 if (tracks.isValid()) {
71 for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
72 NewTrackList_->push_back(*track);
81 void DataMixingGeneralTrackWorker::addGeneralTrackPileups(
const int bcr,
const EventPrincipal *ep,
unsigned int eventNr,
83 LogDebug(
"DataMixingGeneralTrackWorker") <<
"\n===============> adding pileups from event "<<ep->
id()<<
" for bunchcrossing "<<bcr;
86 std::shared_ptr<Wrapper<reco::TrackCollection >
const> inputPTR =
87 getProductByTag<reco::TrackCollection >(*ep, GeneralTrackPileInputTag_, mcc);
96 for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
97 NewTrackList_->push_back(*track);
106 void DataMixingGeneralTrackWorker::putGeneralTrack(
edm::Event &
e) {
111 LogInfo(
"DataMixingGeneralTrackWorker") <<
"total # Merged Tracks: " << NewTrackList_->size() ;
115 e.
put( NewTrackList_, GeneralTrackCollectionDM_ );
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EventID const & id() const
std::vector< Track > TrackCollection
collection of Tracks
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.