![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "GaudiKernel/IToolSvc.h"
25 #include "CLHEP/Units/SystemOfUnits.h"
35 const std::string&
name,
38 m_TRTCalDbTool(
"TRT_CalDbTool",this),
39 m_TRTCalDbTool2(
"",this),
40 m_drifttimeperbin(3.125 *
CLHEP::
ns),
47 m_allow_digi_version_override(false),
48 m_forced_digiversion(11),
49 m_override_simcal(false),
50 m_force_universal_errors(false),
54 m_trt_mgr_location(
"TRT"),
55 m_ht_correction_barrel_Xe(0.0),
56 m_ht_correction_endcap_Xe(0.0),
57 m_ht_correction_barrel_Ar(0.0),
58 m_ht_correction_endcap_Ar(0.0),
59 m_tot_corrections_barrel_Xe(20, 0.),
60 m_tot_corrections_endcap_Xe(20, 0.),
61 m_tot_corrections_barrel_Ar(20, 0.),
62 m_tot_corrections_endcap_Ar(20, 0.)
116 return StatusCode::FAILURE;
134 if (
sc.isFailure() ) {
141 ATH_MSG_FATAL(
"Length of ToTCorrectionsBarrelXe is not 20." );
145 ATH_MSG_FATAL(
"Length of ToTCorrectionsEndcapXe is not 20." );
149 ATH_MSG_FATAL(
"Length of ToTCorrectionsBarrelAr is not 20." );
153 ATH_MSG_FATAL(
"Length of ToTCorrectionsEndcapAr is not 20." );
160 sc=service(
"GeoModelSvc",geomodel);
194 if(driftradius<0.100) {
196 }
else if(driftradius<1.99) {
215 if (drifttimebin-1 > -1)
219 }
else if (drifttimebin+1 < 20) {
251 bool mcdigit = word & (1
u<<31);
261 double drifttime = rawtime-
t0;
270 if(
m_dummy)
return 4./std::sqrt(12.);
273 bool foundslope=
true;
275 double slope =
m_TRTCalDbTool->driftSlope(drifttime,
id,foundslope);
276 bool mcdigit = word & (1
u<<31);
282 ATH_MSG_DEBUG (
"Overlay TRTCalDbTool gave slope: "<<slope<<
", found="<<foundslope);
284 ATH_MSG_DEBUG (
"Overlay TRTCalDbTool2 gives slope: "<<slope<<
", found="<<foundslope);
287 if(founderr && foundslope) {
291 else if ((founderr && !foundslope) || (
mu<0)) {
300 int drifttimebin = (
int)drifttimeinbins;
301 float fracbin = drifttimeinbins-drifttimebin;
312 if (tot_index < 0) tot_index = 0;
313 if (tot_index > 19) tot_index = 19;
375 ATH_MSG_DEBUG(
" Digitization version " <<
type <<
" - T0 for barrel is shifted by "
382 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)
std::string digitizationVersionName() const
#define ATH_MSG_WARNING(x)
unsigned int digitizationVersion() const
Get and set information about digitization version ---------------------—.