Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MicromegasRawDataDecoder.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MicromegasRawDataDecoder.h
1 #ifndef MICROMEGAS_MICROMEGASRAWDATADECODER_H
2 #define MICROMEGAS_MICROMEGASRAWDATADECODER_H
3 
10 #include "MicromegasMapping.h"
11 
12 #include <fun4all/SubsysReco.h>
13 
14 #include <memory>
15 #include <string>
16 
17 class PHCompositeNode;
18 
21 {
22  public:
23 
25  MicromegasRawDataDecoder( const std::string &name = "MicromegasRawDataDecoder" );
26 
28  int Init(PHCompositeNode*) override;
29 
31  int InitRun(PHCompositeNode*) override;
32 
34  int process_event(PHCompositeNode*) override;
35 
37  int End(PHCompositeNode*) override;
38 
41 
43  void set_n_sigma( double value ) { m_n_sigma = value; }
44 
46 
47  void set_min_adc( double value ) { m_min_adc = value; }
48 
51 
54 
55  private:
56 
58  std::string m_calibration_filename = "TPOT_Pedestal_000.root";
59 
62 
65 
67  double m_n_sigma = 5;
68 
70  /* This removes faulty channels for which calibration has failed */
71  double m_min_adc = 50;
72 
74  int m_sample_min = 0;
75 
77  int m_sample_max = 100;
78 
80  using hitcountmap_t = std::map<TrkrDefs::hitsetkey,int>;
82 
83 };
84 
85 #endif