test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 SetJet (const edm::Handle< l1t::JetBxCollection > jet, unsigned maxL1Upgrade)
 
void SetMuon (const edm::Handle< l1t::MuonBxCollection > muon, unsigned maxL1Upgrade)
 
void SetSum (const edm::Handle< l1t::EtSumBxCollection > sums, unsigned maxL1Upgrade)
 
void SetTau (const edm::Handle< 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
Enumerator
TEST 

Definition at line 26 of file L1AnalysisL1Upgrade.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisL1Upgrade::L1AnalysisL1Upgrade ( )

Definition at line 3 of file L1AnalysisL1Upgrade.cc.

4 {
5 }
L1Analysis::L1AnalysisL1Upgrade::~L1AnalysisL1Upgrade ( )

Definition at line 7 of file L1AnalysisL1Upgrade.cc.

8 {
9 
10 }

Member Function Documentation

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

Definition at line 35 of file L1AnalysisL1Upgrade.h.

References l1upgrade_.

35 {return &l1upgrade_;}
L1AnalysisL1UpgradeDataFormat l1upgrade_
void L1Analysis::L1AnalysisL1Upgrade::Reset ( void  )
inline
void L1Analysis::L1AnalysisL1Upgrade::SetEm ( const edm::Handle< l1t::EGammaBxCollection em,
unsigned  maxL1Upgrade 
)

Definition at line 12 of file L1AnalysisL1Upgrade.cc.

Referenced by L1UpgradeTreeProducer::analyze().

13 {
14  for (int ibx = em->getFirstBX(); ibx <= em->getLastBX(); ++ibx) {
15  for (l1t::EGammaBxCollection::const_iterator it=em->begin(ibx); it!=em->end(ibx) && l1upgrade_.nEGs<maxL1Upgrade; it++){
16  if (it->pt() > 0){
17  l1upgrade_.egEt .push_back(it->pt());
18  l1upgrade_.egEta.push_back(it->eta());
19  l1upgrade_.egPhi.push_back(it->phi());
20  l1upgrade_.egIEt .push_back(it->hwPt());
21  l1upgrade_.egIEta.push_back(it->hwEta());
22  l1upgrade_.egIPhi.push_back(it->hwPhi());
23  l1upgrade_.egIso.push_back(it->hwIso());
24  l1upgrade_.egBx .push_back(ibx);
25  l1upgrade_.nEGs++;
26  }
27  }
28  }
29 }
L1AnalysisL1UpgradeDataFormat l1upgrade_
std::vector< EGamma >::const_iterator const_iterator
Definition: BXVector.h:20
void L1Analysis::L1AnalysisL1Upgrade::SetJet ( const edm::Handle< l1t::JetBxCollection jet,
unsigned  maxL1Upgrade 
)

Definition at line 60 of file L1AnalysisL1Upgrade.cc.

Referenced by L1UpgradeTreeProducer::analyze().

61 {
62  for (int ibx = jet->getFirstBX(); ibx <= jet->getLastBX(); ++ibx) {
63  for (l1t::JetBxCollection::const_iterator it=jet->begin(ibx); it!=jet->end(ibx) && l1upgrade_.nJets<maxL1Upgrade; it++){
64  if (it->pt() > 0){
65  l1upgrade_.jetEt .push_back(it->et());
66  l1upgrade_.jetEta.push_back(it->eta());
67  l1upgrade_.jetPhi.push_back(it->phi());
68  l1upgrade_.jetIEt .push_back(it->hwPt());
69  l1upgrade_.jetIEta.push_back(it->hwEta());
70  l1upgrade_.jetIPhi.push_back(it->hwPhi());
71  l1upgrade_.jetBx .push_back(ibx);
72  l1upgrade_.jetRawEt.push_back(it->rawEt());
73  l1upgrade_.jetSeedEt.push_back(it->seedEt());
74  l1upgrade_.jetTowerIEta.push_back(it->towerIEta());
75  l1upgrade_.jetTowerIPhi.push_back(it->towerIPhi());
76  l1upgrade_.jetPUEt.push_back(it->puEt());
77  l1upgrade_.jetPUDonutEt0.push_back(it->puDonutEt(0));
78  l1upgrade_.jetPUDonutEt1.push_back(it->puDonutEt(1));
79  l1upgrade_.jetPUDonutEt2.push_back(it->puDonutEt(2));
80  l1upgrade_.jetPUDonutEt3.push_back(it->puDonutEt(3));
81  l1upgrade_.nJets++;
82  }
83  }
84  }
85 }
L1AnalysisL1UpgradeDataFormat l1upgrade_
std::vector< Jet >::const_iterator const_iterator
Definition: BXVector.h:20
void L1Analysis::L1AnalysisL1Upgrade::SetMuon ( const edm::Handle< l1t::MuonBxCollection muon,
unsigned  maxL1Upgrade 
)

Definition at line 88 of file L1AnalysisL1Upgrade.cc.

References l1t::MicroGMTConfiguration::calcMuonEtaExtra(), and l1t::MicroGMTConfiguration::calcMuonPhiExtra().

Referenced by L1UpgradeTreeProducer::analyze().

89 {
90  for (int ibx = muon->getFirstBX(); ibx <= muon->getLastBX(); ++ibx) {
91  for (l1t::MuonBxCollection::const_iterator it=muon->begin(ibx); it!=muon->end(ibx) && l1upgrade_.nMuons<maxL1Upgrade; it++){
92  if (it->pt() > 0){
93  l1upgrade_.muonEt .push_back(it->et());
94  l1upgrade_.muonEta.push_back(it->eta());
95  l1upgrade_.muonPhi.push_back(it->phi());
98  l1upgrade_.muonIEt .push_back(it->hwPt());
99  l1upgrade_.muonIEta.push_back(it->hwEta());
100  l1upgrade_.muonIPhi.push_back(it->hwPhi());
101  l1upgrade_.muonIDEta.push_back(it->hwDEtaExtra());
102  l1upgrade_.muonIDPhi.push_back(it->hwDPhiExtra());
103  l1upgrade_.muonChg.push_back(it->charge());
104  l1upgrade_.muonIso.push_back(it->hwIso());
105  l1upgrade_.muonQual.push_back(it->hwQual());
106  l1upgrade_.muonTfMuonIdx.push_back(it->tfMuonIndex());
107  l1upgrade_.muonBx .push_back(ibx);
108  l1upgrade_.nMuons++;
109  }
110  }
111  }
112 }
static double calcMuonPhiExtra(const l1t::Muon &mu)
static double calcMuonEtaExtra(const l1t::Muon &mu)
L1AnalysisL1UpgradeDataFormat l1upgrade_
std::vector< Muon >::const_iterator const_iterator
Definition: BXVector.h:20
void L1Analysis::L1AnalysisL1Upgrade::SetSum ( const edm::Handle< l1t::EtSumBxCollection sums,
unsigned  maxL1Upgrade 
)

Definition at line 114 of file L1AnalysisL1Upgrade.cc.

Referenced by L1UpgradeTreeProducer::analyze().

115 {
116  for (int ibx = sums->getFirstBX(); ibx <= sums->getLastBX(); ++ibx) {
117  for (l1t::EtSumBxCollection::const_iterator it=sums->begin(ibx); it!=sums->end(ibx) && l1upgrade_.nSums<maxL1Upgrade; it++) {
118  int type = static_cast<int>( it->getType() );
119  l1upgrade_.sumType. push_back( type );
120  l1upgrade_.sumEt. push_back( it->et() );
121  l1upgrade_.sumPhi.push_back( it->phi() );
122  l1upgrade_.sumIEt. push_back( it->hwPt() );
123  l1upgrade_.sumIPhi.push_back( it->hwPhi() );
124  l1upgrade_.sumBx. push_back( ibx );
125  l1upgrade_.nSums++;
126  }
127  }
128 }
type
Definition: HCALResponse.h:21
L1AnalysisL1UpgradeDataFormat l1upgrade_
std::vector< EtSum >::const_iterator const_iterator
Definition: BXVector.h:20
void L1Analysis::L1AnalysisL1Upgrade::SetTau ( const edm::Handle< l1t::TauBxCollection tau,
unsigned  maxL1Upgrade 
)

Definition at line 32 of file L1AnalysisL1Upgrade.cc.

Referenced by L1UpgradeTreeProducer::analyze().

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

Member Data Documentation

L1AnalysisL1UpgradeDataFormat L1Analysis::L1AnalysisL1Upgrade::l1upgrade_
private

Definition at line 38 of file L1AnalysisL1Upgrade.h.

Referenced by getData(), and Reset().