CMS 3D CMS Logo

Namespaces | Classes | Typedefs | Functions
l1ScoutingRun3 Namespace Reference

Namespaces

 bmtf
 
 demux
 
 ugmt
 

Classes

class  BxSums
 
class  CaloObject
 
class  EGamma
 
struct  header_masks
 
struct  header_shifts
 
class  Jet
 
class  Muon
 
class  Tau
 

Typedefs

typedef OrbitCollection< BxSumsBxSumsOrbitCollection
 
typedef OrbitCollection< EGammaEGammaOrbitCollection
 
typedef OrbitCollection< JetJetOrbitCollection
 
typedef OrbitCollection< MuonMuonOrbitCollection
 
typedef OrbitCollection< TauTauOrbitCollection
 

Functions

float _setPhiRange (float phi)
 
l1t::EGamma getL1TEGamma (const EGamma &eGamma)
 
l1t::EtSum getL1TEtSum (const BxSums &sums, l1t::EtSum::EtSumType)
 
l1t::Jet getL1TJet (const Jet &jet)
 
l1t::Muon getL1TMuon (const Muon &muon)
 
l1t::Tau getL1TTau (const Tau &scTau)
 
void printBxSums (const BxSums &sums, std::ostream &outs=std::cout)
 
template<typename T >
void printCaloObject (const T &obj, std::ostream &outs=std::cout)
 
void printEGamma (const EGamma &eGamma, std::ostream &outs=std::cout)
 
void printJet (const Jet &jet, std::ostream &outs=std::cout)
 
void printMuon (const Muon &muon, std::ostream &outs=std::cout)
 
void printTau (const Tau &tau, std::ostream &outs=std::cout)
 

Typedef Documentation

◆ BxSumsOrbitCollection

Definition at line 195 of file L1ScoutingCalo.h.

◆ EGammaOrbitCollection

Definition at line 193 of file L1ScoutingCalo.h.

◆ JetOrbitCollection

Definition at line 192 of file L1ScoutingCalo.h.

◆ MuonOrbitCollection

Definition at line 91 of file L1ScoutingMuon.h.

◆ TauOrbitCollection

Definition at line 194 of file L1ScoutingCalo.h.

Function Documentation

◆ _setPhiRange()

float l1ScoutingRun3::_setPhiRange ( float  phi)
inline

Definition at line 9 of file conversion.h.

References M_PI.

Referenced by l1ScoutingRun3::ugmt::fPhi(), l1ScoutingRun3::demux::fPhi(), and l1ScoutingRun3::ugmt::fPhiAtVtx().

9  {
10  phi = phi >= M_PI ? phi - 2. * M_PI : phi;
11  return phi;
12  }
#define M_PI

◆ getL1TEGamma()

l1t::EGamma l1ScoutingRun3::getL1TEGamma ( const EGamma eGamma)

Definition at line 40 of file convertToL1TFormat.cc.

References l1ScoutingRun3::demux::fEt(), l1ScoutingRun3::demux::fEta(), l1ScoutingRun3::demux::fPhi(), l1ScoutingRun3::CaloObject::hwEt(), l1ScoutingRun3::CaloObject::hwEta(), l1ScoutingRun3::CaloObject::hwIso(), and l1ScoutingRun3::CaloObject::hwPhi().

40  {
42  demux::fEt(eGamma.hwEt()), demux::fEta(eGamma.hwEta()), demux::fPhi(eGamma.hwPhi()), 0.),
43  eGamma.hwEt(),
44  eGamma.hwEta(),
45  eGamma.hwPhi(),
46  0,
47  eGamma.hwIso());
48  }
float fEt(int hwEt)
Definition: conversion.h:29
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
float fPhi(int hwPhi)
Definition: conversion.h:18
float fEta(int hwEta)
Definition: conversion.h:17

◆ getL1TEtSum()

l1t::EtSum l1ScoutingRun3::getL1TEtSum ( const BxSums sums,
l1t::EtSum::EtSumType  sumType 
)

Definition at line 60 of file convertToL1TFormat.cc.

References l1ScoutingRun3::BxSums::centrality(), l1ScoutingRun3::demux::fEt(), l1ScoutingRun3::demux::fPhi(), l1ScoutingRun3::BxSums::hwAsymEt(), l1ScoutingRun3::BxSums::hwAsymEtHF(), l1ScoutingRun3::BxSums::hwAsymHt(), l1ScoutingRun3::BxSums::hwAsymHtHF(), l1ScoutingRun3::BxSums::hwMissEt(), l1ScoutingRun3::BxSums::hwMissEtHF(), l1ScoutingRun3::BxSums::hwMissEtHFPhi(), l1ScoutingRun3::BxSums::hwMissEtPhi(), l1ScoutingRun3::BxSums::hwMissHt(), l1ScoutingRun3::BxSums::hwMissHtHF(), l1ScoutingRun3::BxSums::hwMissHtHFPhi(), l1ScoutingRun3::BxSums::hwMissHtPhi(), l1ScoutingRun3::BxSums::hwTotalEt(), l1ScoutingRun3::BxSums::hwTotalEtEm(), l1ScoutingRun3::BxSums::hwTotalHt(), l1t::EtSum::kAsymEt, l1t::EtSum::kAsymEtHF, l1t::EtSum::kAsymHt, l1t::EtSum::kAsymHtHF, l1t::EtSum::kCentrality, l1t::EtSum::kMinBiasHFM0, l1t::EtSum::kMinBiasHFM1, l1t::EtSum::kMinBiasHFP0, l1t::EtSum::kMinBiasHFP1, l1t::EtSum::kMissingEt, l1t::EtSum::kMissingEtHF, l1t::EtSum::kMissingHt, l1t::EtSum::kMissingHtHF, l1t::EtSum::kTotalEt, l1t::EtSum::kTotalEtEm, l1t::EtSum::kTotalHt, l1t::EtSum::kTowerCount, l1t::EtSum::kUninitialized, l1ScoutingRun3::BxSums::minBiasHFM0(), l1ScoutingRun3::BxSums::minBiasHFM1(), l1ScoutingRun3::BxSums::minBiasHFP0(), l1ScoutingRun3::BxSums::minBiasHFP1(), and l1ScoutingRun3::BxSums::towerCount().

60  {
61  switch (sumType) {
63  return l1t::EtSum(
64  math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwTotalEt()), 0., 0., 0.), sumType, sums.hwTotalEt(), 0, 0, 0);
66  return l1t::EtSum(math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwTotalEtEm()), 0., 0., 0.),
67  sumType,
68  sums.hwTotalEtEm(),
69  0,
70  0,
71  0);
73  return l1t::EtSum(
74  math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwTotalHt()), 0., 0., 0.), sumType, sums.hwTotalHt(), 0, 0, 0);
76  return l1t::EtSum(
77  math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwMissEt()), 0., demux::fPhi(sums.hwMissEtPhi()), 0.),
78  sumType,
79  sums.hwMissEt(),
80  0,
81  sums.hwMissEtPhi(),
82  0);
84  return l1t::EtSum(
85  math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwMissHt()), 0., demux::fPhi(sums.hwMissHtPhi()), 0.),
86  sumType,
87  sums.hwMissHt(),
88  0,
89  sums.hwMissHtPhi(),
90  0);
92  return l1t::EtSum(
93  math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwMissEtHF()), 0., demux::fPhi(sums.hwMissEtHFPhi()), 0.),
94  sumType,
95  sums.hwMissEtHF(),
96  0,
97  sums.hwMissEtHFPhi(),
98  0);
100  return l1t::EtSum(
101  math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwMissHtHF()), 0., demux::fPhi(sums.hwMissHtHFPhi()), 0.),
102  sumType,
103  sums.hwMissHtHF(),
104  0,
105  sums.hwMissHtHFPhi(),
106  0);
107  case l1t::EtSum::kAsymEt:
108  return l1t::EtSum(
109  math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwAsymEt()), 0., 0., 0.), sumType, sums.hwAsymEt(), 0, 0, 0);
110  case l1t::EtSum::kAsymHt:
111  return l1t::EtSum(
112  math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwAsymHt()), 0., 0., 0.), sumType, sums.hwAsymHt(), 0, 0, 0);
114  return l1t::EtSum(math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwAsymEtHF()), 0., 0., 0.),
115  sumType,
116  sums.hwAsymEtHF(),
117  0,
118  0,
119  0);
121  return l1t::EtSum(math::PtEtaPhiMLorentzVector(demux::fEt(sums.hwAsymHtHF()), 0., 0., 0.),
122  sumType,
123  sums.hwAsymHtHF(),
124  0,
125  0,
126  0);
128  return l1t::EtSum(math::PtEtaPhiMLorentzVector(0., 0., 0., 0.), sumType, sums.minBiasHFP0(), 0, 0, 0);
130  return l1t::EtSum(math::PtEtaPhiMLorentzVector(0., 0., 0., 0.), sumType, sums.minBiasHFP1(), 0, 0, 0);
132  return l1t::EtSum(math::PtEtaPhiMLorentzVector(0., 0., 0., 0.), sumType, sums.minBiasHFM0(), 0, 0, 0);
134  return l1t::EtSum(math::PtEtaPhiMLorentzVector(0., 0., 0., 0.), sumType, sums.minBiasHFM1(), 0, 0, 0);
136  return l1t::EtSum(math::PtEtaPhiMLorentzVector(0., 0., 0., 0.), sumType, sums.centrality(), 0, 0, 0);
138  return l1t::EtSum(math::PtEtaPhiMLorentzVector(0., 0., 0., 0.), sumType, sums.towerCount(), 0, 0, 0);
139  default:
140  return l1t::EtSum(math::PtEtaPhiMLorentzVector(0., 0., 0., 0.), l1t::EtSum::kUninitialized, 0, 0, 0, 0);
141  }
142  }
float fEt(int hwEt)
Definition: conversion.h:29
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
float fPhi(int hwPhi)
Definition: conversion.h:18

◆ getL1TJet()

l1t::Jet l1ScoutingRun3::getL1TJet ( const Jet jet)

Definition at line 31 of file convertToL1TFormat.cc.

References l1ScoutingRun3::demux::fEt(), l1ScoutingRun3::demux::fEta(), l1ScoutingRun3::demux::fPhi(), L1TRate_cfi::Jet, and metsig::jet.

31  {
32  return l1t::Jet(
33  math::PtEtaPhiMLorentzVector(demux::fEt(jet.hwEt()), demux::fEta(jet.hwEta()), demux::fPhi(jet.hwPhi()), 0.),
34  jet.hwEt(),
35  jet.hwEta(),
36  jet.hwPhi(),
37  jet.hwIso());
38  }
float fEt(int hwEt)
Definition: conversion.h:29
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
float fPhi(int hwPhi)
Definition: conversion.h:18
float fEta(int hwEta)
Definition: conversion.h:17

◆ getL1TMuon()

l1t::Muon l1ScoutingRun3::getL1TMuon ( const Muon muon)

Definition at line 5 of file convertToL1TFormat.cc.

References l1ScoutingRun3::ugmt::fEta(), l1ScoutingRun3::ugmt::fEtaAtVtx(), l1ScoutingRun3::ugmt::fPhi(), l1ScoutingRun3::ugmt::fPhiAtVtx(), l1ScoutingRun3::ugmt::fPt(), and l1ScoutingRun3::ugmt::fPtUnconstrained().

5  {
6  return l1t::Muon(
8  muon.hwPt(),
9  muon.hwEta(),
10  muon.hwPhi(),
11  muon.hwQual(),
12  muon.hwCharge(),
13  muon.hwChargeValid(),
14  0,
15  muon.tfMuonIndex(),
16  0,
17  false,
18  0,
19  0,
20  0,
21  0,
22  muon.hwEtaAtVtx(),
23  muon.hwPhiAtVtx(),
24  ugmt::fEtaAtVtx(muon.hwEtaAtVtx()),
25  ugmt::fPhiAtVtx(muon.hwPhiAtVtx()),
26  muon.hwPtUnconstrained(),
27  ugmt::fPtUnconstrained(muon.hwPtUnconstrained()),
28  muon.hwDXY());
29  }
float fPtUnconstrained(int hwPtUnconstrained)
Definition: conversion.h:19
float fEtaAtVtx(int hwEtaAtVtx)
Definition: conversion.h:22
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
float fPhiAtVtx(int hwPhiAtVtx)
Definition: conversion.h:23
float fPhi(int hwPhi)
Definition: conversion.h:18
Definition: Muon.h:21
float fPt(int hwPt)
Definition: conversion.h:16
float fEta(int hwEta)
Definition: conversion.h:17

◆ getL1TTau()

l1t::Tau l1ScoutingRun3::getL1TTau ( const Tau scTau)

Definition at line 50 of file convertToL1TFormat.cc.

References l1ScoutingRun3::demux::fEt(), l1ScoutingRun3::demux::fEta(), l1ScoutingRun3::demux::fPhi(), and L1TRate_Offline_cfi::Tau.

50  {
51  return l1t::Tau(
52  math::PtEtaPhiMLorentzVector(demux::fEt(tau.hwEt()), demux::fEta(tau.hwEta()), demux::fPhi(tau.hwPhi()), 0.),
53  tau.hwEt(),
54  tau.hwEta(),
55  tau.hwPhi(),
56  0,
57  tau.hwIso());
58  }
float fEt(int hwEt)
Definition: conversion.h:29
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
float fPhi(int hwPhi)
Definition: conversion.h:18
float fEta(int hwEta)
Definition: conversion.h:17

◆ printBxSums()

void l1ScoutingRun3::printBxSums ( const BxSums sums,
std::ostream &  outs = std::cout 
)

Definition at line 31 of file printScObjects.cc.

References l1ScoutingRun3::BxSums::centrality(), l1ScoutingRun3::demux::fEt(), l1ScoutingRun3::demux::fPhi(), l1ScoutingRun3::BxSums::hwAsymEt(), l1ScoutingRun3::BxSums::hwAsymEtHF(), l1ScoutingRun3::BxSums::hwAsymHt(), l1ScoutingRun3::BxSums::hwAsymHtHF(), l1ScoutingRun3::BxSums::hwMissEt(), l1ScoutingRun3::BxSums::hwMissEtHF(), l1ScoutingRun3::BxSums::hwMissEtHFPhi(), l1ScoutingRun3::BxSums::hwMissEtPhi(), l1ScoutingRun3::BxSums::hwMissHt(), l1ScoutingRun3::BxSums::hwMissHtHF(), l1ScoutingRun3::BxSums::hwMissHtHFPhi(), l1ScoutingRun3::BxSums::hwMissHtPhi(), l1ScoutingRun3::BxSums::hwTotalEt(), l1ScoutingRun3::BxSums::hwTotalEtEm(), l1ScoutingRun3::BxSums::hwTotalHt(), l1ScoutingRun3::BxSums::minBiasHFM0(), l1ScoutingRun3::BxSums::minBiasHFM1(), l1ScoutingRun3::BxSums::minBiasHFP0(), l1ScoutingRun3::BxSums::minBiasHFP1(), and l1ScoutingRun3::BxSums::towerCount().

Referenced by DumpScObjects::printBx(), and ScCaloRawToDigi::unpackEtSums().

31  {
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  }
float fEt(int hwEt)
Definition: conversion.h:29
float fPhi(int hwPhi)
Definition: conversion.h:18

◆ printCaloObject()

template<typename T >
void l1ScoutingRun3::printCaloObject ( const T obj,
std::ostream &  outs = std::cout 
)

Definition at line 20 of file printScObjects.cc.

References l1ScoutingRun3::demux::fEt(), l1ScoutingRun3::demux::fEta(), l1ScoutingRun3::demux::fPhi(), and getGTfromDQMFile::obj.

20  {
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  }
float fEt(int hwEt)
Definition: conversion.h:29
float fPhi(int hwPhi)
Definition: conversion.h:18
float fEta(int hwEta)
Definition: conversion.h:17

◆ printEGamma()

void l1ScoutingRun3::printEGamma ( const EGamma eGamma,
std::ostream &  outs = std::cout 
)

Definition at line 28 of file printScObjects.cc.

Referenced by DumpScObjects::printBx(), and ScCaloRawToDigi::unpackEGammas().

28 { printCaloObject<EGamma>(eGamma, outs); }

◆ printJet()

void l1ScoutingRun3::printJet ( const Jet jet,
std::ostream &  outs = std::cout 
)

Definition at line 27 of file printScObjects.cc.

References metsig::jet.

Referenced by DumpScObjects::printBx(), and ScCaloRawToDigi::unpackJets().

27 { printCaloObject<Jet>(jet, outs); }

◆ printMuon()

void l1ScoutingRun3::printMuon ( const Muon muon,
std::ostream &  outs = std::cout 
)

Definition at line 5 of file printScObjects.cc.

References l1ScoutingRun3::ugmt::fEta(), l1ScoutingRun3::ugmt::fEtaAtVtx(), l1ScoutingRun3::ugmt::fPhi(), l1ScoutingRun3::ugmt::fPhiAtVtx(), l1ScoutingRun3::ugmt::fPt(), and l1ScoutingRun3::ugmt::fPtUnconstrained().

Referenced by DumpScObjects::printBx(), and ScGMTRawToDigi::unpackOrbit().

5  {
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  }
float fPtUnconstrained(int hwPtUnconstrained)
Definition: conversion.h:19
float fEtaAtVtx(int hwEtaAtVtx)
Definition: conversion.h:22
float fPhiAtVtx(int hwPhiAtVtx)
Definition: conversion.h:23
float fPhi(int hwPhi)
Definition: conversion.h:18
float fPt(int hwPt)
Definition: conversion.h:16
float fEta(int hwEta)
Definition: conversion.h:17

◆ printTau()

void l1ScoutingRun3::printTau ( const Tau tau,
std::ostream &  outs = std::cout 
)

Definition at line 29 of file printScObjects.cc.

References metsig::tau.

Referenced by DumpScObjects::printBx(), and ScCaloRawToDigi::unpackTaus().

29 { printCaloObject<Tau>(tau, outs); }