DAS  3.0
Das Analysis System
common.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <cmath>
5 
6 namespace DAS {
7 
8 static const std::vector<double> binsY = {0., 0.25, .5, 0.75, 1., 1.25, 1.5, 1.75, 2., 2.25, 2.5, 2.75, 3., 3.25, 3.5, 3.75, 4., 4.25, 4.5, 4.75, 5., 5.25, 5.5, 5.75, 6., 6.25, 6.5, 6.75, 7., 7.25, 7.5, 7.75, 8., 8.25, 8.5, 8.75, 9., 9.25, 9.5};
9 static const std::vector<double> binsPhi = {0.,.1*M_PI, .2*M_PI, .3*M_PI, .4*M_PI, .5*M_PI, .6*M_PI, .7*M_PI, .8*M_PI, .9*M_PI, M_PI};
10 
11 } // end of DAS namespace
12 
13 namespace DAS::TPS {
14 
17 template<class Jet>
18 std::vector<Jet> PhaseSpaceSelection(const std::vector<Jet>& jets, float minpt) {
19  std::vector<Jet> tempjets;
20  for (const auto& jet : jets)
21  if (jet.CorrPt() > minpt && jet.p4.Eta() < 5.0)
22  tempjets.push_back(jet);
23  return tempjets;
24 }
25 
26 } // end of DAS::TPS namespace
DAS
Definition: applyBTagSF.cc:31
DAS::TPS
Definition: applyEventMixing.cc:31
DAS::MN::minpt
static const double minpt
Definition: getMNobservables.cc:39
Ntupliser_cfg.jets
string jets
Definition: Ntupliser_cfg.py:41
DAS::binsPhi
static const std::vector< double > binsPhi
Definition: common.h:9
DAS::TPS::PhaseSpaceSelection
std::vector< Jet > PhaseSpaceSelection(const std::vector< Jet > &jets, float minpt)
return Jets pass the phase space selection
Definition: common.h:18
DAS::binsY
static const std::vector< double > binsY
Definition: common.h:8