ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
11#ifndef SCT_CalibLbTool_h
12#define SCT_CalibLbTool_h
13
14//Athena includes
19
20//Inner detector includes
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
34class StatusCode;
35class ISvcLocator;
36class IdentifierHash;
37
38class 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};
70
72 std::vector<bool> m_swapPhiReadoutDirection{};
73
75
76 void fillLbForWafer(const IdentifierHash& waferHash, const int theFirstStrip, const int groupSize);
77
78};
79#endif
interface for SCT_CalibEvtInfo
Header file to interface class for histograms in the SCT_CalibAlgs package.
This is an Identifier helper class for the SCT subdetector.
Property holding a SG store/key/clid from which a ReadHandle is made.
This is a "hash" representation of an Identifier.
VecInt * m_sct_rdoGroupSize
virtual bool read(const std::string &fileName)
const SCT_ID * m_pSCTHelper
SG::ReadHandleKey< SCT_RDO_Container > m_rdoContainerKey
virtual bool book()
std::vector< int > VecInt
ToolHandle< ISCT_CalibEvtInfo > m_evtInfo
virtual ~SCT_CalibLbTool()=default
SCT_ID::const_id_iterator m_waferItrBegin
SCT_ID::const_id_iterator m_waferItrEnd
VecInt * m_sct_firstStrip
virtual StatusCode initialize()
std::vector< bool > m_swapPhiReadoutDirection
Swap phi readout direction.
VecInt * m_sct_waferHash
SCT_CalibLbTool(const std::string &, const std::string &, const IInterface *)
virtual bool fill(const bool fromData=false)
void fillLbForWafer(const IdentifierHash &waferHash, const int theFirstStrip, const int groupSize)
virtual bool fillFromData()
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
Property holding a SG store/key/clid from which a ReadHandle is made.