|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #define LAR_ALIGN "/LAR/Align"
12 using HepGeom::Translate3D;
13 using HepGeom::Rotate3D;
14 using CLHEP::Hep3Vector;
20 m_writeCondObjs(false),
22 m_streamName(
"CondStream1"),
23 m_inpFile(
"LArAlign.inp"),
24 m_outpFile(
"LArAlign-TEST.pool.root"),
25 m_outpTag(
"LARAlign-TEST"),
26 m_regSvc(
"IOVRegistrationSvc",
name),
27 m_streamer(
"AthenaOutputStreamTool")
58 return StatusCode::SUCCESS;
67 const EventContext& context = getContext();
68 int nrun = context.eventID().run_number();
69 int nevt = context.eventID().event_number();
75 ATH_MSG_DEBUG(
"Creating conditions objects for run " << nrun );
84 return StatusCode::SUCCESS;
102 return StatusCode::SUCCESS;
112 ATH_MSG_INFO(
" DetCondKeyTrans already exists, do nothing " );
113 return StatusCode::SUCCESS;
122 return StatusCode::FAILURE;
125 auto transforms = std::make_unique<DetCondKeyTrans>();
127 char commentSign =
'#';
128 std::string commentLine;
134 if(
key.empty())
continue;
135 if(
key[0]==commentSign)
136 std::getline(
infile,commentLine);
141 transforms->setTransform(
key,Translate3D(
x,
y,
z)*Rotate3D(rotationAngle,
axis));
149 return StatusCode::SUCCESS;
161 else if(
nullptr == align)
164 std::cout <<
" \n\n**************************************************** \n";
165 std::cout <<
" **** **** \n";
166 std::cout <<
" **** Printing Conditions Objects **** \n";
167 std::cout <<
" **** **** \n";
168 std::cout <<
" **************************************************** \n";
172 std::cout <<
" **** **** **** **** END **** **** **** **** \n\n\n";
175 return StatusCode::SUCCESS;
197 return StatusCode::SUCCESS;
207 std::string objname =
"DetCondKeyTrans";
211 return StatusCode::SUCCESS;
Scalar phi() const
phi method
Class to hold set of HepGeom::Transform3D keyed by string value for storage in the conditions DB typi...
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Scalar theta() const
theta method
ToolHandle< IAthenaOutputStreamTool > m_streamer
StatusCode createCondObjects()
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
ServiceHandle< IIOVRegistrationSvc > m_regSvc
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode registerCondObjects()
StringProperty m_outpFile
LArAlignDbAlg(const std::string &name, ISvcLocator *pSvcLocator)
StringProperty m_streamName
StatusCode printCondObjects()
StatusCode streamOutCondObjects()
#define ATH_MSG_WARNING(x)
BooleanProperty m_writeCondObjs