6#include "nlohmann/json.hpp"
16 return StatusCode::SUCCESS;
22 return StatusCode::FAILURE;
27 return StatusCode::FAILURE;
33 return StatusCode::FAILURE;
36 unsigned int nLines{0};
37 for (
const ALinePar& aLine : **aLineContainer) {
41 ostr<<
" \"typ\": \""<<aLine.AmdbStation()<<
"\",\n";
42 ostr<<
" \"jzz\": "<<aLine.AmdbEta()<<
", \n";
43 ostr<<
" \"jff\": "<<aLine.AmdbPhi()<<
", \n";
44 ostr<<
" \"job\": "<<aLine.AmdbJob()<<
", \n";
47 ostr<<
" \"svalue\": "<<aLine.getParameter(APar::transS)<<
", \n";
48 ostr<<
" \"zvalue\": "<<aLine.getParameter(APar::transZ)<<
", \n";
49 ostr<<
" \"tvalue\": "<<aLine.getParameter(APar::transT)<<
", \n";
50 ostr<<
" \"tsv\": "<<aLine.getParameter(APar::rotS)<<
", \n";
51 ostr<<
" \"tzv\": "<<aLine.getParameter(APar::rotZ)<<
", \n";
52 ostr<<
" \"ttv\": "<<aLine.getParameter(APar::rotT);
54 BLineContainer::const_iterator itr = bLineContainer->find(aLine.identify());
55 if (itr == bLineContainer->end()) {
57 ostr<<
"\n }"<< (nLines != aLineContainer->size() ?
"," :
"")<<
"\n";
75 ostr<<
" \"xAtlas\": 0 ,\n";
76 ostr<<
" \"yAtlas\": 0 ,\n";
77 ostr<<
" \"hwElement\": \"";
80 ostr<<std::abs(stEta)<<(stEta > 0 ?
"A" :
"C");
83 ostr<<
" }"<< (nLines != aLineContainer->size() ?
"," :
"")<<
"\n";
89 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Parameter
amdb frame (s, z, t) = chamber frame (y, z, x)
virtual StatusCode execute()
Execute method without EventContext (deprecated).
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
float getParameter(const Parameter p) const
Returns a given parameter.
MuonABLineJsonDumpAlg(const std::string &name, ISvcLocator *pSvcLocator)
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Gaudi::Property< std::string > m_jsonFile
SG::ReadCondHandleKey< BLineContainer > m_readBLineKey
virtual StatusCode initialize() override
SG::ReadCondHandleKey< ALineContainer > m_readALineKey
const Identifier & identify() const