ATLAS Offline Software
TileCondToolOfc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILECONDITIONS_TILECONDTOOLOFC_H
6 #define TILECONDITIONS_TILECONDTOOLOFC_H
7 
8 // Gaudi includes
9 #include "GaudiKernel/ToolHandle.h"
10 
11 // Athena includes
13 
14 // Tile includes
19 
20 #include "CLHEP/Matrix/Matrix.h"
21 #include <CLHEP/Matrix/Vector.h>
22 #include <map>
23 #include <vector>
24 #include <string>
25 #include <TMatrixD.h>
26 #include <iostream>
27 #include <iomanip>
28 #include <memory>
29 
30 class IdContext;
31 
40 class TileCondToolOfc: public extends<AthAlgTool, ITileCondToolOfc> {
41 
42  public:
43 
44  TileCondToolOfc(const std::string& type, const std::string& name, const IInterface* parent);
45  virtual ~TileCondToolOfc();
46 
47  virtual StatusCode initialize() override;
48  virtual StatusCode finalize() override;
49 
50  //===============================================================
51  //=== ITileCondTollOfc methods
52  //===============================================================
53 
54  virtual StatusCode getOfcWeights(unsigned int drawerIdx,
55  unsigned int channel,
56  unsigned int adc,
57  float& phase,
58  bool of2,
59  TileOfcWeightsStruct& weights,
60  const EventContext& ctx) const override;
61 
62  private:
63  ToolHandle<TileCondToolPulseShape> m_tileToolPulseShape{this,
64  "TileCondToolPulseShape", "TileCondToolPulseShape", "Tile pulse shape tool"};
65 
66  ToolHandle<TileCondToolAutoCr> m_tileToolAutoCr{this,
67  "TileCondToolAutoCr", "TileCondToolAutoCr", "Tile auto correlation matrix tool"};
68 
70 
71  //=== properties
75 };
76 
77 #endif
ReadOfcFromCool.phase
phase
Definition: ReadOfcFromCool.py:127
TileCondToolOfc::m_tileInfo
const TileInfo * m_tileInfo
Definition: TileCondToolOfc.h:69
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
TileCondToolAutoCr.h
TileCondToolOfc::m_t0Sample
int m_t0Sample
Definition: TileCondToolOfc.h:73
ITileCondToolOfc.h
TileInfo.h
TileInfo
Definition: TileInfo.h:49
TileCondToolOfc
Calculates OFCs on the fly using pulse shapes and A/C matrix from database.
Definition: TileCondToolOfc.h:40
TileCondToolOfc::finalize
virtual StatusCode finalize() override
Definition: TileCondToolOfc.cxx:90
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileCondToolOfc::~TileCondToolOfc
virtual ~TileCondToolOfc()
Definition: TileCondToolOfc.cxx:30
AthAlgTool.h
TileOfcWeightsStruct
Definition: ITileCondToolOfc.h:13
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TileCondToolOfc::initialize
virtual StatusCode initialize() override
Definition: TileCondToolOfc.cxx:36
TileCondToolOfc::m_tileToolAutoCr
ToolHandle< TileCondToolAutoCr > m_tileToolAutoCr
Definition: TileCondToolOfc.h:66
TileCondToolPulseShape.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TileCondToolOfc::m_tileToolPulseShape
ToolHandle< TileCondToolPulseShape > m_tileToolPulseShape
Definition: TileCondToolOfc.h:63
TileCondToolOfc::TileCondToolOfc
TileCondToolOfc(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TileCondToolOfc.cxx:16
TileCondToolOfc::m_nSamples
int m_nSamples
Definition: TileCondToolOfc.h:72
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileCondToolOfc::m_deltaCorrelation
bool m_deltaCorrelation
Definition: TileCondToolOfc.h:74
LB_AnalMapSplitter.of2
of2
Definition: LB_AnalMapSplitter.py:50
IdContext
class IdContext
Definition: IdContext.h:34
TileCondToolOfc::getOfcWeights
virtual StatusCode getOfcWeights(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float &phase, bool of2, TileOfcWeightsStruct &weights, const EventContext &ctx) const override
Definition: TileCondToolOfc.cxx:100