ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
ILArAutoCorr.h
IdentifierHash.h
LArCalibErrorCode.h
Defines a common ERRORCODE enum for LAr-Calibration objects.
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number.
Definition
CondAttrListCollection.h:51
ILArAutoCorr::AutoCorrRef_t
LArVectorProxy AutoCorrRef_t
Definition
ILArAutoCorr.h:33
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
LArAutoCorrBlob::m_nPoints
unsigned m_nPoints
Definition
LArAutoCorrBlob.h:38
LArAutoCorrBlob::m_pAutoCorr
std::vector< const float * > m_pAutoCorr
Definition
LArAutoCorrBlob.h:41
LArAutoCorrBlob::LArAutoCorrBlob
LArAutoCorrBlob()
Definition
LArAutoCorrBlob.cxx:9
LArAutoCorrBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition
LArAutoCorrBlob.cxx:18
LArAutoCorrBlob::~LArAutoCorrBlob
~LArAutoCorrBlob()
Definition
LArAutoCorrBlob.cxx:14
LArAutoCorrBlob::ERRORCODE
@ ERRORCODE
Definition
LArAutoCorrBlob.h:20
LArAutoCorrBlob::m_nChannels
unsigned m_nChannels
Definition
LArAutoCorrBlob.h:37
LArAutoCorrBlob::autocorrByHash
ILArAutoCorr::AutoCorrRef_t autocorrByHash(const IdentifierHash &hs, int gain) const
Definition
LArAutoCorrBlob.h:28
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition
LArCalibErrorCode.h:17
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0