CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: Tau3MuSkim.cc,v 1.3 2009/12/14 22:23:06 wmtan Exp $
17 //
18 //
19 //
20 
24 
27 
29 {
30  m_Tau3MuReco = new Tau3MuReco(iConfig);
31 
32  produces<reco::MuonCollection,edm::InEvent>("tau3MuCandidateMuons");
33  produces<reco::TrackCollection,edm::InEvent>("tau3MuCandidateTracks");
34 }
35 
36 
38 {
39  delete m_Tau3MuReco;
40 }
41 
42 
43 //
44 // member functions
45 //
46 
47 // ------------ method called on each new Event ------------
48 bool
50 {
51  std::auto_ptr<reco::MuonCollection> tau3MuCandidateMuons(new reco::MuonCollection);
52  std::auto_ptr<reco::TrackCollection> tau3MuCandidateTracks(new reco::TrackCollection);
53 
54  bool accept = m_Tau3MuReco->doTau3MuReco(iEvent, iSetup, tau3MuCandidateMuons.get(), tau3MuCandidateTracks.get());
55 
56  iEvent.put(tau3MuCandidateMuons, "tau3MuCandidateMuons");
57  iEvent.put(tau3MuCandidateTracks, "tau3MuCandidateTracks");
58 
59  return accept;
60 }
61 
62 // ------------ method called once each job just before starting event loop ------------
63 void
65 {
66 }
67 
68 // ------------ method called once each job just after ending the event loop ------------
69 void
71 {
72 }
73 
74 //define this as a plug-in
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:22
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
int iEvent
Definition: GenABIO.cc:243
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
virtual bool filter(edm::Event &, const edm::EventSetup &)
Definition: Tau3MuSkim.cc:49
virtual void beginJob()
Definition: Tau3MuSkim.cc:64
Tau3MuReco * m_Tau3MuReco
Definition: Tau3MuSkim.h:33
bool doTau3MuReco(const edm::Event &iEvent, const edm::EventSetup &iSetup, reco::MuonCollection *muonCollection, reco::TrackCollection *trackCollection)
Definition: Tau3MuReco.cc:24
const T & get() const
Definition: EventSetup.h:55
Tau3MuSkim(const edm::ParameterSet &)
Definition: Tau3MuSkim.cc:28
virtual void endJob()
Definition: Tau3MuSkim.cc:70