Tagger.hh
Go to the documentation of this file.
1 #pragma once
2 
3 // include the Tagger base class
4 #include "boca/tagger/Tagger.hh"
5 
6 // include the simple Observable definition
7 #include "simple/Observables.hh"
8 // include the simple Branch used by TMVA
9 #include "simple/Branch.hh"
10 
11 namespace simple
12 {
13 
14 // each Tagger class must inherit from the boca::Tagger base class
15 // the Base class expect a set of Observables and a root Branch definition as template paramter
16 class Tagger : public boca::Tagger<Observables, Branch>
17 {
18 
19 public:
20 
21  // The first phase during a multivariant analysis is called Training phase
22  int Train(boca::Event const &event, boca::PreCuts const &pre_cuts, boca::Tag tag) override;
23 
24  // During the second Reading phase we retrieve objects of the Observable set
25  std::vector<Observables> Multiplets(boca::Event const &event, boca::PreCuts const &pre_cuts, TMVA::Reader const &reader) override;
26 
27  // Name of the Tagger
28  std::string Name() const override;
29 
30 };
31 
32 }
Definition: PreCuts.hh:14
std::vector< Observables > Multiplets(boca::Event const &event, boca::PreCuts const &pre_cuts, TMVA::Reader const &reader) override
Definition: Tagger.cpp:16
Tag
The Tag distinguishes between signal and background events.
Definition: Tag.hh:14
Base class for the event Topology.
Definition: Event.hh:53
Example.
Definition: Analysis.hh:11
std::string Name() const override
Definition: Tagger.cpp:26
Tagger base class using Branch template
Definition: Tagger.hh:23
Definition: Tagger.hh:16
int Train(boca::Event const &event, boca::PreCuts const &pre_cuts, boca::Tag tag) override
Definition: Tagger.cpp:6