SubDom.hh
Go to the documentation of this file.
1 
5 #pragma once
6 
9 #include "boca/Settings.hh"
10 
12 
13 namespace toppartner
14 {
15 
16 namespace analysis
17 {
18 
26 template<typename Tagger_>
27 class SubDom : public TopPartner<Tagger_>
28 {
29 
30 protected:
31 
32  std::string Name() const override
33  {
34  return "Naturalness-SubDom-" + boca::Name(Settings::Collider()) + "-" + boca::units::Name(this->Mass()) + "-large-2";
35  }
36 
37  void SetFiles(Phase const &phase) override
38  {
39  switch (phase.Tag()) {
40  case Tag::signal :
41  this->AddSignal(Process::TTh);
42  break;
43  case Tag::background :
48  break;
49  }
50  }
51 
52  long ReadNumberMax() const override
53  {
54  INFO0;
55  return this->TrainNumberMax();
56  if (this->template TaggerIs<tagger::SignatureSubDom>() || this->template TaggerIs<standardmodel::tagger::Global>() || this->template TaggerIs<toppartner::tagger::EventSubDom>()) return 100000;
57  }
58 
59 private:
60 
61  bool PassPreCut(boca::Event const &event) const override
62  {
63  if (CopyIfLepton(event.GenParticles()).empty()) return false;
64  auto leptons = SortedByPt(event.Leptons());
65  if (leptons.empty()) return false;
66  if (leptons.front().Pt() < Settings::LeptonMinPt()) return false;
67  return true;
68  }
69 
70 };
71 
72 }
73 
74 }
long ReadNumberMax() const override
Definition: SubDom.hh:52
void SetFiles(Phase const &phase) override
Definition: SubDom.hh:37
static Momentum LeptonMinPt()
Definition: Settings.cpp:128
Top partner analysis.
Definition: SubDom.hh:27
Fermionic top partner.
Definition: Complete.cpp:6
Top partner analysis.
Definition: TopPartner.hh:62
static boca::Collider Collider()
Definition: Settings.cpp:45
void AddSignal(Process process)
Definition: TopPartner.hh:219
boca::Mass Mass() const
Definition: TopPartner.hh:73
Base class for the event Topology.
Definition: Event.hh:53
std::string Name(Energy const &energy)
Definition: ElectronVolt.cpp:34
#define INFO0
Definition: DEBUG_MACROS.hh:98
void AddBackground(Process process)
Definition: TopPartner.hh:224
std::vector< Particle > CopyIfLepton(std::vector< Particle > const &particles)
Definition: Particles.cpp:142
std::string Name(Output output)
Definition: Base.cpp:23
std::vector< Lepton > Leptons() const
Electrons and muons.
Definition: Event.cpp:82
std::vector< Multiplet > SortedByPt(std::vector< Multiplet > multiplets)
Definition: Sort.hh:53
std::string Name() const override
Definition: SubDom.hh:32
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
std::vector< Particle > GenParticles() const
Generator level Particles.
Definition: Event.cpp:56
long TrainNumberMax() const override
Definition: TopPartner.hh:87