CMS 3D CMS Logo

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

#include <L1AnalysisRecoJet.h>

Public Member Functions

L1AnalysisRecoJetDataFormatgetData ()
 
 L1AnalysisRecoJet ()
 
void Reset ()
 
void SetCaloJet (const edm::Event &event, const edm::EventSetup &setup, const edm::Handle< reco::CaloJetCollection > caloJets, unsigned maxJet)
 
 ~L1AnalysisRecoJet ()
 

Private Attributes

L1AnalysisRecoJetDataFormat recoJet_
 

Detailed Description

Definition at line 20 of file L1AnalysisRecoJet.h.

Constructor & Destructor Documentation

◆ L1AnalysisRecoJet()

L1Analysis::L1AnalysisRecoJet::L1AnalysisRecoJet ( )

Definition at line 6 of file L1AnalysisRecoJet.cc.

6 {}

◆ ~L1AnalysisRecoJet()

L1Analysis::L1AnalysisRecoJet::~L1AnalysisRecoJet ( )

Definition at line 8 of file L1AnalysisRecoJet.cc.

8 {}

Member Function Documentation

◆ getData()

L1AnalysisRecoJetDataFormat* L1Analysis::L1AnalysisRecoJet::getData ( void  )
inline

Definition at line 32 of file L1AnalysisRecoJet.h.

32 { return &recoJet_; }

References recoJet_.

◆ Reset()

void L1Analysis::L1AnalysisRecoJet::Reset ( )
inline

Definition at line 33 of file L1AnalysisRecoJet.h.

33 { recoJet_.Reset(); }

References recoJet_, and L1Analysis::L1AnalysisRecoJetDataFormat::Reset().

◆ SetCaloJet()

void L1Analysis::L1AnalysisRecoJet::SetCaloJet ( const edm::Event event,
const edm::EventSetup setup,
const edm::Handle< reco::CaloJetCollection caloJets,
unsigned  maxJet 
)

Definition at line 10 of file L1AnalysisRecoJet.cc.

13  {
14  recoJet_.nJets = 0;
15 
16  for (reco::CaloJetCollection::const_iterator it = caloJets->begin(); it != caloJets->end() && recoJet_.nJets < maxJet;
17  ++it) {
18  recoJet_.et.push_back(it->et());
19  // recoJet_.etCorr.push_back(it->et());// * scale);
20  // recoJet_.corrFactor.push_back(1.);//scale);
21  recoJet_.eta.push_back(it->eta());
22  recoJet_.phi.push_back(it->phi());
23  recoJet_.e.push_back(it->energy());
24  recoJet_.eEMF.push_back(it->emEnergyFraction());
25  recoJet_.eEmEB.push_back(it->emEnergyInEB());
26  recoJet_.eEmEE.push_back(it->emEnergyInEE());
27  recoJet_.eEmHF.push_back(it->emEnergyInHF());
28  recoJet_.eHadHB.push_back(it->hadEnergyInHB());
29  recoJet_.eHadHE.push_back(it->hadEnergyInHE());
30  recoJet_.eHadHO.push_back(it->hadEnergyInHO());
31  recoJet_.eHadHF.push_back(it->hadEnergyInHF());
32  recoJet_.eMaxEcalTow.push_back(it->maxEInEmTowers());
33  recoJet_.eMaxHcalTow.push_back(it->maxEInHadTowers());
34  recoJet_.towerArea.push_back(it->towersArea());
35  // recoJet_.towerSize.push_back(static_cast<int>(it->getCaloConstituents().size()));
36  // recoJet_.n60.push_back(it->n60());
37  // recoJet_.n90.push_back(it->n90());
38 
39  // recoJet_.n90hits.push_back(1.); //int((*jetsID)[jetRef].n90Hits));
40  // recoJet_.fHPD.push_back(1.); //(*jetsID)[jetRef].fHPD);
41  // recoJet_.fRBX.push_back(1.); //(*jetsID)[jetRef].fRBX);
42 
43  recoJet_.nJets++;
44  }
45 }

References isolatedTracks_cfi::caloJets, and l1JetRecoTree_cfi::maxJet.

Member Data Documentation

◆ recoJet_

L1AnalysisRecoJetDataFormat L1Analysis::L1AnalysisRecoJet::recoJet_
private

Definition at line 36 of file L1AnalysisRecoJet.h.

Referenced by getData(), and Reset().

l1JetRecoTree_cfi.maxJet
maxJet
Definition: l1JetRecoTree_cfi.py:9
L1Analysis::L1AnalysisRecoJetDataFormat::eMaxEcalTow
std::vector< float > eMaxEcalTow
Definition: L1AnalysisRecoJetDataFormat.h:103
L1Analysis::L1AnalysisRecoJetDataFormat::eEmHF
std::vector< float > eEmHF
Definition: L1AnalysisRecoJetDataFormat.h:102
L1Analysis::L1AnalysisRecoJetDataFormat::eHadHF
std::vector< float > eHadHF
Definition: L1AnalysisRecoJetDataFormat.h:99
L1Analysis::L1AnalysisRecoJetDataFormat::phi
std::vector< float > phi
Definition: L1AnalysisRecoJetDataFormat.h:85
L1Analysis::L1AnalysisRecoJetDataFormat::et
std::vector< float > et
Definition: L1AnalysisRecoJetDataFormat.h:81
isolatedTracks_cfi.caloJets
caloJets
Definition: isolatedTracks_cfi.py:33
L1Analysis::L1AnalysisRecoJetDataFormat::eHadHO
std::vector< float > eHadHO
Definition: L1AnalysisRecoJetDataFormat.h:98
L1Analysis::L1AnalysisRecoJetDataFormat::eMaxHcalTow
std::vector< float > eMaxHcalTow
Definition: L1AnalysisRecoJetDataFormat.h:104
L1Analysis::L1AnalysisRecoJetDataFormat::eHadHE
std::vector< float > eHadHE
Definition: L1AnalysisRecoJetDataFormat.h:97
L1Analysis::L1AnalysisRecoJetDataFormat::Reset
void Reset()
Definition: L1AnalysisRecoJetDataFormat.h:18
L1Analysis::L1AnalysisRecoJetDataFormat::towerArea
std::vector< float > towerArea
Definition: L1AnalysisRecoJetDataFormat.h:105
L1Analysis::L1AnalysisRecoJet::recoJet_
L1AnalysisRecoJetDataFormat recoJet_
Definition: L1AnalysisRecoJet.h:36
L1Analysis::L1AnalysisRecoJetDataFormat::eEMF
std::vector< float > eEMF
Definition: L1AnalysisRecoJetDataFormat.h:95
L1Analysis::L1AnalysisRecoJetDataFormat::nJets
unsigned short nJets
Definition: L1AnalysisRecoJetDataFormat.h:79
L1Analysis::L1AnalysisRecoJetDataFormat::eEmEB
std::vector< float > eEmEB
Definition: L1AnalysisRecoJetDataFormat.h:100
L1Analysis::L1AnalysisRecoJetDataFormat::eEmEE
std::vector< float > eEmEE
Definition: L1AnalysisRecoJetDataFormat.h:101
L1Analysis::L1AnalysisRecoJetDataFormat::e
std::vector< float > e
Definition: L1AnalysisRecoJetDataFormat.h:80
L1Analysis::L1AnalysisRecoJetDataFormat::eHadHB
std::vector< float > eHadHB
Definition: L1AnalysisRecoJetDataFormat.h:96
L1Analysis::L1AnalysisRecoJetDataFormat::eta
std::vector< float > eta
Definition: L1AnalysisRecoJetDataFormat.h:84