13 const std::vector<l1t::Jet> *
input,
14 std::vector<l1t::Jet> *
output){
16 for(std::vector<l1t::Jet>::const_iterator itJet = input->begin();
17 itJet != input->end(); ++itJet){
18 unsigned newPhi = itJet->hwPhi();
19 unsigned newEta =
gtEta(itJet->hwEta());
23 if((itJet->hwQual() & 0x10) == 0x10)
29 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > ldummy(0,0,0,0);
31 l1t::Jet gtJet(*&ldummy, itJet->hwPt(), newEta, newPhi, itJet->hwQual());
32 output->push_back(gtJet);
37 const std::vector<l1t::Jet> *
input,
38 std::vector<l1t::Jet> *
output){
40 for(std::vector<l1t::Jet>::const_iterator itJet = input->begin();
41 itJet != input->end(); ++itJet){
42 uint16_t linPt = (uint16_t)itJet->hwPt();
46 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > ldummy(0,0,0,0);
48 l1t::Jet gtJet(*&ldummy, rankPt, itJet->hwEta(), itJet->hwPhi(), itJet->hwQual());
49 output->push_back(gtJet);
55 const std::vector<l1t::EGamma> *
input,
56 std::vector<l1t::EGamma> *
output){
58 for(std::vector<l1t::EGamma>::const_iterator itEGamma = input->begin();
59 itEGamma != input->end(); ++itEGamma){
60 unsigned newEta =
gtEta(itEGamma->hwEta());
61 unsigned newPhi = itEGamma->hwPhi();
62 const uint16_t rankPt = (uint16_t)itEGamma->hwPt();
65 if((itEGamma->hwQual() & 0x10) == 0x10)
71 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > ldummy(0,0,0,0);
73 l1t::EGamma gtEGamma(*&ldummy, rankPt, newEta, newPhi,
74 itEGamma->hwQual(), itEGamma->hwIso());
75 output->push_back(gtEGamma);
80 const std::vector<l1t::Tau> *
input,
81 std::vector<l1t::Tau> *
output){
82 for(std::vector<l1t::Tau>::const_iterator itTau = input->begin();
83 itTau != input->end(); ++itTau){
84 const unsigned newEta =
gtEta(itTau->hwEta());
85 uint16_t linPt = (uint16_t)itTau->hwPt();
89 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > ldummy(0,0,0,0);
91 l1t::Tau gtTau(*&ldummy, rankPt, newEta, itTau->hwPhi(), itTau->hwQual(), itTau->hwIso());
92 output->push_back(gtTau);
97 const std::vector<l1t::EtSum> *
input,
98 std::vector<l1t::EtSum> *
output){
99 for(std::vector<l1t::EtSum>::const_iterator itEtSum = input->begin();
100 itEtSum != input->end(); ++itEtSum){
105 rankPt = (uint16_t)itEtSum->hwPt();
106 if (EtSum::EtSumType::kMissingHt == itEtSum->getType())
116 ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> > ldummy(0,0,0,0);
118 l1t::EtSum gtEtSum(*&ldummy, itEtSum->getType(), rankPt, 0,
119 itEtSum->hwPhi(), itEtSum->hwQual());
121 output->push_back(gtEtSum);
125 const unsigned int gtEta(
const unsigned int iEta)
127 unsigned rctEta = (iEta<11 ? 10-iEta : iEta-11);
128 return (((rctEta % 7) & 0x7) | (iEta<11 ? 0x8 : 0));
void JetToGtEtaScales(CaloParamsStage1 *params, const std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
const unsigned int gtEta(const unsigned int iEta)
void TauToGtScales(CaloParamsStage1 *params, const std::vector< l1t::Tau > *input, std::vector< l1t::Tau > *output)
uint16_t rank(const uint16_t linear) const
convert from linear Et scale to rank scale
void JetToGtPtScales(CaloParamsStage1 *params, const std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
static std::string const input
void EGammaToGtScales(CaloParamsStage1 *params, const std::vector< l1t::EGamma > *input, std::vector< l1t::EGamma > *output)
unsigned linScaleMax() const
void EtSumToGtScales(CaloParamsStage1 *params, const std::vector< l1t::EtSum > *input, std::vector< l1t::EtSum > *output)