CMS 3D CMS Logo

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

List of all members.

Public Member Functions

 Tau3MuSkim (const edm::ParameterSet &)
 ~Tau3MuSkim ()

Private Member Functions

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

Private Attributes

Tau3MuRecom_Tau3MuReco

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.

{
    m_Tau3MuReco = new Tau3MuReco(iConfig);

    produces<reco::MuonCollection,edm::InEvent>("tau3MuCandidateMuons");
    produces<reco::TrackCollection,edm::InEvent>("tau3MuCandidateTracks");
}
Tau3MuSkim::~Tau3MuSkim ( )

Definition at line 37 of file Tau3MuSkim.cc.

References m_Tau3MuReco.

{
    delete m_Tau3MuReco;
}

Member Function Documentation

void Tau3MuSkim::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDFilter.

Definition at line 64 of file Tau3MuSkim.cc.

{    
}
void Tau3MuSkim::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDFilter.

Definition at line 70 of file Tau3MuSkim.cc.

{
}
bool Tau3MuSkim::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDFilter.

Definition at line 49 of file Tau3MuSkim.cc.

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

{
    std::auto_ptr<reco::MuonCollection> tau3MuCandidateMuons(new reco::MuonCollection);
    std::auto_ptr<reco::TrackCollection> tau3MuCandidateTracks(new reco::TrackCollection);
    
    bool accept = m_Tau3MuReco->doTau3MuReco(iEvent, iSetup, tau3MuCandidateMuons.get(), tau3MuCandidateTracks.get());
    
    iEvent.put(tau3MuCandidateMuons, "tau3MuCandidateMuons");
    iEvent.put(tau3MuCandidateTracks, "tau3MuCandidateTracks");
        
    return accept;
}

Member Data Documentation

Definition at line 33 of file Tau3MuSkim.h.

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