00001 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00002 // 07/2007, AUTHOR: STEFFEN KAISER 00003 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00004 00005 #ifndef MyMissingEtManagerH 00006 #define MyMissingEtManagerH 00007 00008 //:::::::::::::::::::::::::::::: 00009 //:: CLASS MyMissingEtManager :: 00010 //:::::::::::::::::::::::::::::: 00011 00015 // in the analysis. 00020 00021 //:::::::::::::::::: 00022 //:: HEADER FILES :: 00023 //:::::::::::::::::: 00024 00025 // standard C++ // 00026 #include <iostream> 00027 #include <fstream> 00028 00029 // STL // 00030 #include <string> 00031 #include <vector> 00032 #include <map> 00033 00034 // ROOT // 00035 #include "TString.h" 00036 00037 // NtupleReader // 00038 #include "NtupleReader/MyMissingEt.h" 00039 #include "NtupleReader/MyDatasetInfo.h" 00040 00041 class MyMissingEtManager { 00042 00043 public: 00044 // Constructors // 00045 MyMissingEtManager(void) { 00046 init(); 00047 } 00059 ~MyMissingEtManager(void) { 00060 destruct(); 00061 } 00063 00064 // Methods // 00065 00066 void add_missinget(MyMissingEt met); 00068 00069 MyMissingEt get_missinget(TString name); 00071 00072 void Print(std::string option=""); 00075 00076 00077 //void get_default_met(void); 00078 //void set_default_met(TString default_met); 00079 00080 private: 00081 00082 // private variables and methods // 00083 00084 //MyDatasetInfo 00085 MyDatasetInfo *m_dataset_info; 00086 00087 MyMissingEt retrieve_from_map(TString name); 00089 00090 //define map to store the cutvalues 00091 typedef std::map<TString, MyMissingEt> maptype; 00092 typedef maptype::value_type ValuePair; 00093 00094 maptype m_met_map; 00095 00096 void init(); 00097 // initialization method (variables as defined 00098 // in the constructor of this class) 00099 void destruct(void); 00100 // destruction method 00101 00102 }; 00103 00104 #endif