REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
TRestDetectorGainMap.h
1
2/*************************************************************************
3 * This file is part of the REST software framework. *
4 * *
5 * Copyright (C) 2016 GIFNA/TREX (University of Zaragoza) *
6 * For more information see http://gifna.unizar.es/trex *
7 * *
8 * REST is free software: you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation, either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * REST is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have a copy of the GNU General Public License along with *
19 * REST in $REST_PATH/LICENSE. *
20 * If not, see http://www.gnu.org/licenses/. *
21 * For the list of contributors see $REST_PATH/CREDITS. *
22 *************************************************************************/
23
24#ifndef RestCore_TRestCalibration
25#define RestCore_TRestCalibration
26#include <TROOT.h>
27#include <stdlib.h>
28
29#include <fstream>
30#include <iostream>
31
32#include "TApplication.h"
33#include "TArrayI.h"
34#include "TAxis.h"
35#include "TCanvas.h"
36#include "TGraph.h"
37#include "TH2.h"
38#include "TH3.h"
39#include "TNamed.h"
40#include "TRestMetadata.h"
41#include "TString.h"
42#include "TSystem.h"
43#include "TVector3.h"
44
47
49 public:
50 bool relative;
51 std::map<int, double> fChannelGain; // [channel id, gain]
52 TH2F* f2DGainMapping = nullptr; //->
53 TH3F* f3DGainMapping = nullptr; //->
54
55 void InitFromConfigFile() override;
56
57 void SaveToText(std::string filename) {}
58 void ReadGainText(std::string filename) {}
59
60 void DrawChannelGainMap(TRestDetectorReadoutModule* mod = 0);
61
62 ClassDefOverride(TRestDetectorGainMap, 1); // Gas Parameters
63};
64#endif
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
A metadata class to generate/store a readout description.
A base class for any REST metadata class.
Definition: TRestMetadata.h:74