ATLAS Offline Software
Loading...
Searching...
No Matches
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
16#include "GaudiKernel/ToolHandle.h"
18
20
21//local includes
23
24//STL includes
25#include <string>
26
27//fwd declarations
28class StatusCode;
29class ISvcLocator;
30
31class 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;
64 int m_maxHash{0};
65
66 void fillBsErrorsForWafer(const Identifier& waferId, const int type);
67
68};
69#endif
interface file for tool that keeps track of errors in the bytestream.
Header file to interface class for histograms in the SCT_CalibAlgs package.
This is an Identifier helper class for the SCT subdetector.
virtual bool read(const std::string &fileName)
SCT_ID::const_id_iterator m_waferItrBegin
SCT_CalibBsErrorTool(const std::string &, const std::string &, const IInterface *)
void fillBsErrorsForWafer(const Identifier &waferId, const int type)
virtual StatusCode finalize()
SCT_ID::const_id_iterator m_waferItrEnd
ToolHandle< ISCT_ByteStreamErrorsTool > m_bytestreamErrorsTool
virtual StatusCode initialize()
virtual ~SCT_CalibBsErrorTool()=default
virtual bool fill(const bool fromData=false)
std::vector< int > VecInt
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
std::vector< Identifier >::const_iterator const_id_iterator
Definition SCT_ID.h:73