test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 22 of file L1AnalysisRecoJet.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisRecoJet::L1AnalysisRecoJet ( )

Definition at line 6 of file L1AnalysisRecoJet.cc.

7 {
8 }
L1Analysis::L1AnalysisRecoJet::~L1AnalysisRecoJet ( )

Definition at line 10 of file L1AnalysisRecoJet.cc.

11 {
12 }

Member Function Documentation

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

Definition at line 35 of file L1AnalysisRecoJet.h.

References recoJet_.

35 {return &recoJet_;}
L1AnalysisRecoJetDataFormat recoJet_
void L1Analysis::L1AnalysisRecoJet::Reset ( void  )
inline
void L1Analysis::L1AnalysisRecoJet::SetCaloJet ( const edm::Event event,
const edm::EventSetup setup,
const edm::Handle< reco::CaloJetCollection caloJets,
unsigned  maxJet 
)

Definition at line 15 of file L1AnalysisRecoJet.cc.

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

Member Data Documentation

L1AnalysisRecoJetDataFormat L1Analysis::L1AnalysisRecoJet::recoJet_
private

Definition at line 39 of file L1AnalysisRecoJet.h.

Referenced by getData(), and Reset().