Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MicromegasCombinedDataDecoder.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MicromegasCombinedDataDecoder.h
1 #ifndef MICROMEGAS_MICROMEGASCOMBINEDDATADECODER_H
2 #define MICROMEGAS_MICROMEGASCOMBINEDDATADECODER_H
3 
11 #include "MicromegasMapping.h"
12 
13 #include <fun4all/SubsysReco.h>
14 
15 #include <memory>
16 #include <string>
17 
18 class PHCompositeNode;
19 
22 {
23  public:
24 
26  MicromegasCombinedDataDecoder( const std::string &name = "MicromegasCombinedDataDecoder" );
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 
47  void set_n_sigma( double value ) { m_n_sigma = value; }
48 
50 
51  void set_min_adc( double value ) { m_min_adc = value; }
52 
55 
58 
59  private:
60 
62  std::string m_rawhitnodename = "MICROMEGASRAWHIT";
63 
65 
66  std::string m_calibration_filename = "TPOT_Pedestal_000.root";
69 
71 
75 
78 
80  double m_n_sigma = 5;
81 
83  /* This removes faulty channels for which calibration has failed */
84  double m_min_adc = 50;
85 
87  int m_sample_min = 0;
88 
90  int m_sample_max = 100;
91 
93  using hitcountmap_t = std::map<TrkrDefs::hitsetkey,int>;
95 
96 };
97 
98 #endif