00001 // Author : Samvel Khalatian (samvel at fnal dot gov) 00002 // Created: 07/27/07 00003 // License: GPL 00004 00005 #include "CalibTracker/SiStripRunSummary/interface/DAQFlagTxt.h" 00006 #include "CalibTracker/SiStripRunSummary/interface/DAQFlagXML.h" 00007 #include "CalibTracker/SiStripRunSummary/interface/DCSFlagTxt.h" 00008 #include "CalibTracker/SiStripRunSummary/interface/DCSFlagXML.h" 00009 #include "CalibTracker/SiStripRunSummary/interface/DQMFlagTxt.h" 00010 #include "CalibTracker/SiStripRunSummary/interface/DQMFlagXML.h" 00011 #include "CalibTracker/SiStripRunSummary/interface/TECFlagTxt.h" 00012 #include "CalibTracker/SiStripRunSummary/interface/TECFlagXML.h" 00013 #include "CalibTracker/SiStripRunSummary/interface/TIDFlagTxt.h" 00014 #include "CalibTracker/SiStripRunSummary/interface/TIDFlagXML.h" 00015 #include "CalibTracker/SiStripRunSummary/interface/TIBFlagTxt.h" 00016 #include "CalibTracker/SiStripRunSummary/interface/TIBFlagXML.h" 00017 #include "CalibTracker/SiStripRunSummary/interface/TOBFlagTxt.h" 00018 #include "CalibTracker/SiStripRunSummary/interface/TOBFlagXML.h" 00019 #include "CalibTracker/SiStripRunSummary/interface/TriggerFlagTxt.h" 00020 #include "CalibTracker/SiStripRunSummary/interface/TriggerFlagXML.h" 00021 00022 #include "CalibTracker/SiStripRunSummary/interface/getFlagTree.h" 00023 00024 GlobalFlagTxt getTXTFlagTree() { 00025 GlobalFlagTxt oGlobalFlag; 00026 oGlobalFlag.setComment( "This is Global Flag TXT"); 00027 00028 // DAQ 00029 if( FlagTxt *poDAQFlag = oGlobalFlag.createChild<DAQFlagTxt>()) { 00030 poDAQFlag->setComment( "GlobalFlagTxt -> DAQFlagTxt"); 00031 00032 if( FlagTxt *poFlag = poDAQFlag->createChild<TECFlagTxt>()) { 00033 poFlag->setState( Flag::OK); 00034 poFlag->setComment( "DAQFlagTxt -> TECFlagTxt"); 00035 } 00036 00037 if( FlagTxt *poFlag = poDAQFlag->createChild<TIBFlagTxt>()) { 00038 poFlag->setState( Flag::OK); 00039 poFlag->setComment( "DAQFlagTxt -> TIBFlagTxt"); 00040 } 00041 00042 if( FlagTxt *poFlag = poDAQFlag->createChild<TIDFlagTxt>()) { 00043 poFlag->setState( Flag::OK); 00044 poFlag->setComment( "DAQFlagTxt -> TIDFlagTxt"); 00045 } 00046 00047 if( FlagTxt *poFlag = poDAQFlag->createChild<TOBFlagTxt>()) { 00048 poFlag->setState( Flag::OK); 00049 poFlag->setComment( "DAQFlagTxt -> TOBFlagTxt"); 00050 } 00051 } // End DAQ 00052 00053 // DCS 00054 if( FlagTxt *poDCSFlag = oGlobalFlag.createChild<DCSFlagTxt>()) { 00055 poDCSFlag->setComment( "GlobalFlagTxt -> DCSFlagTxt"); 00056 00057 if( FlagTxt *poFlag = poDCSFlag->createChild<TECFlagTxt>()) { 00058 poFlag->setState( Flag::OK); 00059 poFlag->setComment( "DCSFlagTxt -> TECFlagTxt"); 00060 } 00061 00062 if( FlagTxt *poFlag = poDCSFlag->createChild<TIBFlagTxt>()) { 00063 poFlag->setState( Flag::OK); 00064 poFlag->setComment( "DCSFlagTxt -> TIBFlagTxt"); 00065 } 00066 00067 if( FlagTxt *poFlag = poDCSFlag->createChild<TIDFlagTxt>()) { 00068 poFlag->setState( Flag::OK); 00069 poFlag->setComment( "DCSFlagTxt -> TIDFlagTxt"); 00070 } 00071 00072 if( FlagTxt *poFlag = poDCSFlag->createChild<TOBFlagTxt>()) { 00073 poFlag->setState( Flag::OK); 00074 poFlag->setComment( "DCSFlagTxt -> TOBFlagTxt"); 00075 } 00076 } // End DCS 00077 00078 // DQM 00079 if( FlagTxt *poDQMFlag = oGlobalFlag.createChild<DQMFlagTxt>()) { 00080 poDQMFlag->setComment( "GlobalFlagTxt -> DQMFlagTxt"); 00081 00082 if( FlagTxt *poFlag = poDQMFlag->createChild<TECFlagTxt>()) { 00083 poFlag->setState( Flag::OK); 00084 poFlag->setComment( "DQMFlagTxt -> TECFlagTxt"); 00085 } 00086 00087 if( FlagTxt *poFlag = poDQMFlag->createChild<TIBFlagTxt>()) { 00088 poFlag->setState( Flag::OK); 00089 poFlag->setComment( "DQMFlagTxt -> TIBFlagTxt"); 00090 } 00091 00092 if( FlagTxt *poFlag = poDQMFlag->createChild<TIDFlagTxt>()) { 00093 poFlag->setState( Flag::OK); 00094 poFlag->setComment( "DQMFlagTxt -> TIDFlagTxt"); 00095 } 00096 00097 if( FlagTxt *poFlag = poDQMFlag->createChild<TOBFlagTxt>()) { 00098 poFlag->setState( Flag::OK); 00099 poFlag->setComment( "DQMFlagTxt -> TOBFlagTxt"); 00100 } 00101 } // End DQM 00102 00103 // Trigger 00104 if( FlagTxt *poTriggerFlag = oGlobalFlag.createChild<TriggerFlagTxt>()) { 00105 poTriggerFlag->setState( Flag::ERROR); 00106 poTriggerFlag->setComment( "GlobalFlagTxt -> TriggerFlagTxt"); 00107 } // End Trigger 00108 00109 return oGlobalFlag; 00110 } 00111 00112 GlobalFlagXML getXMLFlagTree() { 00113 GlobalFlagXML oGlobalFlag; 00114 oGlobalFlag.setComment( "This is Global Flag XML"); 00115 00116 // DAQ 00117 if( FlagXML *poDAQFlag = oGlobalFlag.createChild<DAQFlagXML>()) { 00118 poDAQFlag->setComment( "GlobalFlagXML -> DAQFlagXML"); 00119 00120 if( FlagXML *poFlag = poDAQFlag->createChild<TECFlagXML>()) { 00121 poFlag->setState( Flag::OK); 00122 poFlag->setComment( "DAQFlagXML -> TECFlagXML"); 00123 } 00124 00125 if( FlagXML *poFlag = poDAQFlag->createChild<TIBFlagXML>()) { 00126 poFlag->setState( Flag::OK); 00127 poFlag->setComment( "DAQFlagXML -> TIBFlagXML"); 00128 } 00129 00130 if( FlagXML *poFlag = poDAQFlag->createChild<TIDFlagXML>()) { 00131 poFlag->setState( Flag::OK); 00132 poFlag->setComment( "DAQFlagXML -> TIDFlagXML"); 00133 } 00134 00135 if( FlagXML *poFlag = poDAQFlag->createChild<TOBFlagXML>()) { 00136 poFlag->setState( Flag::OK); 00137 poFlag->setComment( "DAQFlagXML -> TOBFlagXML"); 00138 } 00139 } // End DAQ 00140 00141 // DCS 00142 if( FlagXML *poDCSFlag = oGlobalFlag.createChild<DCSFlagXML>()) { 00143 poDCSFlag->setComment( "GlobalFlagXML -> DCSFlagXML"); 00144 00145 if( FlagXML *poFlag = poDCSFlag->createChild<TECFlagXML>()) { 00146 poFlag->setState( Flag::OK); 00147 poFlag->setComment( "DCSFlagXML -> TECFlagXML"); 00148 } 00149 00150 if( FlagXML *poFlag = poDCSFlag->createChild<TIBFlagXML>()) { 00151 poFlag->setState( Flag::OK); 00152 poFlag->setComment( "DCSFlagXML -> TIBFlagXML"); 00153 } 00154 00155 if( FlagXML *poFlag = poDCSFlag->createChild<TIDFlagXML>()) { 00156 poFlag->setState( Flag::OK); 00157 poFlag->setComment( "DCSFlagXML -> TIDFlagXML"); 00158 } 00159 00160 if( FlagXML *poFlag = poDCSFlag->createChild<TOBFlagXML>()) { 00161 poFlag->setState( Flag::OK); 00162 poFlag->setComment( "DCSFlagXML -> TOBFlagXML"); 00163 } 00164 } // End DCS 00165 00166 // DQM 00167 if( FlagXML *poDQMFlag = oGlobalFlag.createChild<DQMFlagXML>()) { 00168 poDQMFlag->setComment( "GlobalFlagXML -> DQMFlagXML"); 00169 00170 if( FlagXML *poFlag = poDQMFlag->createChild<TECFlagXML>()) { 00171 poFlag->setState( Flag::OK); 00172 poFlag->setComment( "DQMFlagXML -> TECFlagXML"); 00173 } 00174 00175 if( FlagXML *poFlag = poDQMFlag->createChild<TIBFlagXML>()) { 00176 poFlag->setState( Flag::OK); 00177 poFlag->setComment( "DQMFlagXML -> TIBFlagXML"); 00178 } 00179 00180 if( FlagXML *poFlag = poDQMFlag->createChild<TIDFlagXML>()) { 00181 poFlag->setState( Flag::OK); 00182 poFlag->setComment( "DQMFlagXML -> TIDFlagXML"); 00183 } 00184 00185 if( FlagXML *poFlag = poDQMFlag->createChild<TOBFlagXML>()) { 00186 poFlag->setState( Flag::OK); 00187 poFlag->setComment( "DQMFlagXML -> TOBFlagXML"); 00188 } 00189 } // End DQM 00190 00191 // Trigger 00192 if( FlagXML *poTriggerFlag = oGlobalFlag.createChild<TriggerFlagXML>()) { 00193 poTriggerFlag->setState( Flag::ERROR); 00194 poTriggerFlag->setComment( "GlobalFlagXML -> TriggerFlagXML"); 00195 } // End Trigger 00196 00197 return oGlobalFlag; 00198 }