MuonID.h
Go to the documentation of this file.
1 #pragma once
2 
6 #include "CAFAna/Core/Var.h"
7 #include "TMVA/Reader.h"
8 
9 namespace ana
10 {
11  // --------------------------------------------------------
12  // MuonPID TMVA calculated on-the-fly if it doesn't
13  // exist in CAFs
14  // --------------------------------------------------------
15 
16  namespace muonid_classifier
17  {
19 
20  // Main driving function, will return either highest muonid or highest scoring track depending on on get_track_id
21  float GetMuonIDSR(const caf::SRProxy* sr, const EMuonIDReturnMode return_mode = kGetMuonID);
22  float GetMuonIDKalmanTrack(const caf::SRKalmanTrack* kaltrk);
23 
24  // Functions for Var definitions
25  float MuonID (const caf::SRProxy* sr);
26  float BestTrack(const caf::SRProxy* sr);
27 
28  // TMVA initializer
29  float InitTMVA();
30 
33  }
34 }
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
float GetMuonIDKalmanTrack(const caf::SRKalmanTrack *kaltrk)
Definition: MuonID.cxx:51
caf::StandardRecord * sr
const Var kBestMuonTrack(muonid_classifier::BestTrack)
float BestTrack(const caf::SRProxy *sr)
Definition: MuonID.cxx:79
float MuonID(const caf::SRProxy *sr)
Definition: MuonID.cxx:74
float GetMuonIDSR(const caf::SRProxy *sr, const EMuonIDReturnMode return_mode)
Definition: MuonID.cxx:13
const Var kMuonID(muonid_classifier::MuonID)