27 DataMixingGeneralTrackWorker::DataMixingGeneralTrackWorker() { }
51 DataMixingGeneralTrackWorker::~DataMixingGeneralTrackWorker() {
56 void DataMixingGeneralTrackWorker::addGeneralTrackSignals(
const edm::Event &
e) {
69 if (tracks.isValid()) {
70 for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
71 NewTrackList_->push_back(*track);
80 void DataMixingGeneralTrackWorker::addGeneralTrackPileups(
const int bcr,
const EventPrincipal *ep,
unsigned int eventNr,
82 LogDebug(
"DataMixingGeneralTrackWorker") <<
"\n===============> adding pileups from event "<<ep->
id()<<
" for bunchcrossing "<<bcr;
85 boost::shared_ptr<Wrapper<reco::TrackCollection >
const> inputPTR =
86 getProductByTag<reco::TrackCollection >(*ep, GeneralTrackPileInputTag_, mcc);
95 for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
96 NewTrackList_->push_back(*track);
105 void DataMixingGeneralTrackWorker::putGeneralTrack(
edm::Event &
e) {
110 LogInfo(
"DataMixingGeneralTrackWorker") <<
"total # Merged Tracks: " << NewTrackList_->size() ;
114 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.