ATLAS Offline Software
Functions
SumOfWeightsAlg.cxx File Reference
#include "SumOfWeightsAlg.h"
#include "ReweightUtils/WeightToolBase.h"
#include "TString.h"
#include <string>
Include dependency graph for SumOfWeightsAlg.cxx:

Go to the source code of this file.

Functions

StatusCode SumOfWeightsAlg::initialize ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options. More...
 

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode SumOfWeightsAlg::initialize ATLAS_NOT_THREAD_SAFE ( )
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

beginning of the loop of channels

bad bit newly found

known bad bit

for low noisy cells

for high noisy cells

0.01 is used to scale "PER" to the same order of magnitude to "SIG"

smaller deviation: distorted

checking TmaxAmp, Not mixed with MaxAmp and Width

channel information output

Only dead or distorted, or short known BCs are considered below.

index of bc

note: the declarations must be placed in the "good" order, otherwise the definitions of the SystematicVariations will be different than those obtained with readFromROOT()

Definition at line 27 of file SumOfWeightsAlg.cxx.

27  {
28  // ^ due to registerTopFilter
29  StatusCode sc;
30  ATH_MSG_DEBUG("Initializing " << name() << "...");
31  ATH_MSG_DEBUG("Retrieving tools...");
32  sc = m_weightTools.retrieve();
33  if ( ! sc.isSuccess() ) {
34  ATH_MSG_ERROR("Tool retrieval failed.");
35  return sc;
36  }
37  ATH_MSG_DEBUG("Tool retrieval completed.");
38  unsigned int ntool = m_weightTools.size();
39  ATH_MSG_DEBUG(" Tool count: " << ntool);
40  for (size_t itool = 0; itool < ntool; ++itool ) {
41  ATH_MSG_DEBUG(" " << m_weightTools[itool]->name());
42  if(msgLvl(MSG::DEBUG)) m_weightTools[itool]->print();
43  // Get the tool's message property:
44  const WeightToolBase* tool = dynamic_cast< const WeightToolBase* >( m_weightTools[ itool ].operator->() );
45  if( ! tool ) {
46  ATH_MSG_ERROR( "The received tool is not an WeightToolBase?!?" );
47  return StatusCode::FAILURE;
48  }
49  //strip the 'ToolSvc.' off the weight name
50  std::string toolName = m_weightTools[itool]->name();
51  if(toolName.starts_with ("ToolSvc.")) toolName.replace(0,8,"");
52  CutIdentifier cID = cutFlowSvc()->registerTopFilter( toolName,
53  toolName, // description (can be improved FIXME)
54  xAOD::CutBookkeeper::CutLogic::ALLEVENTSPROCESSED,
55  "AllStreams",
56  true);
57  m_cutIDs.push_back(cID);
58  }
59 
60  return StatusCode::SUCCESS;
61 }
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
CutIdentifier
uint32_t CutIdentifier
InstanceIdentifier is a unique identifer used for every AthFilterAlgorithm instance.
Definition: ICutFlowSvc.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
DEBUG
#define DEBUG
Definition: page_access.h:11
WeightToolBase
Definition: WeightToolBase.h:29