CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/L1TriggerConfig/DTTPGConfig/interface/DTConfigPedestals.h

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00011 //
00012 //--------------------------------------------------
00013 #ifndef DT_CONFIG_PEDESTALS_H
00014 #define DT_CONFIG_PEDESTALS_H
00015 
00016 //---------------
00017 // C++ Headers --
00018 //---------------
00019 
00020 //----------------------
00021 // Base Class Headers --
00022 //----------------------
00023 
00024 //------------------------------------
00025 // Collaborating Class Declarations --
00026 //------------------------------------
00027 #include "L1TriggerConfig/DTTPGConfig/interface/DTConfig.h"
00028 #include "CondFormats/DTObjects/interface/DTTPGParameters.h"
00029 #include "CondFormats/DTObjects/interface/DTT0.h"
00030 #include "DataFormats/MuonDetId/interface/DTWireId.h"
00031 
00032 //              ---------------------
00033 //              -- Class Interface --
00034 //              ---------------------
00035 
00036 
00037 class DTConfigPedestals : DTConfig {
00038 
00039   public:
00040  
00042   DTConfigPedestals();
00043 
00045   ~DTConfigPedestals();
00046 
00048   float getOffset(const DTWireId& wire);
00049 
00051   void setES(DTTPGParameters const *tpgParams,
00052              DTT0 const *t0Params = 0);
00053 
00055   void setUseT0 (bool useT0) { my_useT0 = useT0; }
00056  
00058   void setDebug (bool debug) { my_debug = debug; }
00059 
00061   void print() const ;
00062 
00063  private :
00064 
00066   inline int debug() const { return my_debug; }
00067 
00069   inline bool useT0() const { return my_useT0; }
00070 
00071  private :
00072 
00073   bool my_debug;
00074   bool my_useT0;
00075   DTTPGParameters const * my_tpgParams;  
00076   DTT0 const *my_t0i;              // pointed object not owned by this class
00077 
00078 };
00079 
00080 #endif