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.

References recoJet_.

32 { return &recoJet_; }
L1AnalysisRecoJetDataFormat recoJet_

◆ Reset()

void L1Analysis::L1AnalysisRecoJet::Reset ( )
inline

◆ 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.

References isolatedTracks_cfi::caloJets, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and l1JetRecoTree_cfi::maxJet.

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 }
L1AnalysisRecoJetDataFormat recoJet_

Member Data Documentation

◆ recoJet_

L1AnalysisRecoJetDataFormat L1Analysis::L1AnalysisRecoJet::recoJet_
private

Definition at line 36 of file L1AnalysisRecoJet.h.

Referenced by getData(), and Reset().