ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
TRTDigCondBase Class Referenceabstract

Communication with CondDB. More...

#include <TRTDigCondBase.h>

Inheritance diagram for TRTDigCondBase:
Collaboration diagram for TRTDigCondBase:

Classes

struct  StrawState
 Straw state. More...
 

Public Member Functions

 TRTDigCondBase (const TRTDigSettings *, const InDetDD::TRT_DetectorManager *, const TRT_ID *, int UseGasMix, ToolHandle< ITRT_StrawStatusSummaryTool > sumTool)
 Constructor. More...
 
virtual ~TRTDigCondBase ()
 Destructor. More...
 
void initialize (CLHEP::HepRandomEngine *rndmEngine)
 
float strawAverageNoiseLevel () const
 Get average noise level in straw. More...
 
unsigned int totalNumberOfActiveStraws () const
 Get total number of active straws. More...
 
void getStrawData (const int &hitID, double &lowthreshold, double &noiseamplitude) const
 Get straw data mixed condition is implemented function will return both Argon and Xenon straws (with according LT) for Argon LT ~300eV, for Argon ~100eV. More...
 
void resetGetNextNoisyStraw ()
 For noise in unhit straws: Rewind straw list to start from beginning. More...
 
bool getNextNoisyStraw (CLHEP::HepRandomEngine *, int &hitID, float &noiselevel)
 For simulation of noise in unhit straws: get next noisy straw. More...
 
bool crossTalkNoise (CLHEP::HepRandomEngine *) const
 
bool crossTalkNoiseOtherEnd (CLHEP::HepRandomEngine *) const
 
void resetGetNextStraw ()
 For looping over all straws: Rewind straw list to start from beginning. More...
 
bool getNextStraw (int &hitID, float &noiselevel, float &noiseamp)
 For looping over all straws: get next straw. More...
 
void setRefinedStrawParameters (const int &hitID, const double &lowthreshold, const double &noiseamplitude)
 Set straw parameters. More...
 
bool msgLvl (const MSG::Level lvl) const
 Test the output level. More...
 
MsgStream & msg () const
 The standard message stream. More...
 
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream. More...
 
void setLevel (MSG::Level lvl)
 Change the current logging level. More...
 

Protected Member Functions

virtual void setStrawStateInfo (Identifier &TRT_Identifier, const double &strawlength, double &noiselevel, double &relative_noiseamplitude, CLHEP::HepRandomEngine *rndmEngine)=0
 Get straw state info based on hitid and strawlength. More...
 

Protected Attributes

const TRTDigSettingsm_settings
 
const InDetDD::TRT_DetectorManagerm_detmgr
 
const TRT_IDm_id_helper
 
int m_UseGasMix
 
ToolHandle< ITRT_StrawStatusSummaryToolm_sumTool
 

Private Member Functions

void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Private Attributes

std::map< int, StrawStatem_hitid_to_StrawState
 Global map from straw ID to straw state. More...
 
std::map< int, StrawState >::const_iterator m_it_hitid_to_StrawState
 Iterator over straw state map. More...
 
std::map< int, StrawState >::const_iterator m_it_hitid_to_StrawState_End
 Iterator pointing to last straw in straw state map. More...
 
std::map< int, StrawState >::const_iterator m_it_hitid_to_StrawState_Last ATLAS_THREAD_SAFE
 Iterator used for caching (ought to be called _Previous) More...
 
std::mutex m_mutex
 
std::atomic< float > m_averageNoiseLevel
 Average noise level. More...
 
double m_crosstalk_noiselevel
 
double m_crosstalk_noiselevel_other_end
 
std::map< int, StrawState >::iterator m_all_it_hitid_to_StrawState
 Iterator over straw state map. More...
 
std::map< int, StrawState >::iterator m_all_it_hitid_to_StrawState_previous
 Iterator used for caching. More...
 
std::string m_nm
 Message source name. More...
 
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels) More...
 
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer. More...
 
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level. More...
 

Detailed Description

Communication with CondDB.

Definition at line 32 of file TRTDigCondBase.h.

Constructor & Destructor Documentation

◆ TRTDigCondBase()

TRTDigCondBase::TRTDigCondBase ( const TRTDigSettings digset,
const InDetDD::TRT_DetectorManager detmgr,
const TRT_ID trt_id,
int  UseGasMix,
ToolHandle< ITRT_StrawStatusSummaryTool sumTool 
)

Constructor.

Definition at line 25 of file TRTDigCondBase.cxx.

31  : AthMessaging("TRTDigCondBase"),
32  m_settings(digset),
33  m_detmgr(detmgr),
34  m_id_helper(trt_id),
35  m_averageNoiseLevel(-1.0),
38  m_UseGasMix(UseGasMix),
39  m_sumTool(std::move(sumTool))
40 {
43 }

◆ ~TRTDigCondBase()

virtual TRTDigCondBase::~TRTDigCondBase ( )
inlinevirtual

Destructor.

Definition at line 45 of file TRTDigCondBase.h.

45 {};

Member Function Documentation

◆ crossTalkNoise()

bool TRTDigCondBase::crossTalkNoise ( CLHEP::HepRandomEngine *  randengine) const

Definition at line 194 of file TRTDigCondBase.cxx.

194  {
195  const float noise(- m_crosstalk_noiselevel * log(CLHEP::RandFlat::shoot(randengine, 0.0, 1.0)));
196  return CLHEP::RandFlat::shoot(randengine, 0.0, 1.0) < noise;
197 }

◆ crossTalkNoiseOtherEnd()

bool TRTDigCondBase::crossTalkNoiseOtherEnd ( CLHEP::HepRandomEngine *  randengine) const

Definition at line 200 of file TRTDigCondBase.cxx.

200  {
201  const float noise(- m_crosstalk_noiselevel_other_end * log(CLHEP::RandFlat::shoot(randengine, 0.0, 1.0)));
202  return CLHEP::RandFlat::shoot(randengine, 0.0, 1.0) < noise;
203 }

◆ getNextNoisyStraw()

bool TRTDigCondBase::getNextNoisyStraw ( CLHEP::HepRandomEngine *  randengine,
int &  hitID,
float &  noiselevel 
)

For simulation of noise in unhit straws: get next noisy straw.

Parameters
hitIDID of next noisy straw
noiselevelnoise level

Definition at line 181 of file TRTDigCondBase.cxx.

181  {
183  noiselvl = m_it_hitid_to_StrawState->second.noiselevel;
184  if ( CLHEP::RandFlat::shoot(randengine, 0.0, 1.0) < noiselvl ) {
185  ++m_it_hitid_to_StrawState; //Important! if removed, iterator is not incremented in case rand<noiselevel!!!
186  hitID = m_it_hitid_to_StrawState->first;
187  return true;
188  };
189  };
190  return false;
191 }

◆ getNextStraw()

bool TRTDigCondBase::getNextStraw ( int &  hitID,
float &  noiselevel,
float &  noiseamp 
)
inline

For looping over all straws: get next straw.

Parameters
hitIDID of next straw
lowthresholdlow threshold discrimenator setting
noiseamplitudenoise amplitude

Definition at line 214 of file TRTDigCondBase.h.

216  {
219  hitID = 0;
220  noiselevel = 0.;
221  return false;
222  } else {
223  hitID = m_all_it_hitid_to_StrawState->first;
224  noiselevel = m_all_it_hitid_to_StrawState->second.noiselevel;
225  noiseamp = m_all_it_hitid_to_StrawState->second.noiseamplitude;
226  return true;
227  };
228 }

◆ getStrawData()

void TRTDigCondBase::getStrawData ( const int &  hitID,
double &  lowthreshold,
double &  noiseamplitude 
) const
inline

Get straw data mixed condition is implemented function will return both Argon and Xenon straws (with according LT) for Argon LT ~300eV, for Argon ~100eV.

INLINES ////.

Parameters
hitIDstraw ID
lowthresholdlow threshold discriminator level
noiseamplitudenoise amplitude

Definition at line 191 of file TRTDigCondBase.h.

193  {
194  //fixme: do we actually benefit from this caching?
195  std::lock_guard<std::mutex> lock(m_mutex);
196  if (m_it_hitid_to_StrawState_Last->first != hitID)
197  m_it_hitid_to_StrawState_Last = m_hitid_to_StrawState.find(hitID);
198 
199  lowthreshold = m_it_hitid_to_StrawState_Last->second.lowthreshold;
200  noiseamplitude = m_it_hitid_to_StrawState_Last->second.noiseamplitude;
201 }

◆ initialize()

void TRTDigCondBase::initialize ( CLHEP::HepRandomEngine *  rndmEngine)
Note
Must be called exactly once before the class is used for anything.

Definition at line 64 of file TRTDigCondBase.cxx.

64  {
65 
66  ATH_MSG_INFO ( "TRTDigCondBase::initialize()" );
67 
68  //id helpers:
69  const TRTHitIdHelper *hitid_helper(TRTHitIdHelper::GetHelper());
70 
71  //We loop through all of the detector elements registered in the manager
72  InDetDD::TRT_DetElementCollection::const_iterator it(m_detmgr->getDetectorElementBegin());
73  InDetDD::TRT_DetElementCollection::const_iterator itE(m_detmgr->getDetectorElementEnd());
74 
75  unsigned int strawcount(0);
76  unsigned int nBAA[3][3] = {{0}}; // [ringwheel=0,1,2][strawGasType=0,1,2]
77  unsigned int nBAC[3][3] = {{0}}; // [ringwheel=0,1,2][strawGasType=0,1,2]
78  unsigned int nECA[14][3] = {{0}}; // [ringwheel=0--13][strawGasType=0,1,2]
79  unsigned int nECC[14][3] = {{0}}; // [ringwheel=0--13][strawGasType=0,1,2]
80 
81  for (;it!=itE;++it) { // loop over straws
82 
83  const double strawLength((*it)->strawLength());
84  const Identifier id((*it)->identify());
85 
86  const int ringwheel(m_id_helper->layer_or_wheel(id));
87  const int phisector(m_id_helper->phi_module(id));
88  const int layer(m_id_helper->straw_layer(id));
89  const int side(m_id_helper->barrel_ec(id));
90 
91  int endcap, isneg;
92  switch ( side ) {
93  case -2: endcap = 1; isneg = 1; break;
94  case -1: endcap = 0; isneg = 1; break;
95  case 1: endcap = 0; isneg = 0; break;
96  case 2: endcap = 1; isneg = 0; break;
97  default:
98  std::cout << "TRTDigitization::TRTDigCondBase::createListOfValidStraws "
99  << "FATAL - identifier problems - skipping detector element!!" << std::endl;
100  continue;
101  }
102 
103  for (unsigned int iStraw(0); iStraw <(*it)->nStraws(); ++iStraw) {
104 
105  // get ID of the straw, and the gas mix
106  const int hitid(hitid_helper->buildHitId( endcap, isneg, ringwheel, phisector, layer, iStraw));
107  Identifier strawId = m_id_helper->straw_id(side, phisector, ringwheel, layer, iStraw);
108  const int statusHT = m_sumTool->getStatusHT(strawId);
109  const int strawGasType = TRTDigiHelper::StrawGasType(statusHT,m_UseGasMix, &msg());
110 
111  //Get info about the straw conditions, then create and fill the strawstate
112  double noiselevel, relative_noiseamplitude;
113  setStrawStateInfo( strawId, strawLength, noiselevel, relative_noiseamplitude, rndmEngine );
114  StrawState strawstate{};
115  strawstate.noiselevel = noiselevel; // same for all gas types
116  strawstate.lowthreshold = ( !(hitid & 0x00200000) ) ? m_settings->lowThresholdBar(strawGasType) : m_settings->lowThresholdEC(strawGasType);
117  strawstate.noiseamplitude= relative_noiseamplitude; // These two are later regulated noise code
118  m_hitid_to_StrawState[ hitid ] = strawstate; // Insert into the map:
119 
120  // Count the number of straws
121  ++strawcount;
122 
123  // Count the gas fraction in a number of regions:
124  if ( side==+1 && ringwheel>=0 && ringwheel<=2 ) nBAA[ringwheel][strawGasType]++; // [ringwheel=0,1,2][strawGasType=0,1,2]
125  if ( side==-1 && ringwheel>=0 && ringwheel<=2 ) nBAC[ringwheel][strawGasType]++; // [ringwheel=0,1,2][strawGasType=0,1,2]
126  if ( side==+2 && ringwheel>=0 && ringwheel<=13 ) nECA[ringwheel][strawGasType]++; // [ringwheel=0, 13][strawGasType=0,1,2]
127  if ( side==-2 && ringwheel>=0 && ringwheel<=13 ) nECC[ringwheel][strawGasType]++; // [ringwheel=0, 13][strawGasType=0,1,2]
128 
129  };
130 
131  }; // end "loop over straws"
132 
135 
136  //just put it to something:
137  m_it_hitid_to_StrawState_Last = m_it_hitid_to_StrawState;
138 
139  if (m_hitid_to_StrawState.empty()) {
140  ATH_MSG_ERROR("TRTDigCondBase::initialize it seems that ALL straws are dead/masked! This wont work.");
141  }
142 
143  //just to avoid having an uninitialized iterator hanging around:
145 
146  // Finally give some useful information about the gas mix chosen and that which we actually get!
147  if ( m_UseGasMix==0) std::cout << "TRTDigCondBase INFO Gas Geometry: UseGasMix==0; using StatusHT to determine the gas geometry." << std::endl;
148  if ( m_UseGasMix==1) std::cout << "TRTDigCondBase INFO Gas Geometry: UseGasMix==1; expect Xenon in the entire detector." << std::endl;
149  if ( m_UseGasMix==2) std::cout << "TRTDigCondBase INFO Gas Geometry: UseGasMix==2; expect Krypton in the entire detector." << std::endl;
150  if ( m_UseGasMix==3) std::cout << "TRTDigCondBase INFO Gas Geometry: UseGasMix==3; expect Argon in the entire detector." << std::endl;
151  if ( m_UseGasMix<0 || m_UseGasMix>3) {
152  std::cout << "TRTDigCondBase ERROR Gas Geometry: UseGasMix==" << m_UseGasMix << ", must be 0,1,2or 3!" << std::endl;
153  throw std::exception();
154  }
155  std::cout << "TRTDigCondBase INFO Gas Geometry: strawcount=" << strawcount << std::endl;
156 
157  std::cout << "TRTDigCondBase INFO Gas Geometry: BA_A[Xe] = " << nBAA[0][0] << " " << nBAA[1][0] << " " << nBAA[2][0] << std::endl;
158  std::cout << "TRTDigCondBase INFO Gas Geometry: BA_A[Kr] = " << nBAA[0][1] << " " << nBAA[1][1] << " " << nBAA[2][1] << std::endl;
159  std::cout << "TRTDigCondBase INFO Gas Geometry: BA_A[Ar] = " << nBAA[0][2] << " " << nBAA[1][2] << " " << nBAA[2][2] << std::endl;
160 
161  std::cout << "TRTDigCondBase INFO Gas Geometry: BA_C[Xe] = " << nBAC[0][0] << " " << nBAC[1][0] << " " << nBAC[2][0] << std::endl;
162  std::cout << "TRTDigCondBase INFO Gas Geometry: BA_C[Kr] = " << nBAC[0][1] << " " << nBAC[1][1] << " " << nBAC[2][1] << std::endl;
163  std::cout << "TRTDigCondBase INFO Gas Geometry: BA_C[Ar] = " << nBAC[0][2] << " " << nBAC[1][2] << " " << nBAC[2][2] << std::endl;
164 
165  std::cout << "TRTDigCondBase INFO Gas Geometry: EC_A[Xe] = "; for (auto & i : nECA) std::cout << i[0] << " "; std::cout << std::endl;
166  std::cout << "TRTDigCondBase INFO Gas Geometry: EC_A[Kr] = "; for (auto & i : nECA) std::cout << i[1] << " "; std::cout << std::endl;
167  std::cout << "TRTDigCondBase INFO Gas Geometry: EC_A[Ar] = "; for (auto & i : nECA) std::cout << i[2] << " "; std::cout << std::endl;
168 
169  std::cout << "TRTDigCondBase INFO Gas Geometry: EC_C[Xe] = "; for (auto & i : nECC) std::cout << i[0] << " "; std::cout << std::endl;
170  std::cout << "TRTDigCondBase INFO Gas Geometry: EC_C[Kr] = "; for (auto & i : nECC) std::cout << i[1] << " "; std::cout << std::endl;
171  std::cout << "TRTDigCondBase INFO Gas Geometry: EC_C[Ar] = "; for (auto & i : nECC) std::cout << i[2] << " "; std::cout << std::endl;
172 
173 }

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 164 of file AthMessaging.h.

165 {
166  MsgStream* ms = m_msg_tls.get();
167  if (!ms) {
168  if (!m_initialized.test_and_set()) initMessaging();
169  ms = new MsgStream(m_imsg,m_nm);
170  m_msg_tls.reset( ms );
171  }
172 
173  ms->setLevel (m_lvl);
174  return *ms;
175 }

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level  lvl) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 179 of file AthMessaging.h.

180 { return msg() << lvl; }

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152 {
153  if (!m_initialized.test_and_set()) initMessaging();
154  if (m_lvl <= lvl) {
155  msg() << lvl;
156  return true;
157  } else {
158  return false;
159  }
160 }

◆ resetGetNextNoisyStraw()

void TRTDigCondBase::resetGetNextNoisyStraw ( )

For noise in unhit straws: Rewind straw list to start from beginning.

Definition at line 176 of file TRTDigCondBase.cxx.

176  {
178 }

◆ resetGetNextStraw()

void TRTDigCondBase::resetGetNextStraw ( )
inline

For looping over all straws: Rewind straw list to start from beginning.

Definition at line 209 of file TRTDigCondBase.h.

209  {
211 }

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level  lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29 {
30  m_lvl = lvl;
31 }

◆ setRefinedStrawParameters()

void TRTDigCondBase::setRefinedStrawParameters ( const int &  hitID,
const double &  lowthreshold,
const double &  noiseamplitude 
)
inline

Set straw parameters.

Parameters
hitIDID of straw
lowthresholdlow threshold discriminator setting
noiseamplitudenoise amplitude

Definition at line 231 of file TRTDigCondBase.h.

233  {
234  //we might have the iterator cached already (fixme... nah)
235  if (hitID == m_all_it_hitid_to_StrawState_previous->first) {
236  m_all_it_hitid_to_StrawState_previous->second.lowthreshold = lowthreshold;
237  m_all_it_hitid_to_StrawState_previous->second.noiseamplitude =
238  noiseamplitude;
239  } else {
241  m_hitid_to_StrawState.find(hitID)->second.lowthreshold = lowthreshold;
242  m_hitid_to_StrawState.find(hitID)->second.noiseamplitude = noiseamplitude;
243  };
244 }

◆ setStrawStateInfo()

virtual void TRTDigCondBase::setStrawStateInfo ( Identifier TRT_Identifier,
const double &  strawlength,
double &  noiselevel,
double &  relative_noiseamplitude,
CLHEP::HepRandomEngine *  rndmEngine 
)
protectedpure virtual

Get straw state info based on hitid and strawlength.

Note
This must be overriden by the actual map provider
Parameters
TRT_IdentifierIdentifier of straw (input)
strawlengthstraw length (input)
noiselevelnoise level this straw (e.g. 0.02 for 2%)
relative_noiseamplitudethe relative noise amplitude as compared to other straws. The overall normalization doesn't matter as all noise amplitudes will be rescaled by the same factor. Should never be put to zero!

Implemented in TRTDigCondFakeMap.

◆ strawAverageNoiseLevel()

float TRTDigCondBase::strawAverageNoiseLevel ( ) const

Get average noise level in straw.

Definition at line 47 of file TRTDigCondBase.cxx.

47  {
48 
49  if (m_averageNoiseLevel>=0.0) {
50  return m_averageNoiseLevel;
51  } else {
52  std::map<int,StrawState>::const_iterator it(m_hitid_to_StrawState.begin());
54  double tmp(0.);
55  for ( ; it!=m_it_hitid_to_StrawState_End; ++it ) {
56  tmp += it->second.noiselevel;
57  };
59  return m_averageNoiseLevel;
60  };
61 }

◆ totalNumberOfActiveStraws()

unsigned int TRTDigCondBase::totalNumberOfActiveStraws ( ) const
inline

Get total number of active straws.

Definition at line 204 of file TRTDigCondBase.h.

204  {
205  return m_hitid_to_StrawState.size();
206 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::map<int,StrawState>::const_iterator m_it_hitid_to_StrawState_Last TRTDigCondBase::ATLAS_THREAD_SAFE
mutableprivate

Iterator used for caching (ought to be called _Previous)

Definition at line 167 of file TRTDigCondBase.h.

◆ m_all_it_hitid_to_StrawState

std::map<int,StrawState>::iterator TRTDigCondBase::m_all_it_hitid_to_StrawState
private

Iterator over straw state map.

Definition at line 176 of file TRTDigCondBase.h.

◆ m_all_it_hitid_to_StrawState_previous

std::map<int,StrawState>::iterator TRTDigCondBase::m_all_it_hitid_to_StrawState_previous
private

Iterator used for caching.

Definition at line 178 of file TRTDigCondBase.h.

◆ m_averageNoiseLevel

std::atomic<float> TRTDigCondBase::m_averageNoiseLevel
mutableprivate

Average noise level.

Definition at line 170 of file TRTDigCondBase.h.

◆ m_crosstalk_noiselevel

double TRTDigCondBase::m_crosstalk_noiselevel
private

Definition at line 171 of file TRTDigCondBase.h.

◆ m_crosstalk_noiselevel_other_end

double TRTDigCondBase::m_crosstalk_noiselevel_other_end
private

Definition at line 172 of file TRTDigCondBase.h.

◆ m_detmgr

const InDetDD::TRT_DetectorManager* TRTDigCondBase::m_detmgr
protected

Definition at line 138 of file TRTDigCondBase.h.

◆ m_hitid_to_StrawState

std::map<int,StrawState> TRTDigCondBase::m_hitid_to_StrawState
private

Global map from straw ID to straw state.

Definition at line 158 of file TRTDigCondBase.h.

◆ m_id_helper

const TRT_ID* TRTDigCondBase::m_id_helper
protected

Definition at line 139 of file TRTDigCondBase.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_it_hitid_to_StrawState

std::map<int,StrawState>::const_iterator TRTDigCondBase::m_it_hitid_to_StrawState
private

Iterator over straw state map.

Definition at line 163 of file TRTDigCondBase.h.

◆ m_it_hitid_to_StrawState_End

std::map<int,StrawState>::const_iterator TRTDigCondBase::m_it_hitid_to_StrawState_End
private

Iterator pointing to last straw in straw state map.

Definition at line 165 of file TRTDigCondBase.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_mutex

std::mutex TRTDigCondBase::m_mutex
mutableprivate

Definition at line 168 of file TRTDigCondBase.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_settings

const TRTDigSettings* TRTDigCondBase::m_settings
protected

Definition at line 137 of file TRTDigCondBase.h.

◆ m_sumTool

ToolHandle<ITRT_StrawStatusSummaryTool> TRTDigCondBase::m_sumTool
protected

Definition at line 182 of file TRTDigCondBase.h.

◆ m_UseGasMix

int TRTDigCondBase::m_UseGasMix
protected

Definition at line 181 of file TRTDigCondBase.h.


The documentation for this class was generated from the following files:
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
TRTDigSettings::crossTalkNoiseLevelOtherEnd
double crossTalkNoiseLevelOtherEnd() const
TRTDigSettings::lowThresholdEC
double lowThresholdEC(int strawGasType) const
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
skel.it
it
Definition: skel.GENtoEVGEN.py:423
TRTDigCondBase::setStrawStateInfo
virtual void setStrawStateInfo(Identifier &TRT_Identifier, const double &strawlength, double &noiselevel, double &relative_noiseamplitude, CLHEP::HepRandomEngine *rndmEngine)=0
Get straw state info based on hitid and strawlength.
TRTDigSettings::crossTalkNoiseLevel
double crossTalkNoiseLevel() const
Get average cross talk noise level.
TRTDigCondBase::m_averageNoiseLevel
std::atomic< float > m_averageNoiseLevel
Average noise level.
Definition: TRTDigCondBase.h:170
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
TRTDigCondBase::m_it_hitid_to_StrawState_End
std::map< int, StrawState >::const_iterator m_it_hitid_to_StrawState_End
Iterator pointing to last straw in straw state map.
Definition: TRTDigCondBase.h:165
TruthTest.itE
itE
Definition: TruthTest.py:25
TRT::Hit::side
@ side
Definition: HitInfo.h:83
TRTDigCondBase::m_id_helper
const TRT_ID * m_id_helper
Definition: TRTDigCondBase.h:139
AthMessaging::AthMessaging
AthMessaging()
Default constructor:
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TRTDigCondBase::m_all_it_hitid_to_StrawState
std::map< int, StrawState >::iterator m_all_it_hitid_to_StrawState
Iterator over straw state map.
Definition: TRTDigCondBase.h:176
TRTDigCondBase::totalNumberOfActiveStraws
unsigned int totalNumberOfActiveStraws() const
Get total number of active straws.
Definition: TRTDigCondBase.h:204
lumiFormat.i
int i
Definition: lumiFormat.py:92
TRTDigCondBase::m_settings
const TRTDigSettings * m_settings
Definition: TRTDigCondBase.h:137
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
TRTDigCondBase::m_it_hitid_to_StrawState
std::map< int, StrawState >::const_iterator m_it_hitid_to_StrawState
Iterator over straw state map.
Definition: TRTDigCondBase.h:163
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
TRTDigSettings::lowThresholdBar
double lowThresholdBar(int strawGasType) const
Get discriminator setting for low threshold.
TRTDigCondBase::m_all_it_hitid_to_StrawState_previous
std::map< int, StrawState >::iterator m_all_it_hitid_to_StrawState_previous
Iterator used for caching.
Definition: TRTDigCondBase.h:178
TRTDigCondBase::m_crosstalk_noiselevel_other_end
double m_crosstalk_noiselevel_other_end
Definition: TRTDigCondBase.h:172
calibdata.exception
exception
Definition: calibdata.py:496
TRTHitIdHelper::GetHelper
static const TRTHitIdHelper * GetHelper()
Definition: TRTHitIdHelper.cxx:13
TRTDigCondBase::m_sumTool
ToolHandle< ITRT_StrawStatusSummaryTool > m_sumTool
Definition: TRTDigCondBase.h:182
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
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
TRT_ID::layer_or_wheel
int layer_or_wheel(const Identifier &id) const
Definition: TRT_ID.h:884
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
InDetDD::TRT_DetectorManager::getDetectorElementBegin
TRT_DetElementCollection::const_iterator getDetectorElementBegin() const
Definition: TRT_DetectorManager.cxx:185
InDetDD::TRT_DetectorManager::getDetectorElementEnd
TRT_DetElementCollection::const_iterator getDetectorElementEnd() const
Definition: TRT_DetectorManager.cxx:190
TRTDigCondBase::m_UseGasMix
int m_UseGasMix
Definition: TRTDigCondBase.h:181
TRTDigCondBase::m_crosstalk_noiselevel
double m_crosstalk_noiselevel
Definition: TRTDigCondBase.h:171
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
TRTDigCondBase::m_hitid_to_StrawState
std::map< int, StrawState > m_hitid_to_StrawState
Global map from straw ID to straw state.
Definition: TRTDigCondBase.h:158
TRT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: TRT_ID.h:875
TRTDigCondBase::m_mutex
std::mutex m_mutex
Definition: TRTDigCondBase.h:168
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TRTDigiHelper::StrawGasType
int StrawGasType(int statusHT, int useGasMix, MsgStream *log)
Definition: TRTDigiHelper.cxx:11
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
TRTHitIdHelper
Definition: TRTHitIdHelper.h:25
WriteCellNoiseToCool.noise
noise
Definition: WriteCellNoiseToCool.py:380
TRTDigCondBase::m_detmgr
const InDetDD::TRT_DetectorManager * m_detmgr
Definition: TRTDigCondBase.h:138
TRT_ID::straw_id
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
Definition: TRT_ID.h:581