Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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