Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
9
#include "
MicromegasCalibrationData.h
"
10
#include "
MicromegasMapping.h
"
11
12
#include <
fun4all/SubsysReco.h
>
13
14
#include <memory>
15
#include <string>
16
17
class
PHCompositeNode
;
18
20
class
MicromegasRawDataDecoder
:
public
SubsysReco
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
40
void
set_calibration_file
(
const
std::string
&
value
) {
m_calibration_filename
=
value
; }
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
50
void
set_sample_min
(
int
value
) {
m_sample_min
=
value
; }
51
53
void
set_sample_max
(
int
value
) {
m_sample_max
=
value
; }
54
55
private
:
56
58
std::string
m_calibration_filename
=
"TPOT_Pedestal_000.root"
;
59
61
MicromegasCalibrationData
m_calibration_data
;
62
64
MicromegasMapping
m_mapping
;
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>;
81
hitcountmap_t
m_hitcounts
;
82
83
};
84
85
#endif
coresoftware
blob
master
offline
packages
micromegas
MicromegasRawDataDecoder.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration