Analysis.hh
Go to the documentation of this file.
1 #pragma once
2 
3 // include the Analysis base class
5 
11 namespace simple
12 {
13 
14 // all Analyses inherit from the boca::Analysis base class
15 // the base class expects an Tagger class as template parameter
16 template<typename Tagger_>
17 class Analysis : public boca::Analysis<Tagger_>
18 {
19 
20 public:
21  // override some functions of the base class
22 
23  // Set Files used in the analysis
24  void SetFiles(boca::Phase const& phase) override
25  {
26  switch (phase.Tag()) {
27  case boca::Tag::signal :
28  // add a signal file by passing its file and process name
29  this->AddSignal("hh_14TeV-500GeV", "h");
30  break;
32  // add a background file by passing its file and process name
33  this->AddBackground("bb_14TeV-500GeV", "bb");
34  break;
35  }
36  }
37 
38  // define how many events are supposed to beeing used
39  long TrainNumberMax() const override
40  {
41  return 1000;
42  }
43 
44  // define the analysis name
45  std::string Name() const override
46  {
47  return "SimpleAnalysis";
48  }
49 
50 };
51 
52 }
void SetFiles(boca::Phase const &phase) override
Definition: Analysis.hh:24
void AddSignal(std::string const &file_name, latex::String const &latex_name="", boca::Crosssection const &crosssection=0_b, boca::Mass const &mass=0_eV, std::string const &path="")
Definition: Base.cpp:97
std::string Name() const override
Definition: Analysis.hh:45
long TrainNumberMax() const override
Definition: Analysis.hh:39
Example.
Definition: Analysis.hh:11
provides main analysis loops and logic.
Definition: Analysis.hh:29
void AddBackground(std::string const &file_name, latex::String const &latex_name="", boca::Crosssection const &crosssection=0_b, boca::Mass const &mass=0_eV, std::string const &path="")
Definition: Base.cpp:105
The phases of the multivariant tagging process.
Definition: Phase.hh:16
boca::Tag Tag() const
The Tag of the multivariant tagging process.
Definition: Phase.cpp:18
Definition: Analysis.hh:17