source: branches/Mars_McMismatchStudy/mdrs/MDrsCalibration.h@ 19841

Last change on this file since 19841 was 17758, checked in by tbretz, 11 years ago
TSystem and MLogManip come from the fits classes.
File size: 908 bytes
Line 
1#ifndef MARS_MDrsCalibration
2#define MARS_MDrsCalibration
3
4// -------------------------------------------------------------------
5
6#ifndef MARS_MParContainer
7#include "MParContainer.h"
8#endif
9
10#ifndef ROOT_TSystem
11#include <TSystem.h>
12#endif
13
14#ifndef MARS_MLogManip
15#include "MLogManip.h"
16#endif
17
18#ifndef MARS_DrsCalib
19#include "DrsCalib.h"
20#endif
21
22
23class MDrsCalibration : public MParContainer, public DrsCalibration
24{
25public:
26 MDrsCalibration(const char *name=0, const char *title=0)
27 {
28 fName = name ? name : "MDrsCalibration";
29 fTitle = title ? title : "";
30 }
31
32 bool ReadFits(TString str)
33 {
34 gSystem->ExpandPathName(str);
35
36 const std::string msg = ReadFitsImp(str.Data());
37 if (msg.empty())
38 return true;
39
40 *fLog << err << msg << std::endl;
41 return false;
42 }
43
44 void Plot();
45
46 ClassDef(MDrsCalibration, 1)
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.