ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TRTCalibrator Class Reference

The TRTCalibrator is called from TRTCalibrationMgr. More...

#include <TRTCalibrator.h>

Inheritance diagram for TRTCalibrator:
Collaboration diagram for TRTCalibrator:

Classes

class  BDboard
 dictionary class for a board More...
 
class  BDchip
 dictionary class for a chip More...
 
class  BDdetector
 dictionary class for a detector More...
 
class  BDlayer
 dictionary class for a layer More...
 
class  BDmodule
 dictionary class for a module More...
 
class  BDstraw
 dictionary class for a straw More...
 
class  BDTRT
 dictionary class for the full TRT More...
 
class  BDzero
 dummy dictionary class More...
 
struct  conf
 
class  epdata
 

Public Member Functions

 TRTCalibrator (const std::string &type, const std::string &name, const IInterface *parent)
 Constructor. More...
 
virtual ~TRTCalibrator ()
 Destructor. More...
 
virtual StatusCode initialize () override
 Pre-define standard calibration configuration. More...
 
virtual StatusCode finalize () override
 
virtual bool fill (const Trk::Track *aTrack, TRT::TrackInfo *output) override
 
bool IncludedLevels (std::string, int *)
 
std::string SubLev (std::string, int)
 return sub-level i from a selection string with the form _X_X_X_X_X_X_X More...
 
bool IsSubLev (const std::string &, int, const std::string &)
 returns true if the ... More...
 
void DumpStrawData (int)
 returns true if the ... More...
 
int GetSubLevels (const std::string &, int, std::set< int > *)
 fills a set of integers with the indexes af the sub-modules that are conatined in a selection More...
 
void MakeBDKeys (int, int, int, int, int, int)
 makes the key strings for a sub-module More...
 
virtual bool calibrate ATLAS_NOT_THREAD_SAFE () override
 Method for doing the actual calibration. More...
 
 DeclareInterfaceID (ITRTCalibrator, 1, 0)
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

enum  { CALIB_ALL =-3, CALIB_NONE =-4 }
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

const AtlasDetectorIDm_DetID
 
const TRT_IDm_TRTID
 
const InDetDD::TRT_DetectorManagerm_trtmanager
 
ToolHandle< ITRT_CalDbToolm_trtcaldbTool
 
ServiceHandle< ITRT_StrawNeighbourSvcm_neighbourSvc
 
ToolHandle< ITRT_StrawStatusSummaryToolm_TRTStrawSummaryTool
 The ConditionsSummaryTool. More...
 
float m_maxDistance
 
float m_maxTimeResidual
 
int m_minTimebinsOverThreshold
 
float m_maxTrackChisquarePerDof
 
unsigned int m_numOfHitsTotal
 
unsigned int m_numOfHitsAccepted
 
unsigned int m_numOfProcessedTracks
 
std::string m_comTimeName
 
int m_minrt
 minimum number of hits required to do R-t calibration More...
 
int m_mint0
 minimum number of hits required to do T0 calibration More...
 
int m_nevents
 The number of hits or histograms read from the input file. More...
 
float m_t0offset
 The t0 offset. More...
 
std::string m_calsub
 
std::string m_rtbinning
 
std::string m_selstring
 
std::string m_options
 
std::string m_hittuple
 
std::string m_rtrel
 the rt relation to use More...
 
std::string m_ntrtmanager
 
std::vector< std::string > m_doRt
 
std::vector< std::string > m_doT0
 
std::vector< std::string > m_doRes
 
std::vector< std::string > m_beQuiet
 
std::vector< std::string > m_useBoardRef
 
bool m_SplitBarrel
 
bool m_useP0
 
bool m_floatP3
 
bool m_DoShortStrawCorrection
 
bool m_DoArXenonSep
 
std::vector< std::string > m_doLogPrint
 
std::vector< std::string > m_doOutPrint
 
std::vector< std::string > m_doRtPrint
 
std::string m_Tkey
 
std::string m_Dkey
 
std::string m_Lkey
 
std::string m_Mkey
 
std::string m_Bkey
 
std::string m_Ckey
 
std::string m_Skey
 
std::string m_Lkey_acc
 
std::string m_Dkey_acc
 
BDTRT m_trt
 instance if the dictionary class for the full TRT More...
 
BDTRT m_trt_acc
 instance if the dictionary class for the full TRT More...
 
std::map< std::string, confm_config
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

The TRTCalibrator is called from TRTCalibrationMgr.

Definition at line 44 of file TRTCalibrator.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
CALIB_ALL 
CALIB_NONE 

Definition at line 183 of file TRTCalibrator.h.

183 {CALIB_ALL=-3, CALIB_NONE=-4};

Constructor & Destructor Documentation

◆ TRTCalibrator()

TRTCalibrator::TRTCalibrator ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Constructor.

Definition at line 44 of file TRTCalibrator.cxx.

44  :
46  m_DetID(nullptr),
47  m_TRTID(nullptr),
48  m_trtmanager(nullptr),
49  m_trtcaldbTool("ITRT_CalDbTool", this),
50  m_neighbourSvc("ITRT_StrawNeighbourSvc", name),
51  m_TRTStrawSummaryTool("InDetTRTStrawStatusSummaryTool",this),
52  m_maxDistance(2.8),
53  m_maxTimeResidual(150),
59  m_comTimeName("ComTime"),
60  m_minrt(10000),
61  m_mint0(200),
62  m_nevents(-1),
63  m_t0offset(-0.3),
64  m_calsub("user"),
65  m_rtbinning("t"),
66  m_selstring("_*_-_-_-_-_-_-"),
67  m_options(""),
68  m_hittuple("basic.root"),
69  m_rtrel("basic"),
70  m_ntrtmanager("TRT"),
71  m_SplitBarrel(true),
72  m_useP0(true),
73  m_floatP3(true),
75  m_DoArXenonSep(false)
76 {
77  declareInterface<ITRTCalibrator>(this);
78  declareProperty("TRTCalDbTool",m_trtcaldbTool);
79  declareProperty("NeighbourSvc",m_neighbourSvc);
80  declareProperty("maxDistance",m_maxDistance) ;
81  declareProperty("maxTimeResidual",m_maxTimeResidual) ;
82  declareProperty("minTimebinsOverThreshold",m_minTimebinsOverThreshold) ;
83  declareProperty("maxTrackChisquarePerDof",m_maxTrackChisquarePerDof) ;
84  declareProperty("MinRt",m_minrt);
85  declareProperty("MinT0",m_mint0);
86  declareProperty("Nevents",m_nevents);
87  declareProperty("Selstring",m_selstring);
88  declareProperty("SubPart",m_calsub);
89  declareProperty("Options",m_options);
90  declareProperty("Hittuple",m_hittuple);
91  declareProperty("RtRel",m_rtrel);
92  declareProperty("TrtManagerLocation",m_ntrtmanager);
93  declareProperty("CalibrateRt",m_doRt);
94  declareProperty("CalibrateT0",m_doT0);
95  declareProperty("RtBinning",m_rtbinning);
96  declareProperty("FitResidual",m_doRes);
97  declareProperty("NoHistograms",m_beQuiet);
98  declareProperty("UseBoardRef",m_useBoardRef);
99  declareProperty("SplitBarrel",m_SplitBarrel);
100  declareProperty("UseP0",m_useP0);
101  declareProperty("FloatP3",m_floatP3);
102  declareProperty("PrintLog",m_doLogPrint);
103  declareProperty("PrintT0Out",m_doOutPrint);
104  declareProperty("PrintRtOut",m_doRtPrint);
105  declareProperty("T0Offset",m_t0offset);
106  declareProperty("DoShortStrawCorrection",m_DoShortStrawCorrection);
107  declareProperty("DoArXenonSep",m_DoArXenonSep);
108  declareProperty("TRTStrawSummaryTool", m_TRTStrawSummaryTool);
109 }

◆ ~TRTCalibrator()

virtual TRTCalibrator::~TRTCalibrator ( )
inlinevirtual

Destructor.

Definition at line 55 of file TRTCalibrator.h.

55 {}

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

virtual bool calibrate TRTCalibrator::ATLAS_NOT_THREAD_SAFE ( )
overridevirtual

Method for doing the actual calibration.

Implements ITRTCalibrator.

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ DeclareInterfaceID()

ITRTCalibrator::DeclareInterfaceID ( ITRTCalibrator  ,
,
 
)
inherited

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ DumpStrawData()

void TRTCalibrator::DumpStrawData ( int  isid)

returns true if the ...

Definition at line 273 of file TRTCalibrator.cxx.

273  {
274 
275  std::map<std::string,int> strawmap;
276  Identifier ident=(Identifier)(isid);
277 
278 
279 
280  std::string strawkey=std::string(Form("%i %i %i %i %i",
281  (int)m_TRTID->barrel_ec(ident),
282  (int)m_TRTID->layer_or_wheel(ident) ,
283  (int)m_TRTID->phi_module(ident) ,
284  (int)m_TRTID->straw_layer(ident) ,
285  (int)m_TRTID->straw(ident)));
286  strawmap[strawkey]=isid;
287 }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

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

◆ fill()

bool TRTCalibrator::fill ( const Trk::Track aTrack,
TRT::TrackInfo output 
)
overridevirtual

Implements ITRTCalibrator.

Definition at line 1036 of file TRTCalibrator.cxx.

1036  {
1037  if (aTrack==nullptr) {};
1038  if (output==nullptr) {};
1039  return true;
1040 }

◆ finalize()

StatusCode TRTCalibrator::finalize ( )
overridevirtual

Definition at line 255 of file TRTCalibrator.cxx.

256 {
257  return StatusCode::SUCCESS;
258 }

◆ GetSubLevels()

int TRTCalibrator::GetSubLevels ( const std::string &  key,
int  lev,
std::set< int > *  levels 
)

fills a set of integers with the indexes af the sub-modules that are conatined in a selection

Definition at line 305 of file TRTCalibrator.cxx.

305  {
306 
307  std::string sl=SubLev(key,lev);
308 
309  if (sl.compare("-")==0) {
310  levels->insert(-4);
311  return 999;
312  }
313  if (sl.compare("*")==0) {
314  levels->insert(-3);
315  return 999;
316  }
317 
318  if(sl.find(',')!=std::string::npos){
319  int value;
320  while(sl.find(',')!=std::string::npos){
321  sscanf(sl.substr(0,sl.find(',')).data(),"%i",&value);
322  levels->insert(value);
323  sl=sl.substr(sl.find(',')+1);
324  }
325  sscanf(sl.data(),"%i",&value);
326  levels->insert(value);
327  return levels->size();
328  }
329 
330  if(sl.find('t')!=std::string::npos){
331  int min,max;
332  sscanf(sl.substr(0,sl.find('t')).data(),"%i",&min);
333  ATH_MSG_INFO( "min=" << min );
334  sl=sl.substr(sl.find('t')+1);
335  sscanf(sl.data(),"%i",&max);
336  ATH_MSG_INFO("max=" << max);
337  for (int imod=min; imod<=max; imod++){
338  levels->insert(imod);
339  }
340  return levels->size();
341  }
342 
343  int value;
344  sscanf(sl.data(),"%i",&value);
345  levels->insert(value);
346  return levels->size();
347 
348 }

◆ IncludedLevels()

bool TRTCalibrator::IncludedLevels ( std::string  ,
int *   
)

◆ initialize()

StatusCode TRTCalibrator::initialize ( )
overridevirtual

Pre-define standard calibration configuration.

The string-vectors "CalibrateRt" ("CalibrateT0") contains the names of the levels for which R-t (T0) calibration should be performed

The string-vectors "PrintT0Out" and "PrintRtOut" contains the names of the levels for text files containing the calibration constants should be generated

The string-vector "PrintTxtOutput" contains the names of the levels for which a text file containing the calibration constants should be generated

This standard configuration divides the Barrel in 9 parts:

"all": a single calibration for all hits in the whole TRT "-1" & "1": calibration of the barrel C- & A-side "X_Y": calibration of layer Y in barrel X-side

Definition at line 112 of file TRTCalibrator.cxx.

113 {
114  ATH_MSG_INFO( "initialize()" );
115 
116  m_trtmanager=nullptr;
117 
118  if ((detStore()->retrieve(m_DetID,"AtlasID")).isFailure()) {
119  ATH_MSG_FATAL( "Problem retrieving ATLASDetectorID helper" );
120  return StatusCode::FAILURE;
121  }
122  if ((detStore()->retrieve(m_trtmanager,m_ntrtmanager)).isFailure()) {
123  ATH_MSG_FATAL ( "Could not get TRT_DetectorManager" );
124  return StatusCode::FAILURE;
125  }
126  if ((detStore()->retrieve(m_TRTID)).isFailure()) {
127  ATH_MSG_FATAL( "Problem retrieving TRTID helper" );
128  return StatusCode::FAILURE;
129  }
130  if(m_trtcaldbTool.retrieve().isFailure()) {
131  ATH_MSG_FATAL( "Could not get TRTCalDbTool !" );
132  return StatusCode::FAILURE;
133  }
134  if(StatusCode::SUCCESS!=m_neighbourSvc.retrieve() ) {
135  ATH_MSG_FATAL("Could not get TRTStrawNeighbourTool !");
136  return StatusCode::FAILURE;
137  }
138 
139 
140  // The tool to get the argon status:
141 
142  if (m_TRTStrawSummaryTool.retrieve().isFailure() ) {
143  ATH_MSG_ERROR ("Failed to retrieve StrawStatus Summary " << m_TRTStrawSummaryTool);
144  return StatusCode::FAILURE;
145  } else {
146  ATH_MSG_INFO( "Retrieved tool " << m_TRTStrawSummaryTool );
147  }
148 
149 
150 
151  /*
152  Pre-define standard calibration configuration
153 
154  The string-vectors "CalibrateRt" ("CalibrateT0") contains the names of the levels for
155  which R-t (T0) calibration should be performed
156 
157  The string-vector "PrintLog" contains the names of the levels for which a status line
158  should be printed to the output log
159 
160  The string-vectors "PrintT0Out" and "PrintRtOut" contains the names of the levels for
161  text files containing the calibration constants should be generated
162 
163  This standard configuration divides the Barrel in 9 parts:
164 
165  "all": a single calibration for all hits in the whole TRT
166  "-1" & "1": calibration of the barrel C- & A-side
167  "X_Y": calibration of layer Y in barrel X-side
168  */
169 
170  //the whole TRT
171  m_config["all"].selections["Detector"].insert(CALIB_NONE); // don't go deeper than TRT level
172  m_config["all"].selections["Layer"].insert(CALIB_NONE);
173  m_config["all"].selections["Module"].insert(CALIB_NONE);
174  m_config["all"].selections["Board"].insert(CALIB_NONE);
175  m_config["all"].selections["Chip"].insert(CALIB_NONE);
176  m_config["all"].selections["Straw"].insert(CALIB_NONE);
177  m_config["all"].CalibrateRt.emplace_back("TRT") ; //only calibrate R-t and T0 on TRT level
178  m_config["all"].CalibrateT0.emplace_back("TRT") ;
179  m_config["all"].PrintLog.emplace_back("TRT") ;
180  m_config["all"].PrintT0Out.emplace_back("TRT") ;
181  m_config["all"].PrintRtOut.emplace_back("TRT") ;
182 
183  //common for all barrel/ec
184  m_config["subdet"].CalibrateRt.emplace_back("TRT") ; //calibrate R-t and T0 on TRT and barrel/ec level
185  m_config["subdet"].CalibrateRt.emplace_back("Detector") ;
186  m_config["subdet"].CalibrateT0=m_config["subdet"].CalibrateRt;
187  m_config["subdet"].NoHistograms.emplace_back("TRT") ; //don't write root histogram on TRT level
188  m_config["subdet"].PrintLog=m_config["subdet"].CalibrateRt;
189  m_config["subdet"].PrintT0Out.emplace_back("Detector") ;
190  m_config["subdet"].PrintRtOut.emplace_back("Detector") ;
191 
192  //individual barrel/ec
193  m_config["1"]=m_config["subdet"];
194  m_config["1"].selections["Detector"].insert(1);
195  m_config["1"].selections["Layer"].insert(CALIB_NONE); // don't go deeper than barrel/ec level
196  m_config["1"].selections["Module"].insert(CALIB_NONE);
197  m_config["1"].selections["Board"].insert(CALIB_NONE);
198  m_config["1"].selections["Chip"].insert(CALIB_NONE);
199  m_config["1"].selections["Straw"].insert(CALIB_NONE);
200  m_config["-1"]=m_config["subdet"];
201  m_config["-1"].selections["Detector"].insert(-1);
202  m_config["-1"].selections["Layer"].insert(CALIB_NONE);
203  m_config["-1"].selections["Module"].insert(CALIB_NONE);
204  m_config["-1"].selections["Board"].insert(CALIB_NONE);
205  m_config["-1"].selections["Chip"].insert(CALIB_NONE);
206  m_config["-1"].selections["Straw"].insert(CALIB_NONE);
207 
208  //common for all layers
209  m_config["layer"].CalibrateRt.emplace_back("TRT") ; //calibrate R-t and T0 on all levels (except Straw level)
210  m_config["layer"].CalibrateRt.emplace_back("Detector") ;
211  m_config["layer"].CalibrateRt.emplace_back("Layer") ;
212  m_config["layer"].CalibrateRt.emplace_back("Module") ;
213  m_config["layer"].CalibrateRt.emplace_back("Board") ;
214  m_config["layer"].CalibrateRt.emplace_back("Chip") ;
215  m_config["layer"].CalibrateT0=m_config["layer"].CalibrateRt;
216  m_config["layer"].NoHistograms.emplace_back("TRT") ; //don't write root histogram on TRT, barrel/ec, straw level
217  m_config["layer"].NoHistograms.emplace_back("Detector") ;
218  m_config["layer"].NoHistograms.emplace_back("Straw") ;
219  m_config["layer"].PrintLog=m_config["layer"].CalibrateRt;
220  m_config["layer"].PrintT0Out.emplace_back("Layer") ;
221  m_config["layer"].PrintT0Out.emplace_back("Module") ;
222  m_config["layer"].PrintT0Out.emplace_back("Board") ;
223  m_config["layer"].PrintT0Out.emplace_back("Chip") ;
224  m_config["layer"].PrintT0Out.emplace_back("Straw") ; //print txt output for each straw
225  m_config["layer"].PrintRtOut.emplace_back("Layer") ;
226  m_config["layer"].PrintRtOut.emplace_back("Module") ;
227  m_config["layer"].PrintRtOut.emplace_back("Board") ;
228  m_config["layer"].PrintRtOut.emplace_back("Chip") ;
229  m_config["layer"].PrintRtOut.emplace_back("Straw") ; //print txt output for each straw
230 
231  //individual layers
232  m_config["1_0"]=m_config["layer"];
233  m_config["1_0"].selections["Detector"].insert(1);
234  m_config["1_0"].selections["Layer"].insert(0);
235  m_config["1_1"]=m_config["layer"];
236  m_config["1_1"].selections["Detector"].insert(1);
237  m_config["1_1"].selections["Layer"].insert(1);
238  m_config["1_2"]=m_config["layer"];
239  m_config["1_2"].selections["Detector"].insert(1);
240  m_config["1_2"].selections["Layer"].insert(2);
241  m_config["-1_0"]=m_config["layer"];
242  m_config["-1_0"].selections["Detector"].insert(-1);
243  m_config["-1_0"].selections["Layer"].insert(0);
244  m_config["-1_1"]=m_config["layer"];
245  m_config["-1_1"].selections["Detector"].insert(-1);
246  m_config["-1_1"].selections["Layer"].insert(1);
247  m_config["-1_2"]=m_config["layer"];
248  m_config["-1_2"].selections["Detector"].insert(-1);
249  m_config["-1_2"].selections["Layer"].insert(2);
250 
251  return StatusCode::SUCCESS;
252 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

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.

◆ IsSubLev()

bool TRTCalibrator::IsSubLev ( const std::string &  key,
int  lev,
const std::string &  sublev 
)

returns true if the ...

Definition at line 290 of file TRTCalibrator.cxx.

290  {
291 
292  std::string sl=sublev;
293 
294  if (sl.compare(SubLev(key,lev))==0) return true;
295 
296  while(sl.compare(sl.substr(sl.find(',')+1))!=0){
297  if (SubLev(key,lev).compare(sl.substr(0,sl.find(',')))==0) return true;
298  sl=sl.substr(sl.find(',')+1);
299  if (SubLev(key,lev).compare(sl.substr(0,sl.find(',')))==0) return true;
300  }
301  return false;
302 
303 }

◆ MakeBDKeys()

void TRTCalibrator::MakeBDKeys ( int  bec,
int  low,
int  mod,
int  brd,
int  chp,
int  strawid 
)

makes the key strings for a sub-module

Definition at line 350 of file TRTCalibrator.cxx.

350  {
351  //make map keys for the board-chip view
352 
353  char ckey[100];
354  sprintf(ckey,"_%i_%i_%i_%i_%i_%i",bec,low,mod,brd,chp,strawid); m_Skey=std::string(ckey);
355  sprintf(ckey,"_%i_%i_%i_%i_%i",bec,low,mod,brd,chp); m_Ckey=std::string(ckey);
356  sprintf(ckey,"_%i_%i_%i_%i",bec,low,mod,brd); m_Bkey=std::string(ckey);
357  sprintf(ckey,"_%i_%i_%i",bec,low,mod); m_Mkey=std::string(ckey);
358  sprintf(ckey,"_%i_%i",bec,low); m_Lkey=std::string(ckey);
359  sprintf(ckey,"_%i",bec); m_Dkey=std::string(ckey);
360  sprintf(ckey,"_all"); m_Tkey=std::string(ckey);
361 
362  sprintf(ckey,"_%i_%i",abs(bec),low); m_Lkey_acc=std::string(ckey);
363  sprintf(ckey,"_%i",abs(bec)); m_Dkey_acc=std::string(ckey);
364 
365 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

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()

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> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ SubLev()

std::string TRTCalibrator::SubLev ( std::string  pat,
int  lev 
)

return sub-level i from a selection string with the form _X_X_X_X_X_X_X

Definition at line 261 of file TRTCalibrator.cxx.

261  {
262 
263  std::string sublev;
264 
265  for (int i=0;i<lev;i++){
266  pat.replace(pat.find('_'),1,"");
267  sublev = pat.substr(0,pat.find('_'));
268  pat.replace(0,pat.find('_'),"");
269  }
270  return sublev;
271 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_beQuiet

std::vector<std::string> TRTCalibrator::m_beQuiet
private

Definition at line 145 of file TRTCalibrator.h.

◆ m_Bkey

std::string TRTCalibrator::m_Bkey
private

Definition at line 156 of file TRTCalibrator.h.

◆ m_calsub

std::string TRTCalibrator::m_calsub
private

Definition at line 135 of file TRTCalibrator.h.

◆ m_Ckey

std::string TRTCalibrator::m_Ckey
private

Definition at line 156 of file TRTCalibrator.h.

◆ m_comTimeName

std::string TRTCalibrator::m_comTimeName
private

Definition at line 128 of file TRTCalibrator.h.

◆ m_config

std::map<std::string,conf> TRTCalibrator::m_config
private

Definition at line 181 of file TRTCalibrator.h.

◆ m_DetID

const AtlasDetectorID* TRTCalibrator::m_DetID
private

Definition at line 113 of file TRTCalibrator.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_Dkey

std::string TRTCalibrator::m_Dkey
private

Definition at line 156 of file TRTCalibrator.h.

◆ m_Dkey_acc

std::string TRTCalibrator::m_Dkey_acc
private

Definition at line 156 of file TRTCalibrator.h.

◆ m_DoArXenonSep

bool TRTCalibrator::m_DoArXenonSep
private

Definition at line 151 of file TRTCalibrator.h.

◆ m_doLogPrint

std::vector<std::string> TRTCalibrator::m_doLogPrint
private

Definition at line 152 of file TRTCalibrator.h.

◆ m_doOutPrint

std::vector<std::string> TRTCalibrator::m_doOutPrint
private

Definition at line 153 of file TRTCalibrator.h.

◆ m_doRes

std::vector<std::string> TRTCalibrator::m_doRes
private

Definition at line 144 of file TRTCalibrator.h.

◆ m_doRt

std::vector<std::string> TRTCalibrator::m_doRt
private

Definition at line 142 of file TRTCalibrator.h.

◆ m_doRtPrint

std::vector<std::string> TRTCalibrator::m_doRtPrint
private

Definition at line 154 of file TRTCalibrator.h.

◆ m_DoShortStrawCorrection

bool TRTCalibrator::m_DoShortStrawCorrection
private

Definition at line 150 of file TRTCalibrator.h.

◆ m_doT0

std::vector<std::string> TRTCalibrator::m_doT0
private

Definition at line 143 of file TRTCalibrator.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_floatP3

bool TRTCalibrator::m_floatP3
private

Definition at line 149 of file TRTCalibrator.h.

◆ m_hittuple

std::string TRTCalibrator::m_hittuple
private

Definition at line 139 of file TRTCalibrator.h.

◆ m_Lkey

std::string TRTCalibrator::m_Lkey
private

Definition at line 156 of file TRTCalibrator.h.

◆ m_Lkey_acc

std::string TRTCalibrator::m_Lkey_acc
private

Definition at line 156 of file TRTCalibrator.h.

◆ m_maxDistance

float TRTCalibrator::m_maxDistance
private

Definition at line 119 of file TRTCalibrator.h.

◆ m_maxTimeResidual

float TRTCalibrator::m_maxTimeResidual
private

Definition at line 120 of file TRTCalibrator.h.

◆ m_maxTrackChisquarePerDof

float TRTCalibrator::m_maxTrackChisquarePerDof
private

Definition at line 122 of file TRTCalibrator.h.

◆ m_minrt

int TRTCalibrator::m_minrt
private

minimum number of hits required to do R-t calibration

Definition at line 130 of file TRTCalibrator.h.

◆ m_mint0

int TRTCalibrator::m_mint0
private

minimum number of hits required to do T0 calibration

Definition at line 131 of file TRTCalibrator.h.

◆ m_minTimebinsOverThreshold

int TRTCalibrator::m_minTimebinsOverThreshold
private

Definition at line 121 of file TRTCalibrator.h.

◆ m_Mkey

std::string TRTCalibrator::m_Mkey
private

Definition at line 156 of file TRTCalibrator.h.

◆ m_neighbourSvc

ServiceHandle<ITRT_StrawNeighbourSvc> TRTCalibrator::m_neighbourSvc
private

Definition at line 117 of file TRTCalibrator.h.

◆ m_nevents

int TRTCalibrator::m_nevents
private

The number of hits or histograms read from the input file.

Definition at line 132 of file TRTCalibrator.h.

◆ m_ntrtmanager

std::string TRTCalibrator::m_ntrtmanager
private

Definition at line 141 of file TRTCalibrator.h.

◆ m_numOfHitsAccepted

unsigned int TRTCalibrator::m_numOfHitsAccepted
private

Definition at line 124 of file TRTCalibrator.h.

◆ m_numOfHitsTotal

unsigned int TRTCalibrator::m_numOfHitsTotal
private

Definition at line 123 of file TRTCalibrator.h.

◆ m_numOfProcessedTracks

unsigned int TRTCalibrator::m_numOfProcessedTracks
private

Definition at line 125 of file TRTCalibrator.h.

◆ m_options

std::string TRTCalibrator::m_options
private

Definition at line 138 of file TRTCalibrator.h.

◆ m_rtbinning

std::string TRTCalibrator::m_rtbinning
private

Definition at line 136 of file TRTCalibrator.h.

◆ m_rtrel

std::string TRTCalibrator::m_rtrel
private

the rt relation to use

Definition at line 140 of file TRTCalibrator.h.

◆ m_selstring

std::string TRTCalibrator::m_selstring
private

Definition at line 137 of file TRTCalibrator.h.

◆ m_Skey

std::string TRTCalibrator::m_Skey
private

Definition at line 156 of file TRTCalibrator.h.

◆ m_SplitBarrel

bool TRTCalibrator::m_SplitBarrel
private

Definition at line 147 of file TRTCalibrator.h.

◆ m_t0offset

float TRTCalibrator::m_t0offset
private

The t0 offset.

Definition at line 133 of file TRTCalibrator.h.

◆ m_Tkey

std::string TRTCalibrator::m_Tkey
private

Definition at line 156 of file TRTCalibrator.h.

◆ m_trt

BDTRT TRTCalibrator::m_trt
private

instance if the dictionary class for the full TRT

Definition at line 166 of file TRTCalibrator.h.

◆ m_trt_acc

BDTRT TRTCalibrator::m_trt_acc
private

instance if the dictionary class for the full TRT

Definition at line 168 of file TRTCalibrator.h.

◆ m_trtcaldbTool

ToolHandle<ITRT_CalDbTool> TRTCalibrator::m_trtcaldbTool
private

Definition at line 116 of file TRTCalibrator.h.

◆ m_TRTID

const TRT_ID* TRTCalibrator::m_TRTID
private

Definition at line 114 of file TRTCalibrator.h.

◆ m_trtmanager

const InDetDD::TRT_DetectorManager* TRTCalibrator::m_trtmanager
private

Definition at line 115 of file TRTCalibrator.h.

◆ m_TRTStrawSummaryTool

ToolHandle<ITRT_StrawStatusSummaryTool> TRTCalibrator::m_TRTStrawSummaryTool
private

The ConditionsSummaryTool.

Definition at line 118 of file TRTCalibrator.h.

◆ m_useBoardRef

std::vector<std::string> TRTCalibrator::m_useBoardRef
private

Definition at line 146 of file TRTCalibrator.h.

◆ m_useP0

bool TRTCalibrator::m_useP0
private

Definition at line 148 of file TRTCalibrator.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
TRTCalibrator::m_maxTimeResidual
float m_maxTimeResidual
Definition: TRTCalibrator.h:120
TRTCalibrator::CALIB_ALL
@ CALIB_ALL
Definition: TRTCalibrator.h:183
Amg::compare
std::pair< int, int > compare(const AmgSymMatrix(N) &m1, const AmgSymMatrix(N) &m2, double precision=1e-9, bool relative=false)
compare two matrices, returns the indices of the first element that fails the condition,...
Definition: EventPrimitivesHelpers.h:109
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TRTCalibrator::m_calsub
std::string m_calsub
Definition: TRTCalibrator.h:135
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
max
#define max(a, b)
Definition: cfImp.cxx:41
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
TRTCalibrator::m_beQuiet
std::vector< std::string > m_beQuiet
Definition: TRTCalibrator.h:145
TRTCalibrator::m_floatP3
bool m_floatP3
Definition: TRTCalibrator.h:149
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TRTCalibrator::m_TRTID
const TRT_ID * m_TRTID
Definition: TRTCalibrator.h:114
TRTCalibrator::m_Dkey
std::string m_Dkey
Definition: TRTCalibrator.h:156
TRTCalibrator::m_Dkey_acc
std::string m_Dkey_acc
Definition: TRTCalibrator.h:156
TRTCalibrator::m_minTimebinsOverThreshold
int m_minTimebinsOverThreshold
Definition: TRTCalibrator.h:121
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
TRTCalibrator::m_t0offset
float m_t0offset
The t0 offset.
Definition: TRTCalibrator.h:133
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
TRTCalibrator::m_maxTrackChisquarePerDof
float m_maxTrackChisquarePerDof
Definition: TRTCalibrator.h:122
athena.value
value
Definition: athena.py:122
TRTCalibrator::m_doOutPrint
std::vector< std::string > m_doOutPrint
Definition: TRTCalibrator.h:153
TRTCalibrator::m_DetID
const AtlasDetectorID * m_DetID
Definition: TRTCalibrator.h:113
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TRTCalibrator::m_config
std::map< std::string, conf > m_config
Definition: TRTCalibrator.h:181
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
TRTCalibrator::m_DoArXenonSep
bool m_DoArXenonSep
Definition: TRTCalibrator.h:151
TRTCalibrator::m_rtrel
std::string m_rtrel
the rt relation to use
Definition: TRTCalibrator.h:140
TRTCalibrator::m_useP0
bool m_useP0
Definition: TRTCalibrator.h:148
TRTCalibrator::m_rtbinning
std::string m_rtbinning
Definition: TRTCalibrator.h:136
TRT_ID::straw
int straw(const Identifier &id) const
Definition: TRT_ID.h:902
AthCommonDataStore
Definition: AthCommonDataStore.h:52
TRTCalibrator::m_nevents
int m_nevents
The number of hits or histograms read from the input file.
Definition: TRTCalibrator.h:132
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TRTCalibrator::m_comTimeName
std::string m_comTimeName
Definition: TRTCalibrator.h:128
TRTCalibrator::m_minrt
int m_minrt
minimum number of hits required to do R-t calibration
Definition: TRTCalibrator.h:130
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
TRTCalibrator::m_mint0
int m_mint0
minimum number of hits required to do T0 calibration
Definition: TRTCalibrator.h:131
lumiFormat.i
int i
Definition: lumiFormat.py:92
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
TRTCalibrator::m_TRTStrawSummaryTool
ToolHandle< ITRT_StrawStatusSummaryTool > m_TRTStrawSummaryTool
The ConditionsSummaryTool.
Definition: TRTCalibrator.h:118
TRTCalibrator::m_Skey
std::string m_Skey
Definition: TRTCalibrator.h:156
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TRTCalibrator::m_doT0
std::vector< std::string > m_doT0
Definition: TRTCalibrator.h:143
TRTCalibrator::m_doRtPrint
std::vector< std::string > m_doRtPrint
Definition: TRTCalibrator.h:154
TRTCalibrator::m_SplitBarrel
bool m_SplitBarrel
Definition: TRTCalibrator.h:147
TRTCalibrator::m_doLogPrint
std::vector< std::string > m_doLogPrint
Definition: TRTCalibrator.h:152
TRTCalibrator::m_selstring
std::string m_selstring
Definition: TRTCalibrator.h:137
TRTCalibrator::SubLev
std::string SubLev(std::string, int)
return sub-level i from a selection string with the form _X_X_X_X_X_X_X
Definition: TRTCalibrator.cxx:261
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TRT_ID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: TRT_ID.h:866
TRT_ID::straw_layer
int straw_layer(const Identifier &id) const
Definition: TRT_ID.h:893
TRT_ID::layer_or_wheel
int layer_or_wheel(const Identifier &id) const
Definition: TRT_ID.h:884
TRTCalibrator::m_numOfProcessedTracks
unsigned int m_numOfProcessedTracks
Definition: TRTCalibrator.h:125
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
min
#define min(a, b)
Definition: cfImp.cxx:40
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
merge.output
output
Definition: merge.py:17
dso-stats.pat
pat
Definition: dso-stats.py:39
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
TRTCalibrator::m_doRes
std::vector< std::string > m_doRes
Definition: TRTCalibrator.h:144
TRTCalibrator::m_maxDistance
float m_maxDistance
Definition: TRTCalibrator.h:119
LArConditions2Ntuple.ckey
string ckey
Definition: LArConditions2Ntuple.py:159
TRT::Hit::ident
@ ident
Definition: HitInfo.h:77
TRT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: TRT_ID.h:875
TRTCalibrator::m_trtmanager
const InDetDD::TRT_DetectorManager * m_trtmanager
Definition: TRTCalibrator.h:115
TRTCalibrator::m_ntrtmanager
std::string m_ntrtmanager
Definition: TRTCalibrator.h:141
TRTCalibrator::m_neighbourSvc
ServiceHandle< ITRT_StrawNeighbourSvc > m_neighbourSvc
Definition: TRTCalibrator.h:117
TRTCalibrator::m_numOfHitsAccepted
unsigned int m_numOfHitsAccepted
Definition: TRTCalibrator.h:124
TRTCalibrator::m_doRt
std::vector< std::string > m_doRt
Definition: TRTCalibrator.h:142
a
TList * a
Definition: liststreamerinfos.cxx:10
TRTCalibrator::m_Mkey
std::string m_Mkey
Definition: TRTCalibrator.h:156
h
TRTCalibrator::CALIB_NONE
@ CALIB_NONE
Definition: TRTCalibrator.h:183
TRTCalibrator::m_Bkey
std::string m_Bkey
Definition: TRTCalibrator.h:156
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TRTCalibrator::m_Tkey
std::string m_Tkey
Definition: TRTCalibrator.h:156
TRTCalibrator::m_Ckey
std::string m_Ckey
Definition: TRTCalibrator.h:156
TRTCalibrator::m_DoShortStrawCorrection
bool m_DoShortStrawCorrection
Definition: TRTCalibrator.h:150
TRTCalibrator::m_options
std::string m_options
Definition: TRTCalibrator.h:138
TRTCalibrator::m_numOfHitsTotal
unsigned int m_numOfHitsTotal
Definition: TRTCalibrator.h:123
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
TRTCalibrator::m_hittuple
std::string m_hittuple
Definition: TRTCalibrator.h:139
TRTCalibrator::m_useBoardRef
std::vector< std::string > m_useBoardRef
Definition: TRTCalibrator.h:146
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
TRTCalibrator::m_trtcaldbTool
ToolHandle< ITRT_CalDbTool > m_trtcaldbTool
Definition: TRTCalibrator.h:116
TRTCalibrator::m_Lkey
std::string m_Lkey
Definition: TRTCalibrator.h:156
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TRTCalibrator::m_Lkey_acc
std::string m_Lkey_acc
Definition: TRTCalibrator.h:156
fitman.k
k
Definition: fitman.py:528
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37