DAS  3.0
Das Analysis System
Di.h File Reference
#include <cmath>
#include <algorithm>
#include <iostream>
#include <type_traits>
#include "Core/Objects/interface/Jet.h"
#include "Core/Objects/interface/Lepton.h"
#include "Core/Objects/interface/Variation.h"
#include "Math/VectorUtil.h"
+ Include dependency graph for Di.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Di< Obj1, Obj2 >
 

Namespaces

 DAS
 

Typedefs

using GenDijet = Di< GenJet, GenJet >
 
using GenDimuon = Di< GenMuon, GenMuon >
 
using GenZJet = Di< GenDimuon, GenJet >
 
using RecDijet = Di< RecJet, RecJet >
 
using RecDimuon = Di< RecMuon, RecMuon >
 
using RecZJet = Di< RecDimuon, RecJet >
 

Functions

template<typename Obj1 , typename Obj2 , class = typename std::enable_if_t<std::is_base_of_v<DAS::AbstractPhysicsObject, Obj1>>, class = typename std::enable_if_t<std::is_base_of_v<DAS::AbstractPhysicsObject, Obj2>>>
auto operator+ (Obj1 &o1, Obj2 &o2)
 
template<typename Obj1 , typename Obj2 >
std::ostream & operator<< (std::ostream &s, const DAS::Di< Obj1, Obj2 > &di)
 

Function Documentation

◆ operator+()

auto operator+ ( Obj1 &  o1,
Obj2 &  o2 
)

Generic overload of operator+ to define composite objects as follows:

RecDimuon recdimuon = genmuons.at(0) + genmuons.at(1);
96 {
97  return DAS::Di<Obj1,Obj2>{&o1,&o2};
98 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const DAS::Di< Obj1, Obj2 > &  di 
)
102 {
103  if (di)
104  return s << '[' << *di.first << ", " << *di.second << "] = " << di.CorrP4();
105  else
106  return s << "\x1B[33minvalid system\x1B[0m";
107 }
reczjet
DAS::RecZJet reczjet
Definition: classes.h:36
Ntupliser_cfg.genjets
genjets
Definition: Ntupliser_cfg.py:272
recdimuon
DAS::RecDimuon recdimuon
Definition: classes.h:35
DAS::Di
Definition: Di.h:33
DAS::RecZJet
Di< RecDimuon, RecJet > RecZJet
Definition: Di.h:82
DAS::Di::CorrP4
FourVector CorrP4(const Uncertainties::Variation &v=Uncertainties::nominal) const override
Definition: Di.h:46
DAS::RecDimuon
Di< RecMuon, RecMuon > RecDimuon
Definition: Di.h:81