CMS 3D CMS Logo

Tau3MuSkim.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Tau3MuSkim
4 // Class: Tau3MuSkim
5 //
13 //
14 // Original Author: Manuel Giffels <Manuel.Giffels@physik.rwth-aachen.de>
15 // Created: Mon Jul 23 10:19:11 CEST 2007
16 //
17 //
18 //
19 
23 
26 
28  m_Tau3MuReco = new Tau3MuReco(iConfig, consumesCollector());
29 
30  produces<reco::MuonCollection, edm::InEvent>("tau3MuCandidateMuons");
31  produces<reco::TrackCollection, edm::InEvent>("tau3MuCandidateTracks");
32 }
33 
35 
36 //
37 // member functions
38 //
39 
40 // ------------ method called on each new Event ------------
42  std::unique_ptr<reco::MuonCollection> tau3MuCandidateMuons(new reco::MuonCollection);
43  std::unique_ptr<reco::TrackCollection> tau3MuCandidateTracks(new reco::TrackCollection);
44 
45  bool accept = m_Tau3MuReco->doTau3MuReco(iEvent, iSetup, tau3MuCandidateMuons.get(), tau3MuCandidateTracks.get());
46 
47  iEvent.put(std::move(tau3MuCandidateMuons), "tau3MuCandidateMuons");
48  iEvent.put(std::move(tau3MuCandidateTracks), "tau3MuCandidateTracks");
49 
50  return accept;
51 }
52 
53 // ------------ method called once each job just before starting event loop ------------
55 
56 // ------------ method called once each job just after ending the event loop ------------
58 
59 //define this as a plug-in
Tau3MuSkim
Definition: Tau3MuSkim.h:21
Muon.h
Tau3MuSkim::endJob
void endJob() override
Definition: Tau3MuSkim.cc:57
Tau3MuReco::doTau3MuReco
bool doTau3MuReco(const edm::Event &iEvent, const edm::EventSetup &iSetup, reco::MuonCollection *muonCollection, reco::TrackCollection *trackCollection)
Definition: Tau3MuReco.cc:20
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:71
Tau3MuSkim::beginJob
void beginJob() override
Definition: Tau3MuSkim.cc:54
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
Track.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
MuonFwd.h
reco::MuonCollection
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
Tau3MuSkim.h
Tau3MuReco.h
Tau3MuSkim::m_Tau3MuReco
Tau3MuReco * m_Tau3MuReco
Definition: Tau3MuSkim.h:32
Tau3MuReco
Definition: Tau3MuReco.h:13
edm::ParameterSet
Definition: ParameterSet.h:36
Tau3MuSkim::filter
bool filter(edm::Event &, const edm::EventSetup &) override
Definition: Tau3MuSkim.cc:41
iEvent
int iEvent
Definition: GenABIO.cc:224
Tau3MuSkim::Tau3MuSkim
Tau3MuSkim(const edm::ParameterSet &)
Definition: Tau3MuSkim.cc:27
edm::EventSetup
Definition: EventSetup.h:57
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::Event
Definition: Event.h:73
Tau3MuSkim::~Tau3MuSkim
~Tau3MuSkim() override
Definition: Tau3MuSkim.cc:34
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14