ATLAS Offline Software
SCT_CalibLbTool.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_CalibLbTool_h
12 #define SCT_CalibLbTool_h
13 
14 //Athena includes
19 
20 //Inner detector includes
21 #include "InDetIdentifier/SCT_ID.h"
22 
23 //local includes
25 
26 //Gaudi includes
27 #include "GaudiKernel/ToolHandle.h"
28 
29 //STL includes
30 #include <string>
31 
32 //fwd declarations
33 
34 class StatusCode;
35 class ISvcLocator;
36 class IdentifierHash;
37 
38 class SCT_CalibLbTool : public extends<AthAlgTool, ISCT_CalibHistoTool>
39 {
40 
41  public:
42  //@name Tool methods, reimplemented
44  SCT_CalibLbTool(const std::string&, const std::string&, const IInterface*);
45  virtual ~SCT_CalibLbTool() = default;
46  virtual StatusCode initialize();
48  //@name ISCT_CalibHistoTool methods, reimplemented
50  virtual bool book();
51  virtual bool fill(const bool fromData=false);
52  virtual bool read(const std::string& fileName);
53  virtual bool fillFromData();
55 
56  private:
57  ToolHandle<ISCT_CalibEvtInfo> m_evtInfo{this, "SCT_CalibEventInfo", "SCT_CalibEventInfo"};
58 
59  const SCT_ID* m_pSCTHelper{nullptr};
62  typedef std::vector<int> VecInt;
66 
67  //private use in this class
68  int m_LbRange{0};
69  int m_LbsToMerge{0};
70 
72  std::vector<bool> m_swapPhiReadoutDirection{};
73 
74  SG::ReadHandleKey<SCT_RDO_Container> m_rdoContainerKey{this, "RDOContainer", "SCT_RDOs"};
75 
76  void fillLbForWafer(const IdentifierHash& waferHash, const int theFirstStrip, const int groupSize);
77 
78 };
79 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SCT_CalibLbTool::m_sct_rdoGroupSize
VecInt * m_sct_rdoGroupSize
Definition: SCT_CalibLbTool.h:65
SCT_ID.h
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
SCT_CalibLbTool::m_pSCTHelper
const SCT_ID * m_pSCTHelper
Definition: SCT_CalibLbTool.h:59
SCT_CalibLbTool::fill
virtual bool fill(const bool fromData=false)
Definition: SCT_CalibLbTool.cxx:189
SCT_CalibLbTool::~SCT_CalibLbTool
virtual ~SCT_CalibLbTool()=default
SCT_CalibLbTool::SCT_CalibLbTool
SCT_CalibLbTool(const std::string &, const std::string &, const IInterface *)
Definition: SCT_CalibLbTool.cxx:44
SCT_CalibLbTool::m_LbsToMerge
int m_LbsToMerge
Definition: SCT_CalibLbTool.h:69
SCT_CalibLbTool::book
virtual bool book()
Definition: SCT_CalibLbTool.cxx:85
SCT_ID::const_id_iterator
std::vector< Identifier >::const_iterator const_id_iterator
Definition: SCT_ID.h:73
SCT_CalibLbTool::VecInt
std::vector< int > VecInt
Definition: SCT_CalibLbTool.h:62
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
SCT_RDO_Container.h
FortranAlgorithmOptions.fileName
fileName
Definition: FortranAlgorithmOptions.py:13
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_CalibLbTool::m_rdoContainerKey
SG::ReadHandleKey< SCT_RDO_Container > m_rdoContainerKey
Definition: SCT_CalibLbTool.h:74
AthAlgTool.h
SCT_CalibLbTool::m_sct_waferHash
VecInt * m_sct_waferHash
Definition: SCT_CalibLbTool.h:63
SCT_CalibLbTool::fillLbForWafer
void fillLbForWafer(const IdentifierHash &waferHash, const int theFirstStrip, const int groupSize)
Definition: SCT_CalibLbTool.cxx:260
SCT_CalibLbTool::m_LbRange
int m_LbRange
Definition: SCT_CalibLbTool.h:68
SCT_CalibLbTool::initialize
virtual StatusCode initialize()
Definition: SCT_CalibLbTool.cxx:50
SCT_CalibLbTool::m_waferItrBegin
SCT_ID::const_id_iterator m_waferItrBegin
Definition: SCT_CalibLbTool.h:60
ISCT_CalibEvtInfo.h
SCT_CalibLbTool::m_swapPhiReadoutDirection
std::vector< bool > m_swapPhiReadoutDirection
Swap phi readout direction.
Definition: SCT_CalibLbTool.h:72
SCT_CalibLbTool::fillFromData
virtual bool fillFromData()
Definition: SCT_CalibLbTool.cxx:216
SCT_ID
Definition: SCT_ID.h:68
SCT_CalibLbTool::m_sct_firstStrip
VecInt * m_sct_firstStrip
Definition: SCT_CalibLbTool.h:64
SCT_CalibLbTool::m_waferItrEnd
SCT_ID::const_id_iterator m_waferItrEnd
Definition: SCT_CalibLbTool.h:61
SCT_CalibLbTool::m_evtInfo
ToolHandle< ISCT_CalibEvtInfo > m_evtInfo
Definition: SCT_CalibLbTool.h:57
IdentifierHash
Definition: IdentifierHash.h:38
SCT_CalibLbTool
Definition: SCT_CalibLbTool.h:39
ISCT_CalibHistoTool.h
SCT_CalibLbTool::read
virtual bool read(const std::string &fileName)
Definition: SCT_CalibLbTool.cxx:138