Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 //
0002 // NOTE:  This file was automatically generated from UTM library via import_utm.pl
0003 // DIRECT EDITS MIGHT BE LOST.
0004 //
0005 /**
0006  * @author      Takashi Matsushita
0007  * Created:     9 Nov 2015
0008  */
0009 
0010 #ifndef tmEventSetup_L1TUtmScale_hh
0011 #define tmEventSetup_L1TUtmScale_hh
0012 
0013 #include "CondFormats/L1TObjects/interface/L1TUtmBin.h"
0014 #include "CondFormats/Serialization/interface/Serializable.h"
0015 
0016 #include <map>
0017 #include <string>
0018 #include <vector>
0019 
0020 /**
0021  *  This class implements data structure for Scale
0022  */
0023 class L1TUtmScale {
0024 public:
0025   L1TUtmScale() : name_(), object_(), type_(), minimum_(), maximum_(), step_(), n_bits_(), bins_(), version(0){};
0026 
0027   virtual ~L1TUtmScale() = default;
0028 
0029   /** get scale name */
0030   const std::string& getName() const { return name_; };
0031 
0032   /** get target object type */
0033   int getObjectType() const { return object_; };
0034 
0035   /** get scale type */
0036   int getScaleType() const { return type_; };
0037 
0038   /** get minimum value of the scale */
0039   double getMinimum() const { return minimum_; };
0040 
0041   /** get maximum value of the scale */
0042   double getMaximum() const { return maximum_; };
0043 
0044   /** get step size of linear scale */
0045   double getStep() const { return step_; };
0046 
0047   /** get number of bits for the scale */
0048   unsigned int getNbits() const { return n_bits_; };
0049 
0050   /** get bins for the scale */
0051   const std::vector<L1TUtmBin>& getBins() const { return bins_; };
0052 
0053 protected:
0054   std::string name_;            /**< name of scale */
0055   int object_;                  /**< type of object */
0056   int type_;                    /**< type of scale */
0057   double minimum_;              /**< minimum value of scale */
0058   double maximum_;              /**< maximum value of scale */
0059   double step_;                 /**< step size of linear scale */
0060   unsigned int n_bits_;         /**< number of bits for scale */
0061   std::vector<L1TUtmBin> bins_; /**< array of L1TUtmBin */
0062   unsigned int version;
0063   COND_SERIALIZABLE;
0064 };
0065 
0066 #endif  // tmEventSetup_L1TUtmScale_hh