Delphes.hh
Go to the documentation of this file.
1 
4 #pragma once
5 
7 #include "boca/event/Event.hh"
8 
9 namespace boca
10 {
11 
16 namespace delphes
17 {
18 
23 class Event : public boca::Event
24 {
25 
26 public:
27 
28  using boca::Event::Event;
29 
30 protected:
31 
32  std::vector<Jet> GetJets() const override;
33 
34  boca::MissingEt GetMissingEt() const override;
35 
36  Momentum GetScalarHt() const override;
37 
38  std::vector<Jet> GetEFlow(JetDetail jet_detail) const override;
39 
40  std::vector<Lepton> GetElectrons() const override;
41 
42  std::vector<Lepton> GetMuons() const override;
43 
44  std::vector<Photon> GetPhotons() const override;
45 
46  std::vector<Particle> GetParticles(Status max_status) const override;
47 
48 private:
49 
50  std::vector<Jet> EFlowJets(JetDetail jet_detail) const;
51 
52  std::vector<Jet> DelphesJets(JetDetail jet_detail) const;
53 
54  std::vector<Jet> GenJets() const;
55 
56  bool IsLepton(TObject const& object, JetDetail jet_detail) const;
57 
58  boca::Family Family(TObject & object) const;
59 
60  std::vector<Jet> EFlowTrack(JetDetail jet_detail) const;
61 
62  std::vector<Jet> EFlowPhoton(JetDetail jet_detail) const;
63 
64  std::vector<Jet> EFlowHadron(JetDetail jet_detail) const;
65 
66  std::vector<Jet> EFlowMuon(JetDetail jet_detail) const;
67 
68  boost::optional<Jet> StructuredJet(::delphes::Jet const& delphes_jet, JetDetail jet_detail) const;
69 
70  boost::optional<Jet> ConstituentJet(TObject& object, JetDetail jet_detail) const;
71 
72  boost::optional<Jet> ConstituentGenParticle(TObject& object, JetDetail jet_detail) const;
73 
74  boost::optional<Jet> ConstituentTrack(TObject& object, JetDetail jet_detail) const;
75 
76  boost::optional<Jet> ConstituentTower(TObject& object, JetDetail jet_detail) const;
77 
78  boost::optional<Jet> ConstituentMuon(TObject& object, JetDetail jet_detail) const;
79 
80  std::vector<TObject*> LeptonsObjects() const;
81 
82  Mutable<std::vector<TObject*>> lepton_objects_;
83 
84 };
85 
86 }
87 
88 }
89 
90 
Jet.
Definition: Jet.hh:15
std::vector< Jet > GetJets() const override
Definition: Delphes.cpp:94
std::vector< Photon > GetPhotons() const override
Definition: Delphes.cpp:74
::Jet Jet
Definition: TypeDef.hh:26
Definition: Family.hh:38
Lazy caching of variables.
Definition: Mutable.hh:19
std::vector< Lepton > GetMuons() const override
Definition: Delphes.cpp:66
Delphes events.
Definition: Delphes.hh:23
Event(boca::TreeReader const &tree_reader)
Constructor.
Definition: Event.cpp:50
Base class for the event Topology.
Definition: Event.hh:53
JetDetail
Definition: Event.hh:16
Status
Definition: Event.hh:39
Momentum GetScalarHt() const override
Definition: Delphes.cpp:88
Delphes
Definition: TypeDef.hh:11
std::vector< Particle > GetParticles(Status max_status) const override
Definition: Delphes.cpp:44
Boosted Collider Analysis.
Definition: Analysis.hh:15
Energy Momentum
Momentum measured in electronvolt.
Definition: ElectronVolt.hh:68
boca::MissingEt GetMissingEt() const override
Definition: Delphes.cpp:82
std::vector< Lepton > GetElectrons() const override
Definition: Delphes.cpp:58
std::vector< Jet > GetEFlow(JetDetail jet_detail) const override
Definition: Delphes.cpp:241