Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:39

0001 
0002 #include "DataFormats/L1Trigger/interface/EtSumHelper.h"
0003 
0004 using namespace l1t;
0005 
0006 double EtSumHelper::MissingEt() const {
0007   for (auto it = sum_->begin(0); it != sum_->end(0); it++) {
0008     if (it->getType() == EtSum::kMissingEt)
0009       return it->et();
0010   }
0011   return -999.0;
0012 }
0013 
0014 double EtSumHelper::MissingEtPhi() const {
0015   for (auto it = sum_->begin(0); it != sum_->end(0); it++) {
0016     if (it->getType() == EtSum::kMissingEt)
0017       return it->phi();
0018   }
0019   return -999.0;
0020 }
0021 
0022 double EtSumHelper::MissingHt() const {
0023   for (auto it = sum_->begin(0); it != sum_->end(0); it++) {
0024     if (it->getType() == EtSum::kMissingHt)
0025       return it->et();
0026   }
0027   return -999.0;
0028 }
0029 
0030 double EtSumHelper::MissingHtPhi() const {
0031   for (auto it = sum_->begin(0); it != sum_->end(0); it++) {
0032     if (it->getType() == EtSum::kMissingHt)
0033       return it->phi();
0034   }
0035   return -999.0;
0036 }
0037 
0038 double EtSumHelper::TotalEt() const {
0039   for (auto it = sum_->begin(0); it != sum_->end(0); it++) {
0040     if (it->getType() == EtSum::kTotalEt)
0041       return it->et();
0042   }
0043   return -999.0;
0044 }
0045 
0046 double EtSumHelper::TotalHt() const {
0047   for (auto it = sum_->begin(0); it != sum_->end(0); it++) {
0048     if (it->getType() == EtSum::kTotalHt)
0049       return it->et();
0050   }
0051   return -999.0;
0052 }