|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "GaudiKernel/IToolSvc.h"
33 const std::string&
name,
66 return StatusCode::FAILURE;
84 if (
sc.isFailure() ) {
91 ATH_MSG_FATAL(
"Length of ToTCorrectionsBarrelXe is not 20." );
95 ATH_MSG_FATAL(
"Length of ToTCorrectionsEndcapXe is not 20." );
99 ATH_MSG_FATAL(
"Length of ToTCorrectionsBarrelAr is not 20." );
103 ATH_MSG_FATAL(
"Length of ToTCorrectionsEndcapAr is not 20." );
109 SmartIF<IGeoModelSvc> geomodel{service(
"GeoModelSvc")};
139 if(driftradius<0.100) {
141 }
else if(driftradius<1.99) {
160 if (drifttimebin-1 > -1)
164 }
else if (drifttimebin+1 < 20) {
196 bool mcdigit = word & (1
u<<31);
206 double drifttime = rawtime-
t0;
215 if(
m_dummy)
return 4./std::sqrt(12.);
218 bool foundslope=
true;
220 double slope =
m_TRTCalDbTool->driftSlope(drifttime,
id,foundslope);
221 bool mcdigit = word & (1
u<<31);
227 ATH_MSG_DEBUG (
"Overlay TRTCalDbTool gave slope: "<<slope<<
", found="<<foundslope);
229 ATH_MSG_DEBUG (
"Overlay TRTCalDbTool2 gives slope: "<<slope<<
", found="<<foundslope);
232 if(founderr && foundslope) {
236 else if ((founderr && !foundslope) || (
mu<0)) {
245 int drifttimebin = (
int)drifttimeinbins;
246 float fracbin = drifttimeinbins-drifttimebin;
257 if (tot_index < 0) tot_index = 0;
258 if (tot_index > 19) tot_index = 19;
320 ATH_MSG_DEBUG(
" Digitization version " <<
type <<
" - T0 for barrel is shifted by "
327 if(
m_key.compare(6,4,
"Comm")==0) {
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
std::vector< ALFA_RawData_p1 > t0
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
@ u
Enums for curvilinear frames.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
TRT_Numerology * getNumerology()
Access Numerological information:---------------------------------------—.
::StatusCode StatusCode
StatusCode definition for legacy code.
This is a helper class to query the version tags from GeoModelSvc and determine the appropriate tag a...
const std::string & tag() const
Return version tag.
unsigned int getNBarrelPhi() const
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
const std::string & digitizationVersionName() const
#define ATH_MSG_WARNING(x)
unsigned int digitizationVersion() const
Get and set information about digitization version ---------------------—.