ATLAS Offline Software
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 
11 #ifndef SCT_CalibBsErrorTool_h
12 #define SCT_CalibBsErrorTool_h
13 
14 //Athena includes
16 #include "GaudiKernel/ToolHandle.h"
17 #include "InDetIdentifier/SCT_ID.h"
18 
20 
21 //local includes
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
57  typedef std::vector<int> VecInt;
58  VecInt* m_scterr_bec{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
SCT_CalibBsErrorTool::read
virtual bool read(const std::string &fileName)
Definition: SCT_CalibBsErrorTool.cxx:92
ISCT_ByteStreamErrorsTool.h
SCT_ID.h
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
SCT_CalibBsErrorTool::fill
virtual bool fill(const bool fromData=false)
Definition: SCT_CalibBsErrorTool.cxx:133
SCT_CalibBsErrorTool::m_scterr_phi
VecInt * m_scterr_phi
Definition: SCT_CalibBsErrorTool.h:61
SCT_CalibBsErrorTool::m_waferItrBegin
SCT_ID::const_id_iterator m_waferItrBegin
Definition: SCT_CalibBsErrorTool.h:55
SCT_ID::const_id_iterator
std::vector< Identifier >::const_iterator const_id_iterator
Definition: SCT_ID.h:73
SCT_CalibBsErrorTool::m_waferItrEnd
SCT_ID::const_id_iterator m_waferItrEnd
Definition: SCT_CalibBsErrorTool.h:56
SCT_CalibBsErrorTool::VecInt
std::vector< int > VecInt
Definition: SCT_CalibBsErrorTool.h:57
SCT_CalibBsErrorTool::m_scterr_bec
VecInt * m_scterr_bec
Definition: SCT_CalibBsErrorTool.h:58
SCT_CalibBsErrorTool::finalize
virtual StatusCode finalize()
Definition: SCT_CalibBsErrorTool.cxx:57
SCT_CalibBsErrorTool::m_bytestreamErrorsTool
ToolHandle< ISCT_ByteStreamErrorsTool > m_bytestreamErrorsTool
Definition: SCT_CalibBsErrorTool.h:51
SCT_CalibBsErrorTool::m_pSCTHelper
const SCT_ID * m_pSCTHelper
Definition: SCT_CalibBsErrorTool.h:52
FortranAlgorithmOptions.fileName
fileName
Definition: FortranAlgorithmOptions.py:13
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
SCT_CalibBsErrorTool::m_scterr_side
VecInt * m_scterr_side
Definition: SCT_CalibBsErrorTool.h:62
SCT_CalibBsErrorTool::~SCT_CalibBsErrorTool
virtual ~SCT_CalibBsErrorTool()=default
SCT_CalibBsErrorTool::SCT_CalibBsErrorTool
SCT_CalibBsErrorTool(const std::string &, const std::string &, const IInterface *)
Definition: SCT_CalibBsErrorTool.cxx:38
SCT_CalibBsErrorTool::fillBsErrorsForWafer
void fillBsErrorsForWafer(const Identifier &waferId, const int type)
Definition: SCT_CalibBsErrorTool.cxx:173
SCT_CalibBsErrorTool::initialize
virtual StatusCode initialize()
Definition: SCT_CalibBsErrorTool.cxx:44
SCT_ID
Definition: SCT_ID.h:68
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SCT_CalibBsErrorTool
Definition: SCT_CalibBsErrorTool.h:32
SCT_CalibBsErrorTool::m_scterr_type
VecInt * m_scterr_type
Definition: SCT_CalibBsErrorTool.h:63
SCT_CalibBsErrorTool::m_scterr_layer
VecInt * m_scterr_layer
Definition: SCT_CalibBsErrorTool.h:59
SCT_CalibBsErrorTool::m_maxHash
int m_maxHash
Definition: SCT_CalibBsErrorTool.h:64
ISCT_CalibHistoTool.h
SCT_CalibBsErrorTool::m_scterr_eta
VecInt * m_scterr_eta
Definition: SCT_CalibBsErrorTool.h:60
SCT_CalibBsErrorTool::fillFromData
virtual bool fillFromData()
Definition: SCT_CalibBsErrorTool.cxx:156
SCT_CalibBsErrorTool::book
virtual bool book()
Definition: SCT_CalibBsErrorTool.cxx:64
Identifier
Definition: IdentifierFieldParser.cxx:14