CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1Analysis::L1AnalysisL1Upgrade Class Reference

#include <L1AnalysisL1Upgrade.h>

Public Types

enum  { TEST = 0 }
 

Public Member Functions

L1AnalysisL1UpgradeDataFormatgetData ()
 
 L1AnalysisL1Upgrade ()
 
void Reset ()
 
void SetEm (const edm::Handle< l1t::EGammaBxCollection > em, unsigned maxL1Upgrade)
 
void SetEm (const l1t::EGammaBxCollection &em, unsigned maxL1Upgrade)
 
void SetJet (const edm::Handle< l1t::JetBxCollection > jet, unsigned maxL1Upgrade)
 
void SetJet (const l1t::JetBxCollection &jet, unsigned maxL1Upgrade)
 
void SetMuon (const edm::Handle< l1t::MuonBxCollection > muon, unsigned maxL1Upgrade)
 
void SetMuon (const l1t::MuonBxCollection &muon, unsigned maxL1Upgrade)
 
void SetMuonShower (const edm::Handle< l1t::MuonShowerBxCollection > muonShower, unsigned maxL1Upgrade)
 
void SetMuonShower (const l1t::MuonShowerBxCollection &muonShower, unsigned maxL1Upgrade)
 
void SetSum (const edm::Handle< l1t::EtSumBxCollection > sums, unsigned maxL1Upgrade)
 
void SetSum (const l1t::EtSumBxCollection &sums, unsigned maxL1Upgrade)
 
void SetSumZDC (const edm::Handle< l1t::EtSumBxCollection > sumsZDC, unsigned maxL1Upgrade)
 
void SetSumZDC (const l1t::EtSumBxCollection &sumsZDC, unsigned maxL1Upgrade)
 
void SetTau (const edm::Handle< l1t::TauBxCollection > tau, unsigned maxL1Upgrade)
 
void SetTau (const l1t::TauBxCollection &tau, unsigned maxL1Upgrade)
 
 ~L1AnalysisL1Upgrade ()
 

Private Attributes

L1AnalysisL1UpgradeDataFormat l1upgrade_
 

Detailed Description

Definition at line 23 of file L1AnalysisL1Upgrade.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TEST 

Definition at line 25 of file L1AnalysisL1Upgrade.h.

Constructor & Destructor Documentation

◆ L1AnalysisL1Upgrade()

L1Analysis::L1AnalysisL1Upgrade::L1AnalysisL1Upgrade ( )

Definition at line 3 of file L1AnalysisL1Upgrade.cc.

3 {}

◆ ~L1AnalysisL1Upgrade()

L1Analysis::L1AnalysisL1Upgrade::~L1AnalysisL1Upgrade ( )

Definition at line 5 of file L1AnalysisL1Upgrade.cc.

5 {}

Member Function Documentation

◆ getData()

L1AnalysisL1UpgradeDataFormat* L1Analysis::L1AnalysisL1Upgrade::getData ( void  )
inline

Definition at line 51 of file L1AnalysisL1Upgrade.h.

References l1upgrade_.

Referenced by L1UpgradeTreeProducer::L1UpgradeTreeProducer().

51 { return &l1upgrade_; }
L1AnalysisL1UpgradeDataFormat l1upgrade_

◆ Reset()

void L1Analysis::L1AnalysisL1Upgrade::Reset ( )
inline

◆ SetEm() [1/2]

void L1Analysis::L1AnalysisL1Upgrade::SetEm ( const edm::Handle< l1t::EGammaBxCollection em,
unsigned  maxL1Upgrade 
)
inline

Definition at line 29 of file L1AnalysisL1Upgrade.h.

References l1UpgradeTree_cfi::maxL1Upgrade, and SetEm().

Referenced by L1UpgradeTreeProducer::analyze(), and SetEm().

29 { SetEm(*em, maxL1Upgrade); }
void SetEm(const edm::Handle< l1t::EGammaBxCollection > em, unsigned maxL1Upgrade)

◆ SetEm() [2/2]

void L1Analysis::L1AnalysisL1Upgrade::SetEm ( const l1t::EGammaBxCollection em,
unsigned  maxL1Upgrade 
)

Definition at line 7 of file L1AnalysisL1Upgrade.cc.

References BXVector< T >::begin(), BXVector< T >::end(), BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and l1UpgradeTree_cfi::maxL1Upgrade.

7  {
8  for (int ibx = em.getFirstBX(); ibx <= em.getLastBX(); ++ibx) {
10  it != em.end(ibx) && l1upgrade_.nEGs < maxL1Upgrade;
11  it++) {
12  if (it->pt() > 0) {
13  l1upgrade_.egEt.push_back(it->pt());
14  l1upgrade_.egEta.push_back(it->eta());
15  l1upgrade_.egPhi.push_back(it->phi());
16  l1upgrade_.egIEt.push_back(it->hwPt());
17  l1upgrade_.egIEta.push_back(it->hwEta());
18  l1upgrade_.egIPhi.push_back(it->hwPhi());
19  l1upgrade_.egIso.push_back(it->hwIso());
20  l1upgrade_.egBx.push_back(ibx);
21  l1upgrade_.egTowerIPhi.push_back(it->towerIPhi());
22  l1upgrade_.egTowerIEta.push_back(it->towerIEta());
23  l1upgrade_.egRawEt.push_back(it->rawEt());
24  l1upgrade_.egIsoEt.push_back(it->isoEt());
25  l1upgrade_.egFootprintEt.push_back(it->footprintEt());
26  l1upgrade_.egNTT.push_back(it->nTT());
27  l1upgrade_.egShape.push_back(it->shape());
28  l1upgrade_.egTowerHoE.push_back(it->towerHoE());
29  l1upgrade_.egHwQual.push_back(it->hwQual());
30  l1upgrade_.nEGs++;
31  }
32  }
33  }
34 }
int getLastBX() const
int getFirstBX() const
const_iterator begin(int bx) const
std::vector< T >::const_iterator const_iterator
Definition: BXVector.h:18
const_iterator end(int bx) const
L1AnalysisL1UpgradeDataFormat l1upgrade_

◆ SetJet() [1/2]

void L1Analysis::L1AnalysisL1Upgrade::SetJet ( const edm::Handle< l1t::JetBxCollection jet,
unsigned  maxL1Upgrade 
)
inline

Definition at line 31 of file L1AnalysisL1Upgrade.h.

References metsig::jet, l1UpgradeTree_cfi::maxL1Upgrade, and SetJet().

Referenced by L1UpgradeTreeProducer::analyze(), and SetJet().

31 { SetJet(*jet, maxL1Upgrade); }
void SetJet(const edm::Handle< l1t::JetBxCollection > jet, unsigned maxL1Upgrade)

◆ SetJet() [2/2]

void L1Analysis::L1AnalysisL1Upgrade::SetJet ( const l1t::JetBxCollection jet,
unsigned  maxL1Upgrade 
)

Definition at line 64 of file L1AnalysisL1Upgrade.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, metsig::jet, and l1UpgradeTree_cfi::maxL1Upgrade.

64  {
65  for (int ibx = jet.getFirstBX(); ibx <= jet.getLastBX(); ++ibx) {
67  it != jet.end(ibx) && l1upgrade_.nJets < maxL1Upgrade;
68  it++) {
69  if (it->pt() > 0) {
70  l1upgrade_.jetEt.push_back(it->et());
71  l1upgrade_.jetEta.push_back(it->eta());
72  l1upgrade_.jetPhi.push_back(it->phi());
73  l1upgrade_.jetIEt.push_back(it->hwPt());
74  l1upgrade_.jetIEta.push_back(it->hwEta());
75  l1upgrade_.jetIPhi.push_back(it->hwPhi());
76  l1upgrade_.jetHwQual.push_back(it->hwQual());
77  l1upgrade_.jetBx.push_back(ibx);
78  l1upgrade_.jetRawEt.push_back(it->rawEt());
79  l1upgrade_.jetSeedEt.push_back(it->seedEt());
80  l1upgrade_.jetTowerIEta.push_back(it->towerIEta());
81  l1upgrade_.jetTowerIPhi.push_back(it->towerIPhi());
82  l1upgrade_.jetPUEt.push_back(it->puEt());
83  l1upgrade_.jetPUDonutEt0.push_back(it->puDonutEt(0));
84  l1upgrade_.jetPUDonutEt1.push_back(it->puDonutEt(1));
85  l1upgrade_.jetPUDonutEt2.push_back(it->puDonutEt(2));
86  l1upgrade_.jetPUDonutEt3.push_back(it->puDonutEt(3));
87  l1upgrade_.nJets++;
88  }
89  }
90  }
91 }
std::vector< T >::const_iterator const_iterator
Definition: BXVector.h:18
L1AnalysisL1UpgradeDataFormat l1upgrade_

◆ SetMuon() [1/2]

void L1Analysis::L1AnalysisL1Upgrade::SetMuon ( const edm::Handle< l1t::MuonBxCollection muon,
unsigned  maxL1Upgrade 
)
inline

Definition at line 33 of file L1AnalysisL1Upgrade.h.

References l1UpgradeTree_cfi::maxL1Upgrade, and SetMuon().

Referenced by L1UpgradeTreeProducer::analyze(), and SetMuon().

void SetMuon(const edm::Handle< l1t::MuonBxCollection > muon, unsigned maxL1Upgrade)

◆ SetMuon() [2/2]

void L1Analysis::L1AnalysisL1Upgrade::SetMuon ( const l1t::MuonBxCollection muon,
unsigned  maxL1Upgrade 
)

Definition at line 93 of file L1AnalysisL1Upgrade.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and l1UpgradeTree_cfi::maxL1Upgrade.

93  {
94  for (int ibx = muon.getFirstBX(); ibx <= muon.getLastBX(); ++ibx) {
96  it != muon.end(ibx) && l1upgrade_.nMuons < maxL1Upgrade;
97  it++) {
98  if (it->pt() > 0) {
99  l1upgrade_.muonEt.push_back(it->et());
100  l1upgrade_.muonEtUnconstrained.push_back(it->ptUnconstrained());
101  l1upgrade_.muonEta.push_back(it->eta());
102  l1upgrade_.muonPhi.push_back(it->phi());
103  l1upgrade_.muonEtaAtVtx.push_back(it->etaAtVtx());
104  l1upgrade_.muonPhiAtVtx.push_back(it->phiAtVtx());
105  l1upgrade_.muonIEt.push_back(it->hwPt());
106  l1upgrade_.muonIEtUnconstrained.push_back(it->hwPtUnconstrained());
107  l1upgrade_.muonIEta.push_back(it->hwEta());
108  l1upgrade_.muonIPhi.push_back(it->hwPhi());
109  l1upgrade_.muonIEtaAtVtx.push_back(it->hwEtaAtVtx());
110  l1upgrade_.muonIPhiAtVtx.push_back(it->hwPhiAtVtx());
111  l1upgrade_.muonIDEta.push_back(it->hwDEtaExtra());
112  l1upgrade_.muonIDPhi.push_back(it->hwDPhiExtra());
113  l1upgrade_.muonChg.push_back(it->charge());
114  l1upgrade_.muonIso.push_back(it->hwIso());
115  l1upgrade_.muonQual.push_back(it->hwQual());
116  l1upgrade_.muonDxy.push_back(it->hwDXY());
117  l1upgrade_.muonTfMuonIdx.push_back(it->tfMuonIndex());
118  l1upgrade_.muonBx.push_back(ibx);
119  l1upgrade_.nMuons++;
120  }
121  }
122  }
123 }
std::vector< T >::const_iterator const_iterator
Definition: BXVector.h:18
L1AnalysisL1UpgradeDataFormat l1upgrade_

◆ SetMuonShower() [1/2]

void L1Analysis::L1AnalysisL1Upgrade::SetMuonShower ( const edm::Handle< l1t::MuonShowerBxCollection muonShower,
unsigned  maxL1Upgrade 
)
inline

Definition at line 34 of file L1AnalysisL1Upgrade.h.

References l1UpgradeTree_cfi::maxL1Upgrade.

Referenced by L1UpgradeTreeProducer::analyze().

34  {
35  SetMuonShower(*muonShower, maxL1Upgrade);
36  }
void SetMuonShower(const edm::Handle< l1t::MuonShowerBxCollection > muonShower, unsigned maxL1Upgrade)

◆ SetMuonShower() [2/2]

void L1Analysis::L1AnalysisL1Upgrade::SetMuonShower ( const l1t::MuonShowerBxCollection muonShower,
unsigned  maxL1Upgrade 
)

Definition at line 125 of file L1AnalysisL1Upgrade.cc.

References BXVector< T >::begin(), BXVector< T >::end(), BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and l1UpgradeTree_cfi::maxL1Upgrade.

126  {
127  for (int ibx = muonShower.getFirstBX(); ibx <= muonShower.getLastBX(); ++ibx) {
129  it != muonShower.end(ibx) && l1upgrade_.nMuonShowers < maxL1Upgrade;
130  it++) {
131  if (it->isValid()) {
132  l1upgrade_.muonShowerBx.push_back(ibx);
133  l1upgrade_.muonShowerOneNominal.push_back(it->isOneNominalInTime());
134  l1upgrade_.muonShowerOneTight.push_back(it->isOneTightInTime());
135  l1upgrade_.muonShowerTwoLoose.push_back(it->isTwoLooseInTime());
136  l1upgrade_.muonShowerTwoLooseDiffSectors.push_back(it->isTwoLooseDiffSectorsInTime());
138  }
139  }
140  }
141 }
int getLastBX() const
int getFirstBX() const
const_iterator begin(int bx) const
std::vector< T >::const_iterator const_iterator
Definition: BXVector.h:18
const_iterator end(int bx) const
L1AnalysisL1UpgradeDataFormat l1upgrade_

◆ SetSum() [1/2]

void L1Analysis::L1AnalysisL1Upgrade::SetSum ( const edm::Handle< l1t::EtSumBxCollection sums,
unsigned  maxL1Upgrade 
)
inline

Definition at line 32 of file L1AnalysisL1Upgrade.h.

References l1UpgradeTree_cfi::maxL1Upgrade, and SetSum().

Referenced by L1UpgradeTreeProducer::analyze(), and SetSum().

32 { SetSum(*sums, maxL1Upgrade); }
void SetSum(const edm::Handle< l1t::EtSumBxCollection > sums, unsigned maxL1Upgrade)

◆ SetSum() [2/2]

void L1Analysis::L1AnalysisL1Upgrade::SetSum ( const l1t::EtSumBxCollection sums,
unsigned  maxL1Upgrade 
)

Definition at line 143 of file L1AnalysisL1Upgrade.cc.

References BXVector< T >::begin(), BXVector< T >::end(), BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and l1UpgradeTree_cfi::maxL1Upgrade.

143  {
144  for (int ibx = sums.getFirstBX(); ibx <= sums.getLastBX(); ++ibx) {
146  it != sums.end(ibx) && l1upgrade_.nSums < maxL1Upgrade;
147  it++) {
148  int type = static_cast<int>(it->getType());
149  l1upgrade_.sumType.push_back(type);
150  l1upgrade_.sumEt.push_back(it->et());
151  l1upgrade_.sumPhi.push_back(it->phi());
152  l1upgrade_.sumIEt.push_back(it->hwPt());
153  l1upgrade_.sumIPhi.push_back(it->hwPhi());
154  l1upgrade_.sumBx.push_back(ibx);
155  l1upgrade_.nSums++;
156  }
157  }
158 }
int getLastBX() const
int getFirstBX() const
const_iterator begin(int bx) const
std::vector< T >::const_iterator const_iterator
Definition: BXVector.h:18
const_iterator end(int bx) const
L1AnalysisL1UpgradeDataFormat l1upgrade_

◆ SetSumZDC() [1/2]

void L1Analysis::L1AnalysisL1Upgrade::SetSumZDC ( const edm::Handle< l1t::EtSumBxCollection sumsZDC,
unsigned  maxL1Upgrade 
)
inline

Definition at line 38 of file L1AnalysisL1Upgrade.h.

References l1UpgradeTree_cfi::maxL1Upgrade.

Referenced by L1UpgradeTreeProducer::analyze().

38  {
39  SetSumZDC(*sumsZDC, maxL1Upgrade);
40  }
void SetSumZDC(const edm::Handle< l1t::EtSumBxCollection > sumsZDC, unsigned maxL1Upgrade)

◆ SetSumZDC() [2/2]

void L1Analysis::L1AnalysisL1Upgrade::SetSumZDC ( const l1t::EtSumBxCollection sumsZDC,
unsigned  maxL1Upgrade 
)

Definition at line 160 of file L1AnalysisL1Upgrade.cc.

References BXVector< T >::begin(), BXVector< T >::end(), BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and l1UpgradeTree_cfi::maxL1Upgrade.

160  {
161  for (int ibx = sumsZDC.getFirstBX(); ibx <= sumsZDC.getLastBX(); ++ibx) {
162  for (l1t::EtSumBxCollection::const_iterator it = sumsZDC.begin(ibx);
163  it != sumsZDC.end(ibx) && l1upgrade_.nSumsZDC < maxL1Upgrade;
164  it++) {
165  int type = static_cast<int>(it->getType());
166  l1upgrade_.sumZDCType.push_back(type);
167  l1upgrade_.sumZDCEt.push_back(it->et());
168  l1upgrade_.sumZDCPhi.push_back(it->phi());
169  l1upgrade_.sumZDCIEt.push_back(it->hwPt());
170  l1upgrade_.sumZDCIPhi.push_back(it->hwPhi());
171  l1upgrade_.sumZDCBx.push_back(ibx);
173  }
174  }
175 }
int getLastBX() const
int getFirstBX() const
const_iterator begin(int bx) const
std::vector< T >::const_iterator const_iterator
Definition: BXVector.h:18
const_iterator end(int bx) const
L1AnalysisL1UpgradeDataFormat l1upgrade_

◆ SetTau() [1/2]

void L1Analysis::L1AnalysisL1Upgrade::SetTau ( const edm::Handle< l1t::TauBxCollection tau,
unsigned  maxL1Upgrade 
)
inline

Definition at line 30 of file L1AnalysisL1Upgrade.h.

References l1UpgradeTree_cfi::maxL1Upgrade, and SetTau().

Referenced by L1UpgradeTreeProducer::analyze(), and SetTau().

30 { SetTau(*tau, maxL1Upgrade); }
void SetTau(const edm::Handle< l1t::TauBxCollection > tau, unsigned maxL1Upgrade)

◆ SetTau() [2/2]

void L1Analysis::L1AnalysisL1Upgrade::SetTau ( const l1t::TauBxCollection tau,
unsigned  maxL1Upgrade 
)

Definition at line 36 of file L1AnalysisL1Upgrade.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and l1UpgradeTree_cfi::maxL1Upgrade.

36  {
37  for (int ibx = tau.getFirstBX(); ibx <= tau.getLastBX(); ++ibx) {
39  it != tau.end(ibx) && l1upgrade_.nTaus < maxL1Upgrade;
40  it++) {
41  if (it->pt() > 0) {
42  l1upgrade_.tauEt.push_back(it->et());
43  l1upgrade_.tauEta.push_back(it->eta());
44  l1upgrade_.tauPhi.push_back(it->phi());
45  l1upgrade_.tauIEt.push_back(it->hwPt());
46  l1upgrade_.tauIEta.push_back(it->hwEta());
47  l1upgrade_.tauIPhi.push_back(it->hwPhi());
48  l1upgrade_.tauIso.push_back(it->hwIso());
49  l1upgrade_.tauBx.push_back(ibx);
50  l1upgrade_.tauTowerIPhi.push_back(it->towerIPhi());
51  l1upgrade_.tauTowerIEta.push_back(it->towerIEta());
52  l1upgrade_.tauRawEt.push_back(it->rawEt());
53  l1upgrade_.tauIsoEt.push_back(it->isoEt());
54  l1upgrade_.tauNTT.push_back(it->nTT());
55  l1upgrade_.tauHasEM.push_back(it->hasEM());
56  l1upgrade_.tauIsMerged.push_back(it->isMerged());
57  l1upgrade_.tauHwQual.push_back(it->hwQual());
58  l1upgrade_.nTaus++;
59  }
60  }
61  }
62 }
std::vector< T >::const_iterator const_iterator
Definition: BXVector.h:18
L1AnalysisL1UpgradeDataFormat l1upgrade_

Member Data Documentation

◆ l1upgrade_

L1AnalysisL1UpgradeDataFormat L1Analysis::L1AnalysisL1Upgrade::l1upgrade_
private

Definition at line 54 of file L1AnalysisL1Upgrade.h.

Referenced by getData(), and Reset().