Changeset 4906 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 09/09/04 17:51:57 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r4875 r4906 59 59 60 60 #include "MReadReports.h" 61 #include "MReadMarsFile.h" 61 62 #include "MGeomApply.h" 62 63 #include "MPointingPosCalc.h" … … 180 181 } 181 182 182 Bool_t MJCalibrateSignal::ProcessFile(MPedestalCam &pedcam )183 Bool_t MJCalibrateSignal::ProcessFile(MPedestalCam &pedcam, Bool_t ismc) 183 184 { 184 185 if (!fSequence.IsValid()) … … 270 271 plist.AddToList(&tlist); 271 272 272 //MReadMarsFile read("Events"); 273 //read.DisableAutoScheme(); 274 MReadReports read; 275 read.AddTree("Events", "MTime.", kTRUE); 276 read.AddTree("Trigger"); 277 read.AddTree("Camera"); 278 read.AddTree("Drive"); 279 read.AddTree("CC"); 280 read.AddTree("Currents"); 281 read.AddFiles(iter); 282 //read.AddFiles(fnamein); 273 MReadReports readreal; 274 readreal.AddTree("Events", "MTime.", kTRUE); 275 readreal.AddTree("Trigger"); 276 readreal.AddTree("Camera"); 277 readreal.AddTree("Drive"); 278 readreal.AddTree("CC"); 279 readreal.AddTree("Currents"); 280 readreal.AddFiles(iter); 281 282 MReadMarsFile readmc("Events"); 283 readmc.DisableAutoScheme(); 284 readmc.AddFiles(iter); 283 285 284 286 MGeomApply apply; // Only necessary to create geometry … … 332 334 write.AddContainer("MCerPhotEvt", "Events"); 333 335 write.AddContainer("MPedPhotCam", "Events"); 334 write.AddContainer("MTime", "Events" );336 write.AddContainer("MTime", "Events", kFALSE); 335 337 write.AddContainer("MRawEvtHeader", "Events"); 336 338 write.AddContainer("MArrivalTime", "Events"); … … 383 385 384 386 // Now setup main tasklist 385 tlist.AddToList( &read);387 tlist.AddToList(ismc ? (MTask*)&readmc : (MTask*)&readreal); 386 388 tlist.AddToList(&tlist2, "Events"); 387 389 tlist.AddToList(&pcalc, "Drive"); -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h
r4870 r4906 31 31 MJCalibrateSignal(const char *name=NULL, const char *title=NULL); 32 32 33 Bool_t ProcessFile(MPedestalCam &cam );33 Bool_t ProcessFile(MPedestalCam &cam, Bool_t ismc=kFALSE); 34 34 35 35 ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam) -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r4894 r4906 49 49 50 50 #include "MReadReports.h" 51 #include "MReadMarsFile.h" 51 52 #include "MGeomApply.h" 52 53 #include "MEventRateCalc.h" … … 100 101 } 101 102 102 Bool_t MJStar::ProcessFile( )103 Bool_t MJStar::ProcessFile(Bool_t ismc) 103 104 { 104 105 if (!fSequence.IsValid()) … … 145 146 plist.AddToList(&tlist); 146 147 147 MReadReports read ;148 read .AddTree("Events", "MTime.", kTRUE);149 read .AddTree("Drive");148 MReadReports readreal; 149 readreal.AddTree("Events", "MTime.", kTRUE); 150 readreal.AddTree("Drive"); 150 151 //read.AddTree("Trigger"); 151 152 //read.AddTree("Camera"); 152 153 //read.AddTree("CC"); 153 154 //read.AddTree("Currents"); 154 read.AddFiles(iter); 155 readreal.AddFiles(iter); 156 157 MReadMarsFile readmc("Events"); 158 readmc.DisableAutoScheme(); 159 readmc.AddFiles(iter); 155 160 156 161 // ------------------ Setup general tasks ---------------- … … 215 220 write.AddContainer("MNewImagePar2", "Events"); 216 221 write.AddContainer("MImageParTime", "Events"); 217 write.AddContainer("MTime", "Events");218 222 write.AddContainer("MRawEvtHeader", "Events"); 219 // Monte Carlo 220 write.AddContainer("MMcEvt", "Events", kFALSE); 221 write.AddContainer("MMcTrig", "Events", kFALSE); 222 // Run Header 223 write.AddContainer("MRawRunHeader", "RunHeaders"); 224 write.AddContainer("MBadPixelsCam", "RunHeaders"); 225 write.AddContainer("MGeomCam", "RunHeaders"); 226 //write.AddContainer("MObservatory", "RunHeaders"); 227 // Monte Carlo Headers 228 write.AddContainer("MMcTrigHeader", "RunHeaders", kFALSE); 229 write.AddContainer("MMcConfigRunHeader", "RunHeaders", kFALSE); 230 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders", kFALSE); 231 // Drive 232 //write.AddContainer("MSrcPosCam", "Drive"); 233 write.AddContainer("MPointingPos", "Drive"); 234 write.AddContainer("MReportDrive", "Drive"); 235 write.AddContainer("MTimeDrive", "Drive"); 236 // Effective On Time 237 write.AddContainer("MEffectiveOnTime", "EffectiveOnTime"); 238 write.AddContainer("MTimeEffectiveOnTime", "EffectiveOnTime"); 223 if (ismc) 224 { 225 write.AddContainer("MPointingPos", "Events"); 226 // Monte Carlo 227 write.AddContainer("MMcEvt", "Events"); 228 write.AddContainer("MMcTrig", "Events"); 229 // Monte Carlo Headers 230 write.AddContainer("MMcTrigHeader", "RunHeaders"); 231 write.AddContainer("MMcConfigRunHeader", "RunHeaders"); 232 write.AddContainer("MMcCorsikaRunHeader", "RunHeaders"); 233 } 234 else 235 { 236 write.AddContainer("MTime", "Events"); 237 // Run Header 238 write.AddContainer("MRawRunHeader", "RunHeaders"); 239 write.AddContainer("MBadPixelsCam", "RunHeaders"); 240 write.AddContainer("MGeomCam", "RunHeaders"); 241 //write.AddContainer("MObservatory", "RunHeaders"); 242 // Drive 243 //write.AddContainer("MSrcPosCam", "Drive"); 244 write.AddContainer("MPointingPos", "Drive"); 245 write.AddContainer("MReportDrive", "Drive"); 246 write.AddContainer("MTimeDrive", "Drive"); 247 // Effective On Time 248 write.AddContainer("MEffectiveOnTime", "EffectiveOnTime"); 249 write.AddContainer("MTimeEffectiveOnTime", "EffectiveOnTime"); 250 } 239 251 240 252 MTaskList tlist2; 241 253 tlist2.AddToList(&apply); 242 tlist2.AddToList(&rate); 243 //tlist2.AddToList(&rate10000); 244 tlist2.AddToList(&fill8); 245 tlist2.AddToList(&fill9); 246 tlist2.AddToList(&filla); 254 if (!ismc) 255 { 256 tlist2.AddToList(&rate); 257 //tlist2.AddToList(&rate10000); 258 tlist2.AddToList(&fill8); 259 tlist2.AddToList(&fill9); 260 tlist2.AddToList(&filla); 261 } 247 262 //tlist2.AddToList(&fillb); 248 263 tlist2.AddToList(&clean); … … 265 280 //tlist3.AddToList(&srcpos); 266 281 267 tlist.AddToList( &read);282 tlist.AddToList(ismc ? (MTask*)&readmc : (MTask*)&readreal); 268 283 tlist.AddToList(&tlist3, "Drive"); 269 284 tlist.AddToList(&tlist2, "Events"); -
trunk/MagicSoft/Mars/mjobs/MJStar.h
r4756 r4906 14 14 MJStar(const char *name=NULL, const char *title=NULL); 15 15 16 Bool_t ProcessFile( );16 Bool_t ProcessFile(Bool_t ismc=kFALSE); 17 17 18 18 ClassDef(MJStar, 0) // Tool to create a pedestal file (MPedestalCam)
Note:
See TracChangeset
for help on using the changeset viewer.