DAS  3.0
Das Analysis System
Ntupliser.cc File Reference
#include <cassert>
#include <cmath>
#include <filesystem>
#include <functional>
#include <regex>
#include <string>
#include "Ntupliser.h"
#include "Core/Objects/interface/Photon.h"
#include "Core/Objects/interface/Format.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include <boost/property_tree/json_parser.hpp>
#include <boost/exception/all.hpp>
+ Include dependency graph for Ntupliser.cc:

Functions

template<typename DAStype >
void Sort (vector< DAStype > *&collection)
 
template<>
void Sort (vector< DAS::FourVector > *&collection)
 
string DelLastDigits (string n)
 
 DEFINE_FWK_MODULE (Ntupliser)
 

Function Documentation

◆ DEFINE_FWK_MODULE()

DEFINE_FWK_MODULE ( Ntupliser  )

◆ DelLastDigits()

string DelLastDigits ( string  n)
443 {
444  while (isdigit(n.back()))
445  n.pop_back();
446  return n;
447 }

◆ Sort() [1/2]

void Sort ( vector< DAS::FourVector > *&  collection)
31 {
32  sort(collection->begin(), collection->end(),
33  [](DAS::FourVector &a, DAS::FourVector &b) { return a.Pt() > b.Pt(); } );
34 }

◆ Sort() [2/2]

void Sort ( vector< DAStype > *&  collection)
26 {
27  sort(collection->begin(), collection->end(),
28  [](DAStype &a, DAStype &b) { return a.p4.Pt() > b.p4.Pt(); } );
29 }
DAS::FourVector
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< float > > FourVector
Definition: PhysicsObject.h:15