Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "GaudiKernel/ServiceHandle.h"
14 #include "GaudiKernel/ToolHandle.h"
75 const auto [pMin, pMax] = std::minmax_element(
vec.begin(),
vec.end());
85 ToolHandle<Muon::ICSC_RDO_Decoder>
m_cscRdoDecoderTool{
this,
"CscRdoDecoderTool",
"Muon::CscRDO_Decoder"};
142 return StatusCode::RECOVERABLE;
145 std::bitset<12> bitVal(
val);
147 for(
unsigned int bitIndex = 0; bitIndex <
m_numBits; bitIndex++){
148 if(bitVal[bitIndex]){
149 bitHist->Fill(bitIndex);
151 for(
unsigned int bitIndex2 = 0 ; bitIndex2 <= bitIndex ; bitIndex2++) {
152 if(bitVal[bitIndex2]){
153 bitProds->Fill(bitIndex,bitIndex2);
154 if(bitIndex != bitIndex2)
155 bitProds->Fill(bitIndex2,bitIndex);
165 return StatusCode::SUCCESS;
void onlineToOfflineHashId(const unsigned int &onlineId, unsigned int &hashId) const
CscCalcPed(const std::string &name, ISvcLocator *pSvcLocator)
DataVector< TH1I > * m_ampHists
does calibration of the CSC chambers
ToolHandle< Muon::ICSC_RDO_Decoder > m_cscRdoDecoderTool
float m_thresholdMultiplier
SG::ReadCondHandleKey< CscCondDbData > m_readKey
unsigned int m_ampHistNumBins
StatusCode fillBitHist(TH1I *bitHist, const uint16_t &val, TH2F *bitProds)
StatusCode calculateParameters()
Finalize functions.
std::vector< size_t > vec
std::vector< int > m_onlineThresholds
const unsigned int m_numBits
SmartIF< IChronoStatSvc > m_chronoSvc
DataVector< TH2F > * m_bitProds
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
StatusCode collectEventInfo()
event loop functions
std::string m_outputFileName
Parameters input through joboptions.
CscCalibResultCollection * m_f001s
StatusCode hashToChamberName(IdentifierHash, std::string)
Utility functions.
::StatusCode StatusCode
StatusCode definition for legacy code.
DataVector< TH1F > * m_bitCorrelation
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
unsigned int m_ampHistLowBound
std::string m_titlePrefix
CscCalibResultCollection * m_noises
StatusCode initialize(void)
basic required functions
std::string m_onlineDbFile
filename for file with online database information
std::string m_titlePostfix
CscCalibResultCollection * m_rmses
CscCalibResultCollection * m_onlineTHoldBreaches
unsigned int m_maxStripHash
Internally global variables.
StatusCode finalize(void)
DataVector< DataVector< TH1I > > * m_sampHists
StatusCode writeCalibrationFile()
An STL vector of pointers that by default owns its pointed-to elements.
std::string m_cmt_parameter
int m_expectedChamberLayer
unsigned int m_ampHistHighBound
void outputParameter3(const CscCalibResultCollection &results, std::ofstream &out)
DataVector< TH2F > * makeBitCorrelation()
std::string m_calOutputVersion
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
CscCalibResultCollection * m_peds
DataVector< TH1I > * m_bitHists
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Services and tools.
StatusCode storeGateRecord()
std::vector< int > m_onlineThresholdFailureCount
dataType GetMinMax(std::vector< dataType > &vec)