26 DataMixingGeneralTrackWorker::DataMixingGeneralTrackWorker() { }
48 GeneralTrackCollectionDM_ = ps.
getParameter<std::string>(
"GeneralTrackDigiCollectionDM");
54 DataMixingGeneralTrackWorker::~DataMixingGeneralTrackWorker() {
59 void DataMixingGeneralTrackWorker::addGeneralTrackSignals(
const edm::Event &
e) {
72 if (tracks.isValid()) {
73 for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
74 NewTrackList_->push_back(*track);
83 void DataMixingGeneralTrackWorker::addGeneralTrackPileups(
const int bcr,
const EventPrincipal *ep,
unsigned int eventNr) {
84 LogDebug(
"DataMixingGeneralTrackWorker") <<
"\n===============> adding pileups from event "<<ep->
id()<<
" for bunchcrossing "<<bcr;
87 boost::shared_ptr<Wrapper<reco::TrackCollection >
const> inputPTR =
88 getProductByTag<reco::TrackCollection >(*ep, GeneralTrackPileInputTag_ );
97 for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
98 NewTrackList_->push_back(*track);
107 void DataMixingGeneralTrackWorker::putGeneralTrack(
edm::Event &
e) {
112 LogInfo(
"DataMixingGeneralTrackWorker") <<
"total # Merged Tracks: " << NewTrackList_->size() ;
116 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