Changeset 4889 for trunk/MagicSoft/Mars/mjobs/MJStar.cc
- Timestamp:
- 09/08/04 18:49:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r4760 r4889 43 43 #include "MStatusDisplay.h" 44 44 45 #include "MH3.h" 46 #include "MHVsTime.h" 45 47 #include "MHCamEvent.h" 46 47 #include "MReadMarsFile.h" 48 #include "MBinning.h" 49 50 #include "MReadReports.h" 48 51 #include "MGeomApply.h" 52 #include "MEventRateCalc.h" 49 53 #include "MImgCleanStd.h" 50 54 #include "MHillasCalc.h" 51 55 #include "MFillH.h" 52 56 #include "MWriteRootFile.h" 57 58 #include "MPointingPosCalc.h" 59 //#include "MSrcPosFromModel.h" 53 60 54 61 ClassImp(MJStar); … … 138 145 plist.AddToList(&tlist); 139 146 140 MReadMarsFile read("Events"); 141 read.DisableAutoScheme(); 147 MReadReports read; 148 read.AddTree("Events", "MTime.", kTRUE); 149 read.AddTree("Drive"); 150 //read.AddTree("Trigger"); 151 //read.AddTree("Camera"); 152 //read.AddTree("CC"); 153 //read.AddTree("Currents"); 142 154 read.AddFiles(iter); 143 //read.AddFiles(fnamein); 155 156 // ------------------ Setup general tasks ---------------- 144 157 145 158 MGeomApply apply; // Only necessary to craete geometry 159 MEventRateCalc rate; 160 /* 161 MEventRateCalc rate10000; 162 rate10000.SetNameEventRate("MEventRate10000"); 163 rate10000.SetNumEvents(10000); 164 */ 146 165 //MBadPixelsMerge merge(&badpix); 147 166 MImgCleanStd clean; 148 167 MHillasCalc hcalc; 149 168 169 // ------------------ Setup histograms and fill tasks ---------------- 150 170 MHCamEvent evt0("Cleaned"); 151 171 evt0.SetType(0); 172 173 MH3 h1("MEventRate.fRate"); 174 h1.SetName("MHEventRate"); 175 h1.SetLogy(); 176 /* 177 MH3 h12("MEventRate10000.fRate"); 178 h12.SetName("MHEventRate"); 179 h12.SetLogy(); 180 */ 181 MBinning b1("BinningMHEventRate"); 182 b1.SetEdges(150, 0, 1500); 183 plist.AddToList(&b1); 184 185 MHVsTime h2("MEffectiveOnTime.fVal", "MEffectiveOnTime.fErr"); 186 h2.SetAxisTitle("T_{eff}"); 187 h2.SetTitle("Effective On-Time T_{eff} vs. Time"); 188 152 189 MFillH fill0(&evt0, "MCerPhotEvt", "FillCerPhotEvt"); 153 190 MFillH fill1("MHHillas", "MHillas", "FillHillas"); 154 MFillH fill2("MHHillasExt", " MHillasExt","FillHillasExt");191 MFillH fill2("MHHillasExt", "", "FillHillasExt"); 155 192 MFillH fill3("MHHillasSrc", "MHillasSrc", "FillHillasSrc"); 156 193 MFillH fill4("MHImagePar", "MImagePar", "FillImagePar"); 157 194 MFillH fill5("MHNewImagePar", "MNewImagePar", "FillNewImagePar"); 158 MFillH fill6("MHCerPhot"); 159 160 MWriteRootFile write(2, "images/{s/_Y_/_I_}"); 161 write.AddContainer("MMcEvt", "Events", kFALSE); 195 MFillH fill6("MHImageParTime","MImageParTime","FillImageParTime"); 196 MFillH fill7("MHNewImagePar2","MNewImagePar2","FillNewImagePar2"); 197 MFillH fill8(&h1, "", "FillEventRate"); 198 MFillH fill9("MHEffectiveOnTime", "MTime", "FillEffOnTime"); 199 MFillH filla(&h2, "MTimeEffectiveOnTime", "FillEffOnTimeVsTime"); 200 //MFillH fillb(&h12, "", "FillEvtRate2"); 201 //MFillH fill9("MHCerPhot"); 202 203 fill8.SetNameTab("EvtRate"); 204 fill9.SetNameTab("EffOnTime"); 205 fill9.SetNameTab("EffOnVsTime"); 206 207 // ------------------ Setup write task ---------------- 208 209 MWriteRootFile write(2, Form("%s{s/_Y_/_I_}", fPathOut.Data()), fOverwrite); 210 // Data 162 211 write.AddContainer("MHillas", "Events"); 163 212 write.AddContainer("MHillasExt", "Events"); … … 165 214 write.AddContainer("MImagePar", "Events"); 166 215 write.AddContainer("MNewImagePar", "Events"); 216 write.AddContainer("MNewImagePar2", "Events"); 217 write.AddContainer("MImageParTime", "Events"); 167 218 write.AddContainer("MTime", "Events"); 168 219 write.AddContainer("MRawEvtHeader", "Events"); 169 write.AddContainer("MRawRunHeader", "RunHeaders"); 170 write.AddContainer("MBadPixelsCam", "RunHeaders"); 171 write.AddContainer("MGeomCam", "RunHeaders"); 220 // Monte Carlo 221 write.AddContainer("MMcEvt", "Events", kFALSE); 222 write.AddContainer("MMcTrig", "Events", kFALSE); 223 // Run Header 224 write.AddContainer("MRawRunHeader", "RunHeaders"); 225 write.AddContainer("MBadPixelsCam", "RunHeaders"); 226 write.AddContainer("MGeomCam", "RunHeaders"); 172 227 //write.AddContainer("MObservatory", "RunHeaders"); 228 // Monte Carlo Headers 229 write.AddContainer("MMcTrigHeader", "RunHeaders", kFALSE); 230 write.AddContainer("MMcConfigRunHeader", "RunHeaders", kFALSE); 231 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders", kFALSE); 232 // Drive 233 //write.AddContainer("MSrcPosCam", "Drive"); 234 write.AddContainer("MPointingPos", "Drive"); 235 write.AddContainer("MReportDrive", "Drive"); 236 write.AddContainer("MTimeDrive", "Drive"); 237 // Effective On Time 238 write.AddContainer("MEffectiveOnTime", "EffectiveOnTime"); 239 write.AddContainer("MTimeEffectiveOnTime", "EffectiveOnTime"); 240 241 MTaskList tlist2; 242 tlist2.AddToList(&apply); 243 tlist2.AddToList(&rate); 244 //tlist2.AddToList(&rate10000); 245 tlist2.AddToList(&fill8); 246 tlist2.AddToList(&fill9); 247 tlist2.AddToList(&filla); 248 //tlist2.AddToList(&fillb); 249 tlist2.AddToList(&clean); 250 tlist2.AddToList(&fill0); 251 tlist2.AddToList(&hcalc); 252 tlist2.AddToList(&fill1); 253 tlist2.AddToList(&fill2); 254 tlist2.AddToList(&fill3); 255 tlist2.AddToList(&fill4); 256 tlist2.AddToList(&fill5); 257 tlist2.AddToList(&fill6); 258 tlist2.AddToList(&fill7); 259 //tlist2.AddToList(&fill9); 260 261 MPointingPosCalc pcalc; 262 //MSrcPosFromModel srcpos; 263 264 MTaskList tlist3; 265 tlist3.AddToList(&pcalc); 266 //tlist3.AddToList(&srcpos); 173 267 174 268 tlist.AddToList(&read); 175 tlist.AddToList(&apply); 176 tlist.AddToList(&clean); 177 tlist.AddToList(&fill0); 178 tlist.AddToList(&hcalc); 179 tlist.AddToList(&fill1); 180 tlist.AddToList(&fill2); 181 tlist.AddToList(&fill3); 182 tlist.AddToList(&fill4); 183 tlist.AddToList(&fill5); 184 //tlist.AddToList(&fill6); 269 tlist.AddToList(&tlist3, "Drive"); 270 tlist.AddToList(&tlist2, "Events"); 185 271 tlist.AddToList(&write); 186 272
Note:
See TracChangeset
for help on using the changeset viewer.