1 | /* ======================================================================== *\
|
---|
2 | !
|
---|
3 | ! *
|
---|
4 | ! * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
---|
5 | ! * Software. It is distributed to you in the hope that it can be a useful
|
---|
6 | ! * and timesaving tool in analysing Data of imaging Cherenkov telescopes.
|
---|
7 | ! * It is distributed WITHOUT ANY WARRANTY.
|
---|
8 | ! *
|
---|
9 | ! * Permission to use, copy, modify and distribute this software and its
|
---|
10 | ! * documentation for any purpose is hereby granted without fee,
|
---|
11 | ! * provided that the above copyright notice appear in all copies and
|
---|
12 | ! * that both that copyright notice and this permission notice appear
|
---|
13 | ! * in supporting documentation. It is provided "as is" without express
|
---|
14 | ! * or implied warranty.
|
---|
15 | ! *
|
---|
16 | !
|
---|
17 | ! Author(s): Daniel Mazin, 05/2004 <mailto:mazin@imppmu.mpg.de>
|
---|
18 | !
|
---|
19 | ! Copyright: MAGIC Software Development, 2000-2004
|
---|
20 | !
|
---|
21 | !
|
---|
22 | \* ======================================================================== */
|
---|
23 |
|
---|
24 | // Daniel Mazin 14.05.2004 mazin@mppmu.mpg.de
|
---|
25 | // **********************************************************************************
|
---|
26 | // this macro is used to make an image cleaning and calculate the Hillas parameters
|
---|
27 | // input: calibrated data (one or more files using wild card)
|
---|
28 | // output: hillas parameter
|
---|
29 | // **********************************************************************************
|
---|
30 |
|
---|
31 | #include "cleaninghillas.C"
|
---|
32 | void callcleaning()
|
---|
33 | {
|
---|
34 | gROOT->Reset();
|
---|
35 |
|
---|
36 | TString typeInput ="ON"; // -> please specify "ON" or "OFF"
|
---|
37 |
|
---|
38 | const char *onfile="1*.ON";
|
---|
39 | const char *offfile="1*.OFF";
|
---|
40 |
|
---|
41 |
|
---|
42 | TString sourcename = "Crab";
|
---|
43 | TString inPath; // directory where to find calibrated files
|
---|
44 | TString outPath; // directory where to write root-file with hillas parameters
|
---|
45 |
|
---|
46 |
|
---|
47 | inPath = "/.magic/magicserv01/scratch/David/CalibratedData/Crab/2004_01_27/";
|
---|
48 |
|
---|
49 | outPath = "~mazin/data/Crab/2004_01_27/";
|
---|
50 |
|
---|
51 | cleaninghillas(onfile, offfile, typeInput, inPath, outPath, sourcename);
|
---|
52 |
|
---|
53 | cout << " finished, back from callcleaning " << endl;
|
---|
54 | cout << " Hillas file " << outPath << sourcename << "Hillas" << typeInput << ".root is created " << endl;
|
---|
55 |
|
---|
56 | }
|
---|