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:     12 Mar 2015
0008  */
0009 
0010 #ifndef tmEventSetup_L1TUtmCondition_hh
0011 #define tmEventSetup_L1TUtmCondition_hh
0012 
0013 #include "CondFormats/L1TObjects/interface/L1TUtmCut.h"
0014 #include "CondFormats/L1TObjects/interface/L1TUtmObject.h"
0015 #include "CondFormats/Serialization/interface/Serializable.h"
0016 
0017 #include <string>
0018 #include <vector>
0019 
0020 /**
0021  *  This class implements data structure for Condition
0022  */
0023 class L1TUtmCondition {
0024 public:
0025   L1TUtmCondition() : name_(), type_(-9999), objects_(), cuts_(), version(0){};
0026 
0027   virtual ~L1TUtmCondition() = default;
0028 
0029   /** set condition name */
0030   void setName(const std::string& x) { name_ = x; };
0031 
0032   /** set condition type */
0033   void setType(const int x) { type_ = x; };
0034 
0035   /** get condition name */
0036   const std::string& getName() const { return name_; };
0037 
0038   /** get condition type */
0039   const int getType() const { return type_; };
0040 
0041   /** get objects associated with the condition */
0042   const std::vector<L1TUtmObject>& getObjects() const { return objects_; };
0043 
0044   /** get cuts associated with the condition */
0045   const std::vector<L1TUtmCut>& getCuts() const { return cuts_; };
0046 
0047 protected:
0048   std::string name_;                  /**< name of condition */
0049   int type_;                          /**< type of condition */
0050   std::vector<L1TUtmObject> objects_; /**< list of objects used in condition */
0051   std::vector<L1TUtmCut> cuts_;       /**< list of cuts applied on condition */
0052   unsigned int version;
0053   COND_SERIALIZABLE;
0054 };
0055 
0056 #endif  // tmEventSetup_L1TUtmCondition_hh