|
ATLAS Offline Software
|
Go to the documentation of this file.
20 m_pixid(nullptr),m_sctid(nullptr),
25 m_par_distkey(
"/Indet/PixelDist")
59 "Distortion information will be printed on first event" );
60 return StatusCode::SUCCESS;
64 return StatusCode::SUCCESS;
73 return StatusCode::SUCCESS;
83 " to get distortion data" );
95 std::getline(
infile,tmpline);
97 std::istringstream instring(tmpline);
101 instring >>
ident >> identhash >>
x >>
y >>
z;
103 identhash <<
" x" <<
x <<
" y " <<
y <<
" z " <<
z );
119 ATH_MSG_DEBUG (
"Read distortions for " << nline <<
" modules" <<
120 " of which " << nadd <<
" successfully added" );
135 std::string lident=
ident.substr(1);
136 for (
unsigned int i=0;
i<lident.size();++
i) {
138 if (lident[
i]==
']' || lident[
i]==
'.') lident[
i]=
' ';
140 std::istringstream instring(lident);
156 return (
identifier.get_identifier32().get_compact()==identhash);
166 ATH_MSG_ERROR(
"Unable to retrieve distortion parameters " );
def retrieve(aClass, aKey=None)
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
DetCondCFloat is a class to hold sets of Identifiers and arrays of floats for detector element specif...
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
Scalar phi() const
phi method
std::string m_par_distkey
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SiDistWriteAlg(const std::string &name, ISvcLocator *pSvcLocator)
int add(const Identifier &ident, const float *f)
::StatusCode StatusCode
StatusCode definition for legacy code.
bool makeIdent(const std::string &ident, const Identifier32::value_type identhash, Identifier &identifier)
std::string m_par_readfile
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.