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) {
77 LogDebug(
"DataMixingGeneralTrackWorker") <<
"\n===============> adding pileups from event "<<ep->
id()<<
" for bunchcrossing "<<bcr;
80 boost::shared_ptr<Wrapper<reco::TrackCollection >
const> inputPTR =
81 getProductByTag<reco::TrackCollection >(*ep, GeneralTrackPileInputTag_ );
90 for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
91 NewTrackList_->push_back(*track);
100 void DataMixingGeneralTrackWorker::putGeneralTrack(
edm::Event &
e) {
105 LogInfo(
"DataMixingGeneralTrackWorker") <<
"total # Merged Tracks: " << NewTrackList_->size() ;
109 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