#include <LArAutoCorrDecoderTool.h>
Definition at line 21 of file LArAutoCorrDecoderTool.h.
◆ ~LArAutoCorrDecoderTool()
| LArAutoCorrDecoderTool::~LArAutoCorrDecoderTool |
( |
| ) |
|
|
virtualdefault |
◆ ACDiagonal()
| const Eigen::MatrixXd LArAutoCorrDecoderTool::ACDiagonal |
( |
const HWIdentifier & | CellID, |
|
|
int | gain, |
|
|
unsigned | nSamples = 5 ) const |
|
private |
Definition at line 45 of file LArAutoCorrDecoderTool.cxx.
45 {
46
50 else
52 }
53
54 Eigen::MatrixXd AutoCorrMatrix=Eigen::MatrixXd::Zero(nSamples,nSamples);
55
56 const ILArAutoCorr* autoCorr=nullptr;
58
59
60 if ( autoCorr ) {
61
63
64 if ( dbcorr.size()== 0 ) {
67 }
68 else if (dbcorr.size() < nSamples-1 ) {
69 ATH_MSG_WARNING(
"Not enough samples in AutoCorr vector for channel " <<
m_onlineID->channel_name(CellID) <<
" in Gain = " << gain);
71 }
72
73
75 AutoCorrMatrix(i,i)= 1 ;
76 for (
unsigned j=i+1;j<
nSamples;j++) {
77 AutoCorrMatrix(i,j) = AutoCorrMatrix(j,i) = dbcorr[j-
i-1];
78 }
79 }
80 }
81 else {
83 }
84
86 << " in Gain = " << gain
87 << ":\n" << AutoCorrMatrix);
88
89 return AutoCorrMatrix;
90
91}
#define ATH_MSG_WARNING(x)
LArVectorProxy AutoCorrRef_t
virtual AutoCorrRef_t autoCorr(const HWIdentifier &CellID, int gain) const =0
◆ ACPhysics()
| const Eigen::MatrixXd LArAutoCorrDecoderTool::ACPhysics |
( |
const HWIdentifier & | CellID, |
|
|
int | gain, |
|
|
unsigned | nSamples = 5 ) const |
|
private |
Definition at line 93 of file LArAutoCorrDecoderTool.cxx.
93 {
94
95
99 else
101 }
102
103 Eigen::MatrixXd AutoCorrMatrix=Eigen::MatrixXd::Identity(nSamples,nSamples);
104
105 const ILArAutoCorr* autoCorr=nullptr;
107
108 if ( autoCorr ) {
109
111
112 if ( corrdb.size()== 0 ) {
115 }
116 else if ( corrdb.size() < nSamples*(nSamples+1)/2 ) {
118 << "in Gain = " << gain << " for AC Physics mode");
120 }
121
122
123 const unsigned int nsamples_AC = (-1+((
int)(sqrt(1+8*corrdb.size()))))/2;
127 if (i<=j) {
128 AutoCorrMatrix(i,j) = AutoCorrMatrix(j,i)= corrdb[
k];
129 }
130 }
132 }
133 }
134 else {
136 }
137
139 << " in Gain = " << gain
140 << ":\n" << AutoCorrMatrix);
141 return AutoCorrMatrix;
142
143}
◆ AutoCorr()
| const Eigen::MatrixXd LArAutoCorrDecoderTool::AutoCorr |
( |
const HWIdentifier & | CellID, |
|
|
int | gain, |
|
|
unsigned | nSamples = 5 ) const |
◆ finalize()
| virtual StatusCode LArAutoCorrDecoderTool::finalize |
( |
| ) |
|
|
inlinevirtual |
◆ initialize()
| StatusCode LArAutoCorrDecoderTool::initialize |
( |
| ) |
|
|
virtual |
Definition at line 10 of file LArAutoCorrDecoderTool.cxx.
11{
13
15 const LArOnline_SuperCellID*
ll;
19
20 } else {
21 const LArOnlineID*
ll;
25 }
26
27
29 ATH_MSG_INFO(
"Will always return HIGH gain autocorrelation matrix for EM calo, MEDIUM for HEC and FCAL" );
30
32 return StatusCode::SUCCESS;
33}
#define ATH_CHECK
Evaluate an expression and check for errors.
retrieve(aClass, aKey=None)
◆ interfaceID()
| const InterfaceID & LArAutoCorrDecoderTool::interfaceID |
( |
| ) |
|
|
inlinestatic |
◆ m_alwaysHighGain
| Gaudi::Property<bool> LArAutoCorrDecoderTool::m_alwaysHighGain {this,"UseAlwaysHighGain",false} |
|
private |
◆ m_decodemode
| Gaudi::Property<unsigned> LArAutoCorrDecoderTool::m_decodemode {this,"DecodeMode",0} |
|
private |
◆ m_isSC
| Gaudi::Property<bool> LArAutoCorrDecoderTool::m_isSC {this,"isSC",false} |
|
private |
◆ m_keyAutoCorr
| Gaudi::Property<std::string> LArAutoCorrDecoderTool::m_keyAutoCorr {this,"KeyAutoCorr","LArAutoCorr"} |
|
private |
◆ m_onlineID
The documentation for this class was generated from the following files: