Changeset 4117 for trunk/MagicSoft/Mars/mtemp/mifae/programs
- Timestamp:
- 05/21/04 17:28:02 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae/programs
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/programs/Makefile
r4050 r4117 26 26 -I../library \ 27 27 -I../../../mbase \ 28 -I../../../mfbase \ 28 29 -I../../../mjobs \ 29 30 -I../../../mpedestal \ -
trunk/MagicSoft/Mars/mtemp/mifae/programs/falsesource.datacard
r4094 r4117 39 39 40 40 // Size cut (lower and upper) in # of photons 41 SIZECUT 1200 999999941 SIZECUT 2000 9999999 42 42 43 43 // Dist cut (lower and upper) in degrees -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makeHillas.cc
r4100 r4117 25 25 #include "MFCosmics.h" 26 26 #include "MContinue.h" 27 #include "MFillH.h"28 27 #include "MLog.h" 29 28 #include "MCerPhotEvt.h" … … 44 43 #include "MIslandClean.h" 45 44 #include "MWriteRootFile.h" 46 #include "MProgressBar.h"47 45 #include "MArgs.h" 48 46 #include "MRunIter.h" 49 47 #include "MJPedestal.h" 50 48 #include "MJCalibration.h" 49 #include "MHillasDisplay.h" 50 #include "MF.h" 51 #include "MContinue.h" 52 53 #include "TApplication.h" 51 54 52 55 #include <iostream> … … 68 71 TString outname; 69 72 TString idirname; 73 TString filter; 70 74 MRunIter caliter; 71 75 MRunIter pediter; 72 76 MRunIter datiter; 73 ULong_t nmaxevents=999999999; 74 Short_t calflag=1; 75 Float_t lcore = 3.0; 76 Float_t ltail = 1.5; 77 Int_t islflag = 0; 78 Float_t lnew = 40; 79 Int_t kmethod = 1; 80 Int_t nfiles = 0; 81 82 const TString defaultcard="input.datacard"; 77 Bool_t display = kFALSE; 78 ULong_t nmaxevents= 999999999; 79 Short_t calflag = 1; 80 Float_t lcore = 3.0; 81 Float_t ltail = 1.5; 82 Int_t islflag = 0; 83 Float_t lnew = 40; 84 Int_t kmethod = 1; 85 Int_t nfiles = 0; 86 87 const TString defaultcard="makehillas.datacard"; 83 88 /*************************************************************/ 84 89 static void Usage() … … 93 98 int main(int argc, char **argv) 94 99 { 100 // create a TApplication to be able to 101 TApplication app("Application",0,0); 102 95 103 // evaluate arguments 96 104 MArgs arg(argc, argv); … … 250 258 plist4.AddToList(&hillas); 251 259 plist4.AddToList(&runhead); 260 261 // cuts 262 MF cut(filter); 252 263 253 264 //tasks … … 285 296 MHillasSrcCalc csrc1; 286 297 287 MWriteRootFile write(outname,"RECREATE"); 288 289 write.AddContainer("MHillas" , "Parameters"); 290 write.AddContainer("MHillasSrc" , "Parameters"); 291 write.AddContainer("MHillasExt" , "Parameters"); 292 write.AddContainer("MNewImagePar" , "Parameters"); 293 write.AddContainer("MRawEvtHeader" , "Parameters"); 294 write.AddContainer("MRawRunHeader" , "Parameters"); 295 write.AddContainer("MConcentration" , "Parameters"); 296 write.AddContainer("MSrcPosCam" , "Parameters"); 297 298 if (islflag == 1 || islflag == 2) 299 write.AddContainer("MIslands1" , "Parameters"); 300 if (islflag == 2) 301 write.AddContainer("MIslands2" , "Parameters"); 298 MContinue applycut(&cut); 299 applycut.SetInverted(kTRUE); 300 MWriteRootFile* write=NULL; 301 MDisplay* disphillas=NULL; 302 303 if(!display) 304 { 305 write = new MWriteRootFile(outname,"RECREATE"); 306 307 write->AddContainer("MHillas" , "Parameters"); 308 write->AddContainer("MHillasSrc" , "Parameters"); 309 write->AddContainer("MHillasExt" , "Parameters"); 310 write->AddContainer("MNewImagePar" , "Parameters"); 311 write->AddContainer("MRawEvtHeader" , "Parameters"); 312 write->AddContainer("MRawRunHeader" , "Parameters"); 313 write->AddContainer("MConcentration" , "Parameters"); 314 write->AddContainer("MSrcPosCam" , "Parameters"); 315 316 if (islflag == 1 || islflag == 2) 317 write->AddContainer("MIslands1" , "Parameters"); 318 if (islflag == 2) 319 write->AddContainer("MIslands2" , "Parameters"); 320 } 321 else 322 { 323 disphillas = new MHillasDisplay(&nphot,&geomcam); 324 } 302 325 303 326 tlist4.AddToList(&read4); … … 322 345 //tlist4.AddToList(&blind2); 323 346 tlist4.AddToList(&hcalc); 324 // tlist4.AddToList(&srcposcalc);325 347 tlist4.AddToList(&csrc1); 326 tlist4.AddToList(&write); 348 tlist4.AddToList(&applycut); 349 if(!display) 350 tlist4.AddToList(write); 351 else 352 tlist4.AddToList(disphillas); 327 353 328 354 // Create and setup the eventloop … … 409 435 } 410 436 437 // exclusion cut 438 if(strcmp(word.Data(),"FILTER")==0) 439 { 440 if(filter.Length()) 441 cout << "readDataCards Warning: overriding existing cut" << endl; 442 443 char ch; 444 while((ch=ifun.get())!='\n') 445 filter.Append(ch); 446 } 447 448 // display flag 449 if(strcmp(word.Data(),"DISPLAY")==0) 450 ifun >> display; 451 411 452 // calibration flag 412 453 if(strcmp(word.Data(),"CALFLAG")==0) 413 454 ifun >> calflag; 455 414 456 415 457 // cleaning level … … 454 496 cout << pfile << endl; 455 497 cout << "Maximum number of events: " << nmaxevents << endl; 456 cout << "Output file name: " << outname << endl; 498 if(filter.Length()) 499 cout << "Applying rejection cut: " << filter << endl; 500 if(!display) 501 cout << "Output file name: " << outname << endl; 457 502 cout << "Calibration flag: " << calflag << endl; 458 503 cout << "Cleaning level: ("<<lcore<<","<<ltail<<")" << endl; … … 489 534 return kTRUE; 490 535 } 536 -
trunk/MagicSoft/Mars/mtemp/mifae/programs/makehillas.datacard
r4050 r4117 14 14 // OUTFILE ~/magic/mars/mars/hillasCrab/crab20040215OnA.root 15 15 OUTFILE ./prueba.root 16 17 // Selection cut. 18 // Condition "==" not supported. 19 // Enclose all conditions between brakets, like: "(x<y) && (z<5)" 20 // (see MF description class for more details) 21 FILTER (MHillas.fLength<100) && (MHillas.fLength>50) 22 23 // Display flag (DISPLAY=1 will show event display and skip saving into output file) 24 DISPLAY 1 16 25 17 26 // calibration flag: … … 34 43 // 1: no timing method val: 40, 50, 60... 35 44 ISLANDCLEAN 1 40 45 -
trunk/MagicSoft/Mars/mtemp/mifae/programs/optimizecuts.datacard
r4056 r4117 4 4 5 5 // On data acceptance rate (e.g 4 for taking 1/4 of whole data sample) 6 ONRATE 16 ONRATE 2 7 7 8 8 // Input file name pattern (On data) 9 ONFILES /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/ mrk20040215OnRotateNoCalB.root9 ONFILES /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/crab20040215OnRotateCalA-D.root 10 10 11 11 // Input file name pattern (Off data) 12 OFFFILES /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/ mrk20040215OffRotateNoCalA-C.root12 OFFFILES /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/crab20040215OffRotateCalA-H.root 13 13 14 14 // output file name 15 OUTFILE ./optimize _fine.out15 OUTFILE ./optimizeCrab_cal_fine.out 16 16 17 17 // Preliminar cuts (size in size units, distance in deg) … … 20 20 21 21 // Length initial, final and step values 22 LENGTHCUTS 0.1 0.40.00522 LENGTHCUTS 0.15 0.35 0.005 23 23 24 24 // Width initial, final and step values 25 WIDTHCUTS 0.0 0.30.00525 WIDTHCUTS 0.05 0.15 0.005 26 26 27 27 -
trunk/MagicSoft/Mars/mtemp/mifae/programs/srcpos.datacard
r4094 r4117 4 4 5 5 // Input file name pattern (wildcards allowed) 6 INPUTFILES /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/ mrk20040215OnNoCalB.root6 INPUTFILES /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/crab20040215OnCal*.root 7 7 8 8 // Specify optionally the name of OFF-data files you want to apply the same source position distribution to 9 OFFFILES /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/ mrk20040215OffNoCal*.root9 OFFFILES /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/crab20040215OffCal*.root 10 10 11 11 // output file name (on data) 12 OUTFILE ./srcPosPrueba.root12 OUTFILE /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/crab20040215OnRotateCalA-D.root 13 13 14 14 // output file name (off data) 15 OFFOUTFILE ./srcPosOffPrueba.root15 OFFOUTFILE /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/hillas/crab20040215OffRotateCalA-H.root 16 16 17 17 // X and Y position of the source (degrees) for a MJ date (days) -important only in case of rotation 18 SRCPOS 0. 21 0.176 53050.077318 SRCPOS 0.3 0.1 53049.89 19 19 20 20 // Flag to determine whether source position is absolute (0) or relative to previous position (1) … … 27 27 28 28 // source coordinates (RA DEC in rads) 29 //SRCCOORDS 1.46 0.384 // (Crab)30 SRCCOORDS 2.899 0.667 // (Mrk 421)29 SRCCOORDS 1.46 0.384 // (Crab) 30 // SRCCOORDS 2.899 0.667 // (Mrk 421) 31 31 32 32 33 33 // File containing source position as a function of run number (invalidates SRCPOS, SRCABS, ROTFLAG and SRCCOORDS values) 34 SRCFILE /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/programs/20040215_Mrk421.B.pos34 // SRCFILE /mnt/users/jrico/magic/mars/Mars_Standard02/mtemp/mifae/programs/20040215_Mrk421.B.pos 35 35 36 36
Note:
See TracChangeset
for help on using the changeset viewer.