ATLAS Offline Software
Loading...
Searching...
No Matches
PLRDetectorTool.cxx File Reference
Include dependency graph for PLRDetectorTool.cxx:

Go to the source code of this file.

Functions

StatusCode PLRDetectorTool::registerCallback ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options.
StatusCode PLRDetectorTool::align ATLAS_NOT_THREAD_SAFE (IOVSVC_CALLBACK_ARGS_P(I, keys))

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE() [1/2]

StatusCode PLRDetectorTool::registerCallback ATLAS_NOT_THREAD_SAFE ( void )
inline

Install fatal handler with default options.

This is meant to be easy to call from python via ctypes.

Install fatal handler with default options.

getLorentzAngle() Read LorentzAngle from HIST and write out into local DB

getBSErrors() Read BSErrors from Monitoring HIST and write out into local DB

getEfficiency() Read Efficiency from Monitoring HIST and write out into local DB

getRawOccupancy() Read RawOccupancy from Monitoring HIST and write out into local DB

getNoiseOccupancy() Read NoiseOccupancy from HIST and write out into local DB

getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats

Definition at line 102 of file PLRDetectorTool.cxx.

103{
104 //
105 // Register call-back for software alignment
106 //
107 if (m_alignable) {
108 if (detStore()->contains<AlignableTransformContainer>(m_alignmentFolderName)) {
109 ATH_MSG_DEBUG("Registering callback on AlignableTransformContainer with folder " << m_alignmentFolderName);
111 StatusCode sc = detStore()->regFcn(&IGeoModelTool::align, dynamic_cast<IGeoModelTool *>(this), atc, m_alignmentFolderName);
112 if (sc.isFailure()) {
113 ATH_MSG_ERROR("Could not register callback on AlignableTransformContainer with folder "
114 << m_alignmentFolderName);
115 return StatusCode::FAILURE;
116 }
117 } else {
118 ATH_MSG_WARNING("Unable to register callback on AlignableTransformContainer with folder "
119 << m_alignmentFolderName << ", Alignment disabled (only if no Run2 scheme is loaded)!");
120 }
121 } else {
122 ATH_MSG_INFO("Alignment disabled. No callback registered");
123 // We return failure otherwise it will try and register a GeoModelSvc callback associated with this callback.
124 }
125 return StatusCode::SUCCESS;
126}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
static Double_t sc
an iterator over instances of a given type in StoreGateSvc.
Definition DataHandle.h:43
bool contains(const std::string &s, const std::string &regx)
does a string contain the substring
Definition hcg.cxx:114

◆ ATLAS_NOT_THREAD_SAFE() [2/2]

StatusCode PLRDetectorTool::align ATLAS_NOT_THREAD_SAFE ( IOVSVC_CALLBACK_ARGS_P(I, keys) )

Definition at line 129 of file PLRDetectorTool.cxx.

131{
132 //
133 // The call-back routine, which just calls the real call-back routine from the manager.
134 //
135 if (!m_detManager) {
136 ATH_MSG_WARNING("Manager does not exist");
137 return StatusCode::FAILURE;
138 }
139 if (m_alignable) {
140 return const_cast<InDetDD::PixelDetectorManager*>(m_detManager)->align(I, keys);
141 } else {
142 ATH_MSG_DEBUG("Alignment disabled. No alignments applied");
143 return StatusCode::SUCCESS;
144 }
145}
#define I(x, y, z)
Definition MD5.cxx:116
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated pixel ...