CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/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 #ifndef HCAL_COND_SUPPRESS_DEFAULT
00016  HcalL1TriggerObjects():HcalCondObjectContainer<HcalL1TriggerObject>(0) { }
00017 #endif
00018   HcalL1TriggerObjects(const HcalTopology* topo):HcalCondObjectContainer<HcalL1TriggerObject>(topo) {}
00019 
00020   //fill the chars and read them
00021   void setTagString(std::string fTag) {strncpy(mTag,fTag.c_str(),128);}
00022   void setAlgoString(std::string fAlgo) {strncpy(mAlgo,fAlgo.c_str(),128);}
00023 
00024   std::string getTagString() const {return (std::string)mTag;}
00025   std::string getAlgoString() const {return (std::string)mAlgo;}
00026 
00027   std::string myname() const {return (std::string)"HcalL1TriggerObjects";}
00028 
00029  private:
00030   char mTag[128];
00031   char mAlgo[128];
00032 
00033 };
00034 #endif