AculCalPars.h 1.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * AculCalParameters.h
 *
 *  Created on: Oct 20, 2016
 *      Author: vratik
 */

#ifndef ACULCALIB_ACULCALPARS_H_
#define ACULCALIB_ACULCALPARS_H_

#include <iostream>
#include <fstream>
#include <vector>

#include "TString.h"
#include "TArrayD.h"
#include "TArrayI.h"
18
#include "TCutG.h"
19 20 21 22 23 24 25 26 27 28 29

using std::cout;
using std::endl;
using std::vector;

class AculCalPars {

protected:
//general
	TString fParFileName;

30

31

32 33
	//todo energies used for calibration should be in this class

34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
//CsI parameters
//	Int_t fNoCrystals;
//
//	TString fDetName;
//
//	Int_t fNoFiles;
//	vector<TString> fFileName;
//
//	Int_t fEnergyPoints;
//	TArrayD fE;
//

//Si parameteres
	//first
	//second
	//others

public:
	AculCalPars();
	AculCalPars(const char* parFile);
	virtual ~AculCalPars();
	ClassDef(AculCalPars,1);

	virtual void Init();

	//getters
	const char* GetParFileName() {return fParFileName.Data();}
//	Int_t GetNoCrystals() {return fNoCrystals;}
62 63
	virtual const char* GetDetName() {return 0;}
	virtual const char* GetParticleName() {return 0;}
64 65
	virtual Int_t GetNoRawFiles() {return 0;};
	virtual const char* GetFileName(Int_t i) {return 0;};
66 67
	virtual Int_t GetNoEPoints() {return 0;}
	virtual Double_t GetCalEnergy(Int_t i) {return 0.;};
68
	virtual const char* GetCutsFileName() {return 0;}
69 70 71 72 73
	virtual Int_t GetNoCuts() {return 0;}
	virtual TCutG* GetCut(Int_t i) {return 0;};
	virtual TCutG* GetCut(const char* cutName) {return 0;};
	virtual Int_t GetMinChannel(Int_t energy, Int_t crystal) {return 0;};
	virtual Int_t GetMaxChannel(Int_t energy, Int_t crystal) {return 0;};
74 75 76 77 78 79 80 81 82 83 84 85 86

	void SetParFileName(const char* parFile) {fParFileName = parFile;}

	void SetParFile(const char* parfile);
	virtual void PrintParameters(const char* option = "") {};

	virtual void Reset() {};

protected:
	virtual void SetPars() {};
};

#endif /* ACULCALIB_ACULCALPARS_H_ */