CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Tau3MuSkim Class Reference

#include <HeavyFlavorAnalysis/Skimming/plugins/Tau3MuSkim.cc>

Inheritance diagram for Tau3MuSkim:
edm::EDFilter edm::ProducerBase edm::ProductRegistryHelper

Public Member Functions

 Tau3MuSkim (const edm::ParameterSet &)
 
 ~Tau3MuSkim ()
 
- Public Member Functions inherited from edm::EDFilter
 EDFilter ()
 
virtual ~EDFilter ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Private Member Functions

virtual void beginJob ()
 
virtual void endJob ()
 
virtual bool filter (edm::Event &, const edm::EventSetup &)
 

Private Attributes

Tau3MuRecom_Tau3MuReco
 

Additional Inherited Members

- Public Types inherited from edm::EDFilter
typedef EDFilter ModuleType
 
typedef WorkerT< EDFilterWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDFilter
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDFilter
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 21 of file Tau3MuSkim.h.

Constructor & Destructor Documentation

Tau3MuSkim::Tau3MuSkim ( const edm::ParameterSet iConfig)
explicit

Definition at line 28 of file Tau3MuSkim.cc.

References m_Tau3MuReco.

29 {
30  m_Tau3MuReco = new Tau3MuReco(iConfig);
31 
32  produces<reco::MuonCollection,edm::InEvent>("tau3MuCandidateMuons");
33  produces<reco::TrackCollection,edm::InEvent>("tau3MuCandidateTracks");
34 }
Tau3MuReco * m_Tau3MuReco
Definition: Tau3MuSkim.h:33
Tau3MuSkim::~Tau3MuSkim ( )

Definition at line 37 of file Tau3MuSkim.cc.

References m_Tau3MuReco.

38 {
39  delete m_Tau3MuReco;
40 }
Tau3MuReco * m_Tau3MuReco
Definition: Tau3MuSkim.h:33

Member Function Documentation

void Tau3MuSkim::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 64 of file Tau3MuSkim.cc.

65 {
66 }
void Tau3MuSkim::endJob ( void  )
privatevirtual

Reimplemented from edm::EDFilter.

Definition at line 70 of file Tau3MuSkim.cc.

71 {
72 }
bool Tau3MuSkim::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDFilter.

Definition at line 49 of file Tau3MuSkim.cc.

References accept(), Tau3MuReco::doTau3MuReco(), edm::EventSetup::get(), m_Tau3MuReco, and edm::Event::put().

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 }
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
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85
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

Member Data Documentation

Tau3MuReco* Tau3MuSkim::m_Tau3MuReco
private

Definition at line 33 of file Tau3MuSkim.h.

Referenced by filter(), Tau3MuSkim(), and ~Tau3MuSkim().