ATLAS Offline Software
LArConditionsTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
15 #ifndef LARIOV_LARCONDITIONSTESTALG_H
16 #define LARIOV_LARCONDITIONSTESTALG_H
17 
27 
33 
34 
35 class LArOnlineID;
36 class GenericDbTable;
37 class LArRampMC;
38 
40 {
41 
42 public:
43 
44  LArConditionsTestAlg(const std::string& name, ISvcLocator* pSvcLocator);
45  virtual ~LArConditionsTestAlg();
46 
47  virtual StatusCode initialize() override;
48  virtual StatusCode execute() override;
49  virtual StatusCode finalize() override;
50 
51 private:
52 
53  StatusCode createCompareObjects();
54  StatusCode testCondObjects();
55  StatusCode testEachCondObject ATLAS_NOT_THREAD_SAFE (const LArRampMC* ramps);
56  StatusCode testChannelSet();
57  StatusCode testDbObjectRead() ;
58 
59  // Cache of compare data
60  std::vector<LArRampPTmp> m_rampCache;
61  std::vector<LArRampPTmp> m_rampCorrections;
62 
63  const LArOnlineID* m_onlineID{};
64  BooleanProperty m_testCondObjs{this, "TestCondObjs", false};
65  BooleanProperty m_readCondObjs{this, "ReadCondObjs", false};
66  BooleanProperty m_writeCondObjs{this, "WriteCondObjs", false};
67  BooleanProperty m_writeCorrections{this, "WriteCorrections", false};
68  BooleanProperty m_applyCorrections{this, "ApplyCorrections", false};
69  BooleanProperty m_testReadDB{this, "TestReadDBDirect", false};
70  BooleanProperty m_TB{this, "Testbeam", false};
71  IntegerProperty m_tbin{this, "Tbin", 0};
72 };
73 #endif // LARIOV_LARCONDITIONSTESTALG_H
74 
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
LArFebRodMapping.h
LArConditionsTestAlg::m_rampCache
std::vector< LArRampPTmp > m_rampCache
Definition: LArConditionsTestAlg.h:60
LArRampMC
Implementation of the interface ILArRamp for MC Derives from LArRampComplete, and implements the phi-...
Definition: LArRampMC.h:22
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
LArRampPTmp.h
initialize
void initialize()
Definition: run_EoverP.cxx:894
LArConditionsTestAlg::ATLAS_NOT_THREAD_SAFE
StatusCode testEachCondObject ATLAS_NOT_THREAD_SAFE(const LArRampMC *ramps)
LArG4FSStartPointFilterLegacy.execute
execute
Definition: LArG4FSStartPointFilterLegacy.py:20
LArConditionsTestAlg
Athena algorithm used for testing LAr conditions data access.
Definition: LArConditionsTestAlg.h:40
LArConditionsTestAlg::m_rampCorrections
std::vector< LArRampPTmp > m_rampCorrections
Definition: LArConditionsTestAlg.h:61
AthAlgorithm.h
LArOnOffIdMapping.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GenericDbTable
Definition: GenericDbTable.h:20
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
LArOnlineID
Definition: LArOnlineID.h:20
checker_macros.h
Define macros for attributes used to control the static checker.
LArCalibLineMapping.h