|  | DAS
    3.0
    Das Analysis System | 
 
 
 
Go to the documentation of this file.
   68     ObsMiniJets ( 
const std::vector<DAS::RecJet> & recJets );
 
   69     ObsMiniJets ( 
const std::vector<DAS::GenJet> & genJets );
 
   94 template<
typename Jet>
 
   95 std::optional<std::pair<Jet,Jet>> 
GetMNJet (std::vector<Jet> 
jets, std::function<
bool(Jet&)> ptcut=[](Jet& jet) {
return jet.p4.Pt() < 35 ;});
 
   97 template<
typename Jet>
 
   98 std::optional<std::pair<Jet, Jet>> 
GetMNJet (std::vector <Jet> 
jets, std::function<
bool(Jet&)> ptcut)
 
  101     if (
jets.size() < 2) 
return std::nullopt;
 
  102     auto result = minmax_element( 
jets.begin(), 
jets.end() , [](Jet& j1, Jet& j2)
 
  103             {return j1.p4.Eta() > j2.p4.Eta();} );  
 
  105     if (result.first->p4.Eta() <= 0 || result.second->p4.Eta() >= 0) 
return std::nullopt;
 
  106     return std::make_optional<std::pair<Jet,Jet>>(*result.first, *result.second);
 
  124 template<
typename Jet>
 
  125 std::vector<Jet> 
GetMiniJets (std::vector<Jet> 
jets, 
const std::pair<Jet,Jet>& MNJets, std::function<
bool(Jet&)> ptcut=[](Jet& jet) {
return jet.p4.Pt()<20;});
 
  127 template<
typename Jet>
 
  128 std::vector<Jet> 
GetMiniJets (std::vector<Jet> 
jets, 
const std::pair<Jet,Jet>& MNJets, std::function<
bool(Jet&)> ptcut)
 
  132                [MNJets](Jet& jet){return jet.p4.Eta() >= MNJets.first.p4.Eta();}), 
jets.end());
 
  135                [MNJets](Jet& jet){return jet.p4.Eta() <= MNJets.second.p4.Eta();}), 
jets.end());
 
  137     std::sort( 
jets.begin(), 
jets.end() , [](Jet& j1, Jet& j2)
 
  138             {return j1.p4.Eta() > j2.p4.Eta();} );  
 
  
 
const float weight
Definition: MuellerNavelet.h:77
float PtFWD() const
Definition: MuellerNavelet.cc:43
float PtAve() const
Definition: MuellerNavelet.cc:38
const float weight
product of weightFWD and weightBWD
Definition: MuellerNavelet.h:46
float RPtExpDEta() const
Definition: MuellerNavelet.cc:126
float DEtaAveMini() const
Definition: MuellerNavelet.cc:108
float CosDPhi(int n) const
Definition: MuellerNavelet.cc:71
string jets
Definition: Ntupliser_cfg.py:41
class GenJet
Definition: Jet.h:9
const float weightBWD
weight of the most backward jet
Definition: MuellerNavelet.h:45
size_t size() const
Definition: MuellerNavelet.cc:76
float PtRatMN() const
Definition: MuellerNavelet.cc:29
std::optional< std::pair< Jet, Jet > > GetMNJet(std::vector< Jet > jets, std::function< bool(Jet &)> ptcut=[](Jet &jet) {return jet.p4.Pt()< 35 ;})
Definition: MuellerNavelet.h:98
Definition: getMNobservables.cc:36
Obs2Jets(const DAS::RecJet &Fwd, const DAS::RecJet &Bwd)
Definition: MuellerNavelet.cc:14
float DEta() const
Definition: MuellerNavelet.cc:53
std::vector< DAS::FourVector > LeadingJets
Definition: MuellerNavelet.h:49
float PtBWD() const
Definition: MuellerNavelet.cc:48
float REtaAveMini() const
Definition: MuellerNavelet.cc:117
ObsMiniJets(const std::vector< DAS::RecJet > &recJets)
Definition: MuellerNavelet.cc:78
Definition: MuellerNavelet.h:66
size_t size() const
Definition: MuellerNavelet.cc:141
float DPhi() const
Definition: MuellerNavelet.cc:60
float PtAveMini() const
Definition: MuellerNavelet.cc:100
const float weightFWD
weight of the most forward jet
Definition: MuellerNavelet.h:44
Definition: MuellerNavelet.h:29
std::vector< Jet > GetMiniJets(std::vector< Jet > jets, const std::pair< Jet, Jet > &MNJets, std::function< bool(Jet &)> ptcut=[](Jet &jet) {return jet.p4.Pt()< 20;})
Definition: MuellerNavelet.h:128
std::vector< DAS::FourVector > MiniJets
The size should be >1.
Definition: MuellerNavelet.h:80