CMS 3D CMS Logo

printScObjects.cc
Go to the documentation of this file.
2 
3 namespace l1ScoutingRun3 {
4 
5  void printMuon(const Muon& muon, std::ostream& outs) {
6  outs << " Pt [GeV/Hw]: " << ugmt::fPt(muon.hwPt()) << "/" << muon.hwPt() << "\n"
7  << " Eta [rad/Hw]: " << ugmt::fEta(muon.hwEta()) << "/" << muon.hwEta() << "\n"
8  << " Phi [rad/Hw]: " << ugmt::fPhi(muon.hwPhi()) << "/" << muon.hwPhi() << "\n"
9  << " Charge/valid: " << muon.hwCharge() << "/" << muon.hwChargeValid() << "\n"
10  << " PhiVtx [rad/Hw]: " << ugmt::fPhiAtVtx(muon.hwPhiAtVtx()) << "/" << muon.hwPhiAtVtx() << "\n"
11  << " EtaVtx [rad/Hw]: " << ugmt::fEtaAtVtx(muon.hwEtaAtVtx()) << "/" << muon.hwEtaAtVtx() << "\n"
12  << " Pt uncon[GeV/Hw]: " << ugmt::fPtUnconstrained(muon.hwPtUnconstrained()) << "/"
13  << muon.hwPtUnconstrained() << "\n"
14  << " Dxy: " << muon.hwDXY() << "\n"
15  << " Qual: " << muon.hwQual() << "\n"
16  << " TF index: " << muon.tfMuonIndex() << "\n";
17  }
18 
19  template <typename T>
20  void printCaloObject(const T& obj, std::ostream& outs) {
21  outs << " Et [GeV/Hw]: " << demux::fEt(obj.hwEt()) << "/" << obj.hwEt() << "\n"
22  << " Eta [rad/Hw]: " << demux::fEta(obj.hwEta()) << "/" << obj.hwEta() << "\n"
23  << " Phi [rad/Hw]: " << demux::fPhi(obj.hwPhi()) << "/" << obj.hwPhi() << "\n"
24  << " Iso [Hw]: " << obj.hwIso() << "\n";
25  }
26 
27  void printJet(const Jet& jet, std::ostream& outs) { printCaloObject<Jet>(jet, outs); }
28  void printEGamma(const EGamma& eGamma, std::ostream& outs) { printCaloObject<EGamma>(eGamma, outs); }
29  void printTau(const Tau& tau, std::ostream& outs) { printCaloObject<Tau>(tau, outs); }
30 
31  void printBxSums(const BxSums& sums, std::ostream& outs) {
32  outs << "Total ET\n"
33  << " Et [GeV/Hw]: " << demux::fEt(sums.hwTotalEt()) << "/" << sums.hwTotalEt() << "\n"
34  << "Total ETEm\n"
35  << " Et [GeV/Hw]: " << demux::fEt(sums.hwTotalEtEm()) << "/" << sums.hwTotalEtEm() << "\n"
36  << "Total HT\n"
37  << " Et [GeV/Hw]: " << demux::fEt(sums.hwTotalHt()) << "/" << sums.hwTotalHt() << "\n"
38  << "Missing ET\n"
39  << " Et [GeV/Hw] : " << demux::fEt(sums.hwMissEt()) << "/" << sums.hwMissEt() << "\n"
40  << " Phi [Rad/Hw]: " << demux::fPhi(sums.hwMissEtPhi()) << "/" << sums.hwMissEtPhi() << "\n"
41  << "Missing HT\n"
42  << " Et [GeV/Hw] : " << demux::fEt(sums.hwMissHt()) << "/" << sums.hwMissHt() << "\n"
43  << " Phi [Rad/Hw]: " << demux::fPhi(sums.hwMissHtPhi()) << "/" << sums.hwMissHtPhi() << "\n"
44  << "Missing ETHF\n"
45  << " Et [GeV/Hw] : " << demux::fEt(sums.hwMissEtHF()) << "/" << sums.hwMissEtHF() << "\n"
46  << " Phi [Rad/Hw]: " << demux::fPhi(sums.hwMissEtHFPhi()) << "/" << sums.hwMissEtHFPhi() << "\n"
47  << "Missing HTHF\n"
48  << " Et [GeV/Hw] : " << demux::fEt(sums.hwMissHtHF()) << "/" << sums.hwMissHtHF() << "\n"
49  << " Phi [Rad/Hw]: " << demux::fPhi(sums.hwMissHtHFPhi()) << "/" << sums.hwMissHtHFPhi() << "\n"
50  << "AsymEt\n"
51  << " Et [GeV/Hw] : " << demux::fEt(sums.hwAsymEt()) << "/" << sums.hwAsymEt() << "\n"
52  << "AsymHt\n"
53  << " Et [GeV/Hw] : " << demux::fEt(sums.hwAsymHt()) << "/" << sums.hwAsymHt() << "\n"
54  << "AsymEtHF\n"
55  << " Et [GeV/Hw] : " << demux::fEt(sums.hwAsymEtHF()) << "/" << sums.hwAsymEtHF() << "\n"
56  << "AsymHtHF\n"
57  << " Et [GeV/Hw] : " << demux::fEt(sums.hwAsymHtHF()) << "/" << sums.hwAsymHtHF() << "\n"
58  << "MinBiasHFP0\n"
59  << " Hw: " << sums.minBiasHFP0() << "\n"
60  << "MinBiasHFM0\n"
61  << " Hw: " << sums.minBiasHFM0() << "\n"
62  << "MinBiasHFP1\n"
63  << " Hw: " << sums.minBiasHFP1() << "\n"
64  << "MinBiasHFM1\n"
65  << " Hw: " << sums.minBiasHFM1() << "\n"
66  << "Centrality\n"
67  << " Hw: " << sums.centrality() << "\n"
68  << "Tower Count\n"
69  << " Hw: " << sums.towerCount() << "\n";
70  }
71 } // namespace l1ScoutingRun3
const int hwTotalEt() const
const int minBiasHFM0() const
const int hwAsymEt() const
void printCaloObject(const T &obj, std::ostream &outs=std::cout)
const int minBiasHFP0() const
const int minBiasHFM1() const
const int hwTotalHt() const
void printMuon(const Muon &muon, std::ostream &outs=std::cout)
float fEta(int hwEta)
Definition: conversion.h:30
const int minBiasHFP1() const
void printJet(const Jet &jet, std::ostream &outs=std::cout)
const int hwMissEt() const
float fEt(int hwEt)
Definition: conversion.h:29
void printEGamma(const EGamma &eGamma, std::ostream &outs=std::cout)
const int hwMissHtHF() const
void printBxSums(const BxSums &sums, std::ostream &outs=std::cout)
float fPtUnconstrained(int hwPtUnconstrained)
Definition: conversion.h:19
float fEtaAtVtx(int hwEtaAtVtx)
Definition: conversion.h:22
const int centrality() const
const int hwMissEtHFPhi() const
const int hwAsymHt() const
float fPhiAtVtx(int hwPhiAtVtx)
Definition: conversion.h:23
const int hwMissHt() const
const int hwAsymEtHF() const
Definition: Muon.py:1
Definition: Jet.py:1
const int hwAsymHtHF() const
const int hwMissEtHF() const
float fPhi(int hwPhi)
Definition: conversion.h:18
const int hwTotalEtEm() const
Definition: Tau.py:1
float fPhi(int hwPhi)
Definition: conversion.h:31
const int towerCount() const
void printTau(const Tau &tau, std::ostream &outs=std::cout)
float fPt(int hwPt)
Definition: conversion.h:16
const int hwMissHtPhi() const
const int hwMissEtPhi() const
const int hwMissHtHFPhi() const
long double T
float fEta(int hwEta)
Definition: conversion.h:17