Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MicromegasRawDataCalibration.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MicromegasRawDataCalibration.h
1 #ifndef MICROMEGAS_MICROMEGASRAWDATACALIBRATION_H
2 #define MICROMEGAS_MICROMEGASRAWDATACALIBRATION_H
3 
8 #include <fun4all/SubsysReco.h>
9 
10 #include <map>
11 #include <memory>
12 #include <string>
13 
14 class PHCompositeNode;
15 class TFile;
16 class TH1;
17 class TH2;
18 class TProfile;
19 
22 {
23  public:
24 
26  MicromegasRawDataCalibration( const std::string &name = "MicromegasRawDataCalibration" );
27 
29  int Init(PHCompositeNode*) override;
30 
32  int InitRun(PHCompositeNode*) override;
33 
35  int process_event(PHCompositeNode*) override;
36 
38  int End(PHCompositeNode*) override;
39 
42 
45 
48 
49  private:
50 
52  int m_sample_min = 0;
53 
55  int m_sample_max = 100;
56 
58  std::string m_calibration_filename = "TPOT_Pedestal_000.root";
59 
61  using profile_map_t = std::map<int, TProfile*>;
63 
64 };
65 
66 #endif