Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
blob
master
calibrations
generators
offline
database
framework
packages
CaloBase
CaloEmbedding
CaloReco
centrality
ClusterIso
compressor
decayfinder
epd
eventplaneinfo
globalvertex
Half
HFTrackEfficiency
intt
jetbackground
jetbase
KFParticle_sPHENIX
mbd
micromegas
CylinderGeomMicromegas.cc
CylinderGeomMicromegas.h
CylinderGeomMicromegasLinkDef.h
MicromegasCalibrationData.cc
MicromegasCalibrationData.h
MicromegasClusterizer.cc
MicromegasClusterizer.h
MicromegasCombinedDataDecoder.cc
MicromegasCombinedDataDecoder.h
MicromegasCombinedDataEvaluation.cc
MicromegasCombinedDataEvaluation.h
MicromegasCombinedDataEvaluationLinkDef.h
MicromegasDefs.cc
MicromegasDefs.h
MicromegasHotChannelMapData.cc
MicromegasHotChannelMapData.h
MicromegasMapping.cc
MicromegasMapping.h
MicromegasRawDataCalibration.cc
MicromegasRawDataCalibration.h
MicromegasRawDataDecoder.cc
MicromegasRawDataDecoder.h
MicromegasRawDataEvaluation.cc
MicromegasRawDataEvaluation.h
MicromegasRawDataEvaluationLinkDef.h
MicromegasTile.h
MicromegasTileLinkDef.h
mvtx
NodeDump
particleflow
PHField
PHGenFitPkg
PHGeometry
QAUtils
rawtodst
ResonanceJetTagging
tpc
tpccalib
tpcdaq
TPCHitTrackDisplay
trackbase
trackbase_historic
TrackerMillepedeAlignment
TrackingDiagnostics
trackreco
trigger
vararray
QA
simulation
validation
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
MicromegasCalibrationData.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MicromegasCalibrationData.h
1
#ifndef MICROMEGAS_MICROMEGASCALIBRATIONDATA_H
2
#define MICROMEGAS_MICROMEGASCALIBRATIONDATA_H
3
9
#include <
trackbase/TrkrDefs.h
>
10
11
#include <array>
12
#include <map>
13
#include <string>
14
16
class
MicromegasCalibrationData
17
{
18
public
:
19
21
MicromegasCalibrationData
() =
default
;
22
24
25
27
void
read
(
const
std::string
&
/*filename*/
);
28
30
void
set_pedestal
(
int
/*fee*/
,
int
/*channel*/
,
double
/*value*/
);
31
33
void
set_rms
(
int
/*fee*/
,
int
/*channel*/
,
double
/*value*/
);
34
36
38
39
41
void
write
(
const
std::string
&
/*filename*/
)
const
;
42
44
double
get_pedestal
(
int
/*fee*/
,
int
/*channel*/
)
const
;
45
47
double
get_rms
(
int
/*fee*/
,
int
/*channel*/
)
const
;
48
50
double
get_pedestal_mapped
(
TrkrDefs::hitsetkey
/*hitsetkey*/
,
int
/*strip*/
)
const
;
51
53
double
get_rms_mapped
(
TrkrDefs::hitsetkey
/*hitsetkey*/
,
int
/*strip*/
)
const
;
54
56
57
private
:
58
60
class
calibration_data_t
61
{
62
public
:
63
64
calibration_data_t
() =
default
;
65
66
calibration_data_t
(
double
pedestal
,
double
rms
):
67
m_pedestal
( pedestal ),
68
m_rms
( rms )
69
{}
70
71
double
m_pedestal
= 0;
72
double
m_rms
= 0;
73
};
74
75
static
constexpr
int
m_nchannels_fee
= 256;
76
using
calibration_vector_t
= std::array<calibration_data_t,m_nchannels_fee>;
77
79
using
raw_calibration_map_t
= std::map<int, calibration_vector_t>;
80
raw_calibration_map_t
m_raw_calibration_map
;
81
83
using
mapped_calibration_map_t
= std::map<TrkrDefs::hitsetkey,calibration_vector_t>;
84
mapped_calibration_map_t
m_mapped_calibration_map
;
85
86
friend
std::ostream&
operator <<
(std::ostream&,
const
MicromegasCalibrationData
& );
87
88
};
89
90
#endif
coresoftware
blob
master
offline
packages
micromegas
MicromegasCalibrationData.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration