#include <InDetAlignWrt.h>
Definition at line 15 of file InDetAlignWrt.h.
◆ StoreGateSvc_t
◆ InDetAlignWrt()
| InDetAlignWrt::InDetAlignWrt |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
Definition at line 22 of file AlignWrt.cxx.
59{
60
61
91
94
97}
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
static constexpr uint32_t MAXRUN
static constexpr uint32_t MINEVENT
static constexpr uint32_t MAXEVENT
static constexpr uint32_t MINRUN
ToolHandle< IInDetAlignDBTool > p_iddbtool
std::string m_par_dispfile
const xAOD::EventInfo * p_eventinfo
std::string m_par_dbtoolinst
std::string m_par_topname
ToolHandle< IInDetAlignDBTool > p_migratetool
◆ ~InDetAlignWrt()
| InDetAlignWrt::~InDetAlignWrt |
( |
void | | ) |
|
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ DispDB()
| void InDetAlignWrt::DispDB |
( |
| ) |
|
|
private |
Definition at line 188 of file AlignWrt.cxx.
188 {
189
190
191
192
193
194
195
199
200}
◆ dispFile()
| void InDetAlignWrt::dispFile |
( |
| ) |
|
|
private |
Definition at line 202 of file AlignWrt.cxx.
202 {
204 "::dispFile() : Initialise AlignableTransforms from parameters file "
208
209 int nline=0;
210 std::string cline;
212 float rpd,rd,zd;
213 while (infile >> level >> isyst >> dettype >> bec >> layer >> ring >>
214 sector >> rpd >>
215 rd >> zd) {
216 ++nline;
217 ATH_MSG_DEBUG(
"Add displacement level " << level <<
" syst " <<
218 isyst << " to [det,bec,layer] [" << dettype << "," << bec << "," <<
219 layer << "] {rphi,r,z} {" << rpd << "," << rd << "," << zd << "}" );
220 p_iddbtool->dispGroup(dettype,bec,layer,ring,sector,
222 }
224 " displacement recipe lines" );
225}
◆ doMigration()
| void InDetAlignWrt::doMigration |
( |
| ) |
|
|
private |
Definition at line 275 of file AlignWrt.cxx.
275 {
276 ATH_MSG_DEBUG(
"Convert Pixel/SCT alignment from old to new format");
277
279
283
285 msg(MSG::ERROR) <<
"Write of AlignableTransform fails" <<
endmsg;
288}
◆ doOutput()
| void InDetAlignWrt::doOutput |
( |
| ) |
|
|
private |
Definition at line 227 of file AlignWrt.cxx.
227 {
228
230
234 if (StatusCode::SUCCESS!=
p_iddbtool->outputObjs())
235 msg(MSG::ERROR) <<
"Write of AlignableTransforms fails" <<
endmsg;
238 } else {
240 }
241 }
244 }
245}
◆ evtStore()
◆ execute()
| StatusCode InDetAlignWrt::execute |
( |
void | | ) |
|
Definition at line 143 of file AlignWrt.cxx.
143 {
144
149 "Creating null alignment database from geometry information in GeoModel");
151 }
155 } else {
157 }
158 }
162 }
163
165 int event = 0;
170 }
171
172 ATH_MSG_DEBUG(
"In AlignWrt::execute for run/event " << run <<
173 "," << event );
174
177
178 return StatusCode::SUCCESS;
179}
ServiceHandle< StoreGateSvc > & evtStore()
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
retrieve(aClass, aKey=None)
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
| const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
51{
52
53
56 }
57 return Algorithm::extraOutputDeps();
58}
DataObjIDColl m_extendedExtraObjects
◆ finalize()
| StatusCode InDetAlignWrt::finalize |
( |
void | | ) |
|
Definition at line 182 of file AlignWrt.cxx.
182 {
185 return StatusCode::SUCCESS;
186}
◆ genTopTrans()
| void InDetAlignWrt::genTopTrans |
( |
| ) |
|
|
private |
Definition at line 247 of file AlignWrt.cxx.
247 {
248
249 ATH_MSG_DEBUG(
"Initialise TOPTRANS from parameters file: " <<
251 DetCondKeyTrans* dkp=new DetCondKeyTrans();
254
255 int nline=0;
256 std::string cline,
key;
258 while (infile >> key >> xd >> yd >> zd >>
phi >>
theta >> psi) {
259 ++nline;
260 ATH_MSG_DEBUG(
"Add transform name: " << key <<
" x/y/z " << xd <<
"," << yd <<
261 "," << zd <<
" phi/theta/psi " <<
phi <<
"," <<
theta <<
"," << psi );
262 HepGeom::Transform3D newtrans=HepGeom::Transform3D(CLHEP::HepRotation(
phi,
theta,psi),
263 CLHEP::Hep3Vector(xd,yd,zd));
265 }
266 ATH_MSG_DEBUG(
"Read " << nline <<
" lines from recipe file" );
267
268 if (StatusCode::SUCCESS==
detStore()->record(dkp,
"/GLOBAL/GEOM/TOPTRANS")) {
270 } else {
272 }
273}
Scalar phi() const
phi method
Scalar theta() const
theta method
const ServiceHandle< StoreGateSvc > & detStore() const
void setTransform(const std::string &key, const HepGeom::Transform3D &trans)
◆ initialize()
| StatusCode InDetAlignWrt::initialize |
( |
void | | ) |
|
Definition at line 103 of file AlignWrt.cxx.
103 {
105
109 return StatusCode::FAILURE;
110 }
111
112
114
115
118 }
119
124 else msg() <<
"Alignment constants will be initialised from text file" <<
m_par_rfile <<
endmsg;
125 }
129 msg() <<
"ID Alignment database structures will be written on run "
137 msg() <<
"IOV writing will be suppressed - only output stream" <<
endmsg;
138 }
139
140 return StatusCode::SUCCESS;
141}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
bool msgLvl(const MSG::Level lvl) const
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< Algorithm >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
| StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.
Definition at line 66 of file AthAlgorithm.cxx.
66 {
68
71 }
72 ServiceHandle<ICondSvc> cs(
"CondSvc",
name());
74 if (
h->isCondition() &&
h->mode() == Gaudi::DataHandle::Writer) {
75
76 if ( cs.retrieve().isFailure() ) {
78 return StatusCode::SUCCESS;
79 }
80 if (cs->regHandle(this,*h).isFailure()) {
81 sc = StatusCode::FAILURE;
82 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
83 << " with CondSvc");
84 }
85 }
86 }
88}
#define ATH_MSG_WARNING(x)
virtual StatusCode sysInitialize() override
Override sysInitialize.
AthCommonDataStore(const std::string &name, T... args)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
| DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_par_bec
| int InDetAlignWrt::m_par_bec |
|
private |
◆ m_par_create
| bool InDetAlignWrt::m_par_create |
|
private |
◆ m_par_dbtoolinst
| std::string InDetAlignWrt::m_par_dbtoolinst |
|
private |
◆ m_par_dettype
| int InDetAlignWrt::m_par_dettype |
|
private |
◆ m_par_dispcsc
| int InDetAlignWrt::m_par_dispcsc |
|
private |
◆ m_par_dispfile
| std::string InDetAlignWrt::m_par_dispfile |
|
private |
◆ m_par_dispmode
| int InDetAlignWrt::m_par_dispmode |
|
private |
◆ m_par_evt1
| unsigned int InDetAlignWrt::m_par_evt1 |
|
private |
◆ m_par_evt2
| unsigned int InDetAlignWrt::m_par_evt2 |
|
private |
◆ m_par_iovtag
| std::string InDetAlignWrt::m_par_iovtag |
|
private |
◆ m_par_irskip
| int InDetAlignWrt::m_par_irskip |
|
private |
◆ m_par_layer
| int InDetAlignWrt::m_par_layer |
|
private |
◆ m_par_migrate
| bool InDetAlignWrt::m_par_migrate |
|
private |
◆ m_par_ntuple
| bool InDetAlignWrt::m_par_ntuple |
|
private |
◆ m_par_print
| bool InDetAlignWrt::m_par_print |
|
private |
◆ m_par_rdisp
| float InDetAlignWrt::m_par_rdisp |
|
private |
◆ m_par_rfile
| std::string InDetAlignWrt::m_par_rfile |
|
private |
◆ m_par_ring
| int InDetAlignWrt::m_par_ring |
|
private |
◆ m_par_rphidisp
| float InDetAlignWrt::m_par_rphidisp |
|
private |
◆ m_par_run1
| unsigned int InDetAlignWrt::m_par_run1 |
|
private |
◆ m_par_run2
| unsigned int InDetAlignWrt::m_par_run2 |
|
private |
◆ m_par_sector
| int InDetAlignWrt::m_par_sector |
|
private |
◆ m_par_systdisp
| int InDetAlignWrt::m_par_systdisp |
|
private |
◆ m_par_topname
| std::string InDetAlignWrt::m_par_topname |
|
private |
◆ m_par_wfile
| std::string InDetAlignWrt::m_par_wfile |
|
private |
◆ m_par_writetop
| bool InDetAlignWrt::m_par_writetop |
|
private |
◆ m_par_wrt
| bool InDetAlignWrt::m_par_wrt |
|
private |
◆ m_par_wrtevent
| int InDetAlignWrt::m_par_wrtevent |
|
private |
◆ m_par_wrtiov
| bool InDetAlignWrt::m_par_wrtiov |
|
private |
◆ m_par_wrtrun
| int InDetAlignWrt::m_par_wrtrun |
|
private |
◆ m_par_zdisp
| float InDetAlignWrt::m_par_zdisp |
|
private |
◆ m_setup
| bool InDetAlignWrt::m_setup |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ p_eventinfo
◆ p_iddbtool
◆ p_migratetool
The documentation for this class was generated from the following files: