ATLAS Offline Software
Loading...
Searching...
No Matches
TileDigitsMonTool Class Reference

Class for TileCal monitoring at digits level. More...

#include <TileDigitsMonTool.h>

Inheritance diagram for TileDigitsMonTool:
Collaboration diagram for TileDigitsMonTool:

Classes

struct  Data

Public Types

enum  TileFragStatus {
  ALL_OK =0 , CRC_ERR =1 , ALL_FF =0x10 , ALL_00 =0x20 ,
  NO_FRAG =0x40 , NO_ROB =0x80
}
enum  Interval_t {
  file = 0 , eventsBlock , lumiBlock , lowStat ,
  medStat , higStat , run , fill ,
  all
}
 An enumeration describing how detailed a particular monitoring object is. More...
enum  MgmtAttr_t { ATTRIB_MANAGED = 0 , ATTRIB_UNMANAGED = 1 , ATTRIB_X_VS_LB = 2 }
 An enumeration describing how the class handles the histogram. More...

Public Member Functions

 TileDigitsMonTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual ~TileDigitsMonTool ()
virtual StatusCode initialize () override
virtual StatusCode bookHists () override
 Calls bookHists( true, true, true ) and initializes lumiBlock and run numbers.
virtual StatusCode fillHists () override
 Calls fillHists( bool, bool, bool ); if an eventBlock,lumiBlock, or run has turned over, calls procHists( bool, bool, bool ) and bookHists( bool, bool, bool ).
virtual StatusCode finalHists () override
 Calls procHists( true, true, true ).
virtual StatusCode checkHists (bool fromFinalize) override
 This implementation does nothing; equivalent functionality may be provided by procHists(...) with appropriate arguments.
void bookHists (int ros, int drawer)
void drawHists (int ros, int drawer, const std::string &moduleName)
virtual const uint8_t * stuckBitProb (int ros, int module, int channel, int gain) const override
virtual void saveStuckBitsProbabilities (TTree *tree) override
virtual StreamNameFcnstreamNameFunction ()
 Returns the function object that converts logical paramters into a physical stream name.
virtual StatusCode bookHistograms ()
 An inheriting class should either override this function or bookHists().
virtual StatusCode bookHistogramsRecurrent ()
 An inheriting class should either override this function, bookHists() or bookHistograms().
virtual StatusCode fillHistograms ()
 An inheriting class should either override this function or fillHists().
virtual StatusCode procHistograms ()
 An inheriting class should either override this function or finalHists().
virtual void setMonManager (AthenaMonManager *manager)
 Takes a pointer to a managing object to get information from it when needed.
virtual StatusCode getHist (TH1 *&h, const std::string &hName, const std::string &system, Interval_t interval)
 Returns a TH1 via the pointer passed as the first argument.
virtual StatusCode getHist (TH1 *&h, const std::string &hName, const MonGroup &group)
 Returns a TH1 via the pointer passed as the first argument.
virtual StatusCode getHist (TH2 *&h, const std::string &hName, const std::string &system, Interval_t interval)
 Returns a TH2 via the pointer passed as the first argument.
virtual StatusCode getHist (TH2 *&h, const std::string &hName, const MonGroup &group)
 Returns a TH2 via the pointer passed as the first argument.
virtual StatusCode regEfficiency (TEfficiency *e, const MonGroup &group)
 Registers a TEfficiency to be included in the output stream using logical parameters that describe the plot.
virtual StatusCode regTree (TTree *t, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Registers a TTree to be included in the output stream using logical parameters that describe it.
virtual StatusCode regTree (TTree *t, const MonGroup &group)
 Registers a TTree to be included in the output stream using logical parameters that describe it.
virtual StatusCode writeAndDelete (TH1 *h, const MonGroup &group)
 Write out histogram and delete it.
virtual StatusCode deregHist (TH1 *h)
 De-registers a TH1 from the THistSvc, but does NOT delete the object.
virtual StatusCode deregGraph (TGraph *g)
 De-registers a TGraph from the THistSvc, but does NOT delete the object.
virtual StatusCode deregObject (const std::string &objName, const std::string &system, Interval_t interval)
 De-registers a TObject from the THistSvc, but does NOT delete the object.
virtual StatusCode deregObject (const std::string &objName, const MonGroup &group)
 De-registers a TObject from the THistSvc, but does NOT delete the object.
virtual StatusCode setupOutputStreams (std::vector< std::string > Mapping=std::vector< std::string >())
 This implementation does nothing—streams in this class should be managed by the AthenaMonManager.
virtual StatusCode runStat ()
 This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ).
virtual bool preSelector ()
virtual float lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average mu, i.e.
virtual float lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Instantaneous number of interactions, i.e.
virtual float lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1)
virtual float lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Instantaneous luminosity.
virtual double lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Luminosity block time (in seconds)
virtual float lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average luminosity livefraction.
virtual float livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Livefraction per bunch crossing ID.
virtual double lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average Integrated Luminosity Live Fraction.
 MMTB_DEPRECATED (newLowStatInterval)
 MMTB_DEPRECATED (newMedStatInterval)
 MMTB_DEPRECATED (newHigStatInterval)
 MMTB_DEPRECATED (newLowStat)
 MMTB_DEPRECATED (newLumiBlock)
 MMTB_DEPRECATED (newRun)
 MMTB_DEPRECATED (newEventsBlock)
 MMTB_DEPRECATED (endOfEventsBlock)
 MMTB_DEPRECATED (endOfLowStat)
 MMTB_DEPRECATED (endOfLumiBlock)
 MMTB_DEPRECATED (endOfRun)
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Static Public Member Functions

static std::string intervalEnumToString (Interval_t interval)
 Converts a LevelOfDetail_t to a string of the same name.
static Interval_t intervalStringToEnum (const std::string &str)
 Converts a string to the corresponding Interval_t.
static const InterfaceID & interfaceID ()
static const InterfaceID & interfaceID ()

Protected Types

typedef std::map< std::string, OutputMetadata * > MDMap_t

Protected Member Functions

TH1D * book1D (const std::string &nam, const std::string &tit, int nx, double xmin, double xmax)
 Implicit version of book1D.
TH1D * book1D (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH2D * book2D (const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax)
 Implicit version of book2D.
TH2D * book2D (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH1F * book1F (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH1I * book1I (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH1S * book1S (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH1S * book1Sx (const std::string &dir, const std::string &nam, const std::string &tit, int nx, const Double_t *xlgbins, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH1C * book1C (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH2F * book2F (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH2F * book2F (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, const double *ybins, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH2I * book2I (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH2S * book2S (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH2C * book2C (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TProfile * bookProfile (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TProfile * bookProfile (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TProfile * bookProfile (const std::string &dir, const std::string &nam, const std::string &tit, int nx, const float *xbins, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TProfile2D * bookProfile2D (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, double zmin, double zmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TGraph * bookGraph (const std::string &dir, const std::string &nam, const std::string &tit, int N, float *X, float *Y)
TGraphErrors * bookGraphErrors (const std::string &dir, const std::string &nam, const std::string &tit, int N, float *X, float *Y, float *X_errors, float *Y_errors)
TGraphAsymmErrors * bookGraphAsymmErrors (const std::string &dir, const std::string &nam, const std::string &tit, int N, float *X, float *Y, float *X_errors1, float *X_errors2, float *Y_errors1, float *Y_errors2)
StatusCode removeTObj (TObject *obj)
template<typename T>
void regHist (const std::string &subDir, T *hist, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
virtual StatusCode regHist (TH1 *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram.
virtual StatusCode regHist (TH1 *h, const MonGroup &group)
 Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram.
template<typename T>
void regGraph (const std::string &subDir, T *graph, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
virtual StatusCode regGraph (TGraph *g, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Registers a TGraph to be included in the output stream using logical parameters that describe the graph.
virtual StatusCode regGraph (TGraph *g, const MonGroup &group)
 Registers a TGraph to be included in the output stream using logical parameters that describe the graph.
std::string getCellName (unsigned int ros, unsigned int channel)
std::string getTMDBCellName (unsigned int ros, unsigned int channel)
bool isDisconnected (int ros, int drawer, int ch)
StatusCode regManagedHistograms (std::vector< MgmtParams< TH1 > > &templateHistograms)
StatusCode regManagedGraphs (std::vector< MgmtParams< TGraph > > &templateGraphs)
StatusCode regManagedTrees (std::vector< MgmtParams< TTree > > &templateTrees)
StatusCode regManagedEfficiencies (std::vector< MgmtParams< TEfficiency > > &templateEfficiencies)
StatusCode parseList (const std::string &, std::vector< std::string > &)
void updateTriggersForGroups (std::vector< std::string > &)
StatusCode registerMetadata (const std::string &streamName, const std::string &hName, const MonGroup &group)
StatusCode THistSvc_deReg_fixTGraph (TFile *file, TGraph *theGraph, std::string &directoryName)
 Fixes THistSvc->deReg(obj) when obj is TGraph instance.
unsigned int get_nEvents () const
long get_procNEventsProp () const
virtual bool trigChainsArePassed (std::vector< std::string > &)
virtual StreamNameFcngetNewStreamNameFcn () const
bool newLowStatIntervalFlag () const
 Flag functions allowing clients to determine when to book new and process old histograms; values are updated by fillHists() based on counting lumiBlocks, and are correctly set when fillHistograms(), bookHistograms() and procHistograms() are called.
bool newMedStatIntervalFlag () const
bool newHigStatIntervalFlag () const
bool newLowStatFlag () const
bool newLumiBlockFlag () const
bool newRunFlag () const
bool newEventsBlockFlag () const
bool endOfEventsBlockFlag () const
bool endOfLowStatFlag () const
bool endOfLumiBlockFlag () const
bool endOfRunFlag () const
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Protected Attributes

const TileIDm_tileID {}
const TileHWIDm_tileHWID {}
const TileTBIDm_tileTBID {}
const TileCablingServicem_cabling {}
bool m_savePng {}
bool m_savePs {}
bool m_saveSvg {}
std::vector< int > m_fragIDsToIgnoreDMUerrors
std::vector< int > m_fragIDsDemonstrators
std::string m_EBcellName [48]
std::string m_LBcellName [48]
std::string m_TMDB_LB_cell_names [8] = {"D0", "D1L", "D1R", "D2R", "D2L", "D3L", "D3R", ""}
std::string m_TMDB_EB_cell_names [4] = {"D5L", "D5R", "D6L", "D6R"}
int m_chMapLB [48]
int m_chMapEB [48]
int m_chMapEBsp [48]
std::map< Interval_t, std::vector< MgmtParams< TH1 > > > m_templateHistograms
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > m_templateGraphs
std::map< Interval_t, std::vector< MgmtParams< TTree > > > m_templateTrees
std::map< Interval_t, std::vector< MgmtParams< TEfficiency > > > m_templateEfficiencies
std::vector< std::string > m_vTrigChainNames
std::vector< std::string > m_vTrigGroupNames
MDMap_t m_metadataMap
AthenaMonManagerm_manager
std::string m_managerNameProp
std::string m_fileKey
std::string m_dataTypeStr
std::string m_environmentStr
unsigned int m_detailLevel
AthenaMonManager::DataType_t m_dataType
AthenaMonManager::Environment_t m_environment
StreamNameFcnm_streamNameFcn
ServiceHandle< ITHistSvc > m_THistSvc
PublicToolHandle< Trig::ITrigDecisionToolm_trigDecTool {this, "TrigDecisionTool",""}
PublicToolHandle< ITriggerTranslatorToolm_trigTranslator {this,"TriggerTranslatorTool",""}
ToolHandleArray< IDQFilterToolm_DQFilterTools {this,"FilterTools",{}}
long m_procNEventsProp
std::string m_path
long m_preScaleProp
std::string m_triggerChainProp
std::string m_triggerGroupProp
bool m_useTrigger
unsigned int m_lastLumiBlock
unsigned int m_lastRun
int m_lastLowStatInterval
int m_lastMedStatInterval
int m_lastHigStatInterval
unsigned int m_nEvents
unsigned int m_nEventsIgnoreTrigger
unsigned int m_nLumiBlocks
bool m_haveClearedLastEventBlock

Private Types

enum  RunType {
  Unknown = 0 , PhysRun = 1 , LasRun = 2 , LedRun = 3 ,
  PedRun = 4 , CisRun = 8 , MonoRun = 9 , CisRamp = 10
}
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

int stuckBits (TH1S *hist, int adc)
 Method to find stuckbits in Read-Out ADC channel.
int stuckBits_Amp (TH1S *hist, int adc)
 A crude method to check Read-Out ADC channel stuckbits.
int stuckBits_Amp2 (TH1S *hist, TH1C *modhist, int adc, TH2C *outhist=NULL, int ch=0, uint8_t *stuck_probs=NULL)
void CRCcheck (const TileDQstatus *dqStatus, uint32_t crc32, uint32_t crcMask, int headsize, int ros, int drawer)
 Method to check global CRC and DMU CRC.
bool DMUheaderCheck (std::vector< uint32_t > *headerVec, int ros, int drawer, int gain, int dmu)
 DMU header format as defined in http://www.sysf.physto.se/~klere/tile-dmu/header.html Bits: 1pllllesdrvvvv0mmgggbbbbbbbbbbbb.
void shiftHisto (TH1S *hist, int ros, int drawer, int ch, int gain)
void statTestHistos (int ros, int drawer, int gain)
int define_palette (int ncolors, int *colors=NULL)
StatusCode RODCRCcalc (const TileDQstatus *dqStatus)
bool DMUheaderFormatCheck (uint32_t header)
 Function to check that the DMU header format is correct bit_31 of the DMU header must be 1 and bit_17 of the DMU header must be 0 Return true in case of error.
bool DMUheaderParityCheck (uint32_t header)
 Function to check that the DMU header parity is correct Parity of the DMU header should be odd Return true in case of error.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

bool m_bookAll {}
bool m_book2D {}
int m_runType {}
std::string m_contNameDSP
ToolHandle< TileCondToolNoiseSamplem_tileToolNoiseSample
 tool which provided noise values
const uint32_t * m_cispar {}
bool m_bigain {}
int m_nEventsTileMon {}
int m_nSamples {}
std::unique_ptr< Datam_data
bool m_allHistsFilled {}
bool m_fillPedestalDifference {}
std::string m_digitsContainerName
std::string m_infoName
const TileInfom_tileInfo {}
int m_i_ADCmax {}
float m_f_ADCmax {}
float m_ADCmaxMinusEps {}
bool m_is12bit {}
int m_shiftnbins {}
int m_zeroLimitHG {}
int m_saturationLimitHG {}
SG::ReadHandleKey< TileDQstatusm_DQstatusKey
bool m_newLowStatInterval
bool m_newMedStatInterval
bool m_newHigStatInterval
bool m_newLowStat
bool m_newLumiBlock
bool m_newRun
bool m_newEventsBlock
bool m_endOfEventsBlock
bool m_endOfLowStat
bool m_endOfLumiBlock
bool m_endOfRun
SG::ReadCondHandleKey< LuminosityCondDatam_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
SG::ReadCondHandleKey< LBDurationCondDatam_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
SG::ReadCondHandleKey< TrigLiveFractionCondDatam_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData","SG Key of TrigLiveFractionCondData object"}
bool m_bookHistogramsInitial
bool m_useLumi
float m_defaultLBDuration
std::set< Interval_tm_supportedIntervalsForRebooking
Impm_d
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Static Private Attributes

static const int m_NCont = 10

Detailed Description

Class for TileCal monitoring at digits level.

Definition at line 30 of file TileDigitsMonTool.h.

Member Typedef Documentation

◆ MDMap_t

typedef std::map<std::string,OutputMetadata*> ManagedMonitorToolBase::MDMap_t
protectedinherited

Definition at line 826 of file ManagedMonitorToolBase.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ Interval_t

An enumeration describing how detailed a particular monitoring object is.

summary: used to summarize the state of the system

runstat: same as summary

shift: used to flag potential problems

expert: essential for diagnosing problems identified by shift-level objects

debug: useful for standalone debugging, but not for routine monitoring; not essential for diagnosing problems during normal running

transient: too detailed to ever be written; always summarized by the user by means of another object An enumeration describing the interval over which a particular monitoring object is filled (i.e., interval over which the method Fill(...) is called). This information may be stored with the monitoring object if an application is only able to partially fill the object (i.e., a job sees only part of a run or fill). This information may be ignored in some running Environments. The 'fill' interval corresponds to a fill of the LHC. The 'all' interval corresponds to all available data. The 'lumiBlock' and 'fill' intervals are only valid for the 'collisions' DataType_t.

Enumerator
file 
eventsBlock 
lumiBlock 
lowStat 
medStat 
higStat 
run 
fill 
all 

Definition at line 113 of file ManagedMonitorToolBase.h.

◆ MgmtAttr_t

An enumeration describing how the class handles the histogram.

attrib_unmanaged: histograms with this attribute will not be rebooked automatically and must be managed by the user code.

attrib_x_is_lb: indicates that the x-axis of the histogram is the luminosity block number and that the histogram should be rebooked as necessary if the current LB exceeds the range.

Enumerator
ATTRIB_MANAGED 
ATTRIB_UNMANAGED 
ATTRIB_X_VS_LB 

Definition at line 130 of file ManagedMonitorToolBase.h.

◆ RunType

Enumerator
Unknown 
PhysRun 
LasRun 
LedRun 
PedRun 
CisRun 
MonoRun 
CisRamp 

Definition at line 109 of file TileDigitsMonTool.h.

109 {
110 Unknown = 0, // expect monogain
111 PhysRun = 1, // expect monogain
112 LasRun = 2, // expect monogain
113 LedRun = 3, // expect monogain
114 PedRun = 4, // expect bigain
115 CisRun = 8, // expect bigain
116 MonoRun = 9, // expect monogain
117 CisRamp = 10 // expect monogain
118 };

◆ TileFragStatus

Enumerator
ALL_OK 
CRC_ERR 
ALL_FF 
ALL_00 
NO_FRAG 
NO_ROB 

Definition at line 62 of file TilePaterMonTool.h.

Constructor & Destructor Documentation

◆ TileDigitsMonTool()

TileDigitsMonTool::TileDigitsMonTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 51 of file TileDigitsMonTool.cxx.

52 : TilePaterMonTool(type, name, parent)
53 , m_tileToolNoiseSample("TileCondToolNoiseSample")
54 , m_cispar(0)
56 , m_allHistsFilled(false)
57 //, hp(-1)
58 //, hb(-1)
59 , m_tileInfo(0)
60 , m_is12bit(false)
61 , m_shiftnbins(0)
62/*---------------------------------------------------------*/
63{
64 declareInterface<IMonitorToolBase>(this);
65 declareInterface<ITileStuckBitsProbsTool>(this);
66
67 declareProperty("bookAllDrawers", m_bookAll = false);
68 declareProperty("book2D", m_book2D = false);
69
70 // run type 1 - phys, 2 - las, 4 - ped, 8 - cis, 9- mono
71 declareProperty("runType", m_runType = 8);
72 declareProperty("bigain", m_bigain = true);
73 declareProperty("NSamples", m_nSamples = 7);
74 declareProperty("TileRawChannelContainerDSP", m_contNameDSP = "TileRawChannelCnt");
75 declareProperty("TileDigitsContainer", m_digitsContainerName = "TileDigitsCnt");
76 declareProperty("FillPedestalDifference", m_fillPedestalDifference = true);
77 declareProperty("TileInfoName", m_infoName = "TileInfo");
78 declareProperty("TileDQstatus", m_DQstatusKey = "TileDQstatus");
79 declareProperty("ZeroLimitHG", m_zeroLimitHG = 0);
80 declareProperty("SaturationLimitHG", m_saturationLimitHG = 1023);
81
82 m_path = "/Tile/Digits"; //ROOT file directory
83}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const TileInfo * m_tileInfo
SG::ReadHandleKey< TileDQstatus > m_DQstatusKey
ToolHandle< TileCondToolNoiseSample > m_tileToolNoiseSample
tool which provided noise values
const uint32_t * m_cispar
std::string m_digitsContainerName
TilePaterMonTool(const std::string &type, const std::string &name, const IInterface *parent)

◆ ~TileDigitsMonTool()

TileDigitsMonTool::~TileDigitsMonTool ( )
virtual

Definition at line 86 of file TileDigitsMonTool.cxx.

88{
89}

Member Function Documentation

◆ book1C()

TH1C * TilePaterMonTool::book1C ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 179 of file TilePaterMonTool.cxx.

183{
184
185 TH1C* hist = new TH1C(TString(nam), TString(tit), nx, xmin, xmax);
186 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
187 return hist;
188}
void regHist(const std::string &subDir, T *hist, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
double xmax
Definition listroot.cxx:61
double xmin
Definition listroot.cxx:60

◆ book1D() [1/2]

TH1D * TilePaterMonTool::book1D ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 157 of file TilePaterMonTool.cxx.

161{
162
163 TH1D* hist = new TH1D(TString(nam), TString(tit), nx, xmin, xmax);
164 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
165 return hist;
166}

◆ book1D() [2/2]

TH1D * TilePaterMonTool::book1D ( const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax )
inlineprotectedinherited

Implicit version of book1D.

Definition at line 66 of file TilePaterMonTool.h.

68 {
69 return book1D(m_path, nam, tit, nx, xmin, xmax);
70 }
TH1D * book1D(const std::string &nam, const std::string &tit, int nx, double xmin, double xmax)
Implicit version of book1D.

◆ book1F()

TH1F * TilePaterMonTool::book1F ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 168 of file TilePaterMonTool.cxx.

172{
173
174 TH1F* hist = new TH1F(TString(nam), TString(tit), nx, xmin, xmax);
175 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
176 return hist;
177}
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)

◆ book1I()

TH1I * TilePaterMonTool::book1I ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 212 of file TilePaterMonTool.cxx.

216{
217
218 TH1I* hist = new TH1I(TString(nam), TString(tit), nx, xmin, xmax);
219 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
220 return hist;
221}

◆ book1S()

TH1S * TilePaterMonTool::book1S ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 190 of file TilePaterMonTool.cxx.

194{
195
196 TH1S* hist = new TH1S(TString(nam), TString(tit), nx, xmin, xmax);
197 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
198 return hist;
199}

◆ book1Sx()

TH1S * TilePaterMonTool::book1Sx ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
const Double_t * xlgbins,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 201 of file TilePaterMonTool.cxx.

205{
206
207 TH1S* hist = new TH1S(TString(nam), TString(tit), nx, xlgbins);
208 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
209 return hist;
210}

◆ book2C()

TH2C * TilePaterMonTool::book2C ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 283 of file TilePaterMonTool.cxx.

288{
289 TH2C* hist = new TH2C(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
290 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
291 return hist;
292}
double ymin
Definition listroot.cxx:63
double ymax
Definition listroot.cxx:64

◆ book2D() [1/2]

TH2D * TilePaterMonTool::book2D ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 226 of file TilePaterMonTool.cxx.

231{
232 TH2D* hist = new TH2D(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
233 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
234 return hist;
235}

◆ book2D() [2/2]

TH2D * TilePaterMonTool::book2D ( const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax )
inlineprotectedinherited

Implicit version of book2D.

Definition at line 73 of file TilePaterMonTool.h.

76 {
77 return book2D(m_path, nam, tit, nx, xmin, xmax, ny, ymin, ymax);
78 }
TH2D * book2D(const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax)
Implicit version of book2D.

◆ book2F() [1/2]

TH2F * TilePaterMonTool::book2F ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
int ny,
const double * ybins,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 248 of file TilePaterMonTool.cxx.

253{
254 TH2F* hist = new TH2F(TString(nam), TString(tit), nx, xmin, xmax, ny, ybins);
255 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
256 return hist;
257}
TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)

◆ book2F() [2/2]

TH2F * TilePaterMonTool::book2F ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 237 of file TilePaterMonTool.cxx.

242{
243 TH2F* hist = new TH2F(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
244 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
245 return hist;
246}

◆ book2I()

TH2I * TilePaterMonTool::book2I ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 260 of file TilePaterMonTool.cxx.

265{
266 TH2I* hist = new TH2I(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
267 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
268 return hist;
269}

◆ book2S()

TH2S * TilePaterMonTool::book2S ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 272 of file TilePaterMonTool.cxx.

277{
278 TH2S *hist = new TH2S(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
279 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
280 return hist;
281}

◆ bookGraph()

TGraph * TilePaterMonTool::bookGraph ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int N,
float * X,
float * Y )
protectedinherited

Definition at line 376 of file TilePaterMonTool.cxx.

376 {
377
378 TGraph1 *hist = new TGraph1(N, X, Y);
379 hist->SetName(TString(nam));
380 hist->SetTitle(TString(tit));
381
382 regGraph(subdir, hist);
383
384 return hist;
385}
void regGraph(const std::string &subDir, T *graph, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")

◆ bookGraphAsymmErrors()

TGraphAsymmErrors * TilePaterMonTool::bookGraphAsymmErrors ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int N,
float * X,
float * Y,
float * X_errors1,
float * X_errors2,
float * Y_errors1,
float * Y_errors2 )
protectedinherited

Definition at line 463 of file TilePaterMonTool.cxx.

466{
467
468 TGraphAsymmErrors *hist = new TGraphAsymmErrors(N, X, Y, X_errors1, X_errors2, Y_errors1, Y_errors2);
469 hist->SetName(TString(nam));
470 hist->SetTitle(TString(tit));
471
472 regGraph(subdir, hist);
473 return hist;
474}

◆ bookGraphErrors()

TGraphErrors * TilePaterMonTool::bookGraphErrors ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int N,
float * X,
float * Y,
float * X_errors,
float * Y_errors )
protectedinherited

Definition at line 406 of file TilePaterMonTool.cxx.

406 {
407
408 TGraphErrors *hist = new TGraphErrors(N, X, Y, X_errors, Y_errors);
409 hist->SetName(TString(nam));
410 hist->SetTitle(TString(tit));
411
412 regGraph(subdir, hist);
413 return hist;
414}

◆ bookHistograms()

◆ bookHistogramsRecurrent()

StatusCode ManagedMonitorToolBase::bookHistogramsRecurrent ( )
virtualinherited

An inheriting class should either override this function, bookHists() or bookHistograms().

Reimplemented in ManagedMonitorToolTest, MdtVsRpcRawDataValAlg, and MdtVsTgcRawDataValAlg.

Definition at line 1284 of file ManagedMonitorToolBase.cxx.

1286{
1287 if( m_newEventsBlock ) { }
1288 if( m_newLumiBlock ) { }
1289 if( m_newRun ) { }
1290
1291 return StatusCode::SUCCESS;
1292}

◆ bookHists() [1/2]

StatusCode TileDigitsMonTool::bookHists ( )
overridevirtual

Calls bookHists( true, true, true ) and initializes lumiBlock and run numbers.

Reimplemented from ManagedMonitorToolBase.

Definition at line 134 of file TileDigitsMonTool.cxx.

136{
137
138 if (msgLvl(MSG::DEBUG)) {
139 msg(MSG::DEBUG) << "in bookHists()" << endmsg;
140 msg(MSG::DEBUG) << "Using base path " << m_path << endmsg;
141 }
142
143 if (m_bookAll) {
144 for (int ros = 1; ros < 5; ++ros) {
145 for (int drawer = 0; drawer < 64; ++drawer) {
146 bookHists(ros, drawer);
147 }
148 }
149 }
150
151 m_data->m_outInHighGain.push_back(book1D("Summary", "OverFlowInHighGain", "Injected charge with overflow in high gain", 10010, -0.5, 1000.5));
152
153 //SetBookStatus(true);
154
155 return StatusCode::SUCCESS;
156}
#define endmsg
bool msgLvl(const MSG::Level lvl) const
virtual StatusCode bookHists() override
Calls bookHists( true, true, true ) and initializes lumiBlock and run numbers.
std::unique_ptr< Data > m_data
MsgStream & msg
Definition testRead.cxx:32

◆ bookHists() [2/2]

void TileDigitsMonTool::bookHists ( int ros,
int drawer )

index of hists per one channel per gain 0 - digit[0] (first sample only) 1 - mean RMS over 7(9) samples in event 2 - all samples

index of hists per TileDMU (16 DMUs, first 16 channels used) 3 - BCID 4 - BCID errors 5 - CRC errors (only gain=0 used, so should be the last histogram in a vector)

for bigain run book 2 histograms per channel for monogain run book just one histogram per channel

Definition at line 159 of file TileDigitsMonTool.cxx.

161{
162 const char *part[5] = { "AUX", "LBA", "LBC", "EBA", "EBC" };
163 const char *gain[6] = { "_lo", "_hi", "", " low gain", " high gain", "" };
164
174
175 MsgStream log(msgSvc(), name());
176
177 std::ostringstream sStr;
178 sStr << part[ros] << std::setfill('0') << std::setw(2) << drawer + 1 << std::setfill(' ');
179 std::string moduleName = sStr.str();
180 std::string subDir = moduleName;
181 std::string histName, histTitle;
182
183 ATH_MSG_DEBUG("in bookHists() for module " << moduleName);
184
187 int mingain = (m_bigain) ? 0 : 2;
188 int maxgain = (m_bigain) ? 2 : 3;
189
190 for (int gn = mingain; gn < maxgain; ++gn) {
191 //Book DMU header errors histograms
192 int adc = gn & 1;
193
194 sStr.str("");
195 sStr << moduleName << "_DMU_head_" << gain[gn] << "_err";
196 histName = sStr.str();
197
198 sStr.str("");
199 sStr << moduleName << " DMU Header " << gain[3 + gn] << " errors";
200 histTitle = sStr.str();
201
202 m_data->m_hist2[ros][drawer][adc].push_back(book2F(subDir, histName, histTitle, 16, 0., 16., 8, -0.5, 7.5));
203 }
204
205 for (int ch = 0; ch < 48; ++ch) {
206
207 // int pmt=m_cabling->channel2hole(ros,ch); // 1:48, negative for non-connected channels
208 // int pmt0 = ((pmt > 0)? pmt-1 : pmt+1); // 0:47, negaitve for non-connected channels
209 sStr.str("");
210 sStr << std::setfill('0') << std::setw(2) << ch << std::setfill(' ');
211 std::string sCh = sStr.str(); // 00:47, always positive
212
213 for (int gn = mingain; gn < maxgain; ++gn) {
214
215 int adc = gn & 1;
216
217 // first sample
218 sStr.str("");
219 sStr << moduleName << "_ch_" << sCh << gain[gn] << "_sample0";
220 histName = sStr.str();
221
222 sStr.str("");
223 sStr << moduleName << " CH " << ch << gain[3 + gn] << " sample[0]";
224 histTitle = sStr.str();
225
226 m_data->m_hist1[ros][drawer][ch][adc].push_back(book1S(subDir, histName, histTitle, 151, -0.5, 150.5));
227
228 // RMS over samples in event
229 sStr.str("");
230 sStr << moduleName << "_ch_" << sCh << gain[gn] << "_meanRMS";
231 histName = sStr.str();
232
233 sStr.str("");
234 sStr << moduleName << " CH " << ch << gain[3 + gn] << " mean RMS in event";
235 histTitle = sStr.str();
236
237 m_data->m_hist1[ros][drawer][ch][adc].push_back(book1S(subDir, histName, histTitle, 101, -0.05, 10.05));
238
239 //all samples to find stuck bits
240 sStr.str("");
241 sStr << moduleName << "_ch_" << sCh << gain[gn] << "_samples";
242 histName = sStr.str();
243
244 sStr.str("");
245 sStr << moduleName << " CH " << ch << gain[3 + gn] << " all samples";
246 histTitle = sStr.str();
247
248 m_data->m_hist1[ros][drawer][ch][adc].push_back(book1S(subDir, histName, histTitle, m_i_ADCmax + 1, -0.5, m_i_ADCmax + 0.5));
249
250 //eventnumber % 32 for n/32 gain switch failure
251 sStr.str("");
252 sStr << moduleName << "_ch_" << sCh << gain[gn] << "_evtn_mod32";
253 histName = sStr.str();
254
255 sStr.str("");
256 sStr << moduleName << " CH " << ch << gain[3 + gn] << " event number % 32";
257 histTitle = sStr.str();
258
259 m_data->m_histC[ros][drawer][ch][adc].push_back(book1C(subDir, histName, histTitle, 32, -0.5, 31.5));
260
261 // average profile for a given channel/gain
262 sStr.str("");
263 sStr << moduleName << "_ch_" << sCh << gain[gn] << "_prof";
264 histName = sStr.str();
265
266 sStr.str("");
267 sStr << moduleName << " CH " << ch << gain[3 + gn] << " average profile";
268 histTitle = sStr.str();
269
270 m_data->m_histP[ros][drawer][ch][adc].push_back(bookProfile(subDir, histName, histTitle, m_nSamples, 0.0, m_nSamples * 1.0, -0.5, m_i_ADCmax + 0.5));
271
272 // shifted samples histograms
273
274 double shiftxmin = 0.;
275 double shiftxmax = m_shiftnbins;
276 int shiftnbins = m_shiftnbins;
277
278 sStr.str("");
279 sStr << moduleName << "_ch_" << sCh << gain[gn] << "_samples_shifted";
280 histName = sStr.str();
281
282 sStr.str("");
283 sStr << moduleName << " CH " << ch << gain[3 + gn] << " all samples shifted";
284 histTitle = sStr.str();
285
286 m_data->m_shifted_hist[ros][drawer][ch][adc] = book1S(subDir, histName, histTitle, shiftnbins, shiftxmin, shiftxmax);
287
288 if (ch < 16) { // use first 16 channels to store BCID/CRC errors (one per TileDMU)
289
290 sStr.str("");
291 sStr << std::setfill('0') << std::setw(2) << ch << std::setfill(' ');
292 std::string sDmu = sStr.str();
293
294 sStr.str("");
295 sStr << moduleName << "_dmu_" << sDmu << gain[gn] << "_BCID";
296 histName = sStr.str();
297
298 sStr.str("");
299 sStr << moduleName << " DMU0 " << ch << gain[3 + gn] << " BCID";
300 histTitle = sStr.str();
301
302 m_data->m_hist1[ros][drawer][ch][adc].push_back(book1S(subDir, histName, histTitle, 100, 2050.5, 2150.5));
303
304 sStr.str("");
305 sStr << moduleName << "_dmu_" << sDmu << gain[gn] << "_BCID_err";
306 histName = sStr.str();
307
308 sStr.str("");
309 sStr << moduleName << " DMU0 " << ch << gain[3 + gn] << " BCID errors";
310 histTitle = sStr.str();
311
312 m_data->m_hist_DMUerr[ros][drawer][ch][adc].push_back(book1I(subDir, histName, histTitle, 3, -0.5, 2.5));
313
314 if (adc) continue; // don't book CRC for high gain
315
316 sStr.str("");
317 sStr << moduleName << "_dmu_" << sDmu << "_CRC_err";
318 histName = sStr.str();
319
320 sStr.str("");
321 sStr << moduleName << " DMU0 " << ch << " CRC errors";
322 histTitle = sStr.str();
323
324 m_data->m_hist_DMUerr[ros][drawer][ch][0].push_back(book1I(subDir, histName, histTitle, 5, -0.5, 4.5));
325 }
326 }
327 }
328
329// and now global histograms for all channels in a drawer
330
331 // global CRC
332 sStr.str("");
333 sStr << moduleName << "_CRC_global";
334 histName = sStr.str();
335
336 sStr.str("");
337 sStr << moduleName << " global CRC errors";
338 histTitle = sStr.str();
339
340 m_data->m_hist0[ros][drawer].push_back(book1S("Summary", histName, histTitle, 3, -0.5, 2.5));
341
342}
#define ATH_MSG_DEBUG(x)
TH2F * book2F(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TProfile * bookProfile(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH1S * book1S(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH1C * book1C(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH1I * book1I(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
msgSvc
Provide convenience handles for various services.
Definition StdJOSetup.py:36

◆ bookProfile() [1/3]

TProfile * TilePaterMonTool::bookProfile ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
const float * xbins,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 315 of file TilePaterMonTool.cxx.

319{
320 TProfile* hist = new TProfile(TString(nam), TString(tit), nx, xbins);
321 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
322 return hist;
323}

◆ bookProfile() [2/3]

TProfile * TilePaterMonTool::bookProfile ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
double ymin,
double ymax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 304 of file TilePaterMonTool.cxx.

309{
310 TProfile* hist = new TProfile(TString(nam), TString(tit), nx, xmin, xmax, ymin, ymax);
311 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
312 return hist;
313}

◆ bookProfile() [3/3]

TProfile * TilePaterMonTool::bookProfile ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 294 of file TilePaterMonTool.cxx.

298{
299 TProfile* hist = new TProfile(TString(nam), TString(tit), nx, xmin, xmax);
300 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
301 return hist;
302}

◆ bookProfile2D()

TProfile2D * TilePaterMonTool::bookProfile2D ( const std::string & dir,
const std::string & nam,
const std::string & tit,
int nx,
double xmin,
double xmax,
int ny,
double ymin,
double ymax,
double zmin,
double zmax,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 325 of file TilePaterMonTool.cxx.

331{
332
333 TProfile2D* hist = new TProfile2D(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax, zmin, zmax);
334 regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
335 return hist;
336}

◆ checkHists()

StatusCode TileDigitsMonTool::checkHists ( bool calledFromFinalize)
overridevirtual

This implementation does nothing; equivalent functionality may be provided by procHists(...) with appropriate arguments.

Reimplemented from ManagedMonitorToolBase.

Definition at line 938 of file TileDigitsMonTool.cxx.

940{
941
942 ATH_MSG_INFO("in checkHists()");
943
944 return StatusCode::SUCCESS;
945}
#define ATH_MSG_INFO(x)

◆ CRCcheck()

void TileDigitsMonTool::CRCcheck ( const TileDQstatus * dqStatus,
uint32_t crc32,
uint32_t crcMask,
int headsize,
int ros,
int drawer )
private

Method to check global CRC and DMU CRC.

Author: Luca. F. November 06 This method provides CRC checks for Global and TileDMU chips. Global CRC is taken from the trailer and it is correct if the first 16 bits and the last 16 bits of the word match. TileDMU CRC is taken from the DMU mask filled in the FPGA. At the moment it makes sense only for monogain runs (Physics, LED, MonoCIS). The least significant 16 bits are the result of the CRC check in the FE (0xFFFF means all OK). The most significant 16 bits are the result of the CRC check in the ROD (0xFFFF means all OK).

bigain: dummy information

monogain: meaningful information. Fill 0 if crc32 if 0 Fill 1 if both FE and ROD crc is 1 Fill 2 if DMU FE crc is 0 Fill 3 if DMU ROD crc is 0 Fill 4 is FE and ROD crc is 0

Definition at line 1612 of file TileDigitsMonTool.cxx.

1613 {
1623
1624 // protection against non-exisitng histograms
1625 if (m_data->m_hist0[ros][drawer].size() == 0) return;
1626
1627 //LF CRC check
1628 //std::string ros_name[2] = {"LBA","LBC"};
1629 //std::cout << "Module= " << ros_name[ros-1] << drawer+1 << " CRCmask= 0x" << std::setfill('0') << std::setw(8) << std::hex << crcMask << std::setfill(' ') << std::dec <<"\n";
1630
1631 //END CRC check
1632 // array to adjust order of DMU's of EB* FE CRC status in DMU chip mask word
1633 // this is needed because FE and ROD fill DMU mask word in different order
1634 int chFE_ext[16] = { 0, 1, 2, 3, 4, 5, 6, 7, 12, 13, 8, 9, 10, 11, 14, 15 };
1635 int chFE_sp[16] = { 11, 0, 1, 2, 3, 4, 5, 6, 12, 13, 7, 8, 9, 10, 14, 15 };
1636 // global CRC
1637 // uint32_t crc32 = (*collItr)->getFragCRC();
1638 uint32_t crc0 = crc32 & 0xFFFF;
1639 uint32_t crc1 = crc32 >> 16;
1640 if (crc32 == 0)
1641 m_data->m_hist0[ros][drawer][0]->Fill(0.0, 1.0);
1642 else if (crc0 == crc1) // two half-words should match
1643 m_data->m_hist0[ros][drawer][0]->Fill(1.0, 1.0);
1644 else
1645 m_data->m_hist0[ros][drawer][0]->Fill(2.0, 1.0);
1646
1647 // CRC per TileDMU.For mono gain we have it from ROD and FE.
1648 // In bi gain, it is just a placeholder with global CRC information.
1649
1650 if (headsize < 16) { // How to handle EB? All bits are filled anyway or not?
1651 }
1652
1653 if (dqStatus->calibMode() == 1) {
1654 for (int ch = 0; ch < headsize; ++ch) {
1655 if (crc32 == 0)
1656 m_data->m_hist_DMUerr[ros][drawer][ch][0][1]->Fill(0.0, 1.0);
1657 else if (crc0 == crc1)
1658 m_data->m_hist_DMUerr[ros][drawer][ch][0][1]->Fill(1.0, 1.0);
1659 else
1660 m_data->m_hist_DMUerr[ros][drawer][ch][0][1]->Fill(2.0, 1.0);
1661
1662 }
1663 } else {
1669 if (crc32 == 0) { //std::cout << "Global crc is zero\n";
1670 for (int ch = 0; ch < headsize; ++ch) {
1671 m_data->m_hist_DMUerr[ros][drawer][ch][0][1]->Fill(0.0, 1.0);
1672 }
1673 } else if (crcMask == 0xFFFFFFFF) {
1674 for (int ch = 0; ch < headsize; ++ch) {
1675 m_data->m_hist_DMUerr[ros][drawer][ch][0][1]->Fill(1.0, 1.0);
1676 }
1677 } else {
1678 uint32_t fe_crc = crcMask & 0xFFFF;
1679 uint32_t rod_crc = crcMask >> 16;
1680 for (int ch = 0; ch < headsize; ++ch) {
1681 int flag = 0;
1682 if (ros == 1 || ros == 2) // LB* use simple FECRC map
1683 {
1684 if ((fe_crc >> ch & 0x1) == 0x0) flag++;
1685 } else if (ros == 3 || ros == 4) // EB* use different FECRC map
1686 {
1687 if ((ros == 3 && drawer == 14) || (ros == 4 && drawer == 17)) // Special Check for EBA15,EBC18
1688 {
1689 if ((fe_crc >> chFE_sp[ch] & 0x1) == 0x0) flag++;
1690 } else {
1691 if ((fe_crc >> chFE_ext[ch] & 0x1) == 0x0) flag++;
1692 }
1693 }
1694 if ((rod_crc >> ch & 0x1) == 0x0) flag += 2;
1695
1696 //std::cout << "flag for chan "<< ch << "=" << flag << "\n";
1697
1698 switch (flag) {
1699 case 0: //TileDMU is fine
1700 m_data->m_hist_DMUerr[ros][drawer][ch][0][1]->Fill(1.0, 1.0);
1701 break;
1702 case 1: //fe error only
1703 m_data->m_hist_DMUerr[ros][drawer][ch][0][1]->Fill(2.0, 1.0);
1704 break;
1705 case 2: // rod errors
1706 m_data->m_hist_DMUerr[ros][drawer][ch][0][1]->Fill(3.0, 1.0);
1707 break;
1708 default: // fe+rod errors
1709 m_data->m_hist_DMUerr[ros][drawer][ch][0][1]->Fill(4.0, 1.0);
1710 } // end switch case
1711
1712 } // end loop on chips
1713
1714 } // end if on crcMask
1715
1716 } // end if on runtype
1717}
uint32_t calibMode() const
Calibration mode.
bool flag
Definition master.py:29
setEventNumber uint32_t

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ define_palette()

int TileDigitsMonTool::define_palette ( int ncolors,
int * colors = NULL )
private

Definition at line 948 of file TileDigitsMonTool.cxx.

948 {
949 /*---------------------------------------------------------*/
950 Float_t alpha = 1.; // 0- transparent, 1- opaque
951 Int_t ind;
952 // set Deep Sea Blue palette (dark to light)
953 if (ncolors == 51 && colors == 0) {
954 TColor::InitializeColors();
955 const int nRGBs = 5;
956 Double_t stops[nRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
957 Double_t red[nRGBs] = { 0.00, 0.09, 0.18, 0.09, 0.00 };
958 Double_t green[nRGBs] = { 0.01, 0.02, 0.39, 0.68, 0.97 };
959 Double_t blue[nRGBs] = { 0.17, 0.39, 0.62, 0.79, 0.97 };
960 ind = TColor::CreateGradientColorTable(nRGBs, stops, red, green, blue, m_NCont, alpha);
961 }
962
963 // set Grey Scale palette (light to dark)
964 else if (ncolors == 52 && colors == 0) {
965 TColor::InitializeColors();
966 const int nRGBs = 3;
967 Double_t stops[nRGBs] = { 0.00, 0.50, 1.00 };
968 Double_t red[nRGBs] = { 0.90, 0.50, 0.10 };
969 Double_t green[nRGBs] = { 0.90, 0.50, 0.10 };
970 Double_t blue[nRGBs] = { 0.90, 0.50, 0.10 };
971 ind = TColor::CreateGradientColorTable(nRGBs, stops, red, green, blue, m_NCont, alpha);
972 } else
973 return -1;
974 return ind;
975}
static const int m_NCont

◆ deregGraph()

StatusCode ManagedMonitorToolBase::deregGraph ( TGraph * g)
virtualinherited

De-registers a TGraph from the THistSvc, but does NOT delete the object.

Definition at line 1623 of file ManagedMonitorToolBase.cxx.

1625{
1626 return m_THistSvc->deReg( g );
1627}
ServiceHandle< ITHistSvc > m_THistSvc

◆ deregHist()

StatusCode ManagedMonitorToolBase::deregHist ( TH1 * h)
virtualinherited

De-registers a TH1 from the THistSvc, but does NOT delete the object.

Definition at line 1615 of file ManagedMonitorToolBase.cxx.

1617{
1618 return m_THistSvc->deReg( h );
1619}

◆ deregObject() [1/2]

StatusCode ManagedMonitorToolBase::deregObject ( const std::string & objName,
const MonGroup & group )
virtualinherited

De-registers a TObject from the THistSvc, but does NOT delete the object.

(NB: LightWeight histograms are not even registered until readout).

Definition at line 1641 of file ManagedMonitorToolBase.cxx.

1643{
1644 std::string streamName = streamNameFunction()->getStreamName( this, group, objName );
1645 return m_THistSvc->deReg( streamName );
1646}
virtual std::string getStreamName(const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, bool usePreviousInterval=false)=0
A function that converts a MonGroup of logical parameters into a physical output stream name.
virtual StreamNameFcn * streamNameFunction()
Returns the function object that converts logical paramters into a physical stream name.

◆ deregObject() [2/2]

StatusCode ManagedMonitorToolBase::deregObject ( const std::string & objName,
const std::string & system,
Interval_t interval )
virtualinherited

De-registers a TObject from the THistSvc, but does NOT delete the object.

(NB: LightWeight histograms are not even registered until readout).

Definition at line 1631 of file ManagedMonitorToolBase.cxx.

1634{
1635 MonGroup group( this, system, interval );
1636 return deregObject( objName, group );
1637}
A container of information describing a monitoring object.
virtual StatusCode deregObject(const std::string &objName, const std::string &system, Interval_t interval)
De-registers a TObject from the THistSvc, but does NOT delete the object.

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ DMUheaderCheck()

bool TileDigitsMonTool::DMUheaderCheck ( std::vector< uint32_t > * headerVec,
int ros,
int drawer,
int gain,
int dmu )
private

DMU header format as defined in http://www.sysf.physto.se/~klere/tile-dmu/header.html Bits: 1pllllesdrvvvv0mmgggbbbbbbbbbbbb.

The header starts with bit 31 set to indicate a header. The other bits as follows: p - Parity (odd) l - Derandomizer length (number of samples). e - Parity error. A parity error was detected from the memory in the last readout. s - SEstr Single Error Strobe recieved from the ttc. d - DEstr Double Error Strobe recieved from the ttc. r - Register parity. Parity from the registers in the chip. v - Variable parity. Parity from the variables in the chip. 0 - Not used. (Set to 0) m - Mode. 00 - Normal mode 01 - Calibration mode 10 - Test mode 11 - Not used g - High/low gain. Indicates high(1) or low(0) amplification from the 3-in-1 cards. b - Bunch Crossing.

Definition at line 1741 of file TileDigitsMonTool.cxx.

1743{
1744 bool err = false;
1745
1746 if (DMUheaderFormatCheck((*headerVec)[dmu])) {
1747 m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 1., 1.);
1748 err = true;
1749 return err;
1750 }
1751 if (DMUheaderParityCheck((*headerVec)[dmu])) {
1752 m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 2., 1.);
1753 err = true;
1754 return err;
1755 }
1756 if (((*headerVec)[dmu] >> 25) & 0x1) {
1757 //Memory Parity Error
1758 m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 3., 1.);
1759 err = true;
1760 }
1761 if (((*headerVec)[dmu] >> 24) & 0x1) {
1762 //Single Strobe Error
1763 m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 4., 1.);
1764 err = true;
1765 }
1766 if (((*headerVec)[dmu] >> 23) & 0x1) {
1767 //Double Strobe Error
1768 m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 5., 1.);
1769 err = true;
1770 }
1771
1772 if (!err) m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 0., 1.);
1773
1774 int fragId = m_tileHWID->frag(ros, drawer);
1775 if (std::binary_search(m_fragIDsToIgnoreDMUerrors.begin(), m_fragIDsToIgnoreDMUerrors.end(), fragId)) {
1776 err = false;
1777 }
1778
1779 return err;
1780}
bool DMUheaderFormatCheck(uint32_t header)
Function to check that the DMU header format is correct bit_31 of the DMU header must be 1 and bit_17...
bool DMUheaderParityCheck(uint32_t header)
Function to check that the DMU header parity is correct Parity of the DMU header should be odd Return...
std::vector< int > m_fragIDsToIgnoreDMUerrors
const TileHWID * m_tileHWID

◆ DMUheaderFormatCheck()

bool TileDigitsMonTool::DMUheaderFormatCheck ( uint32_t header)
inlineprivate

Function to check that the DMU header format is correct bit_31 of the DMU header must be 1 and bit_17 of the DMU header must be 0 Return true in case of error.

Definition at line 85 of file TileDigitsMonTool.h.

85 {
86 if (((header >> 31 & 0x1) == 1) && ((header >> 17 & 0x1) == 0))
87 return false; // no error
88 else
89 return true; //error
90 };

◆ DMUheaderParityCheck()

bool TileDigitsMonTool::DMUheaderParityCheck ( uint32_t header)
inlineprivate

Function to check that the DMU header parity is correct Parity of the DMU header should be odd Return true in case of error.

Definition at line 95 of file TileDigitsMonTool.h.

95 {
96 uint32_t parity(0);
97 for (int i = 0; i < 32; ++i)
98 parity += ((header >> i) & 0x1);
99
100 if ((parity % 2) == 1) return false; //no error
101 else return true; //error
102 };

◆ drawHists()

void TileDigitsMonTool::drawHists ( int ros,
int drawer,
const std::string & moduleName )

Definition at line 978 of file TileDigitsMonTool.cxx.

980{
981
982 ATH_MSG_VERBOSE("in drawHists()");
983
984 int maxgain = (m_bigain) ? 2 : 1;
985 double ms = (m_bigain) ? 0.75 : 1.0; // marker size
986
987 static bool palette_init_done = false;
988 static int pal51[m_NCont];
989 static int pal52[m_NCont];
990 static TExec *ex_pal51;
991 static TExec *ex_pal52;
992 bool do_plots = m_savePng || m_savePs || m_saveSvg;
993
994 if (palette_init_done == false) {
995 palette_init_done = true;
996 int i;
997 int ind = define_palette(51);
998 if (ind < 0) ind = 0; // fall-back colours
999 for (i = 0; i < m_NCont; i++)
1000 pal51[i] = ind + i;
1001 ind = define_palette(52);
1002 if (ind < 0) ind = 0; // fall-back colours
1003 for (i = 0; i < m_NCont; i++)
1004 pal52[i] = ind + i;
1005 TString s;
1006 s.Form("gStyle->SetPalette(%d,(int*)%ld);", m_NCont, (long) pal51);
1007 ex_pal51 = new TExec("ex_pal51", s.Data());
1008 s.Form("gStyle->SetPalette(%d,(int*)%ld);", m_NCont, (long) pal52);
1009 ex_pal52 = new TExec("ex_pal52", s.Data());
1010 }
1011
1012 TLine * maxline[4];
1013 double line[8] = { 1.2, 2.5, 1.0, 1.0, 48.0, 48.0, 48.0, 16.0 };
1014 double miny[12] = { 20.0, 20.0, 0.0, 0.0, 0.0, 0.0, -0.1, -0.1, -0.1, -0.1, -0.1, -0.1 };
1015 double maxy[12] = { 80.0, 80.0, 1.5, 3.0, 1.5, 3.0, 2.2, 2.2, 2.2, 2.2, 3.2, 2.2 };
1016 // ? , ? , ? , ? , ? , ? , ? , ? , BC hi,BC lo, CRC , ?
1018 miny[0] = miny[1] = -5.0;
1019 maxy[0] = maxy[1] = 5.0;
1020 }
1021
1022 TText *t = new TText();
1023 t->SetTextAlign(32);
1024 t->SetTextSize(0.06);
1025 t->SetTextFont(72);
1026
1027 if (maxgain == 1) {
1028 line[0] = line[1];
1029 for (int ind = 0; ind < 12; ind += 2) {
1030 miny[ind] = miny[ind + 1] = std::min(miny[ind], miny[ind + 1]);
1031 maxy[ind] = maxy[ind + 1] = std::max(maxy[ind], maxy[ind + 1]);
1032 }
1033 }
1034
1035 for (int type = 0; type < 4; ++type) {
1036 maxline[type] = new TLine(0.0, line[type], line[4 + type], line[type]);
1037 maxline[type]->SetLineColor(2 + type / 2);
1038 }
1039
1040 TCanvas * Can = NULL;
1041 if (do_plots) {
1042 Can = new TCanvas("dig_noise", "dig_noise", 402 * maxgain, 588);
1043 Can->Divide(maxgain, 3);
1044 gStyle->SetOptStat(0);
1045 gStyle->SetTitleFontSize(0.1);
1046 }
1047
1048 for (int gain = 0; gain < maxgain; ++gain) {
1049 for (int type = 0; type < 3; ++type) {
1050
1051 if (do_plots) {
1052 TVirtualPad * pad = Can->cd(type * maxgain + gain + 1);
1053 pad->SetTopMargin(0.15);
1054 pad->SetGridx();
1055 }
1056 int ind = type * 2 + gain;
1057
1058 if (m_data->m_final_hist1[ros][drawer][gain][type]->GetMaximum() < 0.9 * maxy[ind]) //if maximum is below reasonable limit use a default scale
1059 m_data->m_final_hist1[ros][drawer][gain][type]->SetMaximum(maxy[ind]);
1060 if (m_data->m_final_hist1[ros][drawer][gain][type]->GetMinimum() > (miny[ind] + 0.1 * TMath::Abs(miny[ind]))) // if minimum is above reasonable limit
1061 m_data->m_final_hist1[ros][drawer][gain][type]->SetMinimum(miny[ind]); // use a default scale
1062
1063 m_data->m_final_hist1[ros][drawer][gain][type]->SetMarkerStyle(21);
1064 m_data->m_final_hist1[ros][drawer][gain][type]->SetMarkerSize(ms);
1065 m_data->m_final_hist1[ros][drawer][gain][type]->SetLabelSize(0.08, "X");
1066 m_data->m_final_hist1[ros][drawer][gain][type]->SetLabelSize(0.08, "Y");
1067 if (do_plots) {
1068 m_data->m_final_hist1[ros][drawer][gain][type]->Draw("P0");
1069 if (type > 0) maxline[gain]->Draw();
1070 }
1071 }
1072 }
1073
1074 if (m_savePng) {
1075 Can->Print(TString(moduleName + "_dig_noise.png"), "png");
1076 }
1077 if (m_savePs) {
1078 Can->Print(TString(moduleName + "_dig_noise.ps"), "ps");
1079 }
1080 if (m_saveSvg) {
1081 Can->Print(TString(moduleName + "_dig_noise.svg"), "svg");
1082 }
1083 if (do_plots) {
1084 delete Can;
1085
1086 Can = new TCanvas("dig_errors", "dig_errors", 402 * maxgain, 588);
1087 Can->Divide(maxgain, 4);
1088 gStyle->SetOptStat(1);
1089 gStyle->SetTitleFontSize(0.1);
1090 }
1091
1092 for (int gain = 0; gain < maxgain; ++gain) {
1093 for (int type = 3; type < 6; ++type) {
1094
1095 TVirtualPad * pad = NULL;
1096 if (do_plots) {
1097 pad = Can->cd((type - 3) * maxgain + gain + 1);
1098 pad->SetTopMargin(0.15);
1099 }
1100 int ind = type * 2 + gain;
1101
1102 if (type == 5 && gain == 1) {
1103 if (do_plots) pad->SetLogy();
1104
1105 m_data->m_hist0[ros][drawer][0]->SetStats(kFALSE);
1106 gStyle->SetStatFontSize(0.1);
1107 m_data->m_hist0[ros][drawer][0]->SetStats(kTRUE);
1108 m_data->m_hist0[ros][drawer][0]->SetLabelSize(0.08, "X");
1109 m_data->m_hist0[ros][drawer][0]->SetLabelSize(0.08, "Y");
1110 if (do_plots) m_data->m_hist0[ros][drawer][0]->Draw(); // global CRC in bottom right corner
1111
1112 } else {
1113 if (do_plots) pad->SetGridx();
1114
1115 if (m_data->m_final_hist1[ros][drawer][gain][type]->GetMaximum() < 0.9 * maxy[ind]) //if maximum is below reasonable limit use a default scale
1116 m_data->m_final_hist1[ros][drawer][gain][type]->SetMaximum(maxy[ind]);
1117 if (m_data->m_final_hist1[ros][drawer][gain][type]->GetMinimum() > (miny[ind] + 0.1 * TMath::Abs(miny[ind]))) // if minimum is above reasonable limit
1118 m_data->m_final_hist1[ros][drawer][gain][type]->SetMinimum(miny[ind]); // use a default scale
1119
1120 m_data->m_final_hist1[ros][drawer][gain][type]->SetMarkerStyle(21);
1121 m_data->m_final_hist1[ros][drawer][gain][type]->SetMarkerSize(ms);
1122 m_data->m_final_hist1[ros][drawer][gain][type]->SetStats(kFALSE);
1123 m_data->m_final_hist1[ros][drawer][gain][type]->SetLabelSize(0.08, "X");
1124 m_data->m_final_hist1[ros][drawer][gain][type]->SetLabelSize(0.08, "Y");
1125 if (type != 3) {
1126 if (do_plots) m_data->m_final_hist1[ros][drawer][gain][type]->Draw("P0");
1127 } else {
1128 m_data->m_final_hist_stucks[ros][drawer][gain]->SetStats(kFALSE);
1129 m_data->m_final_hist_stucks[ros][drawer][gain]->SetMarkerSize(3.);
1130 m_data->m_final_hist_stucks[ros][drawer][gain]->SetMarkerColor(4);
1131 m_data->m_final_hist_stucks[ros][drawer][gain]->SetLabelSize(0.08, "X");
1132 m_data->m_final_hist_stucks[ros][drawer][gain]->SetLabelSize(0.1, "Y");
1133 gStyle->SetNumberContours(m_NCont);
1134 if (do_plots) {
1135 m_data->m_final_hist_stucks[ros][drawer][gain]->Draw("textzcol");
1136 ex_pal52->Draw();
1137 m_data->m_final_hist_stucks[ros][drawer][gain]->Draw("textcolzsame");
1138 pad->Update();
1139 TPaletteAxis *palette = (TPaletteAxis*) m_data->m_final_hist_stucks[ros][drawer][gain]->GetListOfFunctions()->FindObject("palette");
1140 if (palette != NULL) palette->SetLabelSize(0.07);
1141 pad->Modified();
1142 }
1143 }
1144 if (type == 4 || (type == 5 && gain == 0)) {
1145 m_data->m_final_hist1[ros][drawer][gain][type]->GetYaxis()->SetLabelOffset(-0.85); // do not draw default lables
1146 if (do_plots) {
1147 t->DrawText(-0.2, 1., "all OK");
1148 t->DrawText(-0.2, .0, "wrong");
1149 if (type == 4)
1150 t->DrawText(-0.2, 2., "mismatch");
1151 else {
1152 t->DrawText(-0.2, 2., "FE fail");
1153 t->DrawText(-0.2, 2.5, "FE+ROD fail");
1154 t->DrawText(-0.2, 3., "ROD fail");
1155 }
1156 }
1157 }
1158 /* if (type == 3)
1159 maxline[2]->Draw();
1160 else */
1161 if (type != 3) if (do_plots) maxline[3]->Draw();
1162 }
1163 }
1164 //LF Now plot DMU Header Errors histograms
1165 TVirtualPad * pad = NULL;
1166 if (do_plots) {
1167 pad = Can->cd(6 + gain + 1);
1168 pad->SetTopMargin(0.15);
1169 pad->SetGridx();
1170 }
1171 m_data->m_hist2[ros][drawer][gain][0]->SetMarkerSize(3.);
1172 m_data->m_hist2[ros][drawer][gain][0]->SetMarkerColor(2);
1173 m_data->m_hist2[ros][drawer][gain][0]->SetLabelSize(0.11, "Y");
1174 m_data->m_hist2[ros][drawer][gain][0]->SetLabelSize(0.08, "X");
1175 m_data->m_hist2[ros][drawer][gain][0]->SetStats(kFALSE);
1176 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetBinLabel(1, "OK ");
1177 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetBinLabel(2, "Format");
1178 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetBinLabel(3, "Parity");
1179 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetBinLabel(4, "Memory");
1180 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetBinLabel(5, "SingleStr");
1181 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetBinLabel(6, "DbleStr");
1182 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetBinLabel(7, "DummyFrag");
1183 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetBinLabel(8, "NoDataFrag");
1184 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetTickLength(0.01);
1185 m_data->m_hist2[ros][drawer][gain][0]->GetYaxis()->SetLabelOffset(0.001);
1186 if (do_plots) {
1187 gStyle->SetNumberContours(m_NCont);
1188 m_data->m_hist2[ros][drawer][gain][0]->Draw("textzcol");
1189 ex_pal51->Draw();
1190 m_data->m_hist2[ros][drawer][gain][0]->Draw("textzcolsame");
1191 pad->Update();
1192 TPaletteAxis *palette = (TPaletteAxis*) m_data->m_hist2[ros][drawer][gain][0]->GetListOfFunctions()->FindObject("palette");
1193 if (palette != NULL) palette->SetLabelSize(0.07);
1194 pad->Modified();
1195 }
1196
1197 }
1198
1199 if (m_savePng) {
1200 Can->Print(TString(moduleName + "_dig_errors.png"), "png");
1201 }
1202 if (m_savePs) {
1203 Can->Print(TString(moduleName + "_dig_errors.ps"), "ps");
1204 }
1205 if (m_saveSvg) {
1206 Can->Print(TString(moduleName + "_dig_errors.svg"), "svg");
1207 }
1208 if (do_plots) delete Can;
1209
1210 for (int type = 0; type < 4; ++type) {
1211 delete maxline[type];
1212 }
1213
1214 delete t;
1215
1216 if (m_runType == PedRun) {
1217
1218 if (do_plots) {
1219 Can = new TCanvas("correlation", "correlation", 402 * maxgain, 588);
1220 Can->Divide(maxgain, 2);
1221 gStyle->SetOptStat(0);
1222 gStyle->SetPalette(1);
1223 gStyle->SetTitleFontSize(0.1);
1224 }
1225
1226 TPaveLabel covar_label[2];
1227 covar_label[0] = TPaveLabel(37., 49., 54., 56., "");
1228 covar_label[1] = TPaveLabel(37., 49., 54., 56., "");
1229
1230 for (int gain = 0; gain < maxgain; ++gain) {
1231 for (int type = 0; type < 2; ++type) {
1232 if (do_plots) {
1233 TVirtualPad * pad = Can->cd(type * maxgain + gain + 1);
1234 pad->SetTopMargin(0.15);
1235 }
1236 m_data->m_final_hist2[ros][drawer][gain][type]->SetLabelSize(0.06, "X");
1237 m_data->m_final_hist2[ros][drawer][gain][type]->SetLabelSize(0.06, "Y");
1238 if (do_plots) {
1239 m_data->m_final_hist2[ros][drawer][gain][type]->Draw("COLZ");
1240 if (type == 0) {
1241 std::ostringstream label_text;
1242 label_text << "<C_ij>/<C_ii>= " << std::setprecision(4) << m_data->m_cov_ratio[ros][drawer][gain] << std::setprecision(4);
1243 covar_label[gain].SetLabel(label_text.str().c_str());
1244 covar_label[gain].SetTextSize(0.4);
1245 covar_label[gain].Draw();
1246 }
1247 }
1248 }
1249 }
1250
1251 if (m_savePng) {
1252 Can->Print(TString(moduleName + "_correlation.png"), "png");
1253 }
1254 if (m_savePs) {
1255 Can->Print(TString(moduleName + "_correlation.ps"), "ps");
1256 }
1257 if (do_plots) delete Can;
1258 }
1259
1260 gStyle->SetOptStat(1111);
1261}
#define ATH_MSG_VERBOSE(x)
int define_palette(int ncolors, int *colors=NULL)

◆ endOfEventsBlockFlag()

bool ManagedMonitorToolBase::endOfEventsBlockFlag ( ) const
inlineprotectedinherited

Definition at line 794 of file ManagedMonitorToolBase.h.

◆ endOfLowStatFlag()

bool ManagedMonitorToolBase::endOfLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 795 of file ManagedMonitorToolBase.h.

◆ endOfLumiBlockFlag()

bool ManagedMonitorToolBase::endOfLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 796 of file ManagedMonitorToolBase.h.

◆ endOfRunFlag()

bool ManagedMonitorToolBase::endOfRunFlag ( ) const
inlineprotectedinherited

Definition at line 797 of file ManagedMonitorToolBase.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ fillHistograms()

◆ fillHists()

StatusCode TileDigitsMonTool::fillHists ( )
overridevirtual

Calls fillHists( bool, bool, bool ); if an eventBlock,lumiBlock, or run has turned over, calls procHists( bool, bool, bool ) and bookHists( bool, bool, bool ).

Reimplemented from ManagedMonitorToolBase.

Definition at line 345 of file TileDigitsMonTool.cxx.

347{
348// static counter = 0;
349// bool extra = ((counter%m_updateCounter) == 0);
350// ++counter;
351
352 ATH_MSG_DEBUG("in fillHists()");
353
354 const TileDQstatus* dqStatus = SG::makeHandle (m_DQstatusKey).get();
355
356 // array of 16 CIS parameters
357 m_cispar = dqStatus->cispar();
359
360 // std::cout << "Calib Mode=" << dqStatus->calibMode() << "\n";
361
362 const TileDigitsContainer* digitsContainer;
363 CHECK(evtStore()->retrieve(digitsContainer, m_digitsContainerName));
364
365 for (const TileDigitsCollection* digitsCollection : *digitsContainer) {
366
367 if (digitsCollection->empty()) continue;
368
369 HWIdentifier adc_id = digitsCollection->front()->adc_HWID();
370 int ros = m_tileHWID->ros(adc_id);
371 int drawer = m_tileHWID->drawer(adc_id);
372
373 if (m_data->m_hist1[ros][drawer][0][0].size() == 0) {
374 m_bigain = true;
375 m_nSamples = digitsCollection->front()->NtimeSamples();
376 if (!m_bookAll) bookHists(ros, drawer);
377 }
378
379 uint32_t status = digitsCollection->getFragStatus();
380 if (status != TileFragStatus::ALL_OK) {
381 float bin = 99.;
383 bin = 6.;
384 } else if (status & (TileFragStatus::NO_FRAG | TileFragStatus::NO_ROB)) {
385 bin = 7.;
386 }
387 for (int dmu = 0; dmu < 16; dmu++) {
388 m_data->m_corrup[ros][drawer][0][dmu] = true;
389 m_data->m_corrup[ros][drawer][1][dmu] = true;
390 m_data->m_hist2[ros][drawer][0][0]->Fill(dmu + 0.5, bin, 1.);
391 m_data->m_hist2[ros][drawer][1][0]->Fill(dmu + 0.5, bin, 1.);
392 }
393 continue;
394 }
395
396 std::vector<uint32_t> headerVec = digitsCollection->getFragChipHeaderWords();
397
398 int headsize = headerVec.size();
399 if (headsize > 16) {
400 ATH_MSG_ERROR("length of BCID vector " << headsize << " - greater than 16 !");
401 headsize = 16;
402 }
403
404 for (int dmu = 0; dmu < headsize; dmu++) {
405 m_data->m_corrup[ros][drawer][0][dmu] = DMUheaderCheck(&headerVec, ros, drawer, 0, dmu); //tests and fills
406 m_data->m_corrup[ros][drawer][1][dmu] = DMUheaderCheck(&headerVec, ros, drawer, 1, dmu);
407 }
408
409 for (int dmu = headsize; dmu < 16; dmu++) {
410 m_data->m_corrup[ros][drawer][0][dmu] = false;
411 m_data->m_corrup[ros][drawer][1][dmu] = false;
412 }
413 }
414
415 for (const TileDigitsCollection* digitsCollection : *digitsContainer) {
416
417 if (digitsCollection->empty()) continue;
418
419 HWIdentifier adc_id = digitsCollection->front()->adc_HWID();
420 int ros = m_tileHWID->ros(adc_id);
421 int drawer = m_tileHWID->drawer(adc_id);
422
423 if (m_data->m_hist1[ros][drawer][0][0].size() == 0) {
424 //m_bigain = (dqStatus->calibMode() == 1); // true if bi-gain run
425 // For the time being, we fill both high and low gain plots, as it was requiered by Tomas
426 m_bigain = true;
427 m_nSamples = digitsCollection->front()->NtimeSamples(); // number of samples
428 // bookHists(ros,drawer);
429 }
430
431 std::vector<uint32_t> headerVec = digitsCollection->getFragChipHeaderWords();
432
433 int headsize = headerVec.size();
434 //if (headsize > 16 ) {
435 // log << MSG::ERROR << "legth of BCID vector " << headsize << " - greater than 16 !" << endreq;
436 // headsize = 16;
437 //}
438
439 //coverity[STACK_USE]
440 double mean_tmp[48][2][16];
441 memset(mean_tmp, 0, sizeof(mean_tmp));
442
443 // Below, the charge conversion for 12 bit is just an approximation;
444 // 4095. can be changed later to gain precision if needed.
445 double charge = 0;
446 if (m_is12bit){ // if 12 bit ADCs
447 charge = m_cispar[6] * m_cispar[7] * (2. * 4.096 / 4095.);
448 }
449 else{
450 charge = m_cispar[6] * m_cispar[7] * (2. * 4.096 / 1023.);
451 }
452
453 for (const TileDigits* tileDigits : *digitsCollection) {
454
455 adc_id = tileDigits->adc_HWID();
456 int chan = m_tileHWID->channel(adc_id);
457 int gain = (m_bigain) ? m_tileHWID->adc(adc_id) : 0; // ignore gain in monogain run
458
459 m_data->m_histC[ros][drawer][chan][gain][0]->Fill(m_nEventsTileMon % 32, 1.0);
460
461 std::vector<float> vdigits = tileDigits->samples();
462
463 double meansamp = 0.0;
464 double rmssamp = 0.0;
465 unsigned int dsize = vdigits.size();
466 if (dsize > 16) {
467 ATH_MSG_ERROR("length of digits vector " << dsize << " - greater than 16 !");
468 dsize = 16;
469 }
470 //std::cout << "m_runType= "<< m_runType << "\n";
471 for (unsigned int i = 0; i < dsize; ++i) {
472 double dig = vdigits[i];
473 meansamp += dig;
474 rmssamp += dig * dig;
475 mean_tmp[chan][gain][i] = dig;
476
477 if (!m_data->m_corrup[ros][drawer][gain][chan / 3]) {
478 if (m_runType != CisRun) {
479 m_data->m_histP[ros][drawer][chan][gain][0]->Fill(i + 0.1, dig, 1.0);
480 m_data->m_hist1[ros][drawer][chan][gain][2]->Fill(dig, 1.0);
481 } else if (m_cispar[6] > 0. && (dig > 0 || gain < 1 || charge < 12.)) { //LF If CIS run, Protection to avoid zero amplitudes due to 0 injected charge
482 m_data->m_histP[ros][drawer][chan][gain][0]->Fill(i + 0.1, dig, 1.0);
483 m_data->m_hist1[ros][drawer][chan][gain][2]->Fill(dig, 1.0);
484 }
485
486 if (gain == 1 && dig > m_ADCmaxMinusEps) // overflow in high gain, find charge is it
487 m_data->m_outInHighGain[0]->Fill(charge);
488 }
489 }
490
491 if (dsize > 0 && !m_data->m_corrup[ros][drawer][gain][chan / 3]) {
492 double ped = vdigits[0];
493 m_data->m_hist1[ros][drawer][chan][gain][0]->Fill(ped, 1.0);
494 m_data->m_sumPed1[ros][drawer][chan][gain] += ped;
495 m_data->m_sumPed2[ros][drawer][chan][gain] += ped * ped;
496 //if ( (chan==23)&&(ros==1)&&(drawer==18)&&(gain==0)) {
497 //std::cout << "ped=" << ped << "\tm_sumPed1=" << m_data->m_sumPed1[ros][drawer][chan][gain] << "\n";
498 //std::cout << "ped^2=" << ped*ped << "\tm_sumPed2=" << m_data->m_sumPed2[ros][drawer][chan][gain] << "\n";
499 //}
500 if (dsize > 1) {
501 meansamp /= dsize;
502 rmssamp = rmssamp / dsize - meansamp * meansamp;
503 rmssamp = (rmssamp > 0.0) ? sqrt(rmssamp * dsize / (dsize - 1)) : 0.0;
504 m_data->m_hist1[ros][drawer][chan][gain][1]->Fill(rmssamp, 1.0);
505 m_data->m_sumRms1[ros][drawer][chan][gain] += rmssamp;
506 m_data->m_sumRms2[ros][drawer][chan][gain] += rmssamp * rmssamp;
507 }
508 }
509 } // digits
510
511 //For cor&cov
512 for (int sample = 0; sample < m_nSamples; ++sample) {
513 for (int gain = 0; gain < 2; ++gain) {
514 for (int ch_i = 0; ch_i < 48; ++ch_i)
515 if (!m_data->m_corrup[ros][drawer][gain][ch_i / 3]) {
516 m_data->m_nEvents_i[ros][drawer][gain][ch_i]++;
517 m_data->m_meanAmp[ros][drawer][gain][ch_i] += mean_tmp[ch_i][gain][sample];
518 for (int ch_j = 0; ch_j < 48; ++ch_j)
519 if (!m_data->m_corrup[ros][drawer][gain][ch_j / 3]) {
520 m_data->m_nEvents_ij[ros][drawer][gain][ch_i][ch_j]++;
521 m_data->m_meanAmp_ij[ros][drawer][gain][ch_i][ch_j] += mean_tmp[ch_i][gain][sample] * mean_tmp[ch_j][gain][sample];
522 }
523 }
524 }
525 }
526
527 // BCID
528 uint32_t bcid = digitsCollection->getRODBCID();
529
530 for (int ch = 0; ch < headsize; ++ch) {
531 uint32_t bcid_ch = (headerVec[ch] & 0xFFF);
532 m_data->m_hist1[ros][drawer][ch][0][3]->Fill(bcid_ch, 1.0);
533 if ((bcid_ch == bcid) || (bcid_ch == bcid - 1)) // Conservative condition to be consistent with both run before Feb07 and
534 m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(1.0, 1.0); // runs after Feb07. Introducing a RunNum variable it could be more strict.
535 else if ((bcid == 0) && ((bcid_ch == 3563) || (bcid_ch == 3564))) // if bcid==0 then bcid_ch should be 3563 (0xDEB)
536 m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(1.0, 1.0); // but sometimes 3564 (0xDEC) is observed.
537 // if (bcid_ch == bcid) // Now allow only exact bcid: ROD BCID = DMU BCID+1
538 // m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(1.0,1.0); // Apr 2013
539 // else if (bcid_ch == 0)
540 // m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(0.0,1.0);
541 // else
542 // m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(2.0,1.0);
543 }
544
545 //DMUheaderCheck(&headerVec,headsize,ros,drawer,0);
546
547 if ((m_bigain) && ((digitsCollection->getFragChipHeaderWordsHigh()).size() > 0)) {// LF we need to avoid that headsize is set to zero in monogain runs
548
549 headerVec = digitsCollection->getFragChipHeaderWordsHigh();
550 headsize = headerVec.size();
551 if (headsize > 16) {
552 ATH_MSG_ERROR("length of BCIDhigh vector " << headsize << " - greater than 16 !");
553 headsize = 16;
554 }
555 }
556 // if monogain run with m_bigain==1, we fill the BCID plots we the same info
557 for (int ch = 0; ch < headsize; ++ch) {
558 uint32_t bcid_ch = (headerVec[ch] & 0xFFF);
559 m_data->m_hist1[ros][drawer][ch][1][3]->Fill(bcid_ch, 1.0);
560 if ((bcid_ch == bcid) || (bcid_ch == bcid - 1)) // BCID from TileDMU should match BCID from ROD header or
561 m_data->m_hist_DMUerr[ros][drawer][ch][1][0]->Fill(1.0, 1.0); // bcid-1 for runs after Feb07.
562 else if ((bcid == 0) && ((bcid_ch == 3563) || (bcid_ch == 3564))) // if bcid==0 then bcid_ch should be 3563 (0xDEB)
563 m_data->m_hist_DMUerr[ros][drawer][ch][1][0]->Fill(1.0, 1.0); // but sometimes 3564 (0xDEC) is observed.
564 // if (bcid_ch == bcid) // Now allow only exact bcid
565 // m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(1.0,1.0); // Apr 2013
566 // else if (bcid_ch == 0)
567 // m_data->m_hist_DMUerr[ros][drawer][ch][1][0]->Fill(0.0,1.0);
568 // else
569 // m_data->m_hist_DMUerr[ros][drawer][ch][1][0]->Fill(2.0,1.0);
570 }
571
572 //DMUheaderCheck(&headerVec,headsize,ros,drawer,1);
573
574 if (dqStatus->calibMode() == 1) {
575 // global and DMU CRC check
576 uint32_t crc32 = digitsCollection->getFragCRC();
577 uint32_t CRCmask = digitsCollection->getFragDMUMask();
578
579 CRCcheck(dqStatus, crc32, CRCmask, headsize, ros, drawer);
580 }
581 } //loop over drawers
582 //
583
584 if (dqStatus->calibMode() == 0) {
585 if (RODCRCcalc(dqStatus).isFailure()) ATH_MSG_WARNING("Not possible to check CRC from ROD");
586 }
587
588 return StatusCode::SUCCESS;
589}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
double charge(const T &p)
Definition AtlasPID.h:997
#define CHECK(...)
Evaluate an expression and check for errors.
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current TileDigitsContainer
ServiceHandle< StoreGateSvc > & evtStore()
const uint32_t * cispar() const
CIS parameters.
void CRCcheck(const TileDQstatus *dqStatus, uint32_t crc32, uint32_t crcMask, int headsize, int ros, int drawer)
Method to check global CRC and DMU CRC.
StatusCode RODCRCcalc(const TileDQstatus *dqStatus)
bool DMUheaderCheck(std::vector< uint32_t > *headerVec, int ros, int drawer, int gain, int dmu)
DMU header format as defined in http://www.sysf.physto.se/~klere/tile-dmu/header.html Bits: 1pllllesd...
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
status
Definition merge.py:16
retrieve(aClass, aKey=None)
Definition PyKernel.py:110
setEventNumber setTimeStamp bcid

◆ finalHists()

StatusCode TileDigitsMonTool::finalHists ( )
overridevirtual

Calls procHists( true, true, true ).

LF: when we have a monogain run, like Laser, it might happen that occasionally some entries have not the expected gain. In this case we cannot use m_nEventsTileMon to calculate average and RMS. The most simple minded solution would be to use the a counter for each single chan (5x64x48x2 counters!). I prefered the following 'escamotage': the pedestal histograms already have the correct number of entries and, unless there are some overflow, even the correct mean and RMS. So, if m_nEntries doesn't match the entries in the histo, I use the latter for calculation porpouse. I could even use the histogram mean and RMS, but it is not necessary and I avoid problems in case of overflows.

Reimplemented from ManagedMonitorToolBase.

Definition at line 592 of file TileDigitsMonTool.cxx.

594{
595
596 ATH_MSG_INFO("in finalHists()");
597 if (m_allHistsFilled) return StatusCode::SUCCESS;
598 m_allHistsFilled = true;
599
600 const EventContext &ctx = Gaudi::Hive::currentContext();
601
602 const char *part[5] = { "AUX", "LBA", "LBC", "EBA", "EBC" };
603 const char *gain[6] = { "_lo", "_hi", "", " low gain", " high gain", "" };
604
605 std::string pedestalTitile(" Pedestal[0]");
606 if (m_fillPedestalDifference) pedestalTitile += " - pedestal from DB";
607
608 const char *HistName[8] = { "_ped", "_rms_lfr", "_rms_hfr", "_bits"
609 , pedestalTitile.c_str(), " RMS noise low frequency", " RMS noise high frequency", " Stuck bits and zero amp" };
610
611 const char *ErrName[4] = { "_bcid", "_crc", " BCID errors", " CRC errors" };
612 const char *HistName2[4] = { "_covar", "_corr", " covariance", " correlation" };
613
614 // for bigain run book 2 histograms per channel
615 // for monogain run book just one histogram per channel
616 int mingain = (m_bigain) ? 0 : 2;
617 int maxgain = (m_bigain) ? 2 : 3;
618
619 for (unsigned int ros = 1; ros < TileCalibUtils::MAX_ROS; ++ros) {
620 for (unsigned int drawer = 0; drawer < TileCalibUtils::MAX_DRAWER ; ++drawer) {
621 if (m_data->m_hist1[ros][drawer][0][0].size() != 0) {
622 unsigned int drawerIdx = TileCalibUtils::getDrawerIdx(ros, drawer);
623
624 std::ostringstream sStr;
625 std::string moduleName = TileCalibUtils::getDrawerString(ros, drawer);
626 std::string subDir = "Summary";
627 std::string histName, histTitle;
628
629 for (int gn = mingain; gn < maxgain; ++gn) {
630
631 int adc = gn & 1;
632
633 for (int type = 0; type < 4; ++type) {
634 sStr.str("");
635 sStr << moduleName << gain[gn] << HistName[type];
636 histName = sStr.str();
637 sStr.str("");
638 sStr << moduleName << gain[3 + gn] << HistName[4 + type];
639 histTitle = sStr.str();
640 m_data->m_final_hist1[ros][drawer][adc].push_back(book1F(subDir, histName, histTitle, 48, 0.0, 48.0));
641 }
642
643 // stuck bits and saturations / 0s
644 sStr.str("");
645 sStr << moduleName << gain[gn] << "_stucks";
646 histName = sStr.str();
647 sStr.str("");
648 sStr << moduleName << gain[3 + gn] << " Stuck bits and saturation";
649 histTitle = sStr.str();
650 m_data->m_final_hist_stucks[ros][drawer][adc] = book2C(subDir, histName, histTitle, 48, 0.0, 48.0, 7, 0., 7.);
651 m_data->m_final_hist_stucks[ros][drawer][adc]->GetYaxis()->SetBinLabel(1, "SB 0");
652 m_data->m_final_hist_stucks[ros][drawer][adc]->GetYaxis()->SetBinLabel(2, "SB 1,2");
653 m_data->m_final_hist_stucks[ros][drawer][adc]->GetYaxis()->SetBinLabel(3, "SB 3,4");
654 m_data->m_final_hist_stucks[ros][drawer][adc]->GetYaxis()->SetBinLabel(4, "SB 5-9");
655 m_data->m_final_hist_stucks[ros][drawer][adc]->GetYaxis()->SetBinLabel(5, "zeros");
656 m_data->m_final_hist_stucks[ros][drawer][adc]->GetYaxis()->SetBinLabel(6, "saturation");
657 m_data->m_final_hist_stucks[ros][drawer][adc]->GetYaxis()->SetBinLabel(7, "n % 32");
658
659 for (unsigned int channel = 0; channel < TileCalibUtils::MAX_CHAN; ++channel) {
660
661 // int pmt = abs(m_cabling->channel2hole(ros,channel));
662
663 double Ped = 0.0, PedRMS = 0.0, RMSHi = 0.0;
664
665 int nevents = int(m_data->m_hist1[ros][drawer][channel][adc][0]->GetEntries()); //ROOT GetEntries return a Double_t.
666 bool fillPedAndRms = (nevents > 0);
667
668 if ((nevents != 0) && (nevents != m_nEventsTileMon)) {
681 ATH_MSG_VERBOSE( "Number of entries in histo " << m_data->m_hist1[ros][drawer][channel][adc][0]->GetTitle()
682 << " doesnt match n. of events! Using the first one in mean and RMS calculation" );
683
684 ATH_MSG_VERBOSE( "Number of entries in histo =" << nevents << "\tNumber of events= " << m_nEventsTileMon );
685
686 } else { //all ok
688 }
689
690 if (fillPedAndRms) {
691
692 if (nevents > 0) {
693 Ped = m_data->m_sumPed1[ros][drawer][channel][adc] / nevents;
694 RMSHi = m_data->m_sumRms1[ros][drawer][channel][adc] / nevents;
695
696 if (nevents > 1) {
697 PedRMS = m_data->m_sumPed2[ros][drawer][channel][adc] / nevents - Ped * Ped;
698 PedRMS = (PedRMS > 0.0) ? sqrt(PedRMS * nevents / (nevents - 1)) : 0.0;
699 }
700 }
701
702 // if ( (pmt==24)&&(ros==1)&&(drawer==18)&&(adc==0)) {
703 //std::cout << "Evt = " << m_nEventsTileMon << "\t channel=" << channel << " pmt=" << pmt << "\n";
704 //std::cout << "Ped = " << Ped << "\n";
705 //std::cout << "E(x^2) = " << m_data->m_sumPed2[ros][drawer][channel][adc] << "\n";
706 //std::cout << "PedRMS = " << PedRMS << "\n";
707
708 //}
709
711
712 if (!isDisconnected(ros, drawer, channel)) {
713 m_data->m_final_hist1[ros][drawer][adc][0]->SetBinContent(channel + 1, Ped - m_tileToolNoiseSample->getPed(drawerIdx, channel, adc, TileRawChannelUnit::ADCcounts, ctx));
714 m_data->m_final_hist1[ros][drawer][adc][0]->SetBinError(channel + 1, PedRMS);
715 }
716
717 } else {
718 m_data->m_final_hist1[ros][drawer][adc][0]->SetBinContent(channel + 1, Ped);
719 m_data->m_final_hist1[ros][drawer][adc][0]->SetBinError(channel + 1, PedRMS);
720 }
721
722 m_data->m_final_hist1[ros][drawer][adc][1]->SetBinContent(channel + 1, PedRMS);
723 m_data->m_final_hist1[ros][drawer][adc][2]->SetBinContent(channel + 1, RMSHi);
724
725 }
726
727 // For tests
728 //stuckBits_maker(m_data->m_hist1[ros][drawer][channel][adc][2]);
729
730 TH1S * hist = m_data->m_hist1[ros][drawer][channel][adc][2];
731 double weight = 0.0;
732 for (int i = 2; i < m_i_ADCmax + 2; ++i) { // first bin is excluded
733 weight += hist->GetBinContent(i);
734 }
735 // if we have weight=0 after the loop, then there is no non-zero amplitudes
736 if (weight > 0.0) {
737 if (hist->GetBinContent(1) > 0) {
738 weight = 0.5; // sometimes zeros
739 } else {
740 weight = 1.0; // assume that all OK
741 }
742
743 int stuck_bit = stuckBits(hist, adc);
744 if (stuck_bit > 0) {
745 weight += 1.0; // some stuck bits
746 }
747 }
748 m_data->m_final_hist1[ros][drawer][adc][3]->SetBinContent(channel + 1, weight);
749 stuckBits_Amp2(hist, m_data->m_histC[ros][drawer][channel][adc][0], adc,
750 m_data->m_final_hist_stucks[ros][drawer][adc], channel,
751 m_data->m_stuck_probs[ros][drawer][channel][adc]);
752 } // end of loop over channels
753
754 // BCID
755 sStr.str("");
756 sStr << moduleName << gain[gn] << ErrName[0];
757 histName = sStr.str();
758 sStr.str("");
759 sStr << moduleName << gain[3 + gn] << ErrName[2];
760 histTitle = sStr.str();
761 m_data->m_final_hist1[ros][drawer][adc].push_back(book1F(subDir, histName, histTitle, 16, 0.0, 16.0));
762
763 // CRC only for one gain
764 if (adc == 0) {
765 sStr.str("");
766 sStr << moduleName << ErrName[1];
767 histName = sStr.str();
768 sStr.str("");
769 sStr << moduleName << ErrName[3];
770 histTitle = sStr.str();
771 m_data->m_final_hist1[ros][drawer][adc].push_back(book1F(subDir, histName, histTitle, 16, 0.0, 16.0));
772 }
773
774 for (int ch = 0; ch < 16; ++ch) {
775
776 int dmu = ch + 1;
777
778 // BCID and CRC errors
779 for (int id = 0; id < 2; ++id) {
780 int bin0 = lround(m_data->m_hist_DMUerr[ros][drawer][ch][adc][id]->GetBinContent(0));
781 int bin1 = lround(m_data->m_hist_DMUerr[ros][drawer][ch][adc][id]->GetBinContent(1));
782 int bin2 = lround(m_data->m_hist_DMUerr[ros][drawer][ch][adc][id]->GetBinContent(2));
783 int bin3 = lround(m_data->m_hist_DMUerr[ros][drawer][ch][adc][id]->GetBinContent(3));
784 int bin4 = lround(m_data->m_hist_DMUerr[ros][drawer][ch][adc][id]->GetBinContent(4));
785 int bin5 = lround(m_data->m_hist_DMUerr[ros][drawer][ch][adc][id]->GetBinContent(5));
786 double weight = -1.0;
787
788 if (bin0 + bin3 + bin4 + bin5 > 0) {
789 if ((bin4 == 0) && (bin5 == 0)) {
790 weight = 2.0; // BCID: all other errors; CRC: FE only errors
791 } else if ((bin3 == 0) && (bin5 == 0)) {
792 weight = 3.0; // CRC only: ROD only errors
793 } else { // if there are ROD and FE errors (not necessary at the same time),
794 //weight is 2.5
795 weight = 2.5; // CRC only: ROD and FE errors
796 }
797 } else {
798 if (bin2 == 0) {
799 weight = 0.0; // all zeros
800 } else if (bin1 == 0) {
801 weight = 1.0; // all OK
802 } else {
803 weight = 1.0 - (double) bin1 / m_nEventsTileMon; // percentage of good events
804 if (weight > 0.8) weight = 0.8; // to see clearly even one event with zeros
805 }
806 }
807 m_data->m_final_hist1[ros][drawer][adc][id + 4]->SetBinContent(dmu, weight);
808
809 if (adc) break; // no CRC histogram in high gain
810 }
811 } // end of loop over 16 DMU
812
813 //Correlation and Covariance
814 if (m_runType == PedRun) {
815
816 for (int type = 0; type < 2; ++type) {
817 sStr.str("");
818 sStr << moduleName << gain[gn] << HistName2[type];
819 histName = sStr.str();
820 sStr.str("");
821 sStr << moduleName << gain[3 + gn] << HistName2[2 + type];
822 histTitle = sStr.str();
823 m_data->m_final_hist2[ros][drawer][adc].push_back(book2F(subDir, histName, histTitle, 48, 0.0, 48.0, 48, 0.0, 48.0));
824 }
825
826 if (m_nEventsTileMon * m_nSamples > 0) {
827
828 for (int ch_i = 0; ch_i < 48; ++ch_i) {
829 if (m_data->m_nEvents_i[ros][drawer][adc][ch_i] > 0)
830 m_data->m_meanAmp[ros][drawer][adc][ch_i] /= m_data->m_nEvents_i[ros][drawer][adc][ch_i];
831 for (int ch_j = 0; ch_j < 48; ++ch_j)
832 if (m_data->m_nEvents_ij[ros][drawer][adc][ch_i][ch_j] > 0)
833 m_data->m_meanAmp_ij[ros][drawer][adc][ch_i][ch_j] /= m_data->m_nEvents_ij[ros][drawer][adc][ch_i][ch_j];
834 }
835
836 //coverity[STACK_USE]
837 double covar[48][48];
838 //coverity[STACK_USE]
839 double corr[48][48];
840 double mean_rms[48];
841 double mean_cov_ii = 0.; // mean values of covar in diag terms
842 double mean_cov_ij = 0.; // mean values of covar in off diag terms
843
844 for (int ch_i = 0; ch_i < 48; ++ch_i) {
845 // int pmt_i = abs(m_cabling->channel2hole(ros,ch_i))-1;
846 for (int ch_j = 0; ch_j < 48; ++ch_j) {
847 // int pmt_j = abs(m_cabling->channel2hole(ros,ch_j))-1;
848 covar[ch_i][ch_j] = m_data->m_meanAmp_ij[ros][drawer][adc][ch_i][ch_j] - m_data->m_meanAmp[ros][drawer][adc][ch_i] * m_data->m_meanAmp[ros][drawer][adc][ch_j];
849
850 if (ch_j < ch_i) {
851 mean_cov_ij += covar[ch_i][ch_j]; //LF: we take C_ij with its sign
852 }
853 }
854
855 mean_cov_ii += covar[ch_i][ch_i];
856
857 if (covar[ch_i][ch_i] != 0.0)
858 mean_rms[ch_i] = covar[ch_i][ch_i] / sqrt(TMath::Abs(covar[ch_i][ch_i]));
859 else
860 mean_rms[ch_i] = 0.;
861 }
862
863 if (mean_cov_ii != 0.) {
864 m_data->m_cov_ratio[ros][drawer][adc] = (2. * mean_cov_ij) / (mean_cov_ii * 47.); //(2*cov_ij/(48*47))/(cov_ii/48)
865 } else {
866 m_data->m_cov_ratio[ros][drawer][adc] = 0.;
867 }
868 // std::cout << "m_cov_ratio["<<adc<<"]= " << m_data->m_cov_ratio[ros][drawer][adc] << "\n";
869
870 for (int i = 0; i < 48; ++i) {
871 for (int j = 0; j < 48; ++j) {
872 if ((mean_rms[i] == 0.) || (mean_rms[j] == 0.)) {
873 corr[i][j] = 0.;
874 } else {
875 corr[i][j] = covar[i][j] / mean_rms[i] / mean_rms[j];
876 }
877 m_data->m_final_hist2[ros][drawer][adc][0]->SetBinContent(i + 1, j + 1, covar[i][j]);
878 m_data->m_final_hist2[ros][drawer][adc][1]->SetBinContent(i + 1, j + 1, corr[i][j]);
879 }
880 }
881 } // end if m_nEventsTileMon > 0
882
883 } // end if PedRun
884 } // end of loop over gn
885
886 drawHists(ros, drawer, moduleName);
887
888 //if RunType is Cis, the Kolmogorov test of the sample distribution is performed
889 if (m_runType == CisRun) {
890
891 for (int gn = mingain; gn < maxgain; ++gn) {
892 for (int i = 0; i < 48; ++i) {
893 TH1S *h = (TH1S*) m_data->m_hist1[ros][drawer][i][gn][2]->Clone("temphist");
894 h->SetDirectory(0);
895 shiftHisto(h, ros, drawer, i, gn);
896 delete h;
897 }
898 double shiftxmin = 0.;
899 double shiftxmax = m_shiftnbins;
900 int shiftnbins = m_shiftnbins;
901
902 std::ostringstream s;
903 s << part[ros] << std::setfill('0') << std::setw(2) << drawer + 1 << std::setfill(' ');
904 std::string moduleName = s.str();
905 std::string subDir = moduleName;
906
907 s.str("");
908 s << moduleName << gain[gn] << "_samples_ref";
909 std::string histName = s.str();
910
911 s.str("");
912 s << moduleName << gain[3 + gn] << " all samples reference";
913 std::string histTitle = s.str();
914
915 m_data->m_shifted_hist[ros][drawer][48][gn] = book1S(subDir, histName, histTitle, shiftnbins, shiftxmin, shiftxmax);
916
917 statTestHistos(ros, drawer, gn);
918 } // if runTYpe==CisRun
919 }
920 }
921
922 } //loop over drawer
923 } //loop over ros
924
925
926 return StatusCode::SUCCESS;
927}
static const unsigned int MAX_ROS
Number of ROSs.
static std::string getDrawerString(unsigned int ros, unsigned int drawer)
Return the drawer name, e.g.
static const unsigned int MAX_DRAWER
Number of drawers in ROS 1-4.
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
static const unsigned int MAX_CHAN
Number of channels in drawer.
int stuckBits_Amp2(TH1S *hist, TH1C *modhist, int adc, TH2C *outhist=NULL, int ch=0, uint8_t *stuck_probs=NULL)
void shiftHisto(TH1S *hist, int ros, int drawer, int ch, int gain)
void drawHists(int ros, int drawer, const std::string &moduleName)
int stuckBits(TH1S *hist, int adc)
Method to find stuckbits in Read-Out ADC channel.
void statTestHistos(int ros, int drawer, int gain)
bool isDisconnected(int ros, int drawer, int ch)
TH1F * book1F(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
TH2C * book2C(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")

◆ get_nEvents()

unsigned int ManagedMonitorToolBase::get_nEvents ( ) const
inlineprotectedinherited

Definition at line 692 of file ManagedMonitorToolBase.h.

692 {
693 return m_nEvents;
694 }

◆ get_procNEventsProp()

long ManagedMonitorToolBase::get_procNEventsProp ( ) const
inlineprotectedinherited

Definition at line 696 of file ManagedMonitorToolBase.h.

696 {
697 return m_procNEventsProp;
698 }

◆ getCellName()

std::string TilePaterMonTool::getCellName ( unsigned int ros,
unsigned int channel )
inlineprotectedinherited

Definition at line 221 of file TilePaterMonTool.h.

221 {
222 if (ros < 3) return m_LBcellName[channel];
223 else return m_EBcellName[channel];
224 };
std::string m_EBcellName[48]
std::string m_LBcellName[48]

◆ getHist() [1/4]

StatusCode ManagedMonitorToolBase::getHist ( TH1 *& h,
const std::string & hName,
const MonGroup & group )
virtualinherited

Returns a TH1 via the pointer passed as the first argument.

The histogram name, without the leading path or stream name, must be given as the second argument.

Definition at line 1417 of file ManagedMonitorToolBase.cxx.

1419{
1420 std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1421 return m_THistSvc->getHist( streamName, h );
1422}

◆ getHist() [2/4]

StatusCode ManagedMonitorToolBase::getHist ( TH1 *& h,
const std::string & hName,
const std::string & system,
Interval_t interval )
virtualinherited

Returns a TH1 via the pointer passed as the first argument.

The histogram name, without the leading path or stream name, must be given as the second argument.

Definition at line 1407 of file ManagedMonitorToolBase.cxx.

1410{
1411 MonGroup group( this, system, interval );
1412 return getHist( h, hName, group );
1413}
virtual StatusCode getHist(TH1 *&h, const std::string &hName, const std::string &system, Interval_t interval)
Returns a TH1 via the pointer passed as the first argument.

◆ getHist() [3/4]

StatusCode ManagedMonitorToolBase::getHist ( TH2 *& h,
const std::string & hName,
const MonGroup & group )
virtualinherited

Returns a TH2 via the pointer passed as the first argument.

The histogram name, without the leading path or stream name, must be given as the second argument.

Definition at line 1436 of file ManagedMonitorToolBase.cxx.

1438{
1439 std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1440 return m_THistSvc->getHist( streamName, h );
1441}

◆ getHist() [4/4]

StatusCode ManagedMonitorToolBase::getHist ( TH2 *& h,
const std::string & hName,
const std::string & system,
Interval_t interval )
virtualinherited

Returns a TH2 via the pointer passed as the first argument.

The histogram name, without the leading path or stream name, must be given as the second argument.

Definition at line 1426 of file ManagedMonitorToolBase.cxx.

1429{
1430 MonGroup group( this, system, interval );
1431 return getHist( h, hName, group );
1432}

◆ getNewStreamNameFcn()

ManagedMonitorToolBase::StreamNameFcn * ManagedMonitorToolBase::getNewStreamNameFcn ( ) const
protectedvirtualinherited

Definition at line 2155 of file ManagedMonitorToolBase.cxx.

2157{
2158 StreamNameFcn* fcn(0);
2159
2160 switch( m_environment ) {
2162 fcn = new NoOutputStream();
2163 break;
2165 fcn = new OnlineStream();
2166 break;
2168 fcn = new DefaultStream( m_fileKey );
2169 break;
2175 default:
2177 }
2178
2179 return fcn;
2180}
A function-object base class allowing the specific implementation of getStreamName to be decided at r...
AthenaMonManager::Environment_t m_environment
AthenaMonManager::DataType_t m_dataType

◆ getTMDBCellName()

std::string TilePaterMonTool::getTMDBCellName ( unsigned int ros,
unsigned int channel )
inlineprotectedinherited

Definition at line 230 of file TilePaterMonTool.h.

230 {
231 if (ros < 3) return m_TMDB_LB_cell_names[channel];
232 else return m_TMDB_EB_cell_names[channel];
233 };
std::string m_TMDB_LB_cell_names[8]
std::string m_TMDB_EB_cell_names[4]

◆ initialize()

StatusCode TileDigitsMonTool::initialize ( )
overridevirtual

Reimplemented from TilePaterMonTool.

Definition at line 92 of file TileDigitsMonTool.cxx.

94{
95 ATH_MSG_INFO("in initialize()");
96
98
100 m_allHistsFilled = false;
101 m_data = std::make_unique<Data>();
102 memset(m_data->m_sumPed1, 0, sizeof(m_data->m_sumPed1));
103 memset(m_data->m_sumPed2, 0, sizeof(m_data->m_sumPed2));
104 memset(m_data->m_sumRms1, 0, sizeof(m_data->m_sumRms1));
105 memset(m_data->m_sumRms2, 0, sizeof(m_data->m_sumRms2));
106 memset(m_data->m_meanAmp, 0, sizeof(m_data->m_meanAmp));
107 memset(m_data->m_meanAmp_ij, 0, sizeof(m_data->m_meanAmp_ij));
108 memset(m_data->m_nEvents_i, 0, sizeof(m_data->m_nEvents_i));
109 memset(m_data->m_nEvents_ij, 0, sizeof(m_data->m_nEvents_ij));
110 memset(m_data->m_stuck_probs, 0, sizeof(m_data->m_stuck_probs));
111
112 //For test stuck_bits_maker
113 //hp = 1;
114 //hb = -1;
115
116 // TileInfo
118 m_i_ADCmax = m_tileInfo->ADCmax();
121
122 m_shiftnbins = 796;
123 if (m_i_ADCmax == 4095){
124 m_is12bit = true;
126 }
127
128 CHECK( m_DQstatusKey.initialize() );
129
131}
const ServiceHandle< StoreGateSvc > & detStore() const
virtual StatusCode initialize() override

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID() [1/2]

const InterfaceID & IMonitorToolBase::interfaceID ( )
inlinestaticinherited

Definition at line 29 of file IMonitorToolBase.h.

29{ return IID_IMonitorToolBase; }
static const InterfaceID IID_IMonitorToolBase("IMonitorToolBase", 1, 0)

◆ interfaceID() [2/2]

const InterfaceID & ITileStuckBitsProbsTool::interfaceID ( )
inlinestaticinherited

Definition at line 18 of file ITileStuckBitsProbsTool.h.

18 {
19 static const InterfaceID IID_ITileStuckBitsProbsTool("ITileStuckBitsProbsTool", 1, 0);
20 return IID_ITileStuckBitsProbsTool;
21 }

◆ intervalEnumToString()

std::string ManagedMonitorToolBase::intervalEnumToString ( Interval_t interval)
staticinherited

Converts a LevelOfDetail_t to a string of the same name.

Converts a string to the corresponding LevelOfDetail_t. Converts a Interval_t to a string of the same name.

Definition at line 535 of file ManagedMonitorToolBase.cxx.

537{
538 std::string str("file");
539
540 switch( interval ) {
541 case all:
542 str = "all";
543 break;
544 case fill:
545 str = "fill";
546 break;
547 case run:
548 str = "run";
549 break;
550 case lowStat:
551 str = "lowStat";
552 break;
553 case medStat:
554 str = "medStat";
555 break;
556 case higStat:
557 str = "higStat";
558 break;
559 case lumiBlock:
560 str = "lumiBlock";
561 break;
562 case eventsBlock:
563 str = "eventsBlock";
564 break;
565 case file:
566 str = "file";
567 break;
568 default:
569 str = "unknown";
570 }
571
572 return str;
573}

◆ intervalStringToEnum()

ManagedMonitorToolBase::Interval_t ManagedMonitorToolBase::intervalStringToEnum ( const std::string & str)
staticinherited

Converts a string to the corresponding Interval_t.

Definition at line 577 of file ManagedMonitorToolBase.cxx.

579{
580 std::string lcstr( strToLower(str) );
581
582 if( lcstr == "all" )
583 return all;
584 else if( lcstr == "fill" )
585 return fill;
586 else if( lcstr == "run" )
587 return run;
588 else if( lcstr == "lowStat" )
589 return lowStat;
590 else if( lcstr == "medStat" )
591 return medStat;
592 else if( lcstr == "higStat" )
593 return higStat;
594 else if( lcstr == "lumiBlock" )
595 return lumiBlock;
596 else if( lcstr == "eventsBlock" )
597 return eventsBlock;
598 else if( lcstr == "file" )
599 return file;
600
601 if( Imp::s_svcLocator ) {
602 SmartIF<IMessageSvc> ms{Imp::s_svcLocator.load()->service( "MessageSvc" )};
603 if( ms.isValid() ) {
604 MsgStream log( ms, "ManagedMonitorToolBase::intervalStringToEnum()" );
605 log << MSG::WARNING << "Unknown ManagedMonitorToolBase::Interval_t \""
606 << str << "\", returning \"file\"" << endmsg;
607 }
608 }
609
610 return file;
611}
static std::atomic< ISvcLocator * > s_svcLocator

◆ isDisconnected()

bool TilePaterMonTool::isDisconnected ( int ros,
int drawer,
int ch )
inlineprotectedinherited

Definition at line 256 of file TilePaterMonTool.h.

256 {
257
258 if (ros < 3) { //LB, all standard. Channels 30,31,43 are disconnected
259 return m_chMapLB[ch];
260 } else {
261 if (((ros == 3) && (drawer == 14)) || ((ros == 4) && (drawer == 17))) {//EB, EBA15 and EBC18 are special
262 return m_chMapEBsp[ch];
263 } else {//EB standard module
264 return m_chMapEB[ch];
265 }
266 } //end if LB else EB
267
268 }

◆ lbAverageInteractionsPerCrossing()

float ManagedMonitorToolBase::lbAverageInteractionsPerCrossing ( const EventContext & ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Average mu, i.e.

<mu>

Definition at line 1691 of file ManagedMonitorToolBase.cxx.

1693{
1694 if (!m_lumiDataKey.empty()) {
1695 SG::ReadCondHandle<LuminosityCondData> lumi (m_lumiDataKey, ctx);
1696 return lumi->lbAverageInteractionsPerCrossing();
1697 } else {
1698 //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageInteractionsPerCrossing() can't work properly! ");
1699 ATH_MSG_DEBUG("Warning: lbAverageInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1700 return -1.0;
1701 }
1702 // not reached
1703}
SG::ReadCondHandleKey< LuminosityCondData > m_lumiDataKey

◆ lbAverageLivefraction()

float ManagedMonitorToolBase::lbAverageLivefraction ( const EventContext & ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Average luminosity livefraction.

Definition at line 1760 of file ManagedMonitorToolBase.cxx.

1762{
1764 return 1.0;
1765
1766 if (!m_trigLiveFractionDataKey.empty()) {
1767 SG::ReadCondHandle<TrigLiveFractionCondData> live (m_trigLiveFractionDataKey, ctx);
1768 return live->lbAverageLiveFraction();
1769 } else {
1770 //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageLivefraction() can't work properly! ");
1771 ATH_MSG_DEBUG("Warning: lbAverageLivefraction() - luminosity not availble (i.e. EnableLumi = False)");
1772 return -1.0;
1773 }
1774 // not reached
1775}
SG::ReadCondHandleKey< TrigLiveFractionCondData > m_trigLiveFractionDataKey

◆ lbAverageLuminosity()

float ManagedMonitorToolBase::lbAverageLuminosity ( const EventContext & ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1)

Definition at line 1727 of file ManagedMonitorToolBase.cxx.

1729{
1730 if (!m_lumiDataKey.empty()) {
1731 SG::ReadCondHandle<LuminosityCondData> lumi (m_lumiDataKey, ctx);
1732 return lumi->lbAverageLuminosity();
1733 } else {
1734 //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageLuminosity() can't work properly! ");
1735 ATH_MSG_DEBUG("Warning: lbAverageLuminosity() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1736 return -1.0;
1737 }
1738 // not reached
1739}

◆ lbDuration()

double ManagedMonitorToolBase::lbDuration ( const EventContext & ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Luminosity block time (in seconds)

Definition at line 1814 of file ManagedMonitorToolBase.cxx.

1816{
1818 return m_defaultLBDuration;
1819 }
1820 if (!m_lbDurationDataKey.empty()) {
1821 SG::ReadCondHandle<LBDurationCondData> dur (m_lbDurationDataKey, ctx);
1822 return dur->lbDuration();
1823 } else {
1824 //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbDuration() can't work properly! ");
1825 ATH_MSG_DEBUG("Warning: lbDuration() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1826 return m_defaultLBDuration;
1827 }
1828 // not reached
1829}
SG::ReadCondHandleKey< LBDurationCondData > m_lbDurationDataKey

◆ lbInteractionsPerCrossing()

float ManagedMonitorToolBase::lbInteractionsPerCrossing ( const EventContext & ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Instantaneous number of interactions, i.e.

mu

Definition at line 1707 of file ManagedMonitorToolBase.cxx.

1709{
1710 if (!m_lumiDataKey.empty()) {
1711 SG::ReadCondHandle<LuminosityCondData> lumi (m_lumiDataKey, ctx);
1712 float muToLumi = lumi->muToLumi();
1713 if (muToLumi > 0) {
1714 return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id()) / muToLumi;
1715 }
1716 return 0;
1717 } else {
1718 //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbInteractionsPerCrossing() can't work properly! ");
1719 ATH_MSG_DEBUG("Warning: lbInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1720 return -1.0;
1721 }
1722 // not reached
1723}

◆ lbLuminosityPerBCID()

float ManagedMonitorToolBase::lbLuminosityPerBCID ( const EventContext & ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Instantaneous luminosity.

Definition at line 1743 of file ManagedMonitorToolBase.cxx.

1745{
1746 if (!m_lumiDataKey.empty()) {
1747 SG::ReadCondHandle<LuminosityCondData> lumi (m_lumiDataKey, ctx);
1748 return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id());
1749 } else {
1750 //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbLuminosityPerBCID() can't work properly! ");
1751 ATH_MSG_DEBUG("Warning: lbLuminosityPerBCID() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1752 return -1.0;
1753 }
1754 // not reached
1755}

◆ lbLumiWeight()

double ManagedMonitorToolBase::lbLumiWeight ( const EventContext & ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Average Integrated Luminosity Live Fraction.

Definition at line 1798 of file ManagedMonitorToolBase.cxx.

1800{
1801 if (!m_lumiDataKey.empty()) {
1803 } else{
1804 //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbLumiWeight() can't work properly! ");
1805 ATH_MSG_DEBUG("Warning: lbLumiWeight() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1806 return -1.0;
1807 }
1808 // not reached
1809}
virtual float lbAverageLivefraction(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Average luminosity livefraction.
virtual float lbAverageLuminosity(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1)
virtual double lbDuration(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Luminosity block time (in seconds)

◆ livefractionPerBCID()

float ManagedMonitorToolBase::livefractionPerBCID ( const EventContext & ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Livefraction per bunch crossing ID.

Definition at line 1779 of file ManagedMonitorToolBase.cxx.

1781{
1783 return 1.0;
1784
1785 if (!m_trigLiveFractionDataKey.empty()) {
1786 SG::ReadCondHandle<TrigLiveFractionCondData> live (m_trigLiveFractionDataKey, ctx);
1787 return live->l1LiveFractionVector().at (ctx.eventID().bunch_crossing_id());
1788 } else {
1789 //ATH_MSG_FATAL("! Luminosity tool has been disabled ! livefractionPerBCID() can't work properly! ");
1790 ATH_MSG_DEBUG("Warning: livefractionPerBCID() - luminosity retrieved available (i.e. EnableLumi = False)");
1791 return -1.0;
1792 }
1793 // not reached
1794}

◆ MMTB_DEPRECATED() [1/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfEventsBlock )
inherited

◆ MMTB_DEPRECATED() [2/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfLowStat )
inherited

◆ MMTB_DEPRECATED() [3/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfLumiBlock )
inherited

◆ MMTB_DEPRECATED() [4/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfRun )
inherited

◆ MMTB_DEPRECATED() [5/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newEventsBlock )
inherited

◆ MMTB_DEPRECATED() [6/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newHigStatInterval )
inherited

◆ MMTB_DEPRECATED() [7/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newLowStat )
inherited

◆ MMTB_DEPRECATED() [8/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newLowStatInterval )
inherited

◆ MMTB_DEPRECATED() [9/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newLumiBlock )
inherited

◆ MMTB_DEPRECATED() [10/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newMedStatInterval )
inherited

◆ MMTB_DEPRECATED() [11/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newRun )
inherited

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ newEventsBlockFlag()

bool ManagedMonitorToolBase::newEventsBlockFlag ( ) const
inlineprotectedinherited

Definition at line 793 of file ManagedMonitorToolBase.h.

793{ return m_newEventsBlock; }

◆ newHigStatIntervalFlag()

bool ManagedMonitorToolBase::newHigStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 789 of file ManagedMonitorToolBase.h.

◆ newLowStatFlag()

bool ManagedMonitorToolBase::newLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 790 of file ManagedMonitorToolBase.h.

◆ newLowStatIntervalFlag()

bool ManagedMonitorToolBase::newLowStatIntervalFlag ( ) const
inlineprotectedinherited

Flag functions allowing clients to determine when to book new and process old histograms; values are updated by fillHists() based on counting lumiBlocks, and are correctly set when fillHistograms(), bookHistograms() and procHistograms() are called.

Definition at line 787 of file ManagedMonitorToolBase.h.

◆ newLumiBlockFlag()

bool ManagedMonitorToolBase::newLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 791 of file ManagedMonitorToolBase.h.

791{ return m_newLumiBlock; }

◆ newMedStatIntervalFlag()

bool ManagedMonitorToolBase::newMedStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 788 of file ManagedMonitorToolBase.h.

◆ newRunFlag()

bool ManagedMonitorToolBase::newRunFlag ( ) const
inlineprotectedinherited

Definition at line 792 of file ManagedMonitorToolBase.h.

792{ return m_newRun; }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ parseList()

StatusCode ManagedMonitorToolBase::parseList ( const std::string & line,
std::vector< std::string > & result )
protectedinherited

Definition at line 2111 of file ManagedMonitorToolBase.cxx.

2112 {
2113 std::string item;
2114 std::stringstream ss(line);
2115
2116 if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "ManagedMonitorToolBase::parseList:";
2117
2118 while ( std::getline(ss, item, ',') ) {
2119 std::stringstream iss(item); // remove
2120 iss >> item; // whitespace
2121 if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " " << item;
2122 result.push_back(item);
2123 }
2124
2125 msg(MSG::DEBUG) << endmsg;
2126 return StatusCode::SUCCESS;
2127}
static Double_t ss
MsgStream & msg() const

◆ preSelector()

bool ManagedMonitorToolBase::preSelector ( )
virtualinherited

Implements IMonitorToolBase.

Definition at line 1679 of file ManagedMonitorToolBase.cxx.

1681{
1682 if( m_preScaleProp > 1 ) {
1683 return ( (m_nEvents % m_preScaleProp) == 1 );
1684 }
1685 return true;
1686}

◆ procHistograms()

◆ regEfficiency()

StatusCode ManagedMonitorToolBase::regEfficiency ( TEfficiency * e,
const MonGroup & group )
virtualinherited

Registers a TEfficiency to be included in the output stream using logical parameters that describe the plot.

Definition at line 1444 of file ManagedMonitorToolBase.cxx.

1444 {
1445 if (!e)
1446 return StatusCode::FAILURE;
1447
1448 TGraph* g = reinterpret_cast<TGraph*>(e);
1449 std::string name = e->GetName();
1450
1451 // MANAGED
1452 if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1453 // warn about not using merge algorithms
1454 if (group.histo_mgmt() == ATTRIB_X_VS_LB && group.merge().empty()) {
1455 ATH_MSG_WARNING("HEY! Attempting to register "<<name<<" as a per-LB histogram, but not setting the merge algorithm! Use \"merge\", at least.");
1456 }
1457 // add the efficiency to rebooking vector
1458 if (m_supportedIntervalsForRebooking.count(group.interval())) {
1459 m_templateEfficiencies[group.interval()].push_back( MgmtParams<TEfficiency>(e, group) );
1460 } else {
1461 ATH_MSG_ERROR("Attempt to book managed graph " << name << " with invalid interval type " << intervalEnumToString(group.interval()));
1462 return StatusCode::FAILURE;
1463 }
1464
1465 MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1466 std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1467 registerMetadata(streamName, name, group).ignore();
1468 return m_THistSvc->regGraph( streamName, g );
1469 } else {
1470 // UNMANAGED
1471 if( m_manager != 0 ) {
1472 std::string genericName = NoOutputStream().getStreamName( this, group, name );
1473 m_manager->writeAndDelete( genericName );
1474 m_manager->passOwnership( e, genericName );
1475 }
1476
1477 std::string streamName = streamNameFunction()->getStreamName( this, group, name, false );
1478 StatusCode smd = registerMetadata(streamName, name, group);
1479 if (smd != StatusCode::SUCCESS)
1480 return StatusCode::FAILURE;
1481
1482 return m_THistSvc->regGraph( streamName, g );
1483 }
1484}
virtual std::string getStreamName(const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, bool usePreviousInterval=false)
A function that converts a MonGroup of logical parameters into a physical output stream name.
std::set< Interval_t > m_supportedIntervalsForRebooking
StatusCode registerMetadata(const std::string &streamName, const std::string &hName, const MonGroup &group)
static std::string intervalEnumToString(Interval_t interval)
Converts a LevelOfDetail_t to a string of the same name.
std::map< Interval_t, std::vector< MgmtParams< TEfficiency > > > m_templateEfficiencies
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ regGraph() [1/3]

template<typename T>
void TilePaterMonTool::regGraph ( const std::string & subDir,
T * graph,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 60 of file TilePaterMonTool.cxx.

61{
62
63 std::string path(m_path);
64 if (!subDir.empty()) path += ("/" + subDir);
65
66 if(ManagedMonitorToolBase::regGraph(graph, path, interval, attribute, trigChain, mergeAlgo).isFailure()) {
67 ATH_MSG_WARNING( "Could not register Graph : " << path + "/" + graph->GetName() );
68 }
69}
virtual StatusCode regGraph(TGraph *g, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TGraph to be included in the output stream using logical parameters that describe the gra...
path
python interpreter configuration --------------------------------------—
Definition athena.py:128

◆ regGraph() [2/3]

StatusCode ManagedMonitorToolBase::regGraph ( TGraph * g,
const MonGroup & group )
protectedvirtualinherited

Registers a TGraph to be included in the output stream using logical parameters that describe the graph.

Reimplemented from ManagedMonitorToolBase.

Definition at line 530 of file ManagedMonitorToolBase.cxx.

1500{
1501 if (!g)
1502 return StatusCode::FAILURE;
1503
1504 // This part of the code deals with MANAGED type
1505 if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1506 // Create an unmanaged group based on the original MonGroup instance passed
1507 // This is needed because managed graph is presented as a number of unmanaged
1508 // graphs (one per each interval)
1509 MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1510
1511 if (m_supportedIntervalsForRebooking.count(group.interval())) {
1512 m_templateGraphs[group.interval()].push_back( MgmtParams<TGraph>(g, group_unmanaged) );
1513 } else {
1514 ATH_MSG_ERROR("Attempt to book managed graph " << g->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1515 return StatusCode::FAILURE;
1516 }
1517
1518 std::string name = g->GetName();
1519 std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1520 registerMetadata(streamName, name, group).ignore();
1521 return m_THistSvc->regGraph( streamName, g );
1522 //return m_THistSvc->regGraph( streamName );
1523 }
1524
1525 // This part of the code deals with UNMANAGED type
1526 std::string gName = g->GetName();
1527
1528 if( m_manager != 0 ) {
1529 std::string genericName = NoOutputStream().getStreamName( this, group, gName );
1530 m_manager->writeAndDelete( genericName );
1531 m_manager->passOwnership( g, genericName );
1532 }
1533
1534 std::string streamName = streamNameFunction()->getStreamName( this, group, gName, false );
1535
1536 StatusCode smd = registerMetadata(streamName, gName, group);
1537 if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1538
1539 return m_THistSvc->regGraph( streamName, g );
1540}
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > m_templateGraphs

◆ regGraph() [3/3]

StatusCode ManagedMonitorToolBase::regGraph ( TGraph * g,
const std::string & system,
Interval_t interval,
MgmtAttr_t histo_mgmt = ATTRIB_MANAGED,
const std::string & chain = "",
const std::string & merge = "" )
protectedvirtualinherited

Registers a TGraph to be included in the output stream using logical parameters that describe the graph.

Reimplemented from ManagedMonitorToolBase.

Definition at line 522 of file ManagedMonitorToolBase.cxx.

1491{
1492 MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1493 return regGraph( g, group );
1494}

◆ regHist() [1/3]

template<typename T>
void TilePaterMonTool::regHist ( const std::string & subDir,
T * hist,
Interval_t interval = run,
MgmtAttr_t attribute = ATTRIB_MANAGED,
const std::string & trigChain = "",
const std::string & mergeAlgo = "" )
protectedinherited

Definition at line 47 of file TilePaterMonTool.cxx.

48{
49
50 std::string path(m_path);
51 if (!subDir.empty()) path += ("/" + subDir);
52
53 if(ManagedMonitorToolBase::regHist(hist, path, interval, attribute, trigChain, mergeAlgo).isFailure()) {
54 ATH_MSG_WARNING( "Could not register histogram : " << path + "/" + hist->GetName() );
55 }
56
57}
virtual StatusCode regHist(TH1 *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical ...

◆ regHist() [2/3]

StatusCode ManagedMonitorToolBase::regHist ( TH1 * h,
const MonGroup & group )
protectedvirtualinherited

Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram.

A histogram is passed via reference to a pointer.

Reimplemented from ManagedMonitorToolBase.

Definition at line 470 of file ManagedMonitorToolBase.cxx.

1354{
1355// ManagedMonitorToolBase_addHistStatistics(this,h);
1356
1357 if (!h)
1358 return StatusCode::FAILURE;
1359
1360 // This part of the code deals with MANAGED type
1361 if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1362 /*
1363 Create an unmanaged group based on the original MonGroup instance passed
1364 It is needed because managed histogram is presented as a number of unmanaged
1365 histograms (one per each interval)
1366 Update (PUEO) - I don't think it actually matters, and need to keep
1367 track of "proper" attribute for X_VS_LB
1368 */
1369
1370 if (group.histo_mgmt() == ATTRIB_X_VS_LB && group.merge().empty()) {
1371 ATH_MSG_WARNING("HEY! You're attempting to register " << h->GetName() << " as a per-LB histogram, but you're not setting the merge algorithm! This is a SUPER-BAD idea! Use \"merge\", at least.");
1372 }
1373
1374 if (m_supportedIntervalsForRebooking.count(group.interval())) {
1375 m_templateHistograms[group.interval()].push_back( MgmtParams<TH1>(h, group) );
1376 } else {
1377 ATH_MSG_ERROR("Attempt to book managed histogram " << h->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1378 return StatusCode::FAILURE;
1379 }
1380
1381 std::string hName = h->GetName();
1382 MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1383 std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, hName, false );
1384 registerMetadata(streamName, hName, group).ignore();
1385 return m_THistSvc->regHist( streamName, h );
1386 }
1387
1388 // This part of the code deals with UNMANAGED type
1389 std::string hName = h->GetName();
1390
1391 if( m_manager != 0 ) {
1392 std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1393 m_manager->writeAndDelete( genericName );
1394 m_manager->passOwnership( h, genericName );
1395 }
1396
1397 std::string streamName = streamNameFunction()->getStreamName( this, group, hName, false );
1398
1399 StatusCode smd = registerMetadata(streamName, hName, group);
1400 if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1401
1402 return m_THistSvc->regHist( streamName, h );
1403}
std::map< Interval_t, std::vector< MgmtParams< TH1 > > > m_templateHistograms

◆ regHist() [3/3]

StatusCode ManagedMonitorToolBase::regHist ( TH1 * h,
const std::string & system,
Interval_t interval,
MgmtAttr_t histo_mgmt = ATTRIB_MANAGED,
const std::string & chain = "",
const std::string & merge = "" )
protectedvirtualinherited

Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram.

Reimplemented from ManagedMonitorToolBase.

Definition at line 462 of file ManagedMonitorToolBase.cxx.

1346{
1347 MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1348 return regHist( h, group );
1349}

◆ registerMetadata()

StatusCode ManagedMonitorToolBase::registerMetadata ( const std::string & streamName,
const std::string & hName,
const MonGroup & group )
protectedinherited

Definition at line 945 of file ManagedMonitorToolBase.cxx.

947 {
949 TTree* metadata(0);
950 std::string mdStreamName( streamName );
951 size_t found=mdStreamName.rfind('/');
952
953 if ( found != std::string::npos )
954 mdStreamName.replace( found, mdStreamName.length(), "/metadata" );
955
956 MDMap_t::iterator i = m_metadataMap.find( mdStreamName );
957 if( i == m_metadataMap.end() ) {
958 metadata = new TTree( "metadata", "Monitoring Metadata" );
959 if (! metadata) return StatusCode::FAILURE;
960 StatusCode scmd = m_THistSvc->regTree( mdStreamName, metadata );
961 if (scmd == StatusCode::FAILURE) return StatusCode::FAILURE;
962 i = m_metadataMap.emplace( mdStreamName, new OutputMetadata(metadata) ).first;
963 }
964
965 i->second->fill( hName, group.interval(), group.chain(), group.merge() );
966 }
967 return StatusCode::SUCCESS;
968}

◆ regManagedEfficiencies()

StatusCode ManagedMonitorToolBase::regManagedEfficiencies ( std::vector< MgmtParams< TEfficiency > > & templateEfficiencies)
protectedinherited

Definition at line 1139 of file ManagedMonitorToolBase.cxx.

1139 {
1140 bool allIsOk = true;
1141 for( auto& it : templateEfficiencies ) {
1142 // get components of MgmtParams and copy efficiency
1143 MonGroup group = it.m_group;
1144 TEfficiency* theEfficiency = it.m_templateHist;
1145 TEfficiency* e = static_cast<TEfficiency*>(theEfficiency->Clone());
1146 int nbins = theEfficiency->GetTotalHistogram()->GetNbinsX();
1147 int xlow = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmin();
1148 int xhigh = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmax();
1149 e->SetBins(nbins,xlow,xhigh); // reset histogram
1150 std::string name = e->GetName();
1151
1152 // make TGraph casts of TEfficiencies
1153 TGraph* theGraph = reinterpret_cast<TGraph*>(theEfficiency);
1154 TGraph* g = reinterpret_cast<TGraph*>(e);
1155
1156 // Get the streamName for the previous interval
1157 std::string streamName = streamNameFunction()->getStreamName( this, group, name, true );
1158
1159 // RE-REGISTER
1160 // 1) De-register the original graph with the THistSvc
1161 StatusCode sc1 = m_THistSvc->deReg( theGraph );
1162 if (sc1 == StatusCode::FAILURE) allIsOk = false;
1163 // 2) Fix THistSvc->deReg for TGraphs
1164 bool doneCleaning = false;
1165 std::string directoryName = streamNameFunction()->getDirectoryName( this, group, name, true );
1166 TSeqCollection *filelist=gROOT->GetListOfFiles();
1167 for (int i=0; i<filelist->GetEntries(); i++) {
1168 ATH_MSG_DEBUG( "List of files: " << filelist->At(i)->GetName());
1169 TFile* file = static_cast<TFile*>(filelist->At(i));
1170 StatusCode sc2 = THistSvc_deReg_fixTGraph(file, theGraph, directoryName);
1171 if (sc2 == StatusCode::SUCCESS) doneCleaning = true;
1172 }
1173 // 3) Check if TGraph fix has been applied successfully
1174 if (!doneCleaning) {
1175 ATH_MSG_ERROR("THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1176 allIsOk = false;
1177 }
1178 // 4) Register cloned histogram under previous interval streamName
1179 StatusCode sc3 = m_THistSvc->regGraph( streamName, g );
1180 if (sc3 == StatusCode::FAILURE)
1181 allIsOk = false;
1182
1183 // get streamname for interval
1184 streamName = streamNameFunction()->getStreamName( this, group, name, false );
1185 // store metadata
1186 StatusCode smd = registerMetadata(streamName, name, group);
1187 if (smd != StatusCode::SUCCESS) allIsOk = false;
1188 // Re-register the original graph
1189 StatusCode sc4 = m_THistSvc->regGraph( streamName, theGraph );
1190 if (sc4 == StatusCode::FAILURE) allIsOk = false;
1191 }
1192
1193 if (!allIsOk) return StatusCode::FAILURE;
1194 return StatusCode::SUCCESS;
1195}
virtual std::string getDirectoryName(const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, const bool usePreviousInterval)=0
A function that returns TDirectory path in a file that corresponds to a given MonGroup and object nam...
StatusCode THistSvc_deReg_fixTGraph(TFile *file, TGraph *theGraph, std::string &directoryName)
Fixes THistSvc->deReg(obj) when obj is TGraph instance.
filelist
print ("Checking files %s..." % fullfile)
Definition envutil.py:133

◆ regManagedGraphs()

StatusCode ManagedMonitorToolBase::regManagedGraphs ( std::vector< MgmtParams< TGraph > > & templateGraphs)
protectedinherited

Definition at line 1068 of file ManagedMonitorToolBase.cxx.

1070{
1071 // See the description for the regManagedHistograms method
1072 bool allIsOk = true;
1073
1074 for( std::vector< MgmtParams<TGraph> >::iterator it = templateGraphs.begin(); it != templateGraphs.end(); ++it ) {
1075 MonGroup group = (*it).m_group;
1076
1077 // Get a handle to the graph
1078 TGraph* theGraph = (*it).m_templateHist;
1079
1080 // Clone the graph
1081 TGraph* g = static_cast<TGraph*>(theGraph->Clone());
1082 theGraph->Set(0); // equivalent to Reset() for TH1
1083
1084 // Get name
1085 std::string gName = g->GetName();
1086
1087 // Get the streamName for the previous interval
1088 std::string streamName = streamNameFunction()->getStreamName( this, group, gName, true );
1089
1090 // De-register the original graph with the THistSvc
1091 StatusCode sc1 = m_THistSvc->deReg( theGraph );
1092 if (sc1 == StatusCode::FAILURE)
1093 allIsOk = false;
1094
1095 // *** begin ***
1096 // Fix THistSvc->deReg for TGraphs
1097 bool doneCleaning = false;
1098 std::string directoryName = streamNameFunction()->getDirectoryName( this, group, gName, true );
1099 TSeqCollection *filelist=gROOT->GetListOfFiles();
1100 for (int i=0; i<filelist->GetEntries(); i++) {
1101 ATH_MSG_DEBUG( "List of files: " << filelist->At(i)->GetName());
1102 TFile* file = static_cast<TFile*>(filelist->At(i));
1103 StatusCode sc2 = THistSvc_deReg_fixTGraph(file, theGraph, directoryName);
1104 if (sc2 == StatusCode::SUCCESS)
1105 doneCleaning = true;
1106 }
1107
1108 // Check if TGraph fix has been applied successfully
1109 if (!doneCleaning) {
1110 ATH_MSG_ERROR("THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1111 allIsOk = false;
1112 }
1113 // *** end ***
1114
1115 // Register clonned histogram under previous interval streamName
1116 StatusCode sc3 = m_THistSvc->regGraph( streamName, g );
1117 if (sc3 == StatusCode::FAILURE)
1118 allIsOk = false;
1119
1120 // Get streamName for the current interval
1121 streamName = streamNameFunction()->getStreamName( this, group, gName, false );
1122 // Register metadata information with the current interval streamname
1123 StatusCode smd = registerMetadata(streamName, gName, group);
1124 if (smd != StatusCode::SUCCESS)
1125 allIsOk = false;
1126
1127 // Re-register the original graph with the current interval streamName
1128 StatusCode sc4 = m_THistSvc->regGraph( streamName, theGraph );
1129 if (sc4 == StatusCode::FAILURE)
1130 allIsOk = false;
1131
1132 }
1133
1134 if (!allIsOk) return StatusCode::FAILURE;
1135
1136 return StatusCode::SUCCESS;
1137}

◆ regManagedHistograms()

StatusCode ManagedMonitorToolBase::regManagedHistograms ( std::vector< MgmtParams< TH1 > > & templateHistograms)
protectedinherited

Definition at line 971 of file ManagedMonitorToolBase.cxx.

973{
974 // The method registers histograms with the THistSvc and saves them to file.
975
976 // The funky business with registering and deregistering the histogram is needed
977 // to get the correct directory when saving histograms. THistSvc deals with ROOT
978 // to set up proper TDirectory, so we rely on it.
979 // E.g.
980 // m_THistSvc->regHist( streamName, h ): sets the correct TDirectory with streamName
981 // m_THistSvc->deReg( h ) - deregister from THistSvc otherwise THistSvc will try to save it
982 // at the end of execution
983 // use passownership of the histogram and save it to file
984 // m_manager->passOwnership( h, genericName );
985 // m_manager->writeAndDelete( genericName );
986 bool allIsOk = true;
987
988 for( std::vector< MgmtParams<TH1> >::iterator it = templateHistograms.begin(); it != templateHistograms.end(); ++it ) {
989 MonGroup& group = (*it).m_group;
990
991 // Get a handle to the histogram
992 TH1* theHist = (*it).m_templateHist;
993
994 // Clone the histogram
995 TH1* h = static_cast<TH1*>(theHist->Clone());
996 theHist->Reset();
997
998 // Get name
999 std::string hName = h->GetName();
1000
1001 // Get the streamName for the previous interval
1002 std::string streamName = streamNameFunction()->getStreamName( this, group, hName, true );
1003
1004 // Register the histogram with the THistSvc
1005 StatusCode sc1 = m_THistSvc->deReg( theHist );
1006 if (sc1 == StatusCode::FAILURE) allIsOk = false;
1007
1008 // Register clonned histogram under previous interval streamName
1009 StatusCode sc2 = m_THistSvc->regHist( streamName, h );
1010 if (sc2 == StatusCode::FAILURE) allIsOk = false;
1011
1012 if( m_manager != 0 ) {
1013 std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1014 m_manager->passOwnership( h, genericName );
1015 m_manager->writeAndDelete( genericName );
1016 }
1017
1018 // Get streamName for the current interval
1019 streamName = streamNameFunction()->getStreamName( this, group, hName, false );
1020 // Register metadata information with the current interval streamname
1021 StatusCode smd = registerMetadata(streamName, hName, group);
1022 if (smd != StatusCode::SUCCESS) allIsOk = false;
1023
1024 // Re-register the original histogram with the current interval streamName
1025 StatusCode sc3 = m_THistSvc->regHist( streamName, theHist );
1026 if (sc3 == StatusCode::FAILURE) allIsOk = false;
1027
1028 }
1029
1030 if (!allIsOk) return StatusCode::FAILURE;
1031
1032 return StatusCode::SUCCESS;
1033}

◆ regManagedTrees()

StatusCode ManagedMonitorToolBase::regManagedTrees ( std::vector< MgmtParams< TTree > > & templateTrees)
protectedinherited

Definition at line 1199 of file ManagedMonitorToolBase.cxx.

1201{
1202 // See the description for the regManagedHistograms method
1203 bool allIsOk = true;
1204
1205 for( std::vector< MgmtParams<TTree> >::iterator it = templateTrees.begin(); it != templateTrees.end(); ++it ) {
1206 MonGroup group = (*it).m_group;
1207
1208 // Get a handle to the original tree
1209 TTree* theTree = (*it).m_templateHist;
1210
1211 // Clone the tree
1212 TTree* t = static_cast<TTree*>(theTree->Clone());
1213 theTree->Reset();
1214
1215 // Dumping the tree
1216 std::string name = t->GetName();
1217
1218 // Get the streamName for the previous interval
1219 std::string streamName = streamNameFunction()->getStreamName( this, group, name, true );
1220
1221 // De-register original tree with the THistSvc
1222 StatusCode sc1 = m_THistSvc->deReg( theTree );
1223 if (sc1 == StatusCode::FAILURE) allIsOk = false;
1224
1225 // Register clonned tree under previous interval streamName
1226 StatusCode sc2 = m_THistSvc->regTree( streamName, t );
1227 if (sc2 == StatusCode::FAILURE) allIsOk = false;
1228
1229 if( m_manager != 0 ) {
1230 std::string genericName = NoOutputStream().getStreamName( this, group, name );
1231 m_manager->passOwnership( t, genericName );
1232 m_manager->writeAndDelete( genericName );
1233 }
1234
1235 // Get streamName for the current interval
1236 streamName = streamNameFunction()->getStreamName( this, group, name, false );
1237 // Register metadata information with the current interval streamname
1238 StatusCode smd = registerMetadata(streamName, name, group);
1239 if (smd != StatusCode::SUCCESS) allIsOk = false;
1240
1241 // Re-register the original graph with the current interval streamName
1242 StatusCode sc3 = m_THistSvc->regTree( streamName, theTree );
1243 if (sc3 == StatusCode::FAILURE) allIsOk = false;
1244
1245 }
1246
1247 if (!allIsOk) return StatusCode::FAILURE;
1248
1249 return StatusCode::SUCCESS;
1250}

◆ regTree() [1/2]

StatusCode ManagedMonitorToolBase::regTree ( TTree * t,
const MonGroup & group )
virtualinherited

Registers a TTree to be included in the output stream using logical parameters that describe it.

Definition at line 1554 of file ManagedMonitorToolBase.cxx.

1556{
1557
1558 // This part of the code deals with MANAGED type
1559 if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1560 // Create an unmanaged group based on the original MonGroup instance passed
1561 // This is needed because managed tree is presented as a number of unmanaged
1562 // trees (one per each interval)
1563 MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1564
1565 if (m_supportedIntervalsForRebooking.count(group.interval())) {
1566 m_templateTrees[group.interval()].push_back( MgmtParams<TTree>(t, group_unmanaged) );
1567 } else {
1568 ATH_MSG_ERROR("Attempt to book managed tree " << t->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1569 return StatusCode::FAILURE;
1570 }
1571
1572 std::string name = t->GetName();
1573 std::string genericName = NoOutputStream().getStreamName( this, group_unmanaged, name );
1574 std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1575 registerMetadata(streamName, name, group).ignore();
1576 return m_THistSvc->regTree( streamName, t );
1577 }
1578
1579
1580 // This part of the code deals with UNMANAGED type
1581 std::string tName = t->GetName();
1582
1583 if( m_manager != 0 ) {
1584 std::string genericName = NoOutputStream().getStreamName( this, group, tName );
1585 m_manager->writeAndDelete( genericName );
1586 m_manager->passOwnership( t, genericName );
1587 }
1588
1589 std::string streamName = streamNameFunction()->getStreamName( this, group, tName, false );
1590
1591 StatusCode smd = registerMetadata(streamName, tName, group);
1592 if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1593
1594 return m_THistSvc->regTree( streamName, t );
1595}
std::map< Interval_t, std::vector< MgmtParams< TTree > > > m_templateTrees

◆ regTree() [2/2]

StatusCode ManagedMonitorToolBase::regTree ( TTree * t,
const std::string & system,
Interval_t interval,
MgmtAttr_t histo_mgmt = ATTRIB_MANAGED,
const std::string & chain = "",
const std::string & merge = "" )
virtualinherited

Registers a TTree to be included in the output stream using logical parameters that describe it.

Definition at line 1544 of file ManagedMonitorToolBase.cxx.

1547{
1548 MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1549 return regTree( t, group );
1550}
virtual StatusCode regTree(TTree *t, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TTree to be included in the output stream using logical parameters that describe it.

◆ removeTObj()

StatusCode TilePaterMonTool::removeTObj ( TObject * obj)
protectedinherited

Definition at line 416 of file TilePaterMonTool.cxx.

416 {
417 if (obj != 0) {
418 if (obj->IsA()->InheritsFrom("TH1")) {
419 if (deregHist(static_cast<TH1*> (obj)).isFailure()) {
420 ATH_MSG_WARNING( "Could not dereg Histogram : " << obj->GetName() );
421 return StatusCode::FAILURE;
422 } else {
423 delete obj;
424 }
425 } else if (obj->IsA()->InheritsFrom("TGraph")) {
426 if (deregGraph(static_cast<TGraph*> (obj)) != StatusCode::SUCCESS) {
427 ATH_MSG_WARNING( "Could not dereg Graph : " << obj->GetName() );
428 return StatusCode::FAILURE;
429 } else {
430 delete obj;
431 }
432 } else {
433 ATH_MSG_WARNING( "Asked to remove object " << obj->GetName() << "of unsupported type " << obj->IsA() );
434 return StatusCode::FAILURE;
435 }
436 } else {
437 ATH_MSG_WARNING( "Asked to remove NULL pointer" );
438 return StatusCode::FAILURE;
439 }
440 return StatusCode::SUCCESS;
441}
virtual StatusCode deregHist(TH1 *h)
De-registers a TH1 from the THistSvc, but does NOT delete the object.
virtual StatusCode deregGraph(TGraph *g)
De-registers a TGraph from the THistSvc, but does NOT delete the object.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ RODCRCcalc()

StatusCode TileDigitsMonTool::RODCRCcalc ( const TileDQstatus * dqStatus)
private

Author: Luca. F. Mar 08 This method provides CRC checks for Global and TileDMU chips. They are taken from the the ROD RawChannel Container TileDMU CRC is taken from the DMU mask filled in the FPGA. It makes sense only for monogain runs (Physics, LED, MonoCIS). The least significant 16 bits are the result of the CRC check in the FE (0xFFFF means all OK). The most significant 16 bits are the result of the CRC check in the ROD (0xFFFF means all OK). Global CRC is taken also from the DQ Fragment. '0' means OK, '1' means mismatch.

Definition at line 1782 of file TileDigitsMonTool.cxx.

1782 {
1793
1795 CHECK(evtStore()->retrieve(rawChannelContainer, m_contNameDSP));
1796
1797 for (const TileRawChannelCollection* rawChannelCollection : *rawChannelContainer) {
1798
1799 if (rawChannelCollection->empty()) continue;
1800
1801 HWIdentifier hwid = rawChannelCollection->front()->adc_HWID(); //take the first channel in the drawer
1802 int ros = m_tileHWID->ros(hwid); //take the ros and drawer from the first channel
1803 int drawer = m_tileHWID->drawer(hwid);
1804
1805 uint32_t crc32 = rawChannelCollection->getFragGlobalCRC() & 1;
1806
1807 if (crc32 == 0) {
1808 crc32 = 0xFFFFFFFF;
1809 } else { // means OK CRC match
1810 crc32 = 0xFFFF;
1811 } //means NOT OK, CRC mismatch
1812
1813 uint32_t CRCmask = rawChannelCollection->getFragRODChipMask();
1814 CRCmask = CRCmask << 16; // ROD mask is stored in the 16 most significant bits ce
1815 CRCmask += rawChannelCollection->getFragFEChipMask();
1816
1817 CRCcheck(dqStatus, crc32, CRCmask, 16, ros, drawer); //reuse the same funcion used for digits
1818
1819 }
1820
1821 return StatusCode::SUCCESS;
1822}
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current TileRawChannelContainer

◆ runStat()

StatusCode ManagedMonitorToolBase::runStat ( )
virtualinherited

This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ).

Implements IMonitorToolBase.

Definition at line 1661 of file ManagedMonitorToolBase.cxx.

1663{
1664 return StatusCode::SUCCESS;
1665}

◆ saveStuckBitsProbabilities()

void TileDigitsMonTool::saveStuckBitsProbabilities ( TTree * tree)
overridevirtual

Implements ITileStuckBitsProbsTool.

Definition at line 1907 of file TileDigitsMonTool.cxx.

1907 {
1908
1909 tree->Branch("StuckBitsProb", m_data->m_stuck_probs, "StuckBitsProb[5][64][48][2][10]/b");
1910}
TChain * tree

◆ setMonManager()

void ManagedMonitorToolBase::setMonManager ( AthenaMonManager * manager)
virtualinherited

Takes a pointer to a managing object to get information from it when needed.

Definition at line 1325 of file ManagedMonitorToolBase.cxx.

1327{
1328 ATH_MSG_DEBUG( "ManagedMonitorToolBase::setMonManager():");
1330 if( m_manager != 0 ) {
1331 ATH_MSG_DEBUG( " --> Setting manager");
1332 m_managerNameProp = m_manager->name();
1333 m_fileKey = m_manager->fileKey();
1334 m_dataType = m_manager->dataType();
1335 m_environment = m_manager->environment();
1336 delete m_streamNameFcn;
1338 }
1339 ATH_MSG_DEBUG( " --> Exiting successfully");
1340}
virtual StreamNameFcn * getNewStreamNameFcn() const

◆ setupOutputStreams()

StatusCode ManagedMonitorToolBase::setupOutputStreams ( std::vector< std::string > Mapping = std::vector<std::string>())
virtualinherited

This implementation does nothing—streams in this class should be managed by the AthenaMonManager.

Consider using MonitorToolBase for user-managed streams.

Implements IMonitorToolBase.

Definition at line 1650 of file ManagedMonitorToolBase.cxx.

1652{
1653 // All instances should write to the stream(s) defined by the
1654 // AthenaMonManager.
1655
1656 return StatusCode::SUCCESS;
1657}

◆ shiftHisto()

void TileDigitsMonTool::shiftHisto ( TH1S * hist,
int ros,
int drawer,
int ch,
int gain )
private

Definition at line 1825 of file TileDigitsMonTool.cxx.

1827{
1828
1829 hist->GetXaxis()->SetRange(5, 100);
1830
1831 TSpectrum s(8, 1.);
1832
1833 s.Search(hist, 2, "goff");
1834 int shift = int(s.GetPositionX()[0]);
1835 if (shift > 0) {
1836 int factor = m_is12bit ? 4 : 1;
1837 int xmax = std::max(1025 * factor, 846 * factor + shift);
1838 int xmin = std::max(1, shift + 50 * factor);
1839 for (int bin = xmin; bin < xmax; ++bin) {
1840 double c = hist->GetBinContent(bin);
1841 if (c > 0) m_data->m_shifted_hist[ros][drawer][ch][gain]->SetBinContent(bin - shift - 50 * factor, c);
1842 }
1843 }
1844}

◆ statTestHistos()

void TileDigitsMonTool::statTestHistos ( int ros,
int drawer,
int gain )
private

Definition at line 1847 of file TileDigitsMonTool.cxx.

1850{
1851 std::vector<TH1S*> refbld;
1852 std::vector<TH1S*> newrefbld;
1853 TH1F *ref = new TH1F("ref", "ref", m_shiftnbins, 0., m_shiftnbins);
1854 ref->SetDirectory(0);
1855 TH1F *ref1 = new TH1F("ref1", "ref1", m_shiftnbins, 0., m_shiftnbins);
1856 ref1->SetDirectory(0);
1857
1858 for (int i = 0; i < 48; i++) {
1859
1860 TH1S *h = m_data->m_shifted_hist[ros][drawer][i][gain];
1861 float integ = h->Integral(200, 600);
1862 if (integ > 0) {
1863 refbld.push_back(h);
1864 }
1865
1866 }
1867
1868 int entr = refbld.size();
1869 const double inv_entr = (entr > 0 ? 1. / static_cast<double>(entr) : 1);
1870 for (int i = 0; i < entr; i++) {
1871 TH1S *h = refbld.at(i);
1872 ref->Add(h, inv_entr);
1873 }
1874
1875 // refbld.push_back(ref);
1876 TH1S *obj = 0;
1877
1878 for (int i = 0; i < entr; i++) {
1879 obj = refbld.at(i);
1880 float kol = obj->KolmogorovTest(ref);
1881 //std::cout<<"The value of the Kolmogorov test for "<< ros << drawer << gain << " pmt:" << i << " is "<< kol << std::endl;
1882 if (kol > 0.5) {
1883 newrefbld.push_back(obj);
1884 }
1885 }
1886
1887 int ent = newrefbld.size();
1888 const double inv_ent = (ent > 0 ? 1. / static_cast<double>(ent) : 1);
1889 for (int i = 0; i < ent; i++) {
1890 obj = newrefbld.at(i);
1891 ref1->Add(obj, inv_ent);
1892 }
1893
1894 // newrefbld->Add(ref1);
1895
1896 if (ent > 6)
1897 m_data->m_shifted_hist[ros][drawer][48][gain]->Add(ref1, 1.);
1898 else
1899 m_data->m_shifted_hist[ros][drawer][48][gain]->Add(ref, 1.);
1900
1901 delete ref;
1902 delete ref1;
1903
1904}
const boost::regex ref(r_ef)

◆ streamNameFunction()

ManagedMonitorToolBase::StreamNameFcn * ManagedMonitorToolBase::streamNameFunction ( )
virtualinherited

Returns the function object that converts logical paramters into a physical stream name.

Definition at line 450 of file ManagedMonitorToolBase.cxx.

452{
453 if( m_streamNameFcn == 0 ) {
454 msg(MSG::ERROR) << "!! streamNameFunction() has not been initialized !!" << endmsg;
455 msg(MSG::ERROR) << " --> neither ManagedMonitorToolBase::initialize() nor" << endmsg;
456 msg(MSG::ERROR) << " --> ManagedMonitorToolBase::setMonManager() has been called." << endmsg;
457 msg(MSG::ERROR) << " --> Correct configuration cannot be guaranteed from this point." << endmsg;
459 }
460 return m_streamNameFcn;
461}

◆ stuckBitProb()

const uint8_t * TileDigitsMonTool::stuckBitProb ( int ros,
int module,
int channel,
int gain ) const
overridevirtual

Implements ITileStuckBitsProbsTool.

Definition at line 930 of file TileDigitsMonTool.cxx.

932{
933 return m_data->m_stuck_probs[ros][module][channel][gain];
934}

◆ stuckBits()

int TileDigitsMonTool::stuckBits ( TH1S * hist,
int adc )
private

Method to find stuckbits in Read-Out ADC channel.

Definition at line 1263 of file TileDigitsMonTool.cxx.

1263 {
1264 // function returns number of stuck bits
1265 int NSB = 0;
1266
1267 // If all bins at given hypothetical stuck_position (0,1) and stuck_bit (0,...,9)
1268 // are empty then this bin is stuck in this position. Do this procedure only for
1269 // bins between the first and the last non-zeroth one.
1270
1271 // Find first/last non-zero bin in the histogram
1272 int MinBin = 1;
1273 for (; MinBin < m_i_ADCmax + 2; ++MinBin) {
1274 if (hist->GetBinContent(MinBin) > 0) {
1275 break;
1276 }
1277 }
1278 if (MinBin == m_i_ADCmax + 2) return 0; // empty histogram, nothing to do
1279
1280 int MaxBin = m_i_ADCmax + 1;
1281 for (; MaxBin > 0; --MaxBin) {
1282 if (hist->GetBinContent(MaxBin) > 0) {
1283 break;
1284 }
1285 }
1286
1287 // bins in hist are counted from 1 to m_i_ADCmax + 1, but actual X value for those bins are 0-m_i_ADCmax
1288
1289 // if there is nothing in first half of histogram
1290 // or there is nothing in second half and there is a sharp edge at 512
1291 // it can be that upper most bit is stuck in 0 or 1
1292 if (MinBin == (m_i_ADCmax + 1) / 2 + 1 || (MaxBin == (m_i_ADCmax + 1) / 2 && hist->GetBinContent(MaxBin) > 3)) {
1293 ++NSB;
1294 // std::cout << "Bit 9 is stuck" << std::endl;
1295 }
1296
1297 --MinBin; // shift to zero bin
1298 ++MaxBin; // shift to zero bin
1299
1300 for (int hyp_pos = 0; hyp_pos < 2; ++hyp_pos) { // bit stuck at value 0 or 1
1301 for (int hyp_bit = 0; hyp_bit < 10; ++hyp_bit) { // which bit is stuck
1302 double sum = 0;
1303 int bin_counter = 0;
1304
1305 int win_length = (1 << hyp_bit); // length of one interval with all zeros if bit is stuck
1306 int BeginBin = (1 - hyp_pos) * win_length; // beginning of first interval to check
1307
1308 while (BeginBin + 1 < MaxBin) {
1309 int EndBin = BeginBin + win_length; // end of interval to check
1310
1311 if (EndBin > MinBin) {
1312 for (int bin = BeginBin; bin < EndBin; ++bin) {
1313 //bin is from 0 to m_i_ADCmax here - must be changed in GetBinConent to (bin+1)
1314 if (MinBin < (bin + 1) && (bin + 1) < MaxBin) {
1315 sum += hist->GetBinContent(bin + 1);
1316 ++bin_counter;
1317 }
1318 }
1319 }
1320 BeginBin = EndBin + win_length; // beginning of next interval
1321 }
1322 if (sum == 0 && bin_counter > 0) {
1323 // std::cout << "Bit "<<hyp_bit<<" is stuck at "<< hyp_pos << std::endl;
1324 ++NSB;
1325 }
1326 }
1327 }
1328
1329 if ((NSB == 0) && ((m_runType == CisRun) || (m_runType == CisRamp))) {
1330
1331 NSB = stuckBits_Amp(hist, adc); // if no stuck bits found, lets try another crude procedure
1332 }
1333
1334 return NSB;
1335}
int stuckBits_Amp(TH1S *hist, int adc)
A crude method to check Read-Out ADC channel stuckbits.

◆ stuckBits_Amp()

int TileDigitsMonTool::stuckBits_Amp ( TH1S * hist,
int adc )
private

A crude method to check Read-Out ADC channel stuckbits.

Definition at line 1372 of file TileDigitsMonTool.cxx.

1372 {
1373 int i, b, c, cc = 2;
1374 int bc[10], bv[10];
1375 double bs[10];
1376 int f; // flip-flop of non-zero contents of previous bin
1377 int cm, cp; // previous and next bin contents
1378 double prob; // probability
1379 for (b = 0; b < 10; b++) {
1380 bc[b] = 0;
1381 bs[b] = 0.;
1382 bv[b] = 1 << b;
1383 }
1384 cp = hist->GetBinContent(1);
1385 f = !!cp;
1386 for (i = 1; i < m_i_ADCmax + 1; i++) {
1387 cm = cc;
1388 c = cc = cp;
1389 cp = (i < m_i_ADCmax) ? hist->GetBinContent(i + 2) : 0;
1390 prob = 1.;
1391 if (c > 0 && c < 0.125 * (cp + cm - std::sqrt((double) cp) - std::sqrt((double) cm))) {
1392 prob = 1. - (double) c / (0.125 * (cp + cm - std::sqrt((double) cp) - std::sqrt((double) cm)));
1393 c = 0;
1394 }
1395 if (c || f) // count bit flips (bc[b]) in bins with non-zero contents and adjacent bins
1396 for (b = 0; b < 10; b++) {
1397 if ((i & bv[b]) != ((i - 1) & bv[b]))
1398 bc[b]++;
1399 else
1400 break; // higher bit can flip only of the previous one does
1401 }
1402 if (f > 0 && c > 0) continue;
1403 if (f == 0 && c == 0) continue;
1404 if (c || f) // bin content flips (zero - non-zero)
1405 for (b = 0; b < 10; b++) { // count bits flipped at this position
1406 if ((i & bv[b]) != ((i - 1) & bv[b]))
1407 bs[b] += (i & bv[b]) ? (c ? prob : -prob) : (c ? -prob : prob);
1408 else
1409 break;
1410 }
1411 f = !f;
1412 }
1413
1414 int NSB = 0;
1415 for (b = 0; b < 10; b++)
1416 // if (bc[b] > 2 && abs(bs[b]) * 2 > bc[b])
1417 if (((bc[b] > 2) && (std::abs(bs[b]) == bc[b])) || ((std::abs(bs[b]) > 7) && (std::abs(bs[b]) * 3 > bc[b]))) {
1418 NSB++;
1419 }
1420
1421 return NSB;
1422
1423}

◆ stuckBits_Amp2()

int TileDigitsMonTool::stuckBits_Amp2 ( TH1S * hist,
TH1C * modhist,
int adc,
TH2C * outhist = NULL,
int ch = 0,
uint8_t * stuck_probs = NULL )
private

Definition at line 1426 of file TileDigitsMonTool.cxx.

1426 {
1427
1428 if (hist->GetEntries() < 1000) return 0; /* too few events (1000 / N_samples) in histogram, ignore */
1429
1430 int i, b, c, cc = 0; /* bin counter, but position, bin content */
1431 double cont;
1432 int last_non0, first_non0 = -1;
1433 int bc[10] = { 0 }, bv[10] = { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 }; // bit flips at signal regions, bit values
1434 double bs[10] = { 0. }; // bit flips at signal edges
1435 int bac[10] = { 0 }, ba0[10] = { 0 }, ba1[10] = { 0 }, bas[10] = { 0 }; // for stuck bits between first_non0, last_non0 using old technique
1436 int f; // flip-flop of non-zero contents of previous bin
1437 int cm, cp; // previous and next bin contents
1438 double prob; // probability
1439 int zero_limit, saturation_limit;
1440 zero_limit = gain ? m_zeroLimitHG : 0;
1441 saturation_limit = gain ? m_saturationLimitHG : m_i_ADCmax;
1442 cp = hist->GetBinContent(1);
1443 f = !!cp;
1444 if (f) first_non0 = 0;
1445 for (last_non0 = m_i_ADCmax; last_non0 >= 0; last_non0--)
1446 if (hist->GetBinContent(last_non0 + 1) > 0) break;
1447 if (last_non0 < 0) // empty histogram
1448 return 0;
1449 for (i = 1; i <= last_non0; i++) {
1450 cm = cc;
1451 c = cc = cp;
1452 cp = (i < m_i_ADCmax) ? hist->GetBinContent(i + 2) : 0;
1453 if (first_non0 < 0) {
1454 if (cc > 0)
1455 first_non0 = i;
1456 else
1457 continue;
1458 }
1459 for (b = 0; b < 10; b++) { // count bits flipped at this position
1460 if ((i & bv[b]) != ((i - 1) & bv[b])) {
1461 bac[b]++;
1462 if (bas[b] > 0) {
1463 if ((i - 1) & bv[b])
1464 ba1[b]++;
1465 else
1466 ba0[b]++;
1467 bas[b] = 0;
1468 }
1469 }
1470 if (cc > 0) bas[b]++;
1471 }
1472 prob = 1.;
1473 cont = sqrt((double) (c + cm));
1474 if ((c == 0 || cm == 0) && (c > 0 || cm > 0)) {
1475 prob = erf((cont - sqrt(cont)) / sqrt(2 * cont));
1476 }
1477 /* bin content is lower than usual */
1478 if (c > 0 && c < 0.25 * (cp + cm - std::sqrt((double) cp) - std::sqrt((double) cm))) {
1479 prob = 1. - (double) c / (0.25 * (cp + cm - std::sqrt((double) cp) - std::sqrt((double) cm)));
1480 c = 0;
1481 }
1482 if (c || f) // count bit flips (bc[b]) in bins with non-zero contents or adjacent bins
1483 for (b = 0; b < 10; b++) {
1484 if ((i & bv[b]) != ((i - 1) & bv[b]))
1485 bc[b]++;
1486 else
1487 break; // a higher bit can flip only of the lower one does
1488 }
1489 if (f > 0 && c > 0) continue;
1490 if (f == 0 && c == 0) continue;
1491 if (c || f) // bin content flips (zero - non-zero)
1492 for (b = 0; b < 10; b++) { // count bits flipped at this position
1493 if ((i & bv[b]) != ((i - 1) & bv[b]))
1494 bs[b] += (i & bv[b]) ? (c ? prob : -prob) : (c ? -prob : prob);
1495 else
1496 break;
1497 }
1498 f = !f;
1499 }
1500
1501 for (b = 0; b < 10; b++) // count bits flipped at this position
1502 if ((i & bv[b]) != ((i - 1) & bv[b])) {
1503 bac[b]++;
1504 if (bas[b] > 0) {
1505 if ((i - 1) & bv[b])
1506 ba1[b]++;
1507 else
1508 ba0[b]++;
1509 }
1510 }
1511
1512 int is_stack = 0;
1513 double sb_prob[4] = {0., 0., 0., 0.};
1514 static const int sb_map[10] = {0, 1, 1, 2, 2, 3, 3, 3, 3, 3}; // mapping of SB to histogram rows
1515 for (b = 0; b < 10; b++) {
1516 if ((ba0[b] == 0 || ba1[b] == 0) && bac[b] > 2 && (ba0[b] + ba1[b] >= bac[b] / 2 || ba0[b] + ba1[b] > 2)) {
1517 is_stack = 1;
1518 if (outhist != NULL) {
1519 sb_prob[sb_map[b]] = 1.;
1520 }
1521 if (stuck_probs != NULL)
1522 stuck_probs[b] = ba0[b] == 0 ? 100u : 200u;
1523 continue;
1524 }
1525 double bs1 = std::fabs(bs[b]) - sqrt(std::fabs(bs[b]));
1526 if (bs1 < 0.) bs1 = 0.;
1527 if ((bs1 > 0.5 * bc[b]) || (bc[b] > 7 && bs1 * 3 > bc[b])) is_stack = 1;
1528 if (outhist != NULL && bc[b] > 0) {
1529 // if (sb_prob[sb_map[b]] < 100. * bs1 / bc[b]) sb_prob[sb_map[b]] = 100. * bs1 / bc[b];
1530 sb_prob[sb_map[b]] = 1. - (1. - sb_prob[sb_map[b]]) * (1. - 1. * bs1 / bc[b]); // prod of probs. of not-stuck
1531 }
1532 if (stuck_probs != NULL)
1533 {
1534 stuck_probs[b] = (uint8_t) (100. * bs1 / bc[b]);
1535 if (bs[b] > 0)
1536 {
1537 stuck_probs[b] += 100u;
1538 if (stuck_probs[b] == 100u)
1539 stuck_probs[b] = 0u;
1540 }
1541 }
1542 }
1543 if ((first_non0 >= (m_i_ADCmax + 1) / 2 && first_non0 < m_i_ADCmax)
1544 || (last_non0 == (m_i_ADCmax + 1) / 2 - 1 && hist->GetBinContent(last_non0) > 3)) {
1545 is_stack = 1;
1546
1547 sb_prob[3] = 1.;
1548 if (stuck_probs != NULL)
1549 stuck_probs[9] = first_non0 >= 512 ? 200u : 100u;
1550 }
1551 if (outhist != NULL) {
1552 outhist->Fill((double) ch, 0., 100. * sb_prob[0]);
1553 outhist->Fill((double) ch, 1., 100. * sb_prob[1]);
1554 outhist->Fill((double) ch, 2., 100. * sb_prob[2]);
1555 outhist->Fill((double) ch, 3., 100. * sb_prob[3]);
1556
1557 if (first_non0 >= saturation_limit)
1558 outhist->Fill((double) ch, 5., 100.);
1559 else if (last_non0 >= saturation_limit) {
1560 double frac;
1561 int saturation_entries = 0;
1562 int maxADC = m_i_ADCmax + 1;
1563 for (i = saturation_limit + 1; i <= maxADC; ++i)
1564 saturation_entries += hist->GetBinContent(i);
1565 frac = 100. * (double) saturation_entries / hist->GetEntries();
1566 if (frac > 0. && frac < 1.) frac = 1.;
1567 if (frac > 99. && frac < 100.) frac = 99.;
1568 outhist->Fill((double) ch, 5., frac);
1569 }
1570 if (last_non0 <= zero_limit)
1571 outhist->Fill((double) ch, 4., 100.);
1572 else if (first_non0 <= zero_limit) {
1573 double frac;
1574 int zero_entries = 0;
1575 for (i = 1; i <= zero_limit + 1; ++i)
1576 zero_entries += hist->GetBinContent(i);
1577 frac = 100. * (double) zero_entries / hist->GetEntries();
1578 if (frac > 0. && frac < 1.) frac = 1.;
1579 if (frac > 99. && frac < 100.) frac = 99.;
1580 outhist->Fill((double) ch, 4., frac);
1581 }
1582 double entries, empty_cut, full_cut;
1583 int mod32empty = 0;
1584 int mod32full = 0;
1585 bool enough = false;
1586 entries = modhist -> GetEntries();
1587 empty_cut = entries < 4096. ? entries / (32 * 4) : 32.;
1588 full_cut = entries / 32.;
1589 if (full_cut > 126.)
1590 full_cut = 126.;
1591 if (full_cut - empty_cut < 1.)
1592 full_cut = empty_cut + 1.;
1593
1594 for (i = 1; i <= 32; ++i) {
1595 if (modhist->GetBinContent(i) <= empty_cut)
1596 ++mod32empty;
1597 else if (modhist->GetBinContent(i) > full_cut)
1598 ++mod32full;
1599 if (modhist->GetBinContent(i) > 64)
1600 enough = true;
1601 }
1602 if (mod32empty + mod32full == 32 || enough) //skip in the case of small number of events
1603 if (mod32empty != 0 && mod32full != 0) //some but not all n%32 positions have events
1604 outhist->Fill((double) ch, 6., mod32empty);
1605
1606 outhist->SetMaximum(100.);
1607 }
1608 return is_stack;
1609}
TGraphErrors * GetEntries(TH2F *histo)
double entries
Definition listroot.cxx:49
@ u
Enums for curvilinear frames.
Definition ParamDefs.h:77

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ THistSvc_deReg_fixTGraph()

StatusCode ManagedMonitorToolBase::THistSvc_deReg_fixTGraph ( TFile * file,
TGraph * theGraph,
std::string & directoryName )
protectedinherited

Fixes THistSvc->deReg(obj) when obj is TGraph instance.

Read more in source file about this bug.

Definition at line 1036 of file ManagedMonitorToolBase.cxx.

1038{
1039 // THistSvc employs TDirectory Append method when registering TGraph.
1040 // When deReg is used to de-register TGraph object, THistSvc only removes the object
1041 // from its internal management but forgets to delete from TDirectory.
1042 // The current method fixes this problem by removing the TGraph object manually
1043 // after THistSvc->deReg(TGraph* obj) is called.
1044
1045 // Saves and restores gFile and gDirectory
1046 GlobalDirectoryRestore restore;
1047
1048 // This check is true when TGraph object is removed successfully
1049 bool graphRemoved = false;
1050
1051 file->cd("/");
1052 TDirectory* dir = file->GetDirectory(directoryName.c_str());
1053 if (dir != 0) {
1054 dir->cd();
1055 TObject* obj = dir->Remove(theGraph);
1056 if (obj != 0)
1057 graphRemoved = true;
1058 }
1059
1060 if (!graphRemoved) {
1061 return StatusCode::FAILURE;
1062 }
1063
1064 return StatusCode::SUCCESS;
1065}

◆ trigChainsArePassed()

bool ManagedMonitorToolBase::trigChainsArePassed ( std::vector< std::string > & vTrigNames)
protectedvirtualinherited

Definition at line 2092 of file ManagedMonitorToolBase.cxx.

2094{
2095 ATH_MSG_DEBUG( "ManagedMonitorToolBase::trigChainsArePassed:");
2096
2097 for(unsigned int i=0; i<vTrigNames.size(); i++) {
2098 if( m_trigDecTool->isPassed(vTrigNames[i]) ) {
2099 ATH_MSG_DEBUG( " + \"" << vTrigNames[i] << "\" passed, returning \'true\'");
2100 return true;
2101 }
2102 else {
2103 ATH_MSG_DEBUG( " - \"" << vTrigNames[i] << "\" did not pass");
2104 }
2105 }
2106
2107 return false;
2108}
PublicToolHandle< Trig::ITrigDecisionTool > m_trigDecTool

◆ updateTriggersForGroups()

void ManagedMonitorToolBase::updateTriggersForGroups ( std::vector< std::string > & vTrigChainNames)
protectedinherited

Definition at line 2130 of file ManagedMonitorToolBase.cxx.

2131 {
2132 for (size_t i = 0; i < vTrigChainNames.size(); ++i) {
2133 std::string& thisName = vTrigChainNames[i];
2134 if (thisName.compare(0, 9, "CATEGORY_") ==0) {
2135 ATH_MSG_DEBUG("Found a trigger category: " << thisName << ". We will unpack it.");
2136 std::vector<std::string> triggers = m_trigTranslator->translate(thisName.substr(9,std::string::npos));
2137 std::ostringstream oss;
2138 oss << "(";
2139 for (size_t itrig = 0; itrig < triggers.size(); ++itrig) {
2140 if (itrig != 0) {
2141 oss << "|";
2142 }
2143 oss << triggers[itrig];
2144 }
2145 oss << ")";
2146 // replace with new value
2147 std::string newval = oss.str();
2148 ATH_MSG_DEBUG("Replaced with " << newval);
2149 vTrigChainNames[i] = std::move(newval);
2150 }
2151 }
2152}
PublicToolHandle< ITriggerTranslatorTool > m_trigTranslator

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

◆ writeAndDelete()

StatusCode ManagedMonitorToolBase::writeAndDelete ( TH1 * h,
const MonGroup & group )
virtualinherited

Write out histogram and delete it.

Definition at line 1599 of file ManagedMonitorToolBase.cxx.

1600 {
1601 if (!h)
1602 return StatusCode::FAILURE;
1603
1604 std::string hName = h->GetName();
1605
1606 if( m_manager != 0 ) {
1607 std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1608 m_manager->writeAndDelete( genericName );
1609 }
1610 return StatusCode::SUCCESS;
1611}

Member Data Documentation

◆ m_ADCmaxMinusEps

float TileDigitsMonTool::m_ADCmaxMinusEps {}
private

Definition at line 174 of file TileDigitsMonTool.h.

174{};

◆ m_allHistsFilled

bool TileDigitsMonTool::m_allHistsFilled {}
private

Definition at line 161 of file TileDigitsMonTool.h.

161{};

◆ m_bigain

bool TileDigitsMonTool::m_bigain {}
private

Definition at line 124 of file TileDigitsMonTool.h.

124{};

◆ m_book2D

bool TileDigitsMonTool::m_book2D {}
private

Definition at line 105 of file TileDigitsMonTool.h.

105{};

◆ m_bookAll

bool TileDigitsMonTool::m_bookAll {}
private

Definition at line 104 of file TileDigitsMonTool.h.

104{};

◆ m_bookHistogramsInitial

bool ManagedMonitorToolBase::m_bookHistogramsInitial
privateinherited

Definition at line 893 of file ManagedMonitorToolBase.h.

◆ m_cabling

const TileCablingService* TilePaterMonTool::m_cabling {}
protectedinherited

Definition at line 201 of file TilePaterMonTool.h.

201{};

◆ m_chMapEB

int TilePaterMonTool::m_chMapEB[48]
protectedinherited
Initial value:
= { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0
, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0
, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 }

Definition at line 245 of file TilePaterMonTool.h.

245 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
246 , 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0
247 , 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0
248 , 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 };

◆ m_chMapEBsp

int TilePaterMonTool::m_chMapEBsp[48]
protectedinherited
Initial value:
= { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0
, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 }

Definition at line 250 of file TilePaterMonTool.h.

250 { 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0
251 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
252 , 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0
253 , 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 };

◆ m_chMapLB

int TilePaterMonTool::m_chMapLB[48]
protectedinherited
Initial value:
= { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0
, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }

Definition at line 240 of file TilePaterMonTool.h.

240 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
241 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
242 , 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0
243 , 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 };

◆ m_cispar

const uint32_t* TileDigitsMonTool::m_cispar {}
private

Definition at line 122 of file TileDigitsMonTool.h.

122{};

◆ m_contNameDSP

std::string TileDigitsMonTool::m_contNameDSP
private

Definition at line 107 of file TileDigitsMonTool.h.

◆ m_d

Imp* ManagedMonitorToolBase::m_d
privateinherited

Definition at line 900 of file ManagedMonitorToolBase.h.

◆ m_data

std::unique_ptr<Data> TileDigitsMonTool::m_data
private

Definition at line 160 of file TileDigitsMonTool.h.

◆ m_dataType

AthenaMonManager::DataType_t ManagedMonitorToolBase::m_dataType
protectedinherited

Definition at line 838 of file ManagedMonitorToolBase.h.

◆ m_dataTypeStr

std::string ManagedMonitorToolBase::m_dataTypeStr
protectedinherited

Definition at line 834 of file ManagedMonitorToolBase.h.

◆ m_defaultLBDuration

float ManagedMonitorToolBase::m_defaultLBDuration
privateinherited

Definition at line 895 of file ManagedMonitorToolBase.h.

◆ m_detailLevel

unsigned int ManagedMonitorToolBase::m_detailLevel
protectedinherited

Definition at line 836 of file ManagedMonitorToolBase.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_digitsContainerName

std::string TileDigitsMonTool::m_digitsContainerName
private

Definition at line 167 of file TileDigitsMonTool.h.

◆ m_DQFilterTools

ToolHandleArray<IDQFilterTool> ManagedMonitorToolBase::m_DQFilterTools {this,"FilterTools",{}}
protectedinherited

Definition at line 849 of file ManagedMonitorToolBase.h.

849{this,"FilterTools",{}};

◆ m_DQstatusKey

SG::ReadHandleKey<TileDQstatus> TileDigitsMonTool::m_DQstatusKey
private

Definition at line 182 of file TileDigitsMonTool.h.

◆ m_EBcellName

std::string TilePaterMonTool::m_EBcellName[48]
protectedinherited
Initial value:
= { "E3", "E4", "D4", "D4", "C10", "C10", "A12", "A12", "B11", "B11", "A13", "A13"
, "E1", "E2", "B12", "B12", "D5", "D5", "E3*", "E4*", "A14", "A14", "B13", "B13"
, "", "", "", "", "", "", "B14", "A15", "A15", "", "", "B14"
, "B15", "D6", "D6", "B15", "A16", "A16", "", "", "", "", "", "" }

Definition at line 210 of file TilePaterMonTool.h.

210 { "E3", "E4", "D4", "D4", "C10", "C10", "A12", "A12", "B11", "B11", "A13", "A13"
211 , "E1", "E2", "B12", "B12", "D5", "D5", "E3*", "E4*", "A14", "A14", "B13", "B13"
212 , "", "", "", "", "", "", "B14", "A15", "A15", "", "", "B14"
213 , "B15", "D6", "D6", "B15", "A16", "A16", "", "", "", "", "", "" };

◆ m_endOfEventsBlock

bool ManagedMonitorToolBase::m_endOfEventsBlock
privateinherited

Definition at line 823 of file ManagedMonitorToolBase.h.

◆ m_endOfLowStat

bool ManagedMonitorToolBase::m_endOfLowStat
privateinherited

Definition at line 823 of file ManagedMonitorToolBase.h.

◆ m_endOfLumiBlock

bool ManagedMonitorToolBase::m_endOfLumiBlock
privateinherited

Definition at line 823 of file ManagedMonitorToolBase.h.

◆ m_endOfRun

bool ManagedMonitorToolBase::m_endOfRun
privateinherited

Definition at line 823 of file ManagedMonitorToolBase.h.

◆ m_environment

AthenaMonManager::Environment_t ManagedMonitorToolBase::m_environment
protectedinherited

Definition at line 839 of file ManagedMonitorToolBase.h.

◆ m_environmentStr

std::string ManagedMonitorToolBase::m_environmentStr
protectedinherited

Definition at line 835 of file ManagedMonitorToolBase.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_f_ADCmax

float TileDigitsMonTool::m_f_ADCmax {}
private

Definition at line 173 of file TileDigitsMonTool.h.

173{};

◆ m_fileKey

std::string ManagedMonitorToolBase::m_fileKey
protectedinherited

Definition at line 833 of file ManagedMonitorToolBase.h.

◆ m_fillPedestalDifference

bool TileDigitsMonTool::m_fillPedestalDifference {}
private

Definition at line 166 of file TileDigitsMonTool.h.

166{};

◆ m_fragIDsDemonstrators

std::vector<int> TilePaterMonTool::m_fragIDsDemonstrators
protectedinherited

Definition at line 208 of file TilePaterMonTool.h.

◆ m_fragIDsToIgnoreDMUerrors

std::vector<int> TilePaterMonTool::m_fragIDsToIgnoreDMUerrors
protectedinherited

Definition at line 207 of file TilePaterMonTool.h.

◆ m_haveClearedLastEventBlock

bool ManagedMonitorToolBase::m_haveClearedLastEventBlock
protectedinherited

Definition at line 866 of file ManagedMonitorToolBase.h.

◆ m_i_ADCmax

int TileDigitsMonTool::m_i_ADCmax {}
private

Definition at line 172 of file TileDigitsMonTool.h.

172{};

◆ m_infoName

std::string TileDigitsMonTool::m_infoName
private

Definition at line 170 of file TileDigitsMonTool.h.

◆ m_is12bit

bool TileDigitsMonTool::m_is12bit {}
private

Definition at line 176 of file TileDigitsMonTool.h.

176{};

◆ m_lastHigStatInterval

int ManagedMonitorToolBase::m_lastHigStatInterval
protectedinherited

Definition at line 861 of file ManagedMonitorToolBase.h.

◆ m_lastLowStatInterval

int ManagedMonitorToolBase::m_lastLowStatInterval
protectedinherited

Definition at line 861 of file ManagedMonitorToolBase.h.

◆ m_lastLumiBlock

unsigned int ManagedMonitorToolBase::m_lastLumiBlock
protectedinherited

Definition at line 859 of file ManagedMonitorToolBase.h.

◆ m_lastMedStatInterval

int ManagedMonitorToolBase::m_lastMedStatInterval
protectedinherited

Definition at line 861 of file ManagedMonitorToolBase.h.

◆ m_lastRun

unsigned int ManagedMonitorToolBase::m_lastRun
protectedinherited

Definition at line 860 of file ManagedMonitorToolBase.h.

◆ m_LBcellName

std::string TilePaterMonTool::m_LBcellName[48]
protectedinherited
Initial value:
= { "D0", "A1", "B1", "B1", "A1", "A2", "B2", "B2", "A2", "A3", "A3", "B3"
, "B3", "D1", "D1", "A4", "B4", "B4", "A4", "A5", "A5", "B5", "B5", "A6"
, "D2", "D2", "A6", "B6", "B6", "A7", "", "", "A7", "B7", "B7", "A8"
, "A9", "A9", "A8", "B8", "B8", "D3", "B9", "", "D3", "A10", "A10", "B9" }

Definition at line 215 of file TilePaterMonTool.h.

215 { "D0", "A1", "B1", "B1", "A1", "A2", "B2", "B2", "A2", "A3", "A3", "B3"
216 , "B3", "D1", "D1", "A4", "B4", "B4", "A4", "A5", "A5", "B5", "B5", "A6"
217 , "D2", "D2", "A6", "B6", "B6", "A7", "", "", "A7", "B7", "B7", "A8"
218 , "A9", "A9", "A8", "B8", "B8", "D3", "B9", "", "D3", "A10", "A10", "B9" };

◆ m_lbDurationDataKey

SG::ReadCondHandleKey<LBDurationCondData> ManagedMonitorToolBase::m_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
privateinherited

Definition at line 888 of file ManagedMonitorToolBase.h.

889{this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"};

◆ m_lumiDataKey

SG::ReadCondHandleKey<LuminosityCondData> ManagedMonitorToolBase::m_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
privateinherited

Definition at line 886 of file ManagedMonitorToolBase.h.

887{this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"};

◆ m_manager

AthenaMonManager* ManagedMonitorToolBase::m_manager
protectedinherited

Definition at line 829 of file ManagedMonitorToolBase.h.

◆ m_managerNameProp

std::string ManagedMonitorToolBase::m_managerNameProp
protectedinherited

Definition at line 831 of file ManagedMonitorToolBase.h.

◆ m_metadataMap

MDMap_t ManagedMonitorToolBase::m_metadataMap
protectedinherited

Definition at line 827 of file ManagedMonitorToolBase.h.

◆ m_NCont

const int TileDigitsMonTool::m_NCont = 10
staticprivate

Definition at line 76 of file TileDigitsMonTool.h.

◆ m_nEvents

unsigned int ManagedMonitorToolBase::m_nEvents
protectedinherited

Definition at line 863 of file ManagedMonitorToolBase.h.

◆ m_nEventsIgnoreTrigger

unsigned int ManagedMonitorToolBase::m_nEventsIgnoreTrigger
protectedinherited

Definition at line 864 of file ManagedMonitorToolBase.h.

◆ m_nEventsTileMon

int TileDigitsMonTool::m_nEventsTileMon {}
private

Definition at line 125 of file TileDigitsMonTool.h.

125{};

◆ m_newEventsBlock

bool ManagedMonitorToolBase::m_newEventsBlock
privateinherited

Definition at line 822 of file ManagedMonitorToolBase.h.

◆ m_newHigStatInterval

bool ManagedMonitorToolBase::m_newHigStatInterval
privateinherited

Definition at line 820 of file ManagedMonitorToolBase.h.

◆ m_newLowStat

bool ManagedMonitorToolBase::m_newLowStat
privateinherited

Definition at line 821 of file ManagedMonitorToolBase.h.

◆ m_newLowStatInterval

bool ManagedMonitorToolBase::m_newLowStatInterval
privateinherited

Definition at line 820 of file ManagedMonitorToolBase.h.

◆ m_newLumiBlock

bool ManagedMonitorToolBase::m_newLumiBlock
privateinherited

Definition at line 821 of file ManagedMonitorToolBase.h.

◆ m_newMedStatInterval

bool ManagedMonitorToolBase::m_newMedStatInterval
privateinherited

Definition at line 820 of file ManagedMonitorToolBase.h.

◆ m_newRun

bool ManagedMonitorToolBase::m_newRun
privateinherited

Definition at line 821 of file ManagedMonitorToolBase.h.

◆ m_nLumiBlocks

unsigned int ManagedMonitorToolBase::m_nLumiBlocks
protectedinherited

Definition at line 865 of file ManagedMonitorToolBase.h.

◆ m_nSamples

int TileDigitsMonTool::m_nSamples {}
private

Definition at line 126 of file TileDigitsMonTool.h.

126{};

◆ m_path

std::string ManagedMonitorToolBase::m_path
protectedinherited

Definition at line 852 of file ManagedMonitorToolBase.h.

◆ m_preScaleProp

long ManagedMonitorToolBase::m_preScaleProp
protectedinherited

Definition at line 853 of file ManagedMonitorToolBase.h.

◆ m_procNEventsProp

long ManagedMonitorToolBase::m_procNEventsProp
protectedinherited

Definition at line 851 of file ManagedMonitorToolBase.h.

◆ m_runType

int TileDigitsMonTool::m_runType {}
private

Definition at line 106 of file TileDigitsMonTool.h.

106{};

◆ m_saturationLimitHG

int TileDigitsMonTool::m_saturationLimitHG {}
private

Definition at line 180 of file TileDigitsMonTool.h.

180{};

◆ m_savePng

bool TilePaterMonTool::m_savePng {}
protectedinherited

Definition at line 203 of file TilePaterMonTool.h.

203{};

◆ m_savePs

bool TilePaterMonTool::m_savePs {}
protectedinherited

Definition at line 204 of file TilePaterMonTool.h.

204{};

◆ m_saveSvg

bool TilePaterMonTool::m_saveSvg {}
protectedinherited

Definition at line 205 of file TilePaterMonTool.h.

205{};

◆ m_shiftnbins

int TileDigitsMonTool::m_shiftnbins {}
private

Definition at line 177 of file TileDigitsMonTool.h.

177{};

◆ m_streamNameFcn

StreamNameFcn* ManagedMonitorToolBase::m_streamNameFcn
protectedinherited

Definition at line 841 of file ManagedMonitorToolBase.h.

◆ m_supportedIntervalsForRebooking

std::set<Interval_t> ManagedMonitorToolBase::m_supportedIntervalsForRebooking
privateinherited

Definition at line 896 of file ManagedMonitorToolBase.h.

◆ m_templateEfficiencies

std::map< Interval_t, std::vector< MgmtParams<TEfficiency> > > ManagedMonitorToolBase::m_templateEfficiencies
protectedinherited

Definition at line 676 of file ManagedMonitorToolBase.h.

◆ m_templateGraphs

std::map< Interval_t, std::vector< MgmtParams<TGraph> > > ManagedMonitorToolBase::m_templateGraphs
protectedinherited

Definition at line 668 of file ManagedMonitorToolBase.h.

◆ m_templateHistograms

std::map< Interval_t, std::vector< MgmtParams<TH1> > > ManagedMonitorToolBase::m_templateHistograms
protectedinherited

Definition at line 664 of file ManagedMonitorToolBase.h.

◆ m_templateTrees

std::map< Interval_t, std::vector< MgmtParams<TTree> > > ManagedMonitorToolBase::m_templateTrees
protectedinherited

Definition at line 672 of file ManagedMonitorToolBase.h.

◆ m_THistSvc

ServiceHandle<ITHistSvc> ManagedMonitorToolBase::m_THistSvc
protectedinherited

Definition at line 843 of file ManagedMonitorToolBase.h.

◆ m_tileHWID

const TileHWID* TilePaterMonTool::m_tileHWID {}
protectedinherited

Definition at line 199 of file TilePaterMonTool.h.

199{};

◆ m_tileID

const TileID* TilePaterMonTool::m_tileID {}
protectedinherited

Definition at line 198 of file TilePaterMonTool.h.

198{};

◆ m_tileInfo

const TileInfo* TileDigitsMonTool::m_tileInfo {}
private

Definition at line 171 of file TileDigitsMonTool.h.

171{};

◆ m_tileTBID

const TileTBID* TilePaterMonTool::m_tileTBID {}
protectedinherited

Definition at line 200 of file TilePaterMonTool.h.

200{};

◆ m_tileToolNoiseSample

ToolHandle<TileCondToolNoiseSample> TileDigitsMonTool::m_tileToolNoiseSample
private

tool which provided noise values

Definition at line 120 of file TileDigitsMonTool.h.

◆ m_TMDB_EB_cell_names

std::string TilePaterMonTool::m_TMDB_EB_cell_names[4] = {"D5L", "D5R", "D6L", "D6R"}
protectedinherited

Definition at line 228 of file TilePaterMonTool.h.

228{"D5L", "D5R", "D6L", "D6R"};

◆ m_TMDB_LB_cell_names

std::string TilePaterMonTool::m_TMDB_LB_cell_names[8] = {"D0", "D1L", "D1R", "D2R", "D2L", "D3L", "D3R", ""}
protectedinherited

Definition at line 227 of file TilePaterMonTool.h.

227{"D0", "D1L", "D1R", "D2R", "D2L", "D3L", "D3R", ""}; // should be corrected at some time

◆ m_trigDecTool

PublicToolHandle<Trig::ITrigDecisionTool> ManagedMonitorToolBase::m_trigDecTool {this, "TrigDecisionTool",""}
protectedinherited

Definition at line 845 of file ManagedMonitorToolBase.h.

845{this, "TrigDecisionTool",""};

◆ m_triggerChainProp

std::string ManagedMonitorToolBase::m_triggerChainProp
protectedinherited

Definition at line 854 of file ManagedMonitorToolBase.h.

◆ m_triggerGroupProp

std::string ManagedMonitorToolBase::m_triggerGroupProp
protectedinherited

Definition at line 855 of file ManagedMonitorToolBase.h.

◆ m_trigLiveFractionDataKey

SG::ReadCondHandleKey<TrigLiveFractionCondData> ManagedMonitorToolBase::m_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData","SG Key of TrigLiveFractionCondData object"}
privateinherited

Definition at line 890 of file ManagedMonitorToolBase.h.

891{this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData","SG Key of TrigLiveFractionCondData object"};

◆ m_trigTranslator

PublicToolHandle<ITriggerTranslatorTool> ManagedMonitorToolBase::m_trigTranslator {this,"TriggerTranslatorTool",""}
protectedinherited

Definition at line 847 of file ManagedMonitorToolBase.h.

847{this,"TriggerTranslatorTool",""};

◆ m_useLumi

bool ManagedMonitorToolBase::m_useLumi
privateinherited

Definition at line 894 of file ManagedMonitorToolBase.h.

◆ m_useTrigger

bool ManagedMonitorToolBase::m_useTrigger
protectedinherited

Definition at line 857 of file ManagedMonitorToolBase.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

std::vector<std::string> ManagedMonitorToolBase::m_vTrigChainNames
protectedinherited

Definition at line 680 of file ManagedMonitorToolBase.h.

◆ m_vTrigGroupNames

std::vector<std::string> ManagedMonitorToolBase::m_vTrigGroupNames
protectedinherited

Definition at line 680 of file ManagedMonitorToolBase.h.

◆ m_zeroLimitHG

int TileDigitsMonTool::m_zeroLimitHG {}
private

Definition at line 179 of file TileDigitsMonTool.h.

179{};

The documentation for this class was generated from the following files: