/////////////////////////////////////////////////////////
// Data card template for makeHillas executable        //
//                                                     //
// *** Compulsory cards are:                           //
// PRUNS, CRUNS, DRUNS, OUTFILE                        //
//                                                     //
// the rest are optional                               //
// *** Do NEVER add a datacard with no value after it  //
/////////////////////////////////////////////////////////


// Maximun number of (data) events to be processed)
NEVENTS 10000

// data file directory
IDIR /home/ona/link_data/ 

// Pedestal (PRUNS), calibration (CRUNS) and data runs (DRUNS), e.g 1500-23444,25444,25455-26544
// if PRUNS 0, take pedestals from low gains
PCRUNS 45469
CRUNS  45470
DRUNS 45220-45223,45228-45231,45233-45236,45238,45383-45386,45388-45390,45392-45394,45396-45398,45495-45498,45500

// output file name
// OUTFILE ~/magic/mars/mars/hillasCrab/crab20040215OnA.root
OUTFILE /home/rico/magic/hillasFiles/hillasCrab_200411_new.root


// Selection cut. 
// Condition "==" not supported.
// Enclose all conditions between brakets, like: "(x<y) && (z<5)"
// (see MF description class for more details)
FILTER (MNewImagePar.fNumUsedPixels<400)

// Display flag 
// DISPLAY 0 will simply produce the hillas parameters files
// DISPLAY 1 will show event display and produce ps file
// DISPLAY 2 will produce the ps files, no display
DISPLAY 0

// PS file name
PSFILENAME makehillas.ps

// Signal extractor, higain first, higainlast, logainfirst, logainlast, window size
// signal extractors: 0 fixed window, 1 sliding window, 2 peak search, 3 spline
EXTRACTOR 3 1 11 2 12 2

// calibration flag:
// -1: kDummy
//  0: kNone
//  1: kDefault(F factor)
//  2: kDemocratic
// 11: kDefault(F factor) + bad pixel interpolation
// 21: kDemocratic + bad pixel interpolation
CALFLAG 11

// calibration time:
//   0: kFALSE (no time calibration)
//   1: kTRUE  (time calibration)
CALTIME 1


// Cleaning level (tail cut, boundary cut, number of rings, cleaning method - 1=standard, 2=democratic)
CLEANLEVEL 4.0 3.5 1 1

// Add the following word if you want to include Hadronness calculation, 
// followed by the name of the Random Forest file
RANFOREST /home/rico/magic/mars/mtemp/mifae/programs/RFstd.root

// Add the following word if you want to apply DISP method analysis, 
// followed by the name of the file where the MDispParameters container
// with the optimal values of the DISP parameters is stored
DISP /home/rico/magic/mars/mtemp/mifae/programs/DISPstd.root

//Island calculations
// 0  same as 1                1:normal algorithm 
// 1  islands w/o cleaning     2:alternative algorithm
// 2  islands  w  cleaning
ISLFLAG 0 1

// island cleaning:
// 0: timing method     val:0.2, 0.3, 0.5... 
// 1: no timing method  val: 40, 50, 60...
ISLANDCLEAN 1 40

// topology flag
// 0: do not calculate topology parameters
// 1: calculate topology parameters
TOPFLAG 1

