All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MuonTrackFilter Class Reference
Inheritance diagram for MuonTrackFilter:

Public Member Functions

 MuonTrackFilter (fhicl::ParameterSet const &p)
 
virtual bool filter (art::Event &e) override
 
void reconfigure (fhicl::ParameterSet const &p)
 
virtual ~MuonTrackFilter ()
 

Private Attributes

art::ServiceHandle
< art::TFileService > 
tfs
 

Detailed Description

Definition at line 30 of file MuonTrackFilter_module.cc.

Constructor & Destructor Documentation

MuonTrackFilter::MuonTrackFilter ( fhicl::ParameterSet const &  p)
explicit

Definition at line 42 of file MuonTrackFilter_module.cc.

42  : EDFilter{p}
43 {}
pdgs p
Definition: selectors.fcl:22
virtual MuonTrackFilter::~MuonTrackFilter ( )
inlinevirtual

Definition at line 35 of file MuonTrackFilter_module.cc.

35 { }

Member Function Documentation

bool MuonTrackFilter::filter ( art::Event &  e)
overridevirtual

Definition at line 48 of file MuonTrackFilter_module.cc.

49 {
50  bool pass = false;
51  int ncts = 0;
52  art::Handle<std::vector<sbnd::comm::MuonTrack> > muonTrackListHandle;
53  std::vector<art::Ptr<sbnd::comm::MuonTrack> > muontrklist;
54  if (evt.getByLabel("MuonTrackProducer", muonTrackListHandle)) {
55  art::fill_ptr_vector(muontrklist, muonTrackListHandle);
56  ncts = muontrklist.size();
57  }
58  if (ncts > 0){
59  pass = true;
60  }
61  return pass;
62 }
TCEvent evt
Definition: DataStructs.cxx:8
void MuonTrackFilter::reconfigure ( fhicl::ParameterSet const &  p)

Definition at line 45 of file MuonTrackFilter_module.cc.

46 {}

Member Data Documentation

art::ServiceHandle<art::TFileService> MuonTrackFilter::tfs
private

Definition at line 39 of file MuonTrackFilter_module.cc.


The documentation for this class was generated from the following file: