26 DataMixingGeneralTrackWorker::DataMixingGeneralTrackWorker() { }
47 DataMixingGeneralTrackWorker::~DataMixingGeneralTrackWorker() {
52 void DataMixingGeneralTrackWorker::addGeneralTrackSignals(
const edm::Event &
e) {
65 if (tracks.isValid()) {
66 for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
67 NewTrackList_->push_back(*track);
76 void DataMixingGeneralTrackWorker::addGeneralTrackPileups(
const int bcr,
const EventPrincipal *ep,
unsigned int eventNr,
78 LogDebug(
"DataMixingGeneralTrackWorker") <<
"\n===============> adding pileups from event "<<ep->
id()<<
" for bunchcrossing "<<bcr;
81 boost::shared_ptr<Wrapper<reco::TrackCollection >
const> inputPTR =
82 getProductByTag<reco::TrackCollection >(*ep, GeneralTrackPileInputTag_, mcc);
91 for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
92 NewTrackList_->push_back(*track);
101 void DataMixingGeneralTrackWorker::putGeneralTrack(
edm::Event &
e) {
106 LogInfo(
"DataMixingGeneralTrackWorker") <<
"total # Merged Tracks: " << NewTrackList_->size() ;
110 e.
put( NewTrackList_, GeneralTrackCollectionDM_ );
T getParameter(std::string const &) const
EventID const & id() const
std::vector< Track > TrackCollection
collection of Tracks
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const