/////////////////////////////////////////////////////////
// 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 99999999

// data file directory
IDIR /mnt/magic/Data/rootdata/CrabNebula/Period021/2004_09_22/

// Pedestal (PRUNS), calibration (CRUNS) and data runs (DRUNS), e.g 1500-23444,25444,25455-26544
// if PRUNS 0, take pedestals from low gains
PCRUNS 39313
CRUNS  39315
PRUNS 0
DRUNS 39261,39262,39264,39265,39269,39271,39273,39274,39276,39277,39279,39280,39282,39283,39285
//,39286,39288,39290,39292-39294,39296-39299,39301,39302,39304-39306,39308,39309,39311,39318,39319,39321,39322,39324,39325,39327,39328,39330,39331,39333,39334,39336-39338,39340-39342,39344,39348-39350,39352-39355,39357,39358,39360-39362,39364-39366,39368-39370,39372,39373
// 37478-37480,37482-37484,37486,37487,37489-37491,37493-37495,37497-37499,37501-37502,37504-37505,37507-37508,37510-37512,37514,37516-37519,37521,37522,37524,37525,37527-37529,37531,37532,37534,37535,37537-37539,37541-37544,37546-37551,37553-37555

// output file name
// OUTFILE ~/magic/mars/mars/hillasCrab/crab20040215OnA.root
OUTFILE /local_disk/jrico/prueba2.root

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

// 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
EXTRACTOR 2 0 14 2 14 6

// 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 1

// 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 2.5 2.0 1 1

//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

