DAS  3.0
Das Analysis System
MjjYmax.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <list>
4 #include <vector>
5 #include <optional>
6 #include <functional>
7 
8 #include <TUnfoldBinning.h>
9 #include <TH1.h>
10 #include <TH2.h>
11 
12 #if !defined(__CLING__) || defined(__ROOTCLING__)
17 #endif
18 
20 
21 static const std::vector<double> Mjj_edges { 200, 249, 306, 372, 449, 539, 641,
22  756, 887, 1029, 1187, 1361, 1556, 1769,
23  2008, 2273, 2572, 2915, 3306, 3754, 4244,
24  4805, 5374, 6094, 6908, 7861, 8929, 10050 },
25  ymax_edges{0., 0.5, 1.0, 1.5, 2.0, 2.5, 3.0};
26 
27 static const size_t nYmaxBins = ymax_edges.size() - 1;
28 
29 static const auto minMjj = Mjj_edges.front(),
30  maxMjj = Mjj_edges.back(),
31  maxy = ymax_edges.back();
32 
33 #if !defined(__CLING__) || defined(__ROOTCLING__)
34 struct MjjYmax final : public Observable {
35 
38  MjjYmax ();
39 
42  std::unique_ptr<Filler> getFiller (Darwin::Tools::Flow&) const override;
43 
48  void setLmatrix (const std::unique_ptr<TH1>&, std::unique_ptr<TH2>&) override;
49 };
50 
51 struct MjjYmaxFiller final : public Filler {
53 
54  std::vector<GenJet> * genJets;
55  std::vector<RecJet> * recJets;
58 
62 
65  std::list<int> fillRec (DistVariation&) override;
66 
67  std::optional<bool> matched;
68 
71  void match () override;
72 
75  void fillMC (DistVariation&) override;
76 };
77 #endif
78 
79 } // end of DAS::Unfolding::DijetMass namespace
DAS::Unfolding::DijetMass::MjjYmax::MjjYmax
MjjYmax()
Constructor.
Definition: MjjYmax.cc:134
DAS::Unfolding::DijetMass::MjjYmaxFiller
Definition: MjjYmax.h:51
Darwin::Tools::Flow
User-friendly handling of input and output n-tuples.
Definition: Flow.h:78
DAS::Unfolding::DijetMass::MjjYmaxFiller::matched
std::optional< bool > matched
Definition: MjjYmax.h:67
DAS::Unfolding::DijetMass::MjjYmaxFiller::fillRec
std::list< int > fillRec(DistVariation &) override
See Observable::fillRec
Definition: MjjYmax.cc:85
DAS::Unfolding::DijetMass::MjjYmaxFiller::rEv
RecEvent * rEv
Definition: MjjYmax.h:57
DAS::RecEvent
Definition: Event.h:52
DAS::Unfolding::DijetMass::MjjYmaxFiller::fillMC
void fillMC(DistVariation &) override
See Observable::fillMC
Definition: MjjYmax.cc:103
Event.h
DAS::Unfolding::DijetMass::MjjYmaxFiller::obs
MjjYmax obs
Backreference to the observable.
Definition: MjjYmax.h:52
Jet.h
DAS::Unfolding::DijetMass::MjjYmaxFiller::MjjYmaxFiller
MjjYmaxFiller(const MjjYmax &, Darwin::Tools::Flow &)
Constructor.
Definition: MjjYmax.cc:18
DAS::Unfolding::DijetMass::ymax_edges
static const std::vector< double > ymax_edges
Definition: MjjYmax.h:25
DAS::Unfolding::DistVariation
Definition: DistVariation.h:25
DAS::Unfolding::Filler
Definition: Observable.h:31
DAS::Unfolding::DijetMass::MjjYmax::getFiller
std::unique_ptr< Filler > getFiller(Darwin::Tools::Flow &) const override
Constructs a filler for the observable.
Definition: MjjYmax.cc:158
DAS::Unfolding::DijetMass::MjjYmaxFiller::match
void match() override
Match the two pairs of leading jets (if any) and set matched member.
Definition: MjjYmax.cc:27
DAS::Unfolding::DijetMass::MjjYmax::setLmatrix
void setLmatrix(const std::unique_ptr< TH1 > &, std::unique_ptr< TH2 > &) override
Definition: MjjYmax.cc:163
DAS::Unfolding::DijetMass::MjjYmaxFiller::genJets
std::vector< GenJet > * genJets
Definition: MjjYmax.h:54
DAS::Unfolding::DijetMass::MjjYmaxFiller::recJets
std::vector< RecJet > * recJets
Definition: MjjYmax.h:55
DAS::Unfolding::DijetMass::MjjYmaxFiller::gEv
GenEvent * gEv
Definition: MjjYmax.h:56
Observable.h
Di.h
DAS::Unfolding::DijetMass::maxy
static const auto maxy
Definition: MjjYmax.h:31
DAS::Unfolding::DijetMass::maxMjj
static const auto maxMjj
Definition: MjjYmax.h:30
DAS::Unfolding::DijetMass::Mjj_edges
static const std::vector< double > Mjj_edges
Definition: MjjYmax.h:21
DAS::Unfolding::DijetMass::nYmaxBins
static const size_t nYmaxBins
Definition: MjjYmax.h:27
DAS::Unfolding::Observable
Definition: Observable.h:117
DAS::Unfolding::DijetMass
Definition: MjjYmax.h:19
DAS::Unfolding::DijetMass::minMjj
static const auto minMjj
Definition: MjjYmax.h:29
DAS::Unfolding::DijetMass::MjjYmax
Definition: MjjYmax.h:34
DAS::GenEvent
Definition: Event.h:38