Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:09

0001 #ifndef EcalTPGPhysicsConst_h
0002 #define EcalTPGPhysicsConst_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <map>
0007 #include <cstdint>
0008 
0009 class EcalTPGPhysicsConst {
0010 public:
0011   EcalTPGPhysicsConst();
0012   ~EcalTPGPhysicsConst();
0013 
0014   struct Item {
0015     double EtSat;
0016     double ttf_threshold_Low;
0017     double ttf_threshold_High;
0018     double FG_lowThreshold;
0019     double FG_highThreshold;
0020     double FG_lowRatio;
0021     double FG_highRatio;
0022 
0023     COND_SERIALIZABLE;
0024   };
0025 
0026   // first index is for barrel or endcap
0027   const std::map<uint32_t, Item>& getMap() const { return map_; }
0028   void setValue(const uint32_t& id, const Item& value);
0029 
0030 private:
0031   std::map<uint32_t, Item> map_;
0032 
0033   COND_SERIALIZABLE;
0034 };
0035 
0036 typedef std::map<uint32_t, EcalTPGPhysicsConst::Item> EcalTPGPhysicsConstMap;
0037 typedef std::map<uint32_t, EcalTPGPhysicsConst::Item>::const_iterator EcalTPGPhysicsConstMapIterator;
0038 
0039 #endif