ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetCalibAlgs
SCT_CalibAlgs
src
SCT_CalibBsErrorTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
10
11
#ifndef SCT_CalibBsErrorTool_h
12
#define SCT_CalibBsErrorTool_h
13
14
//Athena includes
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
#include "GaudiKernel/ToolHandle.h"
17
#include "
InDetIdentifier/SCT_ID.h
"
18
19
#include "
SCT_ConditionsTools/ISCT_ByteStreamErrorsTool.h
"
20
21
//local includes
22
#include "
SCT_CalibAlgs/ISCT_CalibHistoTool.h
"
23
24
//STL includes
25
#include <string>
26
27
//fwd declarations
28
class
StatusCode
;
29
class
ISvcLocator;
30
31
class
SCT_CalibBsErrorTool
:
public
extends<AthAlgTool, ISCT_CalibHistoTool>
32
{
33
34
public
:
35
//@name Tool methods, reimplemented
37
SCT_CalibBsErrorTool
(
const
std::string&,
const
std::string&,
const
IInterface*);
38
virtual
~SCT_CalibBsErrorTool
() =
default
;
39
virtual
StatusCode
initialize
();
40
virtual
StatusCode
finalize
();
42
//@name ISCT_CalibHistoSvc methods, reimplemented
44
virtual
bool
book
();
45
virtual
bool
read
(
const
std::string& fileName);
46
virtual
bool
fill
(
const
bool
fromData=
false
);
47
virtual
bool
fillFromData
();
49
50
private
:
51
ToolHandle<ISCT_ByteStreamErrorsTool>
m_bytestreamErrorsTool
{
this
,
"SCT_ByteStreamErrorsTool"
,
"SCT_ByteStreamErrorsTool"
,
"Tool to retrieve SCT ByteStream Errors"
};
52
const
SCT_ID
*
m_pSCTHelper
{
nullptr
};
53
54
// SCT specific numbers
55
SCT_ID::const_id_iterator
m_waferItrBegin
;
56
SCT_ID::const_id_iterator
m_waferItrEnd
;
57
typedef
std::vector<int>
VecInt
;
58
VecInt
*
m_scterr_bec
{
nullptr
};
59
VecInt
*
m_scterr_layer
{
nullptr
};
60
VecInt
*
m_scterr_eta
{
nullptr
};
61
VecInt
*
m_scterr_phi
{
nullptr
};
62
VecInt
*
m_scterr_side
{
nullptr
};
63
VecInt
*
m_scterr_type
{
nullptr
};
64
int
m_maxHash
{0};
65
66
void
fillBsErrorsForWafer
(
const
Identifier
& waferId,
const
int
type
);
67
68
};
69
#endif
AthAlgTool.h
ISCT_ByteStreamErrorsTool.h
interface file for tool that keeps track of errors in the bytestream.
ISCT_CalibHistoTool.h
Header file to interface class for histograms in the SCT_CalibAlgs package.
SCT_ID.h
This is an Identifier helper class for the SCT subdetector.
SCT_CalibBsErrorTool::m_pSCTHelper
const SCT_ID * m_pSCTHelper
Definition
SCT_CalibBsErrorTool.h:52
SCT_CalibBsErrorTool::read
virtual bool read(const std::string &fileName)
Definition
SCT_CalibBsErrorTool.cxx:92
SCT_CalibBsErrorTool::m_scterr_bec
VecInt * m_scterr_bec
Definition
SCT_CalibBsErrorTool.h:58
SCT_CalibBsErrorTool::book
virtual bool book()
Definition
SCT_CalibBsErrorTool.cxx:64
SCT_CalibBsErrorTool::m_waferItrBegin
SCT_ID::const_id_iterator m_waferItrBegin
Definition
SCT_CalibBsErrorTool.h:55
SCT_CalibBsErrorTool::SCT_CalibBsErrorTool
SCT_CalibBsErrorTool(const std::string &, const std::string &, const IInterface *)
Definition
SCT_CalibBsErrorTool.cxx:38
SCT_CalibBsErrorTool::m_scterr_type
VecInt * m_scterr_type
Definition
SCT_CalibBsErrorTool.h:63
SCT_CalibBsErrorTool::m_maxHash
int m_maxHash
Definition
SCT_CalibBsErrorTool.h:64
SCT_CalibBsErrorTool::fillBsErrorsForWafer
void fillBsErrorsForWafer(const Identifier &waferId, const int type)
Definition
SCT_CalibBsErrorTool.cxx:173
SCT_CalibBsErrorTool::fillFromData
virtual bool fillFromData()
Definition
SCT_CalibBsErrorTool.cxx:156
SCT_CalibBsErrorTool::finalize
virtual StatusCode finalize()
Definition
SCT_CalibBsErrorTool.cxx:57
SCT_CalibBsErrorTool::m_scterr_eta
VecInt * m_scterr_eta
Definition
SCT_CalibBsErrorTool.h:60
SCT_CalibBsErrorTool::m_waferItrEnd
SCT_ID::const_id_iterator m_waferItrEnd
Definition
SCT_CalibBsErrorTool.h:56
SCT_CalibBsErrorTool::m_bytestreamErrorsTool
ToolHandle< ISCT_ByteStreamErrorsTool > m_bytestreamErrorsTool
Definition
SCT_CalibBsErrorTool.h:51
SCT_CalibBsErrorTool::m_scterr_side
VecInt * m_scterr_side
Definition
SCT_CalibBsErrorTool.h:62
SCT_CalibBsErrorTool::m_scterr_layer
VecInt * m_scterr_layer
Definition
SCT_CalibBsErrorTool.h:59
SCT_CalibBsErrorTool::initialize
virtual StatusCode initialize()
Definition
SCT_CalibBsErrorTool.cxx:44
SCT_CalibBsErrorTool::~SCT_CalibBsErrorTool
virtual ~SCT_CalibBsErrorTool()=default
SCT_CalibBsErrorTool::fill
virtual bool fill(const bool fromData=false)
Definition
SCT_CalibBsErrorTool.cxx:133
SCT_CalibBsErrorTool::VecInt
std::vector< int > VecInt
Definition
SCT_CalibBsErrorTool.h:57
SCT_CalibBsErrorTool::m_scterr_phi
VecInt * m_scterr_phi
Definition
SCT_CalibBsErrorTool.h:61
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
SCT_ID::const_id_iterator
std::vector< Identifier >::const_iterator const_id_iterator
Definition
SCT_ID.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Identifier
Definition
IdentifierFieldParser.cxx:14
type
Generated on
for ATLAS Offline Software by
1.17.0