ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimLayerStudyAlg.cxx File Reference

Go to the source code of this file.

Functions

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

Variables

constexpr bool enableBenchmark

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode FPGATrackSimLayerStudyAlg::initialize 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

Install fatal handler with default options.

called at the end of each athena event (can be used for eg.

called at the beginning of each athena event (can be used for eg.

return the simulation service ID

resetting dynamic selectors)

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

now add branches and leaves to the tree

Definition at line 45 of file FPGATrackSimLayerStudyAlg.cxx.

46{
47 std::stringstream ss(m_description);
48 std::string line;
49 ATH_MSG_INFO("Tag config:");
50 if (!m_description.empty()) {
51 while (std::getline(ss, line, '\n')) {
52 ATH_MSG_INFO('\t' << line);
53 }
54 }
55
56 ATH_CHECK(m_hitBinningTool.retrieve());
57 ATH_CHECK(m_binMonitoring.retrieve());
58 ATH_CHECK(m_FPGATrackSimMapping.retrieve());
59 ATH_CHECK(m_evtSel.retrieve());
60
61 // TODO add this here
62 ATH_MSG_DEBUG("initialize() Instantiating output layer study tree");
63
64 // Setup layer configuration if not already set from layerMap
65 if (m_hitBinningTool->getNLayers()==0) {
66 m_hitBinningTool->setNLayers(m_FPGATrackSimMapping->PlaneMap_1st(0)->getNLogiLayers());
67 }
68
69 // Set up the histograms. Use the event selection service to test whether or not this is single particle.
70 // It may be better to not use a separate tool for this, and just fold it into this algorithm.
71 // The reason to keep a separate tool would be is if we eventually want to migrate *all* of GenScanMonitoring -> BinMonitoring,
72 // but that can't happen until GenScan is fully converted to use the new binning.
73 ATH_CHECK(m_binMonitoring->registerHistograms(m_hitBinningTool.get(), (m_evtSel->getSampleType() == SampleType::skipTruth)));
74
75 // Retrieve truth tracks.
76 ATH_CHECK(m_FPGAHitKey.initialize());
77 ATH_CHECK(m_FPGATruthTrackKey.initialize());
78
79 ATH_CHECK(m_chrono.retrieve());
80 ATH_MSG_DEBUG("initialize() Finished");
81
82 return StatusCode::SUCCESS;
83}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
static Double_t ss

Variable Documentation

◆ enableBenchmark

bool enableBenchmark
constexpr
Initial value:
=
false

Definition at line 29 of file FPGATrackSimLayerStudyAlg.cxx.