source: trunk/MagicSoft/Mars/mjobs/MJCalib.cc@ 6292

Last change on this file since 6292 was 6281, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.8 KB
Line 
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 Cerenkov 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!
18! Author(s): Markus Gaug, 2/2005 <mailto:markus@ifae.es>
19!
20! Copyright: MAGIC Software Development, 2000-2005
21!
22!
23\* ======================================================================== */
24
25/////////////////////////////////////////////////////////////////////////////
26//
27// MJCalib
28//
29// A base class for the calibration jobs
30//
31/////////////////////////////////////////////////////////////////////////////
32#include "MJCalib.h"
33
34ClassImp(MJCalib);
35
36using namespace std;
37
38// --------------------------------------------------------------------------
39//
40// Default constructor.
41//
42// Sets fDataFlag to kIsUseRootData
43//
44MJCalib::MJCalib() : fDataFlag(kIsUseRootData), fRuns(NULL)
45{
46}
47
48Bool_t MJCalib::CheckEnvLocal()
49{
50 if (!HasEnv("DataType"))
51 return kTRUE;
52
53 TString dat = GetEnv("DataType", "");
54 dat = dat.Strip(TString::kBoth);
55 dat.ToLower();
56
57 if (dat == (TString)"raw")
58 SetUseRawData();
59
60 if (dat == (TString)"mc" || dat == (TString)"montecarlo")
61 SetUseMC();
62
63 if (dat == (TString)"root")
64 SetUseRootData();
65
66 return kTRUE;
67}
Note: See TracBrowser for help on using the repository browser.