ATLAS Offline Software
LArConditionsTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
15 #ifndef LARIOV_LARCONDITIONSTESTALG_H
16 #define LARIOV_LARCONDITIONSTESTALG_H
17 
28 
34 
35 
36 class LArOnlineID;
37 class GenericDbTable;
38 class LArRampMC;
39 
41 {
42 
43 public:
44 
45 
46  LArConditionsTestAlg(const std::string& name, ISvcLocator* pSvcLocator);
47  virtual ~LArConditionsTestAlg();
48 
49  virtual StatusCode initialize() override;
50  virtual StatusCode execute() override;
51  virtual StatusCode finalize() override;
52 
53  StatusCode testCallBack1(IOVSVC_CALLBACK_ARGS ) ;
54  StatusCode testCallBack2(IOVSVC_CALLBACK_ARGS ) ;
55 
56 private:
57 
58  StatusCode createCompareObjects();
59  StatusCode testCondObjects();
60  StatusCode testEachCondObject ATLAS_NOT_THREAD_SAFE (const LArRampMC* ramps);
61  StatusCode testChannelSet();
62  StatusCode printCondObjects();
63  StatusCode streamOutCondObjects();
64  StatusCode registerCondObjects();
65 
66  StatusCode testFillIOVDb() ;
67  StatusCode testDbObjectRead() ;
68  StatusCode testDCS_Objects() ;
69  void printTable( const GenericDbTable* t) ;
70 
71  // Cache of compare data
72  std::vector<LArRampPTmp> m_rampCache;
73  std::vector<LArRampPTmp> m_rampCorrections;
74 
76  BooleanProperty m_testFill;
77  BooleanProperty m_testCondObjs;
78  BooleanProperty m_readCondObjs;
79  BooleanProperty m_writeCondObjs;
80  BooleanProperty m_writeCorrections;
81  BooleanProperty m_applyCorrections;
82  BooleanProperty m_testReadDB;
83  BooleanProperty m_TB;
84  int m_tbin ;
85 };
86 #endif // LARIOV_LARCONDITIONSTESTALG_H
87 
LArConditionsTestAlg::m_tbin
int m_tbin
Definition: LArConditionsTestAlg.h:84
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:53
LArFebRodMapping.h
LArConditionsTestAlg::m_rampCache
std::vector< LArRampPTmp > m_rampCache
Definition: LArConditionsTestAlg.h:72
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
LArConditionsTestAlg::m_TB
BooleanProperty m_TB
Definition: LArConditionsTestAlg.h:83
LArConditionsTestAlg::m_writeCorrections
BooleanProperty m_writeCorrections
Definition: LArConditionsTestAlg.h:80
LArRampPTmp.h
initialize
void initialize()
Definition: run_EoverP.cxx:894
LArConditionsTestAlg::m_testReadDB
BooleanProperty m_testReadDB
Definition: LArConditionsTestAlg.h:82
LArConditionsTestAlg::ATLAS_NOT_THREAD_SAFE
StatusCode testEachCondObject ATLAS_NOT_THREAD_SAFE(const LArRampMC *ramps)
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
IOVSVC_CALLBACK_ARGS
#define IOVSVC_CALLBACK_ARGS
short hand for IOVSvc call back argument list, to be used when no access to formal arguments is neede...
Definition: IOVSvcDefs.h:24
LArG4FSStartPointFilterLegacy.execute
execute
Definition: LArG4FSStartPointFilterLegacy.py:20
LArConditionsTestAlg
Athena algorithm used for testing LAr conditions data access.
Definition: LArConditionsTestAlg.h:41
LArConditionsTestAlg::m_rampCorrections
std::vector< LArRampPTmp > m_rampCorrections
Definition: LArConditionsTestAlg.h:73
AthAlgorithm.h
LArConditionsTestAlg::m_readCondObjs
BooleanProperty m_readCondObjs
Definition: LArConditionsTestAlg.h:78
LArConditionsTestAlg::m_testFill
BooleanProperty m_testFill
Definition: LArConditionsTestAlg.h:76
LArOnOffIdMapping.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArConditionsTestAlg::m_applyCorrections
BooleanProperty m_applyCorrections
Definition: LArConditionsTestAlg.h:81
GenericDbTable
Definition: GenericDbTable.h:20
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArOnlineID
Definition: LArOnlineID.h:20
LArConditionsTestAlg::m_onlineID
const LArOnlineID * m_onlineID
Definition: LArConditionsTestAlg.h:75
LArConditionsTestAlg::m_writeCondObjs
BooleanProperty m_writeCondObjs
Definition: LArConditionsTestAlg.h:79
IOVSvcDefs.h
defines and typedefs for IOVSvc
LArConditionsTestAlg::m_testCondObjs
BooleanProperty m_testCondObjs
Definition: LArConditionsTestAlg.h:77
LArConditionsTestAlg::printTable
void printTable(const GenericDbTable *t)
checker_macros.h
Define macros for attributes used to control the static checker.
LArCalibLineMapping.h