Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend Calo objects to include intermediate values from emulation
- Loading branch information
Showing
7 changed files
with
290 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,96 @@ | ||
|
||
#include "DataFormats/L1Trigger/interface/EGamma.h" | ||
using namespace l1t; | ||
|
||
l1t::EGamma::EGamma( const LorentzVector& p4, | ||
void EGamma::clear_extended(){ | ||
towerIEta_ = 0; | ||
towerIPhi_ = 0; | ||
rawEt_ = 0; | ||
isoEt_ = 0; | ||
footprintEt_ = 0; | ||
nTT_ = 0; | ||
shape_ = 0; | ||
} | ||
|
||
EGamma::EGamma( const LorentzVector& p4, | ||
int pt, | ||
int eta, | ||
int phi, | ||
int qual, | ||
int iso ) | ||
: L1Candidate(p4, pt, eta, phi, qual, iso) | ||
{ | ||
|
||
clear_extended(); | ||
} | ||
|
||
l1t::EGamma::EGamma( const PolarLorentzVector& p4, | ||
EGamma::EGamma( const PolarLorentzVector& p4, | ||
int pt, | ||
int eta, | ||
int phi, | ||
int qual, | ||
int iso ) | ||
: L1Candidate(p4, pt, eta, phi, qual, iso) | ||
{ | ||
|
||
clear_extended(); | ||
} | ||
|
||
l1t::EGamma::~EGamma() | ||
EGamma::~EGamma() | ||
{ | ||
|
||
} | ||
|
||
void EGamma::setTowerIEta(short int ieta) { | ||
towerIEta_ = ieta; | ||
} | ||
|
||
void EGamma::setTowerIPhi(short int iphi) { | ||
towerIPhi_ = iphi; | ||
} | ||
|
||
void EGamma::setRawEt(short int et) { | ||
rawEt_ = et; | ||
} | ||
|
||
void EGamma::setIsoEt(short int et) { | ||
isoEt_ = et; | ||
} | ||
|
||
void EGamma::setFootprintEt(short int et) { | ||
footprintEt_ = et; | ||
} | ||
|
||
void EGamma::setNTT(short int ntt) { | ||
nTT_ = ntt; | ||
} | ||
|
||
void EGamma::setShape(short int s) { | ||
shape_ = s; | ||
} | ||
|
||
short int EGamma::towerIEta() { | ||
return towerIEta_; | ||
} | ||
|
||
short int EGamma::towerIPhi() { | ||
return towerIPhi_; | ||
} | ||
|
||
short int EGamma::rawEt() { | ||
return rawEt_; | ||
} | ||
|
||
short int EGamma::isoEt() { | ||
return isoEt_; | ||
} | ||
|
||
short int EGamma::footprintEt() { | ||
return footprintEt_; | ||
} | ||
|
||
short int EGamma::nTT() { | ||
return nTT_; | ||
} | ||
|
||
short int EGamma::shape() { | ||
return shape_; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,85 @@ | ||
|
||
#include "DataFormats/L1Trigger/interface/Jet.h" | ||
using namespace l1t; | ||
|
||
void Jet::clear_extended(){ | ||
towerIEta_ = 0; | ||
towerIPhi_ = 0; | ||
rawEt_ = 0; | ||
seedEt_ = 0; | ||
puEt_ = 0; | ||
puDonutEt_[0] = puDonutEt_[1] = puDonutEt_[2] = puDonutEt_[3] = 0; | ||
} | ||
|
||
l1t::Jet::Jet( const LorentzVector& p4, | ||
Jet::Jet( const LorentzVector& p4, | ||
int pt, | ||
int eta, | ||
int phi, | ||
int qual ) | ||
: L1Candidate(p4, pt, eta, phi, qual, 0) | ||
{ | ||
|
||
clear_extended(); | ||
} | ||
|
||
l1t::Jet::Jet( const PolarLorentzVector& p4, | ||
Jet::Jet( const PolarLorentzVector& p4, | ||
int pt, | ||
int eta, | ||
int phi, | ||
int qual ) | ||
: L1Candidate(p4, pt, eta, phi, qual, 0) | ||
{ | ||
|
||
clear_extended(); | ||
} | ||
|
||
l1t::Jet::~Jet() | ||
Jet::~Jet() | ||
{ | ||
|
||
} | ||
|
||
void Jet::setTowerIEta(short int ieta) { | ||
towerIEta_ = ieta; | ||
} | ||
|
||
void Jet::setTowerIPhi(short int iphi) { | ||
towerIPhi_ = iphi; | ||
} | ||
|
||
void Jet::setSeedEt(short int et) { | ||
seedEt_ = et; | ||
} | ||
|
||
void Jet::setRawEt(short int et) { | ||
rawEt_ = et; | ||
} | ||
|
||
void Jet::setPUEt(short int et) { | ||
puEt_ = et; | ||
} | ||
|
||
void Jet::setPUDonutEt(int i, short int et) { | ||
if (i>=0 && i<4) puDonutEt_[i] = et; | ||
} | ||
|
||
short int Jet::towerIEta() { | ||
return towerIEta_; | ||
} | ||
|
||
short int Jet::towerIPhi() { | ||
return towerIPhi_; | ||
} | ||
|
||
short int Jet::seedEt() { | ||
return seedEt_; | ||
} | ||
|
||
short int Jet::rawEt() { | ||
return rawEt_; | ||
} | ||
|
||
short int Jet::puEt() { | ||
return puEt_; | ||
} | ||
|
||
short int Jet::puDonutEt(int i) { | ||
if (i>=0 && i<4) return puDonutEt_[i]; | ||
else return 0; | ||
} |
Oops, something went wrong.