ATLAS Offline Software
IInDetAlignDBTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETALIGNTOOLS_ALIGNDBTOOL_IH
6 #define INDETALIGNTOOLS_ALIGNDBTOOL_IH
7 // IInDetAlignDBTool.h
8 // an AlgTool to manage the inner detector alignment database classes
9 // abstract interface class, actual implementation and doc
10 // is in InDetAlignDBTool.h
11 // Richard Hawkings, started 11/4/05
12 
13 #include "GaudiKernel/IAlgTool.h"
16 
17 
18 class Identifier;
19 
20 static const InterfaceID
21 IID_INDETALIGN_IInDetAlignDBTool("IInDetAlignDBTool",1,0);
22 
23 class IInDetAlignDBTool: virtual public IAlgTool {
24  public:
25  static const InterfaceID& interfaceID();
26 
27  virtual void createDB() const =0;
28  virtual void dispGroup(const int, const int, const int, const int, const int,
29  const float, const float, const float,
30  const int, const int, const int) const =0;
31 
32  virtual void writeFile(const bool, const std::string&) const =0;
33  virtual void writeIBLDistFile( const std::string& file) const =0;
34  virtual void writeGlobalFolderFile( const std::string& file) const =0;
35  virtual void readTextFile(const std::string&) const =0;
36  virtual void readNtuple(const std::string&) const =0;
37 
38  virtual bool idToDetSet(const Identifier,
39  int&,int&,int&,int&,int&,int&) const =0;
40  virtual std::string dirkey(const Identifier&, const int) const =0;
41  virtual std::string dirkey(const int,const int,const int, const int) const =0;
42  virtual std::string dirkey(const int,const int,const int, const int, const int) const =0; // new function
43  virtual std::string DBMkey(const int,const int,const int, const int) const =0; // new function
44 
45  virtual bool setTrans(const Identifier&, const int, const Amg::Transform3D& )
46  const =0;
47  virtual bool setTrans(const Identifier& ident, const int level,
48  const Amg::Vector3D & translate, double alpha, double beta, double gamma) const = 0;
49  virtual bool tweakTrans(const Identifier&, const int, const Amg::Transform3D&)
50  const =0;
51  virtual bool tweakTrans(const Identifier& ident, const int level,
52  const Amg::Vector3D& translate, double alpha,
53  double beta, double gamma) const = 0;
54  virtual bool tweakIBLDist(const int, const float) const =0; // new function
55 
57  , const int& level
58  ) const=0 ;
59  virtual Amg::Transform3D getTransL123( const Identifier& ident ) const=0 ;
60  virtual Amg::Transform3D getTrans(const Identifier&, const int) const=0;
61  virtual StatusCode outputObjs() =0;
62  virtual void fillDB(const std::string&, const unsigned int,const unsigned int,
63  const unsigned int, const unsigned int) const=0;
64  virtual void printDB(const int) const=0;
65  virtual void sortTrans() const=0;
66  virtual void extractAlphaBetaGamma(const Amg::Transform3D & trans,
67  double& alpha, double& beta, double &gamma) const=0;
68 };
69 
70 inline const InterfaceID& IInDetAlignDBTool::interfaceID()
71 { return IID_INDETALIGN_IInDetAlignDBTool; }
72 
73 
74 #endif // INDETALIGNTOOLS_ALIGNDBTOOL_IH
IInDetAlignDBTool::dirkey
virtual std::string dirkey(const Identifier &, const int) const =0
IInDetAlignDBTool::getTrans
virtual Amg::Transform3D getTrans(const Identifier &, const int) const =0
IInDetAlignDBTool::getL1L2fromL3Identifier
virtual Identifier getL1L2fromL3Identifier(const Identifier &ident, const int &level) const =0
IInDetAlignDBTool::printDB
virtual void printDB(const int) const =0
IInDetAlignDBTool::getTransL123
virtual Amg::Transform3D getTransL123(const Identifier &ident) const =0
IInDetAlignDBTool::sortTrans
virtual void sortTrans() const =0
IInDetAlignDBTool::tweakTrans
virtual bool tweakTrans(const Identifier &, const int, const Amg::Transform3D &) const =0
IInDetAlignDBTool::DBMkey
virtual std::string DBMkey(const int, const int, const int, const int) const =0
IInDetAlignDBTool::readTextFile
virtual void readTextFile(const std::string &) const =0
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
GeoPrimitives.h
IInDetAlignDBTool::idToDetSet
virtual bool idToDetSet(const Identifier, int &, int &, int &, int &, int &, int &) const =0
IInDetAlignDBTool::tweakIBLDist
virtual bool tweakIBLDist(const int, const float) const =0
IInDetAlignDBTool::outputObjs
virtual StatusCode outputObjs()=0
TrigVtx::gamma
@ gamma
Definition: TrigParticleTable.h:26
IInDetAlignDBTool::setTrans
virtual bool setTrans(const Identifier &ident, const int level, const Amg::Vector3D &translate, double alpha, double beta, double gamma) const =0
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IInDetAlignDBTool::tweakTrans
virtual bool tweakTrans(const Identifier &ident, const int level, const Amg::Vector3D &translate, double alpha, double beta, double gamma) const =0
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
IInDetAlignDBTool::readNtuple
virtual void readNtuple(const std::string &) const =0
file
TFile * file
Definition: tile_monitor.h:29
IInDetAlignDBTool
Definition: IInDetAlignDBTool.h:23
IInDetAlignDBTool::interfaceID
static const InterfaceID & interfaceID()
Definition: IInDetAlignDBTool.h:70
IInDetAlignDBTool::writeGlobalFolderFile
virtual void writeGlobalFolderFile(const std::string &file) const =0
IInDetAlignDBTool::createDB
virtual void createDB() const =0
IInDetAlignDBTool::extractAlphaBetaGamma
virtual void extractAlphaBetaGamma(const Amg::Transform3D &trans, double &alpha, double &beta, double &gamma) const =0
EventPrimitives.h
IInDetAlignDBTool::dirkey
virtual std::string dirkey(const int, const int, const int, const int) const =0
IInDetAlignDBTool::writeIBLDistFile
virtual void writeIBLDistFile(const std::string &file) const =0
IInDetAlignDBTool::dispGroup
virtual void dispGroup(const int, const int, const int, const int, const int, const float, const float, const float, const int, const int, const int) const =0
TRT::Hit::ident
@ ident
Definition: HitInfo.h:77
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
IInDetAlignDBTool::writeFile
virtual void writeFile(const bool, const std::string &) const =0
IInDetAlignDBTool::dirkey
virtual std::string dirkey(const int, const int, const int, const int, const int) const =0
MuonParameters::beta
@ beta
Definition: MuonParamDefs.h:144
IInDetAlignDBTool::setTrans
virtual bool setTrans(const Identifier &, const int, const Amg::Transform3D &) const =0
IInDetAlignDBTool::fillDB
virtual void fillDB(const std::string &, const unsigned int, const unsigned int, const unsigned int, const unsigned int) const =0
Identifier
Definition: IdentifierFieldParser.cxx:14