NDXSecMuonPID.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "CAFAna/Core/Var.h"
4 
5 namespace ana
6 {
7  // --------------------------------------------------------
8  // MuonPID TMVA calculated on-the-fly whilst it doesn't
9  // exist in CAFs
10  // --------------------------------------------------------
11 
12  class GetMuonID
13  {
14  public:
15  GetMuonID() {}
16  float operator() (const caf::SRProxy* sr) const;
17  protected:
18  float InitTMVA() const;
19  };
20 
21 
22  class GetBestTrack
23  {
24  public:
26  float operator() (const caf::SRProxy* sr) const;
27  protected:
28  float InitTMVA() const;
29  };
30 
31 
32  const Var kMuonID = Var(GetMuonID()); // This Var will be used as cut kMuonID > 0.36
33  const Var kBestTrack = Var(GetBestTrack());
34 
35 }//namespace
36 
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
_Var< caf::SRProxy > Var
Representation of a variable to be retrieved from a caf::StandardRecord object.
Definition: Var.h:74
const Var kMuonID
Definition: NDXSecMuonPID.h:32
float InitTMVA() const
caf::StandardRecord * sr
float operator()(const caf::SRProxy *sr) const
const Var kBestTrack
Definition: NDXSecMuonPID.h:33