NDXSecTrackPID.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "CAFAna/Core/Var.h"
4 
6 
7 namespace ana
8 {
9  // --------------------------------------------------------
10  // PionPID TMVA calculated on-the-fly whilst it doesn't
11  // exist in CAFs
12  // --------------------------------------------------------
13 
14  class GetPionID
15  {
16  public:
17  GetPionID() {}
18  float operator() (const caf::SRProxy* sr) const;
19  protected:
20  float InitTMVAPion() const;
21  float InitTMVAProton() const;
22  float InitTMVAGamma() const;
23  };
24 
26  {
27  public:
29  float operator() (const caf::SRProxy* sr) const;
30  protected:
31  float InitTMVAPion() const;
32  float InitTMVAProton() const;
33  float InitTMVAGamma() const;
34  };
35 
36 
37 
39  {
40  public:
42  float operator() (const caf::SRProxy* sr) const;
43  protected:
44  float InitTMVAPion() const;
45  };
46 
48  {
49  public:
51  float operator() (const caf::SRProxy* sr) const;
52  protected:
53  float InitTMVAPion() const;
54  };
55 
57  {
58  public:
60  float operator() (float dedxll, float scatll, float avededxlast10cm, float avededxlast40cm, float trackstartgap, float gapdensity) const;
61  protected:
62  float InitTMVAPion() const;
63  };
64 
66  {
67  public:
69  float operator() (float dedxll, float scatll, float avededxlast10cm, float avededxlast40cm, float trackstartgap, float gapdensity) const;
70  protected:
71  float InitTMVAProton() const;
72  };
73 
75  {
76  public:
78  float operator() (float dedxll, float scatll, float avededxlast10cm, float avededxlast40cm, float trackstartgap, float gapdensity) const;
79  protected:
80  float InitTMVAGamma() const;
81  };
82 
83 
84  //const Var kPionID = Var(GetPionID()); // This Var will be used as cut kPionID > 0.36
85  //const Var kBestPionTrackIdx = Var(GetBestPionTrack());
86 
87 }//namespace
88 
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
float InitTMVAPion() const
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
caf::StandardRecord * sr
float InitTMVAGamma() const
float operator()(const caf::SRProxy *sr) const
float InitTMVAProton() const