CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/CondFormats/HcalObjects/interface/HcalL1TriggerObjects.h

Go to the documentation of this file.
00001 #ifndef HcalL1TriggerObjects_h
00002 #define HcalL1TriggerObjects_h
00003 
00004 
00005 #include <cstring>
00006 #include <string>
00007 
00008 #include "CondFormats/HcalObjects/interface/HcalL1TriggerObject.h"
00009 #include "CondFormats/HcalObjects/interface/HcalCondObjectContainer.h"
00010 
00011 
00012 class HcalL1TriggerObjects: public HcalCondObjectContainer<HcalL1TriggerObject>
00013 {
00014  public:
00015   HcalL1TriggerObjects():HcalCondObjectContainer<HcalL1TriggerObject>() {}
00016 
00017   //fill the chars and read them
00018   void setTagString(std::string fTag) {strncpy(mTag,fTag.c_str(),128);}
00019   void setAlgoString(std::string fAlgo) {strncpy(mAlgo,fAlgo.c_str(),128);}
00020 
00021   std::string getTagString() const {return (std::string)mTag;}
00022   std::string getAlgoString() const {return (std::string)mAlgo;}
00023 
00024   std::string myname() const {return (std::string)"HcalL1TriggerObjects";}
00025 
00026  private:
00027   char mTag[128];
00028   char mAlgo[128];
00029 
00030 };
00031 #endif