Effective.hh
Go to the documentation of this file.
1 
5 #pragma once
6 
8 #include "boca/fastjet/Sort.hh"
9 
11 
12 namespace toppartner{
13 
14 namespace analysis{
15 
23 template<typename Tagger_>
24 class Effective : public TopPartner<Tagger_>
25 {
26 
27 protected:
28 
29  std::string Name() const override {
30  return "Naturalness-Effective-" + boca::Name(Settings::Collider()) + "-" + boca::units::Name(this->Mass()) + "-large-2-new";
31  }
32 
33  void SetFiles(Phase const& phase) override {
34  switch (phase.Tag()) {
35  case Tag::signal :
36  this->AddSignal(Process::TThh);
37  break;
38  case Tag::background :
44  break;
45  }
46  }
47 
48 private:
49 
50  bool PassPreCut(boca::Event const& event) const override {
51  if (CopyIfLepton(event.GenParticles()).empty()) return false;
52  auto leptons = SortedByPt(event.Leptons());
53  if (leptons.empty()) return false;
54  if (leptons.front().Pt() < Settings::LeptonMinPt()) return false;
55  return true;
56  }
57 
58 };
59 
60 }
61 
62 }
std::string Name() const override
Definition: Effective.hh:29
static Momentum LeptonMinPt()
Definition: Settings.cpp:128
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
void SetFiles(Phase const &phase) override
Definition: Effective.hh:33
Base class for the event Topology.
Definition: Event.hh:53
std::string Name(Energy const &energy)
Definition: ElectronVolt.cpp:34
void AddBackground(Process process)
Definition: TopPartner.hh:224
Top partner analysis.
Definition: Effective.hh:24
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
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