ATLAS Offline Software
LArCalorimeter
LArCOOLConditions
LArCOOLConditions
LArAutoCorrBlob.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//Dear emacs, this is -*-c++-*-
6
7
#ifndef LARCOOLCONDITIONS_LARAUTOCORRBLOB_H
8
#define LARCOOLCONDITIONS_LARAUTOCORRBLOB_H
9
10
#include "
LArElecCalib/ILArAutoCorr.h
"
11
#include "
Identifier/IdentifierHash.h
"
12
#include "
LArElecCalib/LArCalibErrorCode.h
"
13
#include <vector>
14
15
class
CondAttrListCollection
;
16
17
class
LArAutoCorrBlob
{
18
19
public
:
20
enum
{
ERRORCODE
=
LArElecCalib::ERRORCODE
};
21
22
LArAutoCorrBlob
();
23
~LArAutoCorrBlob
();
24
25
protected
:
26
void
readBlob
(
const
CondAttrListCollection
* attrList, MsgStream&
msg
);
27
28
ILArAutoCorr::AutoCorrRef_t
autocorrByHash
(
const
IdentifierHash
&
hs
,
int
gain
)
const
{
29
const
float
*
start
=
m_pAutoCorr
[
gain
]+
hs
*
m_nPoints
;
30
if
(*
start
==
ERRORCODE
)
31
return
ILArAutoCorr::AutoCorrRef_t
(NULL,NULL);
32
else
33
return
ILArAutoCorr::AutoCorrRef_t
(
start
,
start
+
m_nPoints
);
34
}
35
36
protected
:
37
unsigned
m_nChannels
;
38
unsigned
m_nPoints
;
39
40
private
:
41
std::vector<const float*>
m_pAutoCorr
;
42
};
43
44
45
#endif
LArAutoCorrBlob::m_pAutoCorr
std::vector< const float * > m_pAutoCorr
Definition:
LArAutoCorrBlob.h:41
LArAutoCorrBlob::m_nChannels
unsigned m_nChannels
Definition:
LArAutoCorrBlob.h:37
ILArAutoCorr::AutoCorrRef_t
LArVectorProxy AutoCorrRef_t
Definition:
ILArAutoCorr.h:33
mergePhysValFiles.start
start
Definition:
DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition:
LArCalibErrorCode.h:17
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArAutoCorrBlob::ERRORCODE
@ ERRORCODE
Definition:
LArAutoCorrBlob.h:20
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition:
CondAttrListCollection.h:52
LArCalibErrorCode.h
Defines a common ERRORCODE enum for LAr-Calibration objects.
LArAutoCorrBlob::LArAutoCorrBlob
LArAutoCorrBlob()
Definition:
LArAutoCorrBlob.cxx:9
CreatePhysValWebPage.hs
hs
Definition:
CreatePhysValWebPage.py:107
LArAutoCorrBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition:
LArAutoCorrBlob.cxx:18
LArAutoCorrBlob
Definition:
LArAutoCorrBlob.h:17
LArAutoCorrBlob::autocorrByHash
ILArAutoCorr::AutoCorrRef_t autocorrByHash(const IdentifierHash &hs, int gain) const
Definition:
LArAutoCorrBlob.h:28
IdentifierHash.h
ILArAutoCorr.h
LArAutoCorrBlob::m_nPoints
unsigned m_nPoints
Definition:
LArAutoCorrBlob.h:38
LArAutoCorrBlob::~LArAutoCorrBlob
~LArAutoCorrBlob()
Definition:
LArAutoCorrBlob.cxx:14
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition:
IdentifierHash.h:25
python.AutoConfigFlags.msg
msg
Definition:
AutoConfigFlags.py:7
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition:
LArVectorProxy.h:38
Generated on Thu Nov 7 2024 21:19:13 for ATLAS Offline Software by
1.8.18