MuonID.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file MuonID.h
3 // \brief BDT for muon / mubar identification
4 // \author Connor Johnson - Connor.Johnson@colostate.edu
5 ////////////////////////////////////////////////////////////////////////
6 #pragma once
7 
8 #include "RecoBase/Track.h"
9 #include "RecoBase/PID.h"
10 
11 #ifndef __GCCXML__
13 #endif // __GCCXML__
14 
15 namespace muonid
16 {
17  class MuonID : public rb::PID
18  {
19  public:
20  MuonID();
21  MuonID(int pdg, double val);
22  };
23 
24  #ifndef __GCCXML__
25  /// Function which finds index of the best MuonID track among a vector of tracks.
26  /// Requires the event to fetch associated MuonID objects and the module label
27  unsigned int HighestPIDTrack(
28  const std::vector< art::Ptr<rb::Track> >& sliceTracks,
29  const std::string& muonidModuleLabel, const art::Event& e);
30 
31  unsigned int HighestPIDTrack(std::vector< art::Ptr<rb::Track> > const& sliceTracks,
32  art::InputTag const& muonidTag,
33  art::Event const& e);
34  #endif // __GCCXML__
35 } // namespace muonid
A pid value and corresponding pdg code.
Definition: PID.h:13
pdg code and pid value
A PID for muons.
Definition: FillPIDs.h:11
Float_t e
Definition: plot.C:35
unsigned int HighestPIDTrack(const std::vector< art::Ptr< rb::Track > > &sliceTracks, const std::string &muonidModuleLabel, const art::Event &e)
Definition: MuonID.cxx:27
enum BeamMode string