Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:51

0001 #ifndef DataFormats_L1TCalorimeter_CaloTower_h
0002 #define DataFormats_L1TCalorimeter_CaloTower_h
0003 
0004 #include "DataFormats/L1Trigger/interface/L1Candidate.h"
0005 #include "DataFormats/L1Trigger/interface/BXVector.h"
0006 
0007 namespace l1t {
0008 
0009   class CaloTower;
0010   typedef BXVector<CaloTower> CaloTowerBxCollection;
0011 
0012   class CaloTower : public L1Candidate {
0013   public:
0014     CaloTower() : etEm_(0.), etHad_(0.), hwEtEm_(0), hwEtHad_(0), hwEtRatio_(0) {}
0015 
0016     CaloTower(const LorentzVector& p4,
0017               double etEm = 0.,
0018               double etHad = 0.,
0019               int pt = 0,
0020               int eta = 0,
0021               int phi = 0,
0022               int qual = 0,
0023               int hwEtEm = 0,
0024               int hwEtHad = 0,
0025               int hwEtRatio = 0);
0026 
0027     ~CaloTower() override;
0028 
0029     void setEtEm(double et);
0030     void setEtHad(double et);
0031 
0032     void setHwEtEm(int et);
0033     void setHwEtHad(int et);
0034     void setHwEtRatio(int ratio);
0035 
0036     double etEm() const;
0037     double etHad() const;
0038 
0039     int hwEtEm() const;
0040     int hwEtHad() const;
0041     int hwEtRatio() const;
0042 
0043   private:
0044     // additional hardware quantities
0045     double etEm_;
0046     double etHad_;
0047 
0048     int hwEtEm_;
0049     int hwEtHad_;
0050     int hwEtRatio_;
0051   };
0052 
0053 }  // namespace l1t
0054 
0055 #endif