ATLAS Offline Software
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
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. More...
 
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 ). More...
 
virtual StatusCode finalHists () override
 Calls procHists( true, true, true ). More...
 
virtual StatusCode checkHists (bool fromFinalize) override
 This implementation does nothing; equivalent functionality may be provided by procHists(...) with appropriate arguments. More...
 
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 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. More...
 
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. More...
 
virtual StatusCode regHist (LWHist *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Support for lightweight histograms: More...
 
virtual StatusCode regHist (LWHist *h, const MonGroup &group)
 
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. More...
 
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. More...
 
virtual StreamNameFcnstreamNameFunction ()
 Returns the function object that converts logical paramters into a physical stream name. More...
 
virtual StatusCode convertLWHists ()
 Deal with the LW histograms. More...
 
virtual StatusCode bookHistograms ()
 An inheriting class should either override this function or bookHists(). More...
 
virtual StatusCode bookHistogramsRecurrent ()
 An inheriting class should either override this function, bookHists() or bookHistograms(). More...
 
virtual StatusCode fillHistograms ()
 An inheriting class should either override this function or fillHists(). More...
 
virtual StatusCode procHistograms ()
 An inheriting class should either override this function or finalHists(). More...
 
virtual void setMonManager (AthenaMonManager *manager)
 Takes a pointer to a managing object to get information from it when needed. More...
 
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. More...
 
virtual StatusCode getHist (TH1 *&h, const std::string &hName, const MonGroup &group)
 Returns a TH1 via the pointer passed as the first argument. More...
 
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. More...
 
virtual StatusCode getHist (TH2 *&h, const std::string &hName, const MonGroup &group)
 Returns a TH2 via the pointer passed as the first argument. More...
 
virtual StatusCode getHist (LWHist *&h, const std::string &hName, const std::string &system, Interval_t interval)
 
virtual StatusCode getHist (LWHist *&h, const std::string &hName, const MonGroup &group)
 
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. More...
 
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. More...
 
virtual StatusCode regTree (TTree *t, const MonGroup &group)
 Registers a TTree to be included in the output stream using logical parameters that describe it. More...
 
virtual StatusCode deregHist (LWHist *h)
 
virtual StatusCode deregHist (TH1 *h)
 De-registers a TH1 from the THistSvc, but does NOT delete the object. More...
 
virtual StatusCode writeAndDelete (TH1 *h, const MonGroup &group)
 Write out histogram and delete it. More...
 
virtual StatusCode deregGraph (TGraph *g)
 De-registers a TGraph from the THistSvc, but does NOT delete the object. More...
 
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. More...
 
virtual StatusCode deregObject (const std::string &objName, const MonGroup &group)
 De-registers a TObject from the THistSvc, but does NOT delete the object. More...
 
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. More...
 
virtual StatusCode runStat ()
 This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ). More...
 
virtual bool preSelector ()
 
virtual float lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average mu, i.e. More...
 
virtual float lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Instantaneous number of interactions, i.e. More...
 
virtual float lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1) More...
 
virtual float lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Instantaneous luminosity. More...
 
virtual double lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Luminosity block time (in seconds) More...
 
virtual float lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average luminosity livefraction. More...
 
virtual float livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Livefraction per bunch crossing ID. More...
 
virtual double lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average Integrated Luminosity Live Fraction. More...
 
 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. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) 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. More...
 
static Interval_t intervalStringToEnum (const std::string &str)
 Converts a string to the corresponding Interval_t. More...
 
static const InterfaceID & interfaceID ()
 
static const InterfaceID & interfaceID ()
 

Protected Types

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

Protected Member Functions

TH1Dbook1D (const std::string &nam, const std::string &tit, int nx, double xmin, double xmax)
 Implicit version of book1D. More...
 
TH1Dbook1D (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH2Dbook2D (const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax)
 Implicit version of book2D. More...
 
TH2Dbook2D (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH1Fbook1F (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH1Ibook1I (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH1Sbook1S (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH1Sbook1Sx (std::string dir, std::string nam, std::string tit, int nx, const Double_t *xlgbins, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH1Cbook1C (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH2Fbook2F (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH2Fbook2F (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, int ny, const double *ybins, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH2Ibook2I (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH2Sbook2S (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TH2Cbook2C (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TProfilebookProfile (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TProfilebookProfile (std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TProfilebookProfile (std::string dir, std::string nam, std::string tit, int nx, const float *xbins, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
 
TProfile2DbookProfile2D (std::string dir, std::string nam, 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, std::string trigChain="", 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)
 
TMultiGraph * bookMultiGraph (const std::string &dir, const std::string &nam, const std::string &tit)
 
TH1I_LWbook1ILW (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, std::string trigChain="", std::string mergeAlgo="")
 
TH2I_LWbook2ILW (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, std::string trigChain="", std::string mergeAlgo="")
 
TProfile_LWbookProfileLW (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, std::string trigChain="", std::string mergeAlgo="")
 
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. More...
 
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. More...
 
virtual StatusCode regHist (LWHist *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Support for lightweight histograms: More...
 
virtual StatusCode regHist (LWHist *h, const MonGroup &group)
 
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. More...
 
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. More...
 
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 regManagedLWHistograms (std::vector< MgmtParams< LWHist > > &templateLWHistograms)
 
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. More...
 
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. More...
 
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 More...
 
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. More...
 

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< LWHist > > > m_templateLWHistograms
 
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
 
std::set< LWHist * > m_lwhists
 
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. More...
 
int stuckBits_Amp (TH1S *hist, int adc)
 A crude method to check Read-Out ADC channel stuckbits. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

bool m_bookAll {}
 
bool m_book2D {}
 
int m_runType {}
 
std::string m_contNameDSP
 
ToolHandle< TileCondToolNoiseSamplem_tileToolNoiseSample
 tool which provided noise values More...
 
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) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
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 888 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 114 of file ManagedMonitorToolBase.h.

114  { file = 0, eventsBlock, lumiBlock,
116  run, fill, all };

◆ 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 131 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 65 of file TilePaterMonTool.h.

65 {ALL_OK=0, CRC_ERR=1, ALL_FF=0x10, ALL_00=0x20, NO_FRAG=0x40, NO_ROB=0x80};

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.

53  , m_tileToolNoiseSample("TileCondToolNoiseSample")
54  , m_cispar(0)
55  , m_nEventsTileMon(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 }

◆ ~TileDigitsMonTool()

TileDigitsMonTool::~TileDigitsMonTool ( )
virtual

Definition at line 86 of file TileDigitsMonTool.cxx.

88 {
89 }

Member Function Documentation

◆ book1C()

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

Definition at line 186 of file TilePaterMonTool.cxx.

190 {
191 
192  TH1C* hist = new TH1C(TString(nam), TString(tit), nx, xmin, xmax);
193  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
194  return hist;
195 }

◆ book1D() [1/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 69 of file TilePaterMonTool.h.

71  {
72  return book1D(m_path, nam, tit, nx, xmin, xmax);
73  }

◆ book1D() [2/2]

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

Definition at line 164 of file TilePaterMonTool.cxx.

168 {
169 
170  TH1D* hist = new TH1D(TString(nam), TString(tit), nx, xmin, xmax);
171  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
172  return hist;
173 }

◆ book1F()

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

Definition at line 175 of file TilePaterMonTool.cxx.

179 {
180 
181  TH1F* hist = new TH1F(TString(nam), TString(tit), nx, xmin, xmax);
182  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
183  return hist;
184 }

◆ book1I()

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

Definition at line 219 of file TilePaterMonTool.cxx.

223 {
224 
225  TH1I* hist = new TH1I(TString(nam), TString(tit), nx, xmin, xmax);
226  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
227  return hist;
228 }

◆ book1ILW()

TH1I_LW * TilePaterMonTool::book1ILW ( 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,
std::string  trigChain = "",
std::string  mergeAlgo = "" 
)
protectedinherited

Definition at line 346 of file TilePaterMonTool.cxx.

350 {
351  TH1I_LW* hist = TH1I_LW::create(TString(nam), TString(tit), nx, xmin, xmax);
352  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
353  return hist;
354 }

◆ book1S()

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

Definition at line 197 of file TilePaterMonTool.cxx.

201 {
202 
203  TH1S* hist = new TH1S(TString(nam), TString(tit), nx, xmin, xmax);
204  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
205  return hist;
206 }

◆ book1Sx()

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

Definition at line 208 of file TilePaterMonTool.cxx.

212 {
213 
214  TH1S* hist = new TH1S(TString(nam), TString(tit), nx, xlgbins);
215  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
216  return hist;
217 }

◆ book2C()

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

Definition at line 290 of file TilePaterMonTool.cxx.

295 {
296  TH2C* hist = new TH2C(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
297  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
298  return hist;
299 }

◆ book2D() [1/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 76 of file TilePaterMonTool.h.

79  {
80  return book2D(m_path, nam, tit, nx, xmin, xmax, ny, ymin, ymax);
81  }

◆ book2D() [2/2]

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

Definition at line 233 of file TilePaterMonTool.cxx.

238 {
239  TH2D* hist = new TH2D(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
240  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
241  return hist;
242 }

◆ book2F() [1/2]

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

Definition at line 255 of file TilePaterMonTool.cxx.

260 {
261  TH2F* hist = new TH2F(TString(nam), TString(tit), nx, xmin, xmax, ny, ybins);
262  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
263  return hist;
264 }

◆ book2F() [2/2]

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

Definition at line 244 of file TilePaterMonTool.cxx.

249 {
250  TH2F* hist = new TH2F(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
251  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
252  return hist;
253 }

◆ book2I()

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

Definition at line 267 of file TilePaterMonTool.cxx.

272 {
273  TH2I* hist = new TH2I(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
274  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
275  return hist;
276 }

◆ book2ILW()

TH2I_LW * TilePaterMonTool::book2ILW ( 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,
std::string  trigChain = "",
std::string  mergeAlgo = "" 
)
protectedinherited

Definition at line 356 of file TilePaterMonTool.cxx.

361 {
362  TH2I_LW* hist = TH2I_LW::create(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
363  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
364  return hist;
365 }

◆ book2S()

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

Definition at line 279 of file TilePaterMonTool.cxx.

284 {
285  TH2S *hist = new TH2S(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
286  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
287  return hist;
288 }

◆ 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 428 of file TilePaterMonTool.cxx.

428  {
429 
430  TGraph1 *hist = new TGraph1(N, X, Y);
431  hist->SetName(TString(nam));
432  hist->SetTitle(TString(tit));
433 
434  regGraph(subdir, hist);
435 
436  return (TGraph*) hist;
437 }

◆ 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 515 of file TilePaterMonTool.cxx.

518 {
519 
520  TGraphAsymmErrors *hist = new TGraphAsymmErrors(N, X, Y, X_errors1, X_errors2, Y_errors1, Y_errors2);
521  hist->SetName(TString(nam));
522  hist->SetTitle(TString(tit));
523 
524  regGraph(subdir, hist);
525  return (TGraphAsymmErrors*) hist;
526 }

◆ 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 458 of file TilePaterMonTool.cxx.

458  {
459 
460  TGraphErrors *hist = new TGraphErrors(N, X, Y, X_errors, Y_errors);
461  hist->SetName(TString(nam));
462  hist->SetTitle(TString(tit));
463 
464  regGraph(subdir, hist);
465  return (TGraphErrors *) hist;
466 }

◆ bookHistograms()

StatusCode ManagedMonitorToolBase::bookHistograms ( )
virtualinherited

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

Reimplemented in SCTHitEffMonTool, SCTHitsNoiseMonTool, SCTErrMonTool, SCTTracksMonTool, SCTLorentzMonTool, photonMonTool, egammaMonToolBase, electronMonTool, MuonPhysValMonitoring::MuonPhysValMonitoringTool, LArCellMonTool, AFPHitsMonitorTool, MuonDQA::MuonEventInfoMonTool, DQTDataFlowMonTool, TileCalCellMonTool, ActsTrk::PhysValTool, PhysValSecVtx, LUCID_HitsMoniTool, ZeeTaPMonTool, forwardElectronMonTool, DQTNonCollBkg_ZDC, TRT_Electron_Monitoring_Tool, InDetGlobalTrackMonTool, CscCalibMonToolBase, JetTagMonitoring, InDetPhysValMonitoringTool, EgammaPhysValMonitoring::EgammaPhysValMonitoringTool, InDetGlobalSynchMonTool, MissingEtDQA::PhysValMET, CaloTowerVecMon, JetTagDQA::PhysValBTag, CscCalibMonToolSlope, METMonTool, DQTGlobalWZFinderTool, CSCSegmValAlg, PhysVal::PhysValExample, TopPhysVal::TopPhysValMonitoring, DataQualityFatherMonTool, CscCalibMonToolPed, ZeeValidation::ZeeValidationMonitoringTool, CaloClusterVecMon, CaloTransverseBalanceVecMon, DQTDetSynchMonTool, InDetTrackPerfMonTool, IDPerfMonWenu, IDPerfMonZee, TrackCaloClusterRecValidationTool, DQTMuonIDTrackTool, InDetGlobalPixelTool, JetMonitoringTool, TileCellNoiseMonTool, CscClusterValAlg, PhysValTau, PhysValFE, AFPTechnicalMonitorTool, ManagedMonitorToolTest, DiMuMon, InDetVertexMonitoring, CscPrdValAlg, CscRdoValAlg, HIMonitoringEventShapeTool, IDPerfMonKshort, HIMonitoringZdcTool, HIMonitoringElectronsTool, HIMonitoringPhotonsTool, PhysValCluster, and HIMonitoringMuonsTool.

Definition at line 1406 of file ManagedMonitorToolBase.cxx.

1408 {
1409 
1410  return StatusCode::SUCCESS;
1411 }

◆ bookHistogramsRecurrent()

StatusCode ManagedMonitorToolBase::bookHistogramsRecurrent ( )
virtualinherited

◆ 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 }

◆ 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 }

◆ bookMultiGraph()

TMultiGraph * TilePaterMonTool::bookMultiGraph ( const std::string &  dir,
const std::string &  nam,
const std::string &  tit 
)
protectedinherited

Definition at line 547 of file TilePaterMonTool.cxx.

547  {
548 
549  TMultiGraph1* hist = new TMultiGraph1();
550  hist->SetName(TString(nam));
551  hist->SetTitle(TString(tit));
552 
553  regGraph(subdir, (TGraph*) hist);
554  return (TMultiGraph*) hist;
555 }

◆ bookProfile() [1/3]

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

Definition at line 322 of file TilePaterMonTool.cxx.

326 {
327  TProfile* hist = new TProfile(TString(nam), TString(tit), nx, xbins);
328  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
329  return hist;
330 }

◆ bookProfile() [2/3]

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

Definition at line 311 of file TilePaterMonTool.cxx.

316 {
317  TProfile* hist = new TProfile(TString(nam), TString(tit), nx, xmin, xmax, ymin, ymax);
318  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
319  return hist;
320 }

◆ bookProfile() [3/3]

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

Definition at line 301 of file TilePaterMonTool.cxx.

305 {
306  TProfile* hist = new TProfile(TString(nam), TString(tit), nx, xmin, xmax);
307  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
308  return hist;
309 }

◆ bookProfile2D()

TProfile2D * TilePaterMonTool::bookProfile2D ( std::string  dir,
std::string  nam,
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,
std::string  trigChain = "",
std::string  mergeAlgo = "" 
)
protectedinherited

Definition at line 332 of file TilePaterMonTool.cxx.

338 {
339 
340  TProfile2D* hist = new TProfile2D(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax, zmin, zmax);
341  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
342  return hist;
343 }

◆ bookProfileLW()

TProfile_LW * TilePaterMonTool::bookProfileLW ( 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,
std::string  trigChain = "",
std::string  mergeAlgo = "" 
)
protectedinherited

Definition at line 368 of file TilePaterMonTool.cxx.

373 {
374  TProfile_LW* hist = TProfile_LW::create(TString(nam), TString(tit), nx, xmin, xmax, ymin, ymax);
375  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
376  return hist;
377 }

◆ 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 935 of file TileDigitsMonTool.cxx.

937 {
938 
939  ATH_MSG_INFO("in checkHists()");
940 
941  return StatusCode::SUCCESS;
942 }

◆ convertLWHists()

StatusCode ManagedMonitorToolBase::convertLWHists ( )
virtualinherited

Deal with the LW histograms.

Implements IMonitorToolBase.

Definition at line 1377 of file ManagedMonitorToolBase.cxx.

1379 {
1380  // note that managed histograms will be converted by regMonitoredLWHistograms
1381  // hence they are not in m_lwhists
1382  if (m_manager) {
1384  for (;it!=itE;++it)
1386  m_lwhists.clear();
1387  }
1388  return StatusCode::SUCCESS;
1389 
1390 }

◆ 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 1609 of file TileDigitsMonTool.cxx.

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

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ define_palette()

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

Definition at line 945 of file TileDigitsMonTool.cxx.

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

◆ deregGraph()

StatusCode ManagedMonitorToolBase::deregGraph ( TGraph *  g)
virtualinherited

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

Definition at line 1843 of file ManagedMonitorToolBase.cxx.

1845 {
1846  return m_THistSvc->deReg( g );
1847 }

◆ deregHist() [1/2]

StatusCode ManagedMonitorToolBase::deregHist ( LWHist h)
virtualinherited

Definition at line 1826 of file ManagedMonitorToolBase.cxx.

1827 {
1829  if (it==m_lwhists.end())
1830  return StatusCode::FAILURE;
1832  m_lwhists.erase(it);
1833  if (h->usingROOTBackend()) {
1834  h->setOwnsROOTHisto(true);
1835  return m_THistSvc->deReg( h->getROOTHistBase() );
1836  }
1837 
1838  return StatusCode::SUCCESS;
1839 }

◆ deregHist() [2/2]

StatusCode ManagedMonitorToolBase::deregHist ( TH1 h)
virtualinherited

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

Definition at line 1819 of file ManagedMonitorToolBase.cxx.

1821 {
1822  return m_THistSvc->deReg( h );
1823 }

◆ 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 1861 of file ManagedMonitorToolBase.cxx.

1863 {
1864  std::string streamName = streamNameFunction()->getStreamName( this, group, objName );
1866  for (;it!=itE;++it) {
1867  LWHist * hlw = *it;
1868  if (LWHistAthMonWrapper::key(hlw)==objName) {
1869  m_lwhists.erase(it);
1870  if (hlw->usingROOTBackend()) {
1871  hlw->setOwnsROOTHisto(true);
1872  return m_THistSvc->deReg( hlw->getROOTHistBase() );
1873  }
1874  return StatusCode::SUCCESS;
1875  }
1876  }
1877  return m_THistSvc->deReg( streamName );
1878 }

◆ 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 1851 of file ManagedMonitorToolBase.cxx.

1854 {
1855  MonGroup group( this, system, interval );
1856  return deregObject( objName, group );
1857 }

◆ 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.

95 { return m_detStore; }

◆ 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 1738 of file TileDigitsMonTool.cxx.

1740 {
1741  bool err = false;
1742 
1743  if (DMUheaderFormatCheck((*headerVec)[dmu])) {
1744  m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 1., 1.);
1745  err = true;
1746  return err;
1747  }
1748  if (DMUheaderParityCheck((*headerVec)[dmu])) {
1749  m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 2., 1.);
1750  err = true;
1751  return err;
1752  }
1753  if (((*headerVec)[dmu] >> 25) & 0x1) {
1754  //Memory Parity Error
1755  m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 3., 1.);
1756  err = true;
1757  }
1758  if (((*headerVec)[dmu] >> 24) & 0x1) {
1759  //Single Strobe Error
1760  m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 4., 1.);
1761  err = true;
1762  }
1763  if (((*headerVec)[dmu] >> 23) & 0x1) {
1764  //Double Strobe Error
1765  m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 5., 1.);
1766  err = true;
1767  }
1768 
1769  if (!err) m_data->m_hist2[ros][drawer][gain][0]->Fill(dmu + 0.5, 0., 1.);
1770 
1771  int fragId = m_tileHWID->frag(ros, drawer);
1772  if (std::binary_search(m_fragIDsToIgnoreDMUerrors.begin(), m_fragIDsToIgnoreDMUerrors.end(), fragId)) {
1773  err = false;
1774  }
1775 
1776  return err;
1777 }

◆ 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 975 of file TileDigitsMonTool.cxx.

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

◆ endOfEventsBlockFlag()

bool ManagedMonitorToolBase::endOfEventsBlockFlag ( ) const
inlineprotectedinherited

Definition at line 856 of file ManagedMonitorToolBase.h.

856 { return m_endOfEventsBlock; }

◆ endOfLowStatFlag()

bool ManagedMonitorToolBase::endOfLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 857 of file ManagedMonitorToolBase.h.

857 { return m_endOfLowStat; }

◆ endOfLumiBlockFlag()

bool ManagedMonitorToolBase::endOfLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 858 of file ManagedMonitorToolBase.h.

858 { return m_endOfLumiBlock; }

◆ endOfRunFlag()

bool ManagedMonitorToolBase::endOfRunFlag ( ) const
inlineprotectedinherited

Definition at line 859 of file ManagedMonitorToolBase.h.

859 { return m_endOfRun; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ 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()

StatusCode ManagedMonitorToolBase::fillHistograms ( )
virtualinherited

An inheriting class should either override this function or fillHists().

Reimplemented in SCTHitEffMonTool, SCTHitsNoiseMonTool, SCTErrMonTool, SCTTracksMonTool, SCTLorentzMonTool, photonMonTool, egammaMonToolBase, electronMonTool, MuonPhysValMonitoring::MuonPhysValMonitoringTool, AFPHitsMonitorTool, LArCellMonTool, InDetGlobalBCMTool, MuonDQA::MuonEventInfoMonTool, DQTDataFlowMonTool, TileCalCellMonTool, ActsTrk::PhysValTool, PhysValSecVtx, LUCID_HitsMoniTool, ZeeTaPMonTool, forwardElectronMonTool, RpcLv1RawDataEfficiency, LVL1::CalorimeterL1CaloMon, LVL1::L1CaloCTPMon, LVL1::L1CaloLevel2Mon, LVL1::L1CaloPMTScoresMon, MdtRawDataValAlg, DQTNonCollBkg_ZDC, InDetGlobalTrackMonTool, TRT_Electron_Monitoring_Tool, CscCalibMonToolBase, InDetGlobalHitsMonTool, JetTagMonitoring, InDetPhysValMonitoringTool, EgammaPhysValMonitoring::EgammaPhysValMonitoringTool, TRT_Monitoring_Tool, InDetGlobalSynchMonTool, MissingEtDQA::PhysValMET, METMonTool, CaloTowerVecMon, LVL1::L1CaloL1TopoMon, JetTagDQA::PhysValBTag, DQTGlobalWZFinderTool, InDetGlobalTopBottomMonTool, CSCSegmValAlg, InDetGlobalNoiseOccupancyMonTool, PhysVal::PhysValExample, TopPhysVal::TopPhysValMonitoring, DataQualityFatherMonTool, ZeeValidation::ZeeValidationMonitoringTool, CaloClusterVecMon, RpcLv1RawDataValAlg, CaloTransverseBalanceVecMon, DQTDetSynchMonTool, RpcLv1RawDataSectorLogic, InDetTrackPerfMonTool, DQTMuonIDTrackTool, InDetGlobalBeamSpotMonTool, InDetGlobalPixelTool, IDPerfMonWenu, IDPerfMonZee, TrackCaloClusterRecValidationTool, MdtVsTgcRawDataValAlg, MdtVsRpcRawDataValAlg, CscClusterValAlg, JetMonitoringTool, TileCellNoiseMonTool, InDetGlobalErrorMonTool, PhysValTau, AFPTechnicalMonitorTool, PhysValFE, ManagedMonitorToolTest, DiMuMon, InDetGlobalPrimaryVertexMonTool, InDetVertexMonitoring, CscPrdValAlg, CscRdoValAlg, HIMonitoringEventShapeTool, IDPerfMonKshort, HIMonitoringZdcTool, HIMonitoringElectronsTool, HIMonitoringPhotonsTool, PhysValCluster, and HIMonitoringMuonsTool.

Definition at line 1414 of file ManagedMonitorToolBase.cxx.

1416 {
1417  return StatusCode::SUCCESS;
1418 }

◆ 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();
381  float bin = 99.;
382  if (status & (TileFragStatus::ALL_FF | TileFragStatus::ALL_00)) {
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  double mean_tmp[48][2][16];
440  memset(mean_tmp, 0, sizeof(mean_tmp));
441 
442  // Below, the charge conversion for 12 bit is just an approximation;
443  // 4095. can be changed later to gain precision if needed.
444  double charge = 0;
445  if (m_is12bit){ // if 12 bit ADCs
446  charge = m_cispar[6] * m_cispar[7] * (2. * 4.096 / 4095.);
447  }
448  else{
449  charge = m_cispar[6] * m_cispar[7] * (2. * 4.096 / 1023.);
450  }
451 
452  for (const TileDigits* tileDigits : *digitsCollection) {
453 
454  adc_id = tileDigits->adc_HWID();
455  int chan = m_tileHWID->channel(adc_id);
456  int gain = (m_bigain) ? m_tileHWID->adc(adc_id) : 0; // ignore gain in monogain run
457 
458  m_data->m_histC[ros][drawer][chan][gain][0]->Fill(m_nEventsTileMon % 32, 1.0);
459 
460  std::vector<float> vdigits = tileDigits->samples();
461 
462  double meansamp = 0.0;
463  double rmssamp = 0.0;
464  unsigned int dsize = vdigits.size();
465  if (dsize > 16) {
466  ATH_MSG_ERROR("length of digits vector " << dsize << " - greater than 16 !");
467  dsize = 16;
468  }
469  //std::cout << "m_runType= "<< m_runType << "\n";
470  for (unsigned int i = 0; i < dsize; ++i) {
471  double dig = vdigits[i];
472  meansamp += dig;
473  rmssamp += dig * dig;
474  mean_tmp[chan][gain][i] = dig;
475 
476  if (!m_data->m_corrup[ros][drawer][gain][chan / 3]) {
477  if (m_runType != CisRun) {
478  m_data->m_histP[ros][drawer][chan][gain][0]->Fill(i + 0.1, dig, 1.0);
479  m_data->m_hist1[ros][drawer][chan][gain][2]->Fill(dig, 1.0);
480  } 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
481  m_data->m_histP[ros][drawer][chan][gain][0]->Fill(i + 0.1, dig, 1.0);
482  m_data->m_hist1[ros][drawer][chan][gain][2]->Fill(dig, 1.0);
483  }
484 
485  if (gain == 1 && dig > m_ADCmaxMinusEps) // overflow in high gain, find charge is it
486  m_data->m_outInHighGain[0]->Fill(charge);
487  }
488  }
489 
490  if (dsize > 0 && !m_data->m_corrup[ros][drawer][gain][chan / 3]) {
491  double ped = vdigits[0];
492  m_data->m_hist1[ros][drawer][chan][gain][0]->Fill(ped, 1.0);
493  m_data->m_sumPed1[ros][drawer][chan][gain] += ped;
494  m_data->m_sumPed2[ros][drawer][chan][gain] += ped * ped;
495  //if ( (chan==23)&&(ros==1)&&(drawer==18)&&(gain==0)) {
496  //std::cout << "ped=" << ped << "\tm_sumPed1=" << m_data->m_sumPed1[ros][drawer][chan][gain] << "\n";
497  //std::cout << "ped^2=" << ped*ped << "\tm_sumPed2=" << m_data->m_sumPed2[ros][drawer][chan][gain] << "\n";
498  //}
499  if (dsize > 1) {
500  meansamp /= dsize;
501  rmssamp = rmssamp / dsize - meansamp * meansamp;
502  rmssamp = (rmssamp > 0.0) ? sqrt(rmssamp * dsize / (dsize - 1)) : 0.0;
503  m_data->m_hist1[ros][drawer][chan][gain][1]->Fill(rmssamp, 1.0);
504  m_data->m_sumRms1[ros][drawer][chan][gain] += rmssamp;
505  m_data->m_sumRms2[ros][drawer][chan][gain] += rmssamp * rmssamp;
506  }
507  }
508  } // digits
509 
510  //For cor&cov
511  for (int sample = 0; sample < m_nSamples; ++sample) {
512  for (int gain = 0; gain < 2; ++gain) {
513  for (int ch_i = 0; ch_i < 48; ++ch_i)
514  if (!m_data->m_corrup[ros][drawer][gain][ch_i / 3]) {
515  m_data->m_nEvents_i[ros][drawer][gain][ch_i]++;
516  m_data->m_meanAmp[ros][drawer][gain][ch_i] += mean_tmp[ch_i][gain][sample];
517  for (int ch_j = 0; ch_j < 48; ++ch_j)
518  if (!m_data->m_corrup[ros][drawer][gain][ch_j / 3]) {
519  m_data->m_nEvents_ij[ros][drawer][gain][ch_i][ch_j]++;
520  m_data->m_meanAmp_ij[ros][drawer][gain][ch_i][ch_j] += mean_tmp[ch_i][gain][sample] * mean_tmp[ch_j][gain][sample];
521  }
522  }
523  }
524  }
525 
526  // BCID
527  uint32_t bcid = digitsCollection->getRODBCID();
528 
529  for (int ch = 0; ch < headsize; ++ch) {
530  uint32_t bcid_ch = (headerVec[ch] & 0xFFF);
531  m_data->m_hist1[ros][drawer][ch][0][3]->Fill(bcid_ch, 1.0);
532  if ((bcid_ch == bcid) || (bcid_ch == bcid - 1)) // Conservative condition to be consistent with both run before Feb07 and
533  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.
534  else if ((bcid == 0) && ((bcid_ch == 3563) || (bcid_ch == 3564))) // if bcid==0 then bcid_ch should be 3563 (0xDEB)
535  m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(1.0, 1.0); // but sometimes 3564 (0xDEC) is observed.
536  // if (bcid_ch == bcid) // Now allow only exact bcid: ROD BCID = DMU BCID+1
537  // m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(1.0,1.0); // Apr 2013
538  // else if (bcid_ch == 0)
539  // m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(0.0,1.0);
540  // else
541  // m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(2.0,1.0);
542  }
543 
544  //DMUheaderCheck(&headerVec,headsize,ros,drawer,0);
545 
546  if ((m_bigain) && ((digitsCollection->getFragChipHeaderWordsHigh()).size() > 0)) {// LF we need to avoid that headsize is set to zero in monogain runs
547 
548  headerVec = digitsCollection->getFragChipHeaderWordsHigh();
549  headsize = headerVec.size();
550  if (headsize > 16) {
551  ATH_MSG_ERROR("length of BCIDhigh vector " << headsize << " - greater than 16 !");
552  headsize = 16;
553  }
554  }
555  // if monogain run with m_bigain==1, we fill the BCID plots we the same info
556  for (int ch = 0; ch < headsize; ++ch) {
557  uint32_t bcid_ch = (headerVec[ch] & 0xFFF);
558  m_data->m_hist1[ros][drawer][ch][1][3]->Fill(bcid_ch, 1.0);
559  if ((bcid_ch == bcid) || (bcid_ch == bcid - 1)) // BCID from TileDMU should match BCID from ROD header or
560  m_data->m_hist_DMUerr[ros][drawer][ch][1][0]->Fill(1.0, 1.0); // bcid-1 for runs after Feb07.
561  else if ((bcid == 0) && ((bcid_ch == 3563) || (bcid_ch == 3564))) // if bcid==0 then bcid_ch should be 3563 (0xDEB)
562  m_data->m_hist_DMUerr[ros][drawer][ch][1][0]->Fill(1.0, 1.0); // but sometimes 3564 (0xDEC) is observed.
563  // if (bcid_ch == bcid) // Now allow only exact bcid
564  // m_data->m_hist_DMUerr[ros][drawer][ch][0][0]->Fill(1.0,1.0); // Apr 2013
565  // else if (bcid_ch == 0)
566  // m_data->m_hist_DMUerr[ros][drawer][ch][1][0]->Fill(0.0,1.0);
567  // else
568  // m_data->m_hist_DMUerr[ros][drawer][ch][1][0]->Fill(2.0,1.0);
569  }
570 
571  //DMUheaderCheck(&headerVec,headsize,ros,drawer,1);
572 
573  if (dqStatus->calibMode() == 1) {
574  // global and DMU CRC check
575  uint32_t crc32 = digitsCollection->getFragCRC();
576  uint32_t CRCmask = digitsCollection->getFragDMUMask();
577 
578  CRCcheck(dqStatus, crc32, CRCmask, headsize, ros, drawer);
579  }
580  } //loop over drawers
581  //
582 
583  if (dqStatus->calibMode() == 0) {
584  if (RODCRCcalc(dqStatus).isFailure()) ATH_MSG_WARNING("Not possible to check CRC from ROD");
585  }
586 
587  return StatusCode::SUCCESS;
588 }

◆ 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 591 of file TileDigitsMonTool.cxx.

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

◆ get_nEvents()

unsigned int ManagedMonitorToolBase::get_nEvents ( ) const
inlineprotectedinherited

Definition at line 754 of file ManagedMonitorToolBase.h.

754  {
755  return m_nEvents;
756  }

◆ get_procNEventsProp()

long ManagedMonitorToolBase::get_procNEventsProp ( ) const
inlineprotectedinherited

Definition at line 758 of file ManagedMonitorToolBase.h.

758  {
759  return m_procNEventsProp;
760  }

◆ getCellName()

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

Definition at line 246 of file TilePaterMonTool.h.

246  {
247  if (ros < 3) return m_LBcellName[channel];
248  else return m_EBcellName[channel];
249  };

◆ getHist() [1/6]

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

Definition at line 1614 of file ManagedMonitorToolBase.cxx.

1615 {
1616  h = 0;
1617  std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1619  for (;it!=itE;++it) {
1621  h = *it;
1622  return StatusCode::SUCCESS;
1623  }
1624  }
1625  return StatusCode::FAILURE;
1626 }

◆ getHist() [2/6]

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

Definition at line 1606 of file ManagedMonitorToolBase.cxx.

1608 {
1609  MonGroup group( this, system, interval );
1610  return getHist( h, hName, group );
1611 }

◆ getHist() [3/6]

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 1598 of file ManagedMonitorToolBase.cxx.

1600 {
1601  std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1602  return m_THistSvc->getHist( streamName, h );
1603 }

◆ getHist() [4/6]

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 1588 of file ManagedMonitorToolBase.cxx.

1591 {
1592  MonGroup group( this, system, interval );
1593  return getHist( h, hName, group );
1594 }

◆ getHist() [5/6]

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 1640 of file ManagedMonitorToolBase.cxx.

1642 {
1643  std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1644  return m_THistSvc->getHist( streamName, h );
1645 }

◆ getHist() [6/6]

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 1630 of file ManagedMonitorToolBase.cxx.

1633 {
1634  MonGroup group( this, system, interval );
1635  return getHist( h, hName, group );
1636 }

◆ getNewStreamNameFcn()

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

Definition at line 2387 of file ManagedMonitorToolBase.cxx.

2389 {
2390  StreamNameFcn* fcn(0);
2391 
2392  switch( m_environment ) {
2394  fcn = new NoOutputStream();
2395  break;
2397  fcn = new OnlineStream();
2398  break;
2400  fcn = new DefaultStream( m_fileKey );
2401  break;
2405  case AthenaMonManager::AOD:
2407  default:
2408  fcn = new OfflineStream( m_fileKey, m_dataType, m_environment );
2409  }
2410 
2411  return fcn;
2412 }

◆ getTMDBCellName()

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

Definition at line 255 of file TilePaterMonTool.h.

255  {
256  if (ros < 3) return m_TMDB_LB_cell_names[channel];
257  else return m_TMDB_EB_cell_names[channel];
258  };

◆ 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 
99  m_nEventsTileMon = 0;
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
120  m_ADCmaxMinusEps = m_i_ADCmax - 0.01;
121 
122  m_shiftnbins = 796;
123  if (m_i_ADCmax == 4095){
124  m_is12bit = true;
126  }
127 
129 
131 }

◆ 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]

static 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  }

◆ interfaceID() [2/2]

static const InterfaceID& IMonitorToolBase::interfaceID ( )
inlinestaticinherited

Definition at line 29 of file IMonitorToolBase.h.

29 { return IID_IMonitorToolBase; }

◆ 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 587 of file ManagedMonitorToolBase.cxx.

589 {
590  std::string str("file");
591 
592  switch( interval ) {
593  case all:
594  str = "all";
595  break;
596  case fill:
597  str = "fill";
598  break;
599  case run:
600  str = "run";
601  break;
602  case lowStat:
603  str = "lowStat";
604  break;
605  case medStat:
606  str = "medStat";
607  break;
608  case higStat:
609  str = "higStat";
610  break;
611  case lumiBlock:
612  str = "lumiBlock";
613  break;
614  case eventsBlock:
615  str = "eventsBlock";
616  break;
617  case file:
618  str = "file";
619  break;
620  default:
621  str = "unknown";
622  }
623 
624  return str;
625 }

◆ intervalStringToEnum()

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

Converts a string to the corresponding Interval_t.

Definition at line 629 of file ManagedMonitorToolBase.cxx.

631 {
632  std::string lcstr( strToLower(str) );
633 
634  if( lcstr == "all" )
635  return all;
636  else if( lcstr == "fill" )
637  return fill;
638  else if( lcstr == "run" )
639  return run;
640  else if( lcstr == "lowStat" )
641  return lowStat;
642  else if( lcstr == "medStat" )
643  return medStat;
644  else if( lcstr == "higStat" )
645  return higStat;
646  else if( lcstr == "lumiBlock" )
647  return lumiBlock;
648  else if( lcstr == "eventsBlock" )
649  return eventsBlock;
650  else if( lcstr == "file" )
651  return file;
652 
653  if( Imp::s_svcLocator ) {
654  IMessageSvc* ms(0);
655  StatusCode sc = Imp::s_svcLocator.load()->service( "MessageSvc", ms, true );
656  if( sc.isSuccess() ) {
657  MsgStream log( ms, "ManagedMonitorToolBase::intervalStringToEnum()" );
658  log << MSG::WARNING << "Unknown ManagedMonitorToolBase::Interval_t \""
659  << str << "\", returning \"file\"" << endmsg;
660  }
661  }
662 
663  return file;
664 }

◆ isDisconnected()

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

Definition at line 281 of file TilePaterMonTool.h.

281  {
282 
283  if (ros < 3) { //LB, all standard. Channels 30,31,43 are disconnected
284  return m_chMapLB[ch];
285  } else {
286  if (((ros == 3) && (drawer == 14)) || ((ros == 4) && (drawer == 17))) {//EB, EBA15 and EBC18 are special
287  return m_chMapEBsp[ch];
288  } else {//EB standard module
289  return m_chMapEB[ch];
290  }
291  } //end if LB else EB
292 
293  }

◆ lbAverageInteractionsPerCrossing()

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

Average mu, i.e.

<mu>

Definition at line 1923 of file ManagedMonitorToolBase.cxx.

1925 {
1926  if (!m_lumiDataKey.empty()) {
1928  return lumi->lbAverageInteractionsPerCrossing();
1929  } else {
1930  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageInteractionsPerCrossing() can't work properly! ");
1931  ATH_MSG_DEBUG("Warning: lbAverageInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1932  return -1.0;
1933  }
1934  // not reached
1935 }

◆ lbAverageLivefraction()

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

Average luminosity livefraction.

Definition at line 1992 of file ManagedMonitorToolBase.cxx.

1994 {
1996  return 1.0;
1997 
2000  return live->lbAverageLiveFraction();
2001  } else {
2002  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageLivefraction() can't work properly! ");
2003  ATH_MSG_DEBUG("Warning: lbAverageLivefraction() - luminosity not availble (i.e. EnableLumi = False)");
2004  return -1.0;
2005  }
2006  // not reached
2007 }

◆ 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 1959 of file ManagedMonitorToolBase.cxx.

1961 {
1962  if (!m_lumiDataKey.empty()) {
1964  return lumi->lbAverageLuminosity();
1965  } else {
1966  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageLuminosity() can't work properly! ");
1967  ATH_MSG_DEBUG("Warning: lbAverageLuminosity() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1968  return -1.0;
1969  }
1970  // not reached
1971 }

◆ lbDuration()

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

Luminosity block time (in seconds)

Definition at line 2046 of file ManagedMonitorToolBase.cxx.

2048 {
2050  return m_defaultLBDuration;
2051  }
2052  if (!m_lbDurationDataKey.empty()) {
2054  return dur->lbDuration();
2055  } else {
2056  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbDuration() can't work properly! ");
2057  ATH_MSG_DEBUG("Warning: lbDuration() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
2058  return m_defaultLBDuration;
2059  }
2060  // not reached
2061 }

◆ lbInteractionsPerCrossing()

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

Instantaneous number of interactions, i.e.

mu

Definition at line 1939 of file ManagedMonitorToolBase.cxx.

1941 {
1942  if (!m_lumiDataKey.empty()) {
1944  float muToLumi = lumi->muToLumi();
1945  if (muToLumi > 0) {
1946  return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id()) / muToLumi;
1947  }
1948  return 0;
1949  } else {
1950  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbInteractionsPerCrossing() can't work properly! ");
1951  ATH_MSG_DEBUG("Warning: lbInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1952  return -1.0;
1953  }
1954  // not reached
1955 }

◆ lbLuminosityPerBCID()

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

Instantaneous luminosity.

Definition at line 1975 of file ManagedMonitorToolBase.cxx.

1977 {
1978  if (!m_lumiDataKey.empty()) {
1980  return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id());
1981  } else {
1982  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbLuminosityPerBCID() can't work properly! ");
1983  ATH_MSG_DEBUG("Warning: lbLuminosityPerBCID() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1984  return -1.0;
1985  }
1986  // not reached
1987 }

◆ lbLumiWeight()

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

Average Integrated Luminosity Live Fraction.

Definition at line 2030 of file ManagedMonitorToolBase.cxx.

2032 {
2033  if (!m_lumiDataKey.empty()) {
2034  return (lbAverageLuminosity(ctx)*lbDuration(ctx))*lbAverageLivefraction(ctx);
2035  } else{
2036  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbLumiWeight() can't work properly! ");
2037  ATH_MSG_DEBUG("Warning: lbLumiWeight() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
2038  return -1.0;
2039  }
2040  // not reached
2041 }

◆ livefractionPerBCID()

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

Livefraction per bunch crossing ID.

Definition at line 2011 of file ManagedMonitorToolBase.cxx.

2013 {
2015  return 1.0;
2016 
2019  return live->l1LiveFractionVector().at (ctx.eventID().bunch_crossing_id());
2020  } else {
2021  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! livefractionPerBCID() can't work properly! ");
2022  ATH_MSG_DEBUG("Warning: livefractionPerBCID() - luminosity retrieved available (i.e. EnableLumi = False)");
2023  return -1.0;
2024  }
2025  // not reached
2026 }

◆ 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() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ 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 855 of file ManagedMonitorToolBase.h.

855 { return m_newEventsBlock; }

◆ newHigStatIntervalFlag()

bool ManagedMonitorToolBase::newHigStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 851 of file ManagedMonitorToolBase.h.

851 { return m_newHigStatInterval; }

◆ newLowStatFlag()

bool ManagedMonitorToolBase::newLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 852 of file ManagedMonitorToolBase.h.

852 { return m_newLowStat; }

◆ 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 849 of file ManagedMonitorToolBase.h.

849 { return m_newLowStatInterval; }

◆ newLumiBlockFlag()

bool ManagedMonitorToolBase::newLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 853 of file ManagedMonitorToolBase.h.

853 { return m_newLumiBlock; }

◆ newMedStatIntervalFlag()

bool ManagedMonitorToolBase::newMedStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 850 of file ManagedMonitorToolBase.h.

850 { return m_newMedStatInterval; }

◆ newRunFlag()

bool ManagedMonitorToolBase::newRunFlag ( ) const
inlineprotectedinherited

Definition at line 854 of file ManagedMonitorToolBase.h.

854 { 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 2343 of file ManagedMonitorToolBase.cxx.

2344  {
2345  std::string item;
2346  std::stringstream ss(line);
2347 
2348  if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "ManagedMonitorToolBase::parseList:";
2349 
2350  while ( std::getline(ss, item, ',') ) {
2351  std::stringstream iss(item); // remove
2352  iss >> item; // whitespace
2353  if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " " << item;
2354  result.push_back(item);
2355  }
2356 
2357  msg(MSG::DEBUG) << endmsg;
2358  return StatusCode::SUCCESS;
2359 }

◆ preSelector()

bool ManagedMonitorToolBase::preSelector ( )
virtualinherited

Implements IMonitorToolBase.

Definition at line 1911 of file ManagedMonitorToolBase.cxx.

1913 {
1914  if( m_preScaleProp > 1 ) {
1915  return ( (m_nEvents % m_preScaleProp) == 1 );
1916  }
1917  return true;
1918 }

◆ procHistograms()

StatusCode ManagedMonitorToolBase::procHistograms ( )
virtualinherited

An inheriting class should either override this function or finalHists().

Reimplemented in SCTHitEffMonTool, SCTHitsNoiseMonTool, SCTErrMonTool, SCTTracksMonTool, SCTLorentzMonTool, egammaMonToolBase, MuonPhysValMonitoring::MuonPhysValMonitoringTool, AFPHitsMonitorTool, LArCellMonTool, MuonDQA::MuonEventInfoMonTool, DQTDataFlowMonTool, TileCalCellMonTool, ActsTrk::PhysValTool, PhysValSecVtx, LUCID_HitsMoniTool, ZeeTaPMonTool, LVL1::CalorimeterL1CaloMon, LVL1::L1CaloCTPMon, LVL1::L1CaloLevel2Mon, LVL1::L1CaloPMTScoresMon, MdtRawDataValAlg, CscCalibMonToolBase, DQTNonCollBkg_ZDC, InDetGlobalTrackMonTool, TRT_Electron_Monitoring_Tool, InDetGlobalHitsMonTool, JetTagMonitoring, InDetPhysValMonitoringTool, EgammaPhysValMonitoring::EgammaPhysValMonitoringTool, TRT_Monitoring_Tool, METMonTool, MissingEtDQA::PhysValMET, LVL1::L1CaloL1TopoMon, JetTagDQA::PhysValBTag, CaloTowerVecMon, DQTGlobalWZFinderTool, CSCSegmValAlg, PhysVal::PhysValExample, TopPhysVal::TopPhysValMonitoring, DataQualityFatherMonTool, ZeeValidation::ZeeValidationMonitoringTool, CaloClusterVecMon, RpcLv1RawDataValAlg, CaloTransverseBalanceVecMon, DQTDetSynchMonTool, InDetTrackPerfMonTool, DQTMuonIDTrackTool, InDetGlobalBeamSpotMonTool, IDPerfMonWenu, IDPerfMonZee, TrackCaloClusterRecValidationTool, CscClusterValAlg, MdtVsTgcRawDataValAlg, InDetGlobalErrorMonTool, JetMonitoringTool, TileCellNoiseMonTool, AFPTechnicalMonitorTool, PhysValTau, PhysValFE, ManagedMonitorToolTest, DiMuMon, CscPrdValAlg, CscRdoValAlg, HIMonitoringEventShapeTool, IDPerfMonKshort, HIMonitoringZdcTool, HIMonitoringElectronsTool, HIMonitoringPhotonsTool, and HIMonitoringMuonsTool.

Definition at line 1422 of file ManagedMonitorToolBase.cxx.

1424 {
1425  if( m_endOfEventsBlock ) { }
1426  if( m_endOfLowStat ) { }
1427  if( m_endOfLumiBlock ) { }
1428  if( m_endOfRun) { }
1429 
1430  return StatusCode::SUCCESS;
1431 }

◆ 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 1648 of file ManagedMonitorToolBase.cxx.

1648  {
1649  if (!e)
1650  return StatusCode::FAILURE;
1651 
1652  TGraph* g = reinterpret_cast<TGraph*>(e);
1653  std::string name = e->GetName();
1654 
1655  // MANAGED
1656  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1657  // warn about not using merge algorithms
1658  if (group.histo_mgmt() == ATTRIB_X_VS_LB && group.merge().empty()) {
1659  ATH_MSG_WARNING("HEY! Attempting to register "<<name<<" as a per-LB histogram, but not setting the merge algorithm! Use \"merge\", at least.");
1660  }
1661  // add the efficiency to rebooking vector
1662  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1663  m_templateEfficiencies[group.interval()].push_back( MgmtParams<TEfficiency>(e, group) );
1664  } else {
1665  ATH_MSG_ERROR("Attempt to book managed graph " << name << " with invalid interval type " << intervalEnumToString(group.interval()));
1666  return StatusCode::FAILURE;
1667  }
1668 
1669  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1670  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1671  registerMetadata(streamName, name, group).ignore();
1672  return m_THistSvc->regGraph( streamName, g );
1673  } else {
1674  // UNMANAGED
1675  if( m_manager != 0 ) {
1676  std::string genericName = NoOutputStream().getStreamName( this, group, name );
1677  m_manager->writeAndDelete( genericName );
1678  m_manager->passOwnership( e, genericName );
1679  }
1680 
1681  std::string streamName = streamNameFunction()->getStreamName( this, group, name, false );
1683  if (smd != StatusCode::SUCCESS)
1684  return StatusCode::FAILURE;
1685 
1686  return m_THistSvc->regGraph( streamName, g );
1687  }
1688 }

◆ regGraph() [1/5]

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 65 of file TilePaterMonTool.cxx.

66 {
67 
68  std::string path(m_path);
69  if (!subDir.empty()) path += ("/" + subDir);
70 
71  if(ManagedMonitorToolBase::regGraph(graph, path, interval, attribute, trigChain, mergeAlgo).isFailure()) {
72  ATH_MSG_WARNING( "Could not register Graph : " << path + "/" + graph->GetName() );
73  }
74 }

◆ regGraph() [2/5]

StatusCode ManagedMonitorToolBase::regGraph
protectedinherited

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

Definition at line 567 of file ManagedMonitorToolBase.cxx.

1704 {
1705  if (!g)
1706  return StatusCode::FAILURE;
1707 
1708  // This part of the code deals with MANAGED type
1709  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1710  // Create an unmanaged group based on the original MonGroup instance passed
1711  // This is needed because managed graph is presented as a number of unmanaged
1712  // graphs (one per each interval)
1713  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1714 
1715  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1716  m_templateGraphs[group.interval()].push_back( MgmtParams<TGraph>(g, group_unmanaged) );
1717  } else {
1718  ATH_MSG_ERROR("Attempt to book managed graph " << g->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1719  return StatusCode::FAILURE;
1720  }
1721 
1722  std::string name = g->GetName();
1723  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1724  registerMetadata(streamName, name, group).ignore();
1725  return m_THistSvc->regGraph( streamName, g );
1726  //return m_THistSvc->regGraph( streamName );
1727  }
1728 
1729  // This part of the code deals with UNMANAGED type
1730  std::string gName = g->GetName();
1731 
1732  if( m_manager != 0 ) {
1733  std::string genericName = NoOutputStream().getStreamName( this, group, gName );
1734  m_manager->writeAndDelete( genericName );
1735  m_manager->passOwnership( g, genericName );
1736  }
1737 
1738  std::string streamName = streamNameFunction()->getStreamName( this, group, gName, false );
1739 
1741  if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1742 
1743  return m_THistSvc->regGraph( streamName, g );
1744 }

◆ regGraph() [3/5]

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

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

Definition at line 1702 of file ManagedMonitorToolBase.cxx.

1704 {
1705  if (!g)
1706  return StatusCode::FAILURE;
1707 
1708  // This part of the code deals with MANAGED type
1709  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1710  // Create an unmanaged group based on the original MonGroup instance passed
1711  // This is needed because managed graph is presented as a number of unmanaged
1712  // graphs (one per each interval)
1713  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1714 
1715  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1716  m_templateGraphs[group.interval()].push_back( MgmtParams<TGraph>(g, group_unmanaged) );
1717  } else {
1718  ATH_MSG_ERROR("Attempt to book managed graph " << g->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1719  return StatusCode::FAILURE;
1720  }
1721 
1722  std::string name = g->GetName();
1723  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1724  registerMetadata(streamName, name, group).ignore();
1725  return m_THistSvc->regGraph( streamName, g );
1726  //return m_THistSvc->regGraph( streamName );
1727  }
1728 
1729  // This part of the code deals with UNMANAGED type
1730  std::string gName = g->GetName();
1731 
1732  if( m_manager != 0 ) {
1733  std::string genericName = NoOutputStream().getStreamName( this, group, gName );
1734  m_manager->writeAndDelete( genericName );
1735  m_manager->passOwnership( g, genericName );
1736  }
1737 
1738  std::string streamName = streamNameFunction()->getStreamName( this, group, gName, false );
1739 
1741  if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1742 
1743  return m_THistSvc->regGraph( streamName, g );
1744 }

◆ regGraph() [4/5]

StatusCode ManagedMonitorToolBase::regGraph
protectedinherited

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

Definition at line 559 of file ManagedMonitorToolBase.cxx.

1695 {
1696  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1697  return regGraph( g, group );
1698 }

◆ regGraph() [5/5]

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 = "" 
)
virtualinherited

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

Definition at line 1692 of file ManagedMonitorToolBase.cxx.

1695 {
1696  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1697  return regGraph( g, group );
1698 }

◆ regHist() [1/9]

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 52 of file TilePaterMonTool.cxx.

53 {
54 
55  std::string path(m_path);
56  if (!subDir.empty()) path += ("/" + subDir);
57 
58  if(ManagedMonitorToolBase::regHist(hist, path, interval, attribute, trigChain, mergeAlgo).isFailure()) {
59  ATH_MSG_WARNING( "Could not register histogram : " << path + "/" + hist->GetName() );
60  }
61 
62 }

◆ regHist() [2/9]

StatusCode ManagedMonitorToolBase::regHist
protectedinherited

Definition at line 592 of file ManagedMonitorToolBase.cxx.

1523 {
1524  // You may want to setROOTBackend to true in online environment
1525  //LWHistControls::setROOTBackend(true);
1526 
1527  if (!h)
1528  return StatusCode::FAILURE;
1529 
1530  if (!m_bookHistogramsInitial) {
1531  ATH_MSG_DEBUG("Yura: very first time");
1532  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1533 
1534  ATH_MSG_DEBUG("Yura: we have managed histograms");
1535  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1536  ATH_MSG_DEBUG(" Yura: adding histogram" << h->GetName());
1537  m_templateLWHistograms[group.interval()].push_back( MgmtParams<LWHist>(h, group) );
1538  } else {
1539  ATH_MSG_ERROR("Attempt to book managed histogram " << h->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1540  return StatusCode::FAILURE;
1541  }
1542  //return StatusCode::SUCCESS;
1543  }
1544  }
1545 
1546  //FIXME: Code copied more or less verbatim from above. Collect most code (espc. for streamname) in common helpers!!
1547  std::string hName = h->GetName();
1548 
1549  if( m_manager )
1550  {
1551  std::string genericName = NoOutputStream().getStreamName(this, group, hName );
1552  LWHistAthMonWrapper::setKey(h,genericName);
1553  LWHist* prevLWHist = m_manager->ownedLWHistOfKey(genericName);
1554  if (prevLWHist)
1555  {
1556  std::set<LWHist*>::iterator it = m_lwhists.find(prevLWHist);
1557  if (it!=m_lwhists.end())
1558  {
1559  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1560  m_manager->writeAndResetLWHist( genericName, LWHistAthMonWrapper::streamName(prevLWHist) );
1561  } else {
1562  m_manager->writeAndDeleteLWHist( genericName, LWHistAthMonWrapper::streamName(prevLWHist) );
1563  }
1564  m_lwhists.erase(it);
1565  }
1566  }
1567  m_manager->passOwnership( h, genericName );
1568  }
1569  m_lwhists.insert(h);
1570 
1571  std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1573  registerMetadata(streamName, hName, group).ignore();
1574 
1575  //Delay registration with THistSvc (unless root backend):
1576  //m_lwhistMap.insert(std::pair<LWHist*,std::string>(h,streamName));
1577  if (h->usingROOTBackend())
1578  {
1579  h->setOwnsROOTHisto(false);//Since might end up with thist svc
1580  return m_THistSvc->regHist( streamName, h->getROOTHistBase() );
1581  }
1582 
1583  return StatusCode::SUCCESS;
1584 
1585 }

◆ regHist() [3/9]

StatusCode ManagedMonitorToolBase::regHist ( LWHist h,
const MonGroup group 
)
virtualinherited

Definition at line 1522 of file ManagedMonitorToolBase.cxx.

1523 {
1524  // You may want to setROOTBackend to true in online environment
1525  //LWHistControls::setROOTBackend(true);
1526 
1527  if (!h)
1528  return StatusCode::FAILURE;
1529 
1530  if (!m_bookHistogramsInitial) {
1531  ATH_MSG_DEBUG("Yura: very first time");
1532  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1533 
1534  ATH_MSG_DEBUG("Yura: we have managed histograms");
1535  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1536  ATH_MSG_DEBUG(" Yura: adding histogram" << h->GetName());
1537  m_templateLWHistograms[group.interval()].push_back( MgmtParams<LWHist>(h, group) );
1538  } else {
1539  ATH_MSG_ERROR("Attempt to book managed histogram " << h->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1540  return StatusCode::FAILURE;
1541  }
1542  //return StatusCode::SUCCESS;
1543  }
1544  }
1545 
1546  //FIXME: Code copied more or less verbatim from above. Collect most code (espc. for streamname) in common helpers!!
1547  std::string hName = h->GetName();
1548 
1549  if( m_manager )
1550  {
1551  std::string genericName = NoOutputStream().getStreamName(this, group, hName );
1552  LWHistAthMonWrapper::setKey(h,genericName);
1553  LWHist* prevLWHist = m_manager->ownedLWHistOfKey(genericName);
1554  if (prevLWHist)
1555  {
1556  std::set<LWHist*>::iterator it = m_lwhists.find(prevLWHist);
1557  if (it!=m_lwhists.end())
1558  {
1559  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1560  m_manager->writeAndResetLWHist( genericName, LWHistAthMonWrapper::streamName(prevLWHist) );
1561  } else {
1562  m_manager->writeAndDeleteLWHist( genericName, LWHistAthMonWrapper::streamName(prevLWHist) );
1563  }
1564  m_lwhists.erase(it);
1565  }
1566  }
1567  m_manager->passOwnership( h, genericName );
1568  }
1569  m_lwhists.insert(h);
1570 
1571  std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1573  registerMetadata(streamName, hName, group).ignore();
1574 
1575  //Delay registration with THistSvc (unless root backend):
1576  //m_lwhistMap.insert(std::pair<LWHist*,std::string>(h,streamName));
1577  if (h->usingROOTBackend())
1578  {
1579  h->setOwnsROOTHisto(false);//Since might end up with thist svc
1580  return m_THistSvc->regHist( streamName, h->getROOTHistBase() );
1581  }
1582 
1583  return StatusCode::SUCCESS;
1584 
1585 }

◆ regHist() [4/9]

StatusCode ManagedMonitorToolBase::regHist
protectedinherited

Support for lightweight histograms:

Definition at line 590 of file ManagedMonitorToolBase.cxx.

1517 {
1518  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1519  return regHist( h, group );
1520 }

◆ regHist() [5/9]

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

Support for lightweight histograms:

Definition at line 1515 of file ManagedMonitorToolBase.cxx.

1517 {
1518  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1519  return regHist( h, group );
1520 }

◆ regHist() [6/9]

StatusCode ManagedMonitorToolBase::regHist
protectedinherited

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.

Definition at line 507 of file ManagedMonitorToolBase.cxx.

1464 {
1465 // ManagedMonitorToolBase_addHistStatistics(this,h);
1466 
1467  if (!h)
1468  return StatusCode::FAILURE;
1469 
1470  // This part of the code deals with MANAGED type
1471  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1472  /*
1473  Create an unmanaged group based on the original MonGroup instance passed
1474  It is needed because managed histogram is presented as a number of unmanaged
1475  histograms (one per each interval)
1476  Update (PUEO) - I don't think it actually matters, and need to keep
1477  track of "proper" attribute for X_VS_LB
1478  */
1479 
1480  if (group.histo_mgmt() == ATTRIB_X_VS_LB && group.merge().empty()) {
1481  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.");
1482  }
1483 
1484  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1485  m_templateHistograms[group.interval()].push_back( MgmtParams<TH1>(h, group) );
1486  } else {
1487  ATH_MSG_ERROR("Attempt to book managed histogram " << h->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1488  return StatusCode::FAILURE;
1489  }
1490 
1491  std::string hName = h->GetName();
1492  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1493  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, hName, false );
1494  registerMetadata(streamName, hName, group).ignore();
1495  return m_THistSvc->regHist( streamName, h );
1496  }
1497 
1498  // This part of the code deals with UNMANAGED type
1499  std::string hName = h->GetName();
1500 
1501  if( m_manager != 0 ) {
1502  std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1503  m_manager->writeAndDelete( genericName );
1504  m_manager->passOwnership( h, genericName );
1505  }
1506 
1507  std::string streamName = streamNameFunction()->getStreamName( this, group, hName, false );
1508 
1510  if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1511 
1512  return m_THistSvc->regHist( streamName, h );
1513 }

◆ regHist() [7/9]

StatusCode ManagedMonitorToolBase::regHist ( TH1 h,
const MonGroup group 
)
virtualinherited

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.

Definition at line 1462 of file ManagedMonitorToolBase.cxx.

1464 {
1465 // ManagedMonitorToolBase_addHistStatistics(this,h);
1466 
1467  if (!h)
1468  return StatusCode::FAILURE;
1469 
1470  // This part of the code deals with MANAGED type
1471  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1472  /*
1473  Create an unmanaged group based on the original MonGroup instance passed
1474  It is needed because managed histogram is presented as a number of unmanaged
1475  histograms (one per each interval)
1476  Update (PUEO) - I don't think it actually matters, and need to keep
1477  track of "proper" attribute for X_VS_LB
1478  */
1479 
1480  if (group.histo_mgmt() == ATTRIB_X_VS_LB && group.merge().empty()) {
1481  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.");
1482  }
1483 
1484  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1485  m_templateHistograms[group.interval()].push_back( MgmtParams<TH1>(h, group) );
1486  } else {
1487  ATH_MSG_ERROR("Attempt to book managed histogram " << h->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1488  return StatusCode::FAILURE;
1489  }
1490 
1491  std::string hName = h->GetName();
1492  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1493  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, hName, false );
1494  registerMetadata(streamName, hName, group).ignore();
1495  return m_THistSvc->regHist( streamName, h );
1496  }
1497 
1498  // This part of the code deals with UNMANAGED type
1499  std::string hName = h->GetName();
1500 
1501  if( m_manager != 0 ) {
1502  std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1503  m_manager->writeAndDelete( genericName );
1504  m_manager->passOwnership( h, genericName );
1505  }
1506 
1507  std::string streamName = streamNameFunction()->getStreamName( this, group, hName, false );
1508 
1510  if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1511 
1512  return m_THistSvc->regHist( streamName, h );
1513 }

◆ regHist() [8/9]

StatusCode ManagedMonitorToolBase::regHist
protectedinherited

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

Definition at line 499 of file ManagedMonitorToolBase.cxx.

1456 {
1457  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1458  return regHist( h, group );
1459 }

◆ regHist() [9/9]

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 = "" 
)
virtualinherited

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

Definition at line 1453 of file ManagedMonitorToolBase.cxx.

1456 {
1457  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1458  return regHist( h, group );
1459 }

◆ registerMetadata()

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

Definition at line 1005 of file ManagedMonitorToolBase.cxx.

1007  {
1009  TTree* metadata(0);
1010  std::string mdStreamName( streamName );
1011  size_t found=mdStreamName.rfind('/');
1012 
1013  if ( found != std::string::npos )
1014  mdStreamName.replace( found, mdStreamName.length(), "/metadata" );
1015 
1016  MDMap_t::iterator i = m_metadataMap.find( mdStreamName );
1017  if( i == m_metadataMap.end() ) {
1018  metadata = new TTree( "metadata", "Monitoring Metadata" );
1019  if (! metadata) return StatusCode::FAILURE;
1020  StatusCode scmd = m_THistSvc->regTree( mdStreamName, metadata );
1021  if (scmd == StatusCode::FAILURE) return StatusCode::FAILURE;
1022  MDMap_t::value_type valToInsert( mdStreamName, new OutputMetadata(metadata) );
1023  i = m_metadataMap.insert( valToInsert ).first;
1024  }
1025 
1026  i->second->fill( hName, group.interval(), group.chain(), group.merge() );
1027  }
1028  return StatusCode::SUCCESS;
1029 }

◆ regManagedEfficiencies()

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

Definition at line 1200 of file ManagedMonitorToolBase.cxx.

1200  {
1201  bool allIsOk = true;
1202  for( auto& it : templateEfficiencies ) {
1203  // get components of MgmtParams and copy efficiency
1204  MonGroup group = it.m_group;
1205  TEfficiency* theEfficiency = it.m_templateHist;
1206  TEfficiency* e = static_cast<TEfficiency*>(theEfficiency->Clone());
1207  int nbins = theEfficiency->GetTotalHistogram()->GetNbinsX();
1208  int xlow = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmin();
1209  int xhigh = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmax();
1210  e->SetBins(nbins,xlow,xhigh); // reset histogram
1211  std::string name = e->GetName();
1212 
1213  // make TGraph casts of TEfficiencies
1214  TGraph* theGraph = reinterpret_cast<TGraph*>(theEfficiency);
1215  TGraph* g = reinterpret_cast<TGraph*>(e);
1216 
1217  // Get the streamName for the previous interval
1218  std::string streamName = streamNameFunction()->getStreamName( this, group, name, true );
1219 
1220  // RE-REGISTER
1221  // 1) De-register the original graph with the THistSvc
1222  StatusCode sc1 = m_THistSvc->deReg( theGraph );
1223  if (sc1 == StatusCode::FAILURE) allIsOk = false;
1224  // 2) Fix THistSvc->deReg for TGraphs
1225  bool doneCleaning = false;
1226  std::string directoryName = streamNameFunction()->getDirectoryName( this, group, name, true );
1227  TSeqCollection *filelist=gROOT->GetListOfFiles();
1228  for (int i=0; i<filelist->GetEntries(); i++) {
1229  ATH_MSG_DEBUG( "List of files: " << filelist->At(i)->GetName());
1230  TFile* file = static_cast<TFile*>(filelist->At(i));
1231  StatusCode sc2 = THistSvc_deReg_fixTGraph(file, theGraph, directoryName);
1232  if (sc2 == StatusCode::SUCCESS) doneCleaning = true;
1233  }
1234  // 3) Check if TGraph fix has been applied successfully
1235  if (!doneCleaning) {
1236  ATH_MSG_ERROR("THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1237  allIsOk = false;
1238  }
1239  // 4) Register cloned histogram under previous interval streamName
1240  StatusCode sc3 = m_THistSvc->regGraph( streamName, g );
1241  if (sc3 == StatusCode::FAILURE)
1242  allIsOk = false;
1243 
1244  // get streamname for interval
1245  streamName = streamNameFunction()->getStreamName( this, group, name, false );
1246  // store metadata
1248  if (smd != StatusCode::SUCCESS) allIsOk = false;
1249  // Re-register the original graph
1250  StatusCode sc4 = m_THistSvc->regGraph( streamName, theGraph );
1251  if (sc4 == StatusCode::FAILURE) allIsOk = false;
1252  }
1253 
1254  if (!allIsOk) return StatusCode::FAILURE;
1255  return StatusCode::SUCCESS;
1256 }

◆ regManagedGraphs()

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

Definition at line 1129 of file ManagedMonitorToolBase.cxx.

1131 {
1132  // See the description for the regManagedHistograms method
1133  bool allIsOk = true;
1134 
1135  for( std::vector< MgmtParams<TGraph> >::iterator it = templateGraphs.begin(); it != templateGraphs.end(); ++it ) {
1136  MonGroup group = (*it).m_group;
1137 
1138  // Get a handle to the graph
1139  TGraph* theGraph = (*it).m_templateHist;
1140 
1141  // Clone the graph
1142  TGraph* g = static_cast<TGraph*>(theGraph->Clone());
1143  theGraph->Set(0); // equivalent to Reset() for TH1
1144 
1145  // Get name
1146  std::string gName = g->GetName();
1147 
1148  // Get the streamName for the previous interval
1149  std::string streamName = streamNameFunction()->getStreamName( this, group, gName, true );
1150 
1151  // De-register the original graph with the THistSvc
1152  StatusCode sc1 = m_THistSvc->deReg( theGraph );
1153  if (sc1 == StatusCode::FAILURE)
1154  allIsOk = false;
1155 
1156  // *** begin ***
1157  // Fix THistSvc->deReg for TGraphs
1158  bool doneCleaning = false;
1159  std::string directoryName = streamNameFunction()->getDirectoryName( this, group, gName, true );
1160  TSeqCollection *filelist=gROOT->GetListOfFiles();
1161  for (int i=0; i<filelist->GetEntries(); i++) {
1162  ATH_MSG_DEBUG( "List of files: " << filelist->At(i)->GetName());
1163  TFile* file = static_cast<TFile*>(filelist->At(i));
1164  StatusCode sc2 = THistSvc_deReg_fixTGraph(file, theGraph, directoryName);
1165  if (sc2 == StatusCode::SUCCESS)
1166  doneCleaning = true;
1167  }
1168 
1169  // Check if TGraph fix has been applied successfully
1170  if (!doneCleaning) {
1171  ATH_MSG_ERROR("THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1172  allIsOk = false;
1173  }
1174  // *** end ***
1175 
1176  // Register clonned histogram under previous interval streamName
1177  StatusCode sc3 = m_THistSvc->regGraph( streamName, g );
1178  if (sc3 == StatusCode::FAILURE)
1179  allIsOk = false;
1180 
1181  // Get streamName for the current interval
1182  streamName = streamNameFunction()->getStreamName( this, group, gName, false );
1183  // Register metadata information with the current interval streamname
1185  if (smd != StatusCode::SUCCESS)
1186  allIsOk = false;
1187 
1188  // Re-register the original graph with the current interval streamName
1189  StatusCode sc4 = m_THistSvc->regGraph( streamName, theGraph );
1190  if (sc4 == StatusCode::FAILURE)
1191  allIsOk = false;
1192 
1193  }
1194 
1195  if (!allIsOk) return StatusCode::FAILURE;
1196 
1197  return StatusCode::SUCCESS;
1198 }

◆ regManagedHistograms()

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

Definition at line 1032 of file ManagedMonitorToolBase.cxx.

1034 {
1035  // The method registers histograms with the THistSvc and saves them to file.
1036 
1037  // The funky business with registering and deregistering the histogram is needed
1038  // to get the correct directory when saving histograms. THistSvc deals with ROOT
1039  // to set up proper TDirectory, so we rely on it.
1040  // E.g.
1041  // m_THistSvc->regHist( streamName, h ): sets the correct TDirectory with streamName
1042  // m_THistSvc->deReg( h ) - deregister from THistSvc otherwise THistSvc will try to save it
1043  // at the end of execution
1044  // use passownership of the histogram and save it to file
1045  // m_manager->passOwnership( h, genericName );
1046  // m_manager->writeAndDelete( genericName );
1047  bool allIsOk = true;
1048 
1049  for( std::vector< MgmtParams<TH1> >::iterator it = templateHistograms.begin(); it != templateHistograms.end(); ++it ) {
1050  MonGroup& group = (*it).m_group;
1051 
1052  // Get a handle to the histogram
1053  TH1* theHist = (*it).m_templateHist;
1054 
1055  // Clone the histogram
1056  TH1* h = static_cast<TH1*>(theHist->Clone());
1057  theHist->Reset();
1058 
1059  // Get name
1060  std::string hName = h->GetName();
1061 
1062  // Get the streamName for the previous interval
1063  std::string streamName = streamNameFunction()->getStreamName( this, group, hName, true );
1064 
1065  // Register the histogram with the THistSvc
1066  StatusCode sc1 = m_THistSvc->deReg( theHist );
1067  if (sc1 == StatusCode::FAILURE) allIsOk = false;
1068 
1069  // Register clonned histogram under previous interval streamName
1070  StatusCode sc2 = m_THistSvc->regHist( streamName, h );
1071  if (sc2 == StatusCode::FAILURE) allIsOk = false;
1072 
1073  if( m_manager != 0 ) {
1074  std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1075  m_manager->passOwnership( h, genericName );
1076  m_manager->writeAndDelete( genericName );
1077  }
1078 
1079  // Get streamName for the current interval
1080  streamName = streamNameFunction()->getStreamName( this, group, hName, false );
1081  // Register metadata information with the current interval streamname
1083  if (smd != StatusCode::SUCCESS) allIsOk = false;
1084 
1085  // Re-register the original histogram with the current interval streamName
1086  StatusCode sc3 = m_THistSvc->regHist( streamName, theHist );
1087  if (sc3 == StatusCode::FAILURE) allIsOk = false;
1088 
1089  }
1090 
1091  if (!allIsOk) return StatusCode::FAILURE;
1092 
1093  return StatusCode::SUCCESS;
1094 }

◆ regManagedLWHistograms()

StatusCode ManagedMonitorToolBase::regManagedLWHistograms ( std::vector< MgmtParams< LWHist > > &  templateLWHistograms)
protectedinherited

Definition at line 1314 of file ManagedMonitorToolBase.cxx.

1316 {
1317  StatusCode sc1;
1318 
1319  for( std::vector< MgmtParams<LWHist> >::iterator it = templateLWHistograms.begin(); it != templateLWHistograms.end(); ++it ) {
1320  // Get histogram group
1321  MonGroup group = (*it).m_group;
1322 
1323  // Get handle to the histogram
1324  LWHist* h = (*it).m_templateHist;
1325 
1326  sc1 = regHist(h, group);
1327  }
1328 
1329  return sc1;
1330 }

◆ regManagedTrees()

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

Definition at line 1260 of file ManagedMonitorToolBase.cxx.

1262 {
1263  // See the description for the regManagedHistograms method
1264  bool allIsOk = true;
1265 
1266  for( std::vector< MgmtParams<TTree> >::iterator it = templateTrees.begin(); it != templateTrees.end(); ++it ) {
1267  MonGroup group = (*it).m_group;
1268 
1269  // Get a handle to the original tree
1270  TTree* theTree = (*it).m_templateHist;
1271 
1272  // Clone the tree
1273  TTree* t = static_cast<TTree*>(theTree->Clone());
1274  theTree->Reset();
1275 
1276  // Dumping the tree
1277  std::string name = t->GetName();
1278 
1279  // Get the streamName for the previous interval
1280  std::string streamName = streamNameFunction()->getStreamName( this, group, name, true );
1281 
1282  // De-register original tree with the THistSvc
1283  StatusCode sc1 = m_THistSvc->deReg( theTree );
1284  if (sc1 == StatusCode::FAILURE) allIsOk = false;
1285 
1286  // Register clonned tree under previous interval streamName
1287  StatusCode sc2 = m_THistSvc->regTree( streamName, t );
1288  if (sc2 == StatusCode::FAILURE) allIsOk = false;
1289 
1290  if( m_manager != 0 ) {
1291  std::string genericName = NoOutputStream().getStreamName( this, group, name );
1292  m_manager->passOwnership( t, genericName );
1293  m_manager->writeAndDelete( genericName );
1294  }
1295 
1296  // Get streamName for the current interval
1297  streamName = streamNameFunction()->getStreamName( this, group, name, false );
1298  // Register metadata information with the current interval streamname
1300  if (smd != StatusCode::SUCCESS) allIsOk = false;
1301 
1302  // Re-register the original graph with the current interval streamName
1303  StatusCode sc3 = m_THistSvc->regTree( streamName, theTree );
1304  if (sc3 == StatusCode::FAILURE) allIsOk = false;
1305 
1306  }
1307 
1308  if (!allIsOk) return StatusCode::FAILURE;
1309 
1310  return StatusCode::SUCCESS;
1311 }

◆ 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 1758 of file ManagedMonitorToolBase.cxx.

1760 {
1761 
1762  // This part of the code deals with MANAGED type
1763  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1764  // Create an unmanaged group based on the original MonGroup instance passed
1765  // This is needed because managed tree is presented as a number of unmanaged
1766  // trees (one per each interval)
1767  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1768 
1769  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1770  m_templateTrees[group.interval()].push_back( MgmtParams<TTree>(t, group_unmanaged) );
1771  } else {
1772  ATH_MSG_ERROR("Attempt to book managed tree " << t->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1773  return StatusCode::FAILURE;
1774  }
1775 
1776  std::string name = t->GetName();
1777  std::string genericName = NoOutputStream().getStreamName( this, group_unmanaged, name );
1778  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1779  registerMetadata(streamName, name, group).ignore();
1780  return m_THistSvc->regTree( streamName, t );
1781  }
1782 
1783 
1784  // This part of the code deals with UNMANAGED type
1785  std::string tName = t->GetName();
1786 
1787  if( m_manager != 0 ) {
1788  std::string genericName = NoOutputStream().getStreamName( this, group, tName );
1789  m_manager->writeAndDelete( genericName );
1790  m_manager->passOwnership( t, genericName );
1791  }
1792 
1793  std::string streamName = streamNameFunction()->getStreamName( this, group, tName, false );
1794 
1796  if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1797 
1798  return m_THistSvc->regTree( streamName, t );
1799 }

◆ 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 1748 of file ManagedMonitorToolBase.cxx.

1751 {
1752  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1753  return regTree( t, group );
1754 }

◆ removeTObj()

StatusCode TilePaterMonTool::removeTObj ( TObject *  obj)
protectedinherited

Definition at line 468 of file TilePaterMonTool.cxx.

468  {
469  if (obj != 0) {
470  if (obj->IsA()->InheritsFrom("TH1")) {
471  if (deregHist((TH1*) obj).isFailure()) {
472  ATH_MSG_WARNING( "Could not dereg Histogram : " << obj->GetName() );
473  return StatusCode::FAILURE;
474  } else {
475  delete obj;
476  }
477  } else if (obj->IsA()->InheritsFrom("TGraph")) {
478  if (deregGraph((TGraph*) obj) != StatusCode::SUCCESS) {
479  ATH_MSG_WARNING( "Could not dereg Graph : " << obj->GetName() );
480  return StatusCode::FAILURE;
481  } else {
482  delete obj;
483  }
484  } else {
485  ATH_MSG_WARNING( "Asked to remove object " << obj->GetName() << "of unsupported type " << obj->IsA() );
486  return StatusCode::FAILURE;
487  }
488  } else {
489  ATH_MSG_WARNING( "Asked to remove NULL pointer" );
490  return StatusCode::FAILURE;
491  }
492  return StatusCode::SUCCESS;
493 }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
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 1779 of file TileDigitsMonTool.cxx.

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

◆ runStat()

StatusCode ManagedMonitorToolBase::runStat ( )
virtualinherited

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

Implements IMonitorToolBase.

Definition at line 1893 of file ManagedMonitorToolBase.cxx.

1895 {
1896  return StatusCode::SUCCESS;
1897 }

◆ saveStuckBitsProbabilities()

void TileDigitsMonTool::saveStuckBitsProbabilities ( TTree *  tree)
overridevirtual

Implements ITileStuckBitsProbsTool.

Definition at line 1904 of file TileDigitsMonTool.cxx.

1904  {
1905 
1906  tree->Branch("StuckBitsProb", m_data->m_stuck_probs, "StuckBitsProb[5][64][48][2][10]/b");
1907 }

◆ setMonManager()

void ManagedMonitorToolBase::setMonManager ( AthenaMonManager manager)
virtualinherited

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

Definition at line 1435 of file ManagedMonitorToolBase.cxx.

1437 {
1438  ATH_MSG_DEBUG( "ManagedMonitorToolBase::setMonManager():");
1439  m_manager = manager;
1440  if( m_manager != 0 ) {
1441  ATH_MSG_DEBUG( " --> Setting manager");
1442  m_managerNameProp = m_manager->name();
1446  delete m_streamNameFcn;
1448  }
1449  ATH_MSG_DEBUG( " --> Exiting successfully");
1450 }

◆ 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 1882 of file ManagedMonitorToolBase.cxx.

1884 {
1885  // All instances should write to the stream(s) defined by the
1886  // AthenaMonManager.
1887 
1888  return StatusCode::SUCCESS;
1889 }

◆ shiftHisto()

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

Definition at line 1822 of file TileDigitsMonTool.cxx.

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

◆ statTestHistos()

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

Definition at line 1844 of file TileDigitsMonTool.cxx.

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

◆ streamNameFunction()

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

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

Definition at line 502 of file ManagedMonitorToolBase.cxx.

504 {
505  if( m_streamNameFcn == 0 ) {
506  msg(MSG::ERROR) << "!! streamNameFunction() has not been initialized !!" << endmsg;
507  msg(MSG::ERROR) << " --> neither ManagedMonitorToolBase::initialize() nor" << endmsg;
508  msg(MSG::ERROR) << " --> ManagedMonitorToolBase::setMonManager() has been called." << endmsg;
509  msg(MSG::ERROR) << " --> Correct configuration cannot be guaranteed from this point." << endmsg;
511  }
512  return m_streamNameFcn;
513 }

◆ stuckBitProb()

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

Implements ITileStuckBitsProbsTool.

Definition at line 927 of file TileDigitsMonTool.cxx.

929 {
930  return m_data->m_stuck_probs[ros][module][channel][gain];
931 }

◆ stuckBits()

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

Method to find stuckbits in Read-Out ADC channel.

Definition at line 1260 of file TileDigitsMonTool.cxx.

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

◆ stuckBits_Amp()

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

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

Definition at line 1369 of file TileDigitsMonTool.cxx.

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

◆ 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 1423 of file TileDigitsMonTool.cxx.

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

◆ 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 DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ 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 1097 of file ManagedMonitorToolBase.cxx.

1099 {
1100  // THistSvc employs TDirectory Append method when registering TGraph.
1101  // When deReg is used to de-register TGraph object, THistSvc only removes the object
1102  // from its internal management but forgets to delete from TDirectory.
1103  // The current method fixes this problem by removing the TGraph object manually
1104  // after THistSvc->deReg(TGraph* obj) is called.
1105 
1106  // Saves and restores gFile and gDirectory
1107  GlobalDirectoryRestore restore;
1108 
1109  // This check is true when TGraph object is removed successfully
1110  bool graphRemoved = false;
1111 
1112  file->cd("/");
1113  TDirectory* dir = file->GetDirectory(directoryName.c_str());
1114  if (dir != 0) {
1115  dir->cd();
1116  TObject* obj = dir->Remove(theGraph);
1117  if (obj != 0)
1118  graphRemoved = true;
1119  }
1120 
1121  if (!graphRemoved) {
1122  return StatusCode::FAILURE;
1123  }
1124 
1125  return StatusCode::SUCCESS;
1126 }

◆ trigChainsArePassed()

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

Definition at line 2324 of file ManagedMonitorToolBase.cxx.

2326 {
2327  ATH_MSG_DEBUG( "ManagedMonitorToolBase::trigChainsArePassed:");
2328 
2329  for(unsigned int i=0; i<vTrigNames.size(); i++) {
2330  if( m_trigDecTool->isPassed(vTrigNames[i]) ) {
2331  ATH_MSG_DEBUG( " + \"" << vTrigNames[i] << "\" passed, returning \'true\'");
2332  return true;
2333  }
2334  else {
2335  ATH_MSG_DEBUG( " - \"" << vTrigNames[i] << "\" did not pass");
2336  }
2337  }
2338 
2339  return false;
2340 }

◆ updateTriggersForGroups()

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

Definition at line 2362 of file ManagedMonitorToolBase.cxx.

2363  {
2364  for (size_t i = 0; i < vTrigChainNames.size(); ++i) {
2365  std::string& thisName = vTrigChainNames[i];
2366  if (thisName.compare(0, 9, "CATEGORY_") ==0) {
2367  ATH_MSG_DEBUG("Found a trigger category: " << thisName << ". We will unpack it.");
2368  std::vector<std::string> triggers = m_trigTranslator->translate(thisName.substr(9,std::string::npos));
2369  std::ostringstream oss;
2370  oss << "(";
2371  for (size_t itrig = 0; itrig < triggers.size(); ++itrig) {
2372  if (itrig != 0) {
2373  oss << "|";
2374  }
2375  oss << triggers[itrig];
2376  }
2377  oss << ")";
2378  // replace with new value
2379  std::string newval = oss.str();
2380  ATH_MSG_DEBUG("Replaced with " << newval);
2381  vTrigChainNames[i] = newval;
2382  }
2383  }
2384 }

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

◆ writeAndDelete()

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

Write out histogram and delete it.

Definition at line 1803 of file ManagedMonitorToolBase.cxx.

1804  {
1805  if (!h)
1806  return StatusCode::FAILURE;
1807 
1808  std::string hName = h->GetName();
1809 
1810  if( m_manager != 0 ) {
1811  std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1812  m_manager->writeAndDelete( genericName );
1813  }
1814  return StatusCode::SUCCESS;
1815 }

Member Data Documentation

◆ m_ADCmaxMinusEps

float TileDigitsMonTool::m_ADCmaxMinusEps {}
private

Definition at line 174 of file TileDigitsMonTool.h.

◆ m_allHistsFilled

bool TileDigitsMonTool::m_allHistsFilled {}
private

Definition at line 161 of file TileDigitsMonTool.h.

◆ m_bigain

bool TileDigitsMonTool::m_bigain {}
private

Definition at line 124 of file TileDigitsMonTool.h.

◆ m_book2D

bool TileDigitsMonTool::m_book2D {}
private

Definition at line 105 of file TileDigitsMonTool.h.

◆ m_bookAll

bool TileDigitsMonTool::m_bookAll {}
private

Definition at line 104 of file TileDigitsMonTool.h.

◆ m_bookHistogramsInitial

bool ManagedMonitorToolBase::m_bookHistogramsInitial
privateinherited

Definition at line 956 of file ManagedMonitorToolBase.h.

◆ m_cabling

const TileCablingService* TilePaterMonTool::m_cabling {}
protectedinherited

Definition at line 226 of file TilePaterMonTool.h.

◆ 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 270 of file TilePaterMonTool.h.

◆ 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 275 of file TilePaterMonTool.h.

◆ 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 265 of file TilePaterMonTool.h.

◆ m_cispar

const uint32_t* TileDigitsMonTool::m_cispar {}
private

Definition at line 122 of file TileDigitsMonTool.h.

◆ 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 963 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 901 of file ManagedMonitorToolBase.h.

◆ m_dataTypeStr

std::string ManagedMonitorToolBase::m_dataTypeStr
protectedinherited

Definition at line 897 of file ManagedMonitorToolBase.h.

◆ m_defaultLBDuration

float ManagedMonitorToolBase::m_defaultLBDuration
privateinherited

Definition at line 958 of file ManagedMonitorToolBase.h.

◆ m_detailLevel

unsigned int ManagedMonitorToolBase::m_detailLevel
protectedinherited

Definition at line 899 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 912 of file ManagedMonitorToolBase.h.

◆ 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 235 of file TilePaterMonTool.h.

◆ m_endOfEventsBlock

bool ManagedMonitorToolBase::m_endOfEventsBlock
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_endOfLowStat

bool ManagedMonitorToolBase::m_endOfLowStat
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_endOfLumiBlock

bool ManagedMonitorToolBase::m_endOfLumiBlock
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_endOfRun

bool ManagedMonitorToolBase::m_endOfRun
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_environment

AthenaMonManager::Environment_t ManagedMonitorToolBase::m_environment
protectedinherited

Definition at line 902 of file ManagedMonitorToolBase.h.

◆ m_environmentStr

std::string ManagedMonitorToolBase::m_environmentStr
protectedinherited

Definition at line 898 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.

◆ m_fileKey

std::string ManagedMonitorToolBase::m_fileKey
protectedinherited

Definition at line 896 of file ManagedMonitorToolBase.h.

◆ m_fillPedestalDifference

bool TileDigitsMonTool::m_fillPedestalDifference {}
private

Definition at line 166 of file TileDigitsMonTool.h.

◆ m_fragIDsDemonstrators

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

Definition at line 233 of file TilePaterMonTool.h.

◆ m_fragIDsToIgnoreDMUerrors

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

Definition at line 232 of file TilePaterMonTool.h.

◆ m_haveClearedLastEventBlock

bool ManagedMonitorToolBase::m_haveClearedLastEventBlock
protectedinherited

Definition at line 929 of file ManagedMonitorToolBase.h.

◆ m_i_ADCmax

int TileDigitsMonTool::m_i_ADCmax {}
private

Definition at line 172 of file TileDigitsMonTool.h.

◆ 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.

◆ m_lastHigStatInterval

int ManagedMonitorToolBase::m_lastHigStatInterval
protectedinherited

Definition at line 924 of file ManagedMonitorToolBase.h.

◆ m_lastLowStatInterval

int ManagedMonitorToolBase::m_lastLowStatInterval
protectedinherited

Definition at line 924 of file ManagedMonitorToolBase.h.

◆ m_lastLumiBlock

unsigned int ManagedMonitorToolBase::m_lastLumiBlock
protectedinherited

Definition at line 922 of file ManagedMonitorToolBase.h.

◆ m_lastMedStatInterval

int ManagedMonitorToolBase::m_lastMedStatInterval
protectedinherited

Definition at line 924 of file ManagedMonitorToolBase.h.

◆ m_lastRun

unsigned int ManagedMonitorToolBase::m_lastRun
protectedinherited

Definition at line 923 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 240 of file TilePaterMonTool.h.

◆ m_lbDurationDataKey

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

Definition at line 951 of file ManagedMonitorToolBase.h.

◆ m_lumiDataKey

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

Definition at line 949 of file ManagedMonitorToolBase.h.

◆ m_lwhists

std::set<LWHist*> ManagedMonitorToolBase::m_lwhists
protectedinherited

Definition at line 891 of file ManagedMonitorToolBase.h.

◆ m_manager

AthenaMonManager* ManagedMonitorToolBase::m_manager
protectedinherited

Definition at line 892 of file ManagedMonitorToolBase.h.

◆ m_managerNameProp

std::string ManagedMonitorToolBase::m_managerNameProp
protectedinherited

Definition at line 894 of file ManagedMonitorToolBase.h.

◆ m_metadataMap

MDMap_t ManagedMonitorToolBase::m_metadataMap
protectedinherited

Definition at line 889 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 926 of file ManagedMonitorToolBase.h.

◆ m_nEventsIgnoreTrigger

unsigned int ManagedMonitorToolBase::m_nEventsIgnoreTrigger
protectedinherited

Definition at line 927 of file ManagedMonitorToolBase.h.

◆ m_nEventsTileMon

int TileDigitsMonTool::m_nEventsTileMon {}
private

Definition at line 125 of file TileDigitsMonTool.h.

◆ m_newEventsBlock

bool ManagedMonitorToolBase::m_newEventsBlock
privateinherited

Definition at line 884 of file ManagedMonitorToolBase.h.

◆ m_newHigStatInterval

bool ManagedMonitorToolBase::m_newHigStatInterval
privateinherited

Definition at line 882 of file ManagedMonitorToolBase.h.

◆ m_newLowStat

bool ManagedMonitorToolBase::m_newLowStat
privateinherited

Definition at line 883 of file ManagedMonitorToolBase.h.

◆ m_newLowStatInterval

bool ManagedMonitorToolBase::m_newLowStatInterval
privateinherited

Definition at line 882 of file ManagedMonitorToolBase.h.

◆ m_newLumiBlock

bool ManagedMonitorToolBase::m_newLumiBlock
privateinherited

Definition at line 883 of file ManagedMonitorToolBase.h.

◆ m_newMedStatInterval

bool ManagedMonitorToolBase::m_newMedStatInterval
privateinherited

Definition at line 882 of file ManagedMonitorToolBase.h.

◆ m_newRun

bool ManagedMonitorToolBase::m_newRun
privateinherited

Definition at line 883 of file ManagedMonitorToolBase.h.

◆ m_nLumiBlocks

unsigned int ManagedMonitorToolBase::m_nLumiBlocks
protectedinherited

Definition at line 928 of file ManagedMonitorToolBase.h.

◆ m_nSamples

int TileDigitsMonTool::m_nSamples {}
private

Definition at line 126 of file TileDigitsMonTool.h.

◆ m_path

std::string ManagedMonitorToolBase::m_path
protectedinherited

Definition at line 915 of file ManagedMonitorToolBase.h.

◆ m_preScaleProp

long ManagedMonitorToolBase::m_preScaleProp
protectedinherited

Definition at line 916 of file ManagedMonitorToolBase.h.

◆ m_procNEventsProp

long ManagedMonitorToolBase::m_procNEventsProp
protectedinherited

Definition at line 914 of file ManagedMonitorToolBase.h.

◆ m_runType

int TileDigitsMonTool::m_runType {}
private

Definition at line 106 of file TileDigitsMonTool.h.

◆ m_saturationLimitHG

int TileDigitsMonTool::m_saturationLimitHG {}
private

Definition at line 180 of file TileDigitsMonTool.h.

◆ m_savePng

bool TilePaterMonTool::m_savePng {}
protectedinherited

Definition at line 228 of file TilePaterMonTool.h.

◆ m_savePs

bool TilePaterMonTool::m_savePs {}
protectedinherited

Definition at line 229 of file TilePaterMonTool.h.

◆ m_saveSvg

bool TilePaterMonTool::m_saveSvg {}
protectedinherited

Definition at line 230 of file TilePaterMonTool.h.

◆ m_shiftnbins

int TileDigitsMonTool::m_shiftnbins {}
private

Definition at line 177 of file TileDigitsMonTool.h.

◆ m_streamNameFcn

StreamNameFcn* ManagedMonitorToolBase::m_streamNameFcn
protectedinherited

Definition at line 904 of file ManagedMonitorToolBase.h.

◆ m_supportedIntervalsForRebooking

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

Definition at line 959 of file ManagedMonitorToolBase.h.

◆ m_templateEfficiencies

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

Definition at line 738 of file ManagedMonitorToolBase.h.

◆ m_templateGraphs

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

Definition at line 726 of file ManagedMonitorToolBase.h.

◆ m_templateHistograms

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

Definition at line 722 of file ManagedMonitorToolBase.h.

◆ m_templateLWHistograms

std::map< Interval_t, std::vector< MgmtParams<LWHist> > > ManagedMonitorToolBase::m_templateLWHistograms
protectedinherited

Definition at line 734 of file ManagedMonitorToolBase.h.

◆ m_templateTrees

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

Definition at line 730 of file ManagedMonitorToolBase.h.

◆ m_THistSvc

ServiceHandle<ITHistSvc> ManagedMonitorToolBase::m_THistSvc
protectedinherited

Definition at line 906 of file ManagedMonitorToolBase.h.

◆ m_tileHWID

const TileHWID* TilePaterMonTool::m_tileHWID {}
protectedinherited

Definition at line 224 of file TilePaterMonTool.h.

◆ m_tileID

const TileID* TilePaterMonTool::m_tileID {}
protectedinherited

Definition at line 223 of file TilePaterMonTool.h.

◆ m_tileInfo

const TileInfo* TileDigitsMonTool::m_tileInfo {}
private

Definition at line 171 of file TileDigitsMonTool.h.

◆ m_tileTBID

const TileTBID* TilePaterMonTool::m_tileTBID {}
protectedinherited

Definition at line 225 of file TilePaterMonTool.h.

◆ 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 253 of file TilePaterMonTool.h.

◆ 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 252 of file TilePaterMonTool.h.

◆ m_trigDecTool

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

Definition at line 908 of file ManagedMonitorToolBase.h.

◆ m_triggerChainProp

std::string ManagedMonitorToolBase::m_triggerChainProp
protectedinherited

Definition at line 917 of file ManagedMonitorToolBase.h.

◆ m_triggerGroupProp

std::string ManagedMonitorToolBase::m_triggerGroupProp
protectedinherited

Definition at line 918 of file ManagedMonitorToolBase.h.

◆ m_trigLiveFractionDataKey

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

Definition at line 953 of file ManagedMonitorToolBase.h.

◆ m_trigTranslator

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

Definition at line 910 of file ManagedMonitorToolBase.h.

◆ m_useLumi

bool ManagedMonitorToolBase::m_useLumi
privateinherited

Definition at line 957 of file ManagedMonitorToolBase.h.

◆ m_useTrigger

bool ManagedMonitorToolBase::m_useTrigger
protectedinherited

Definition at line 920 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 742 of file ManagedMonitorToolBase.h.

◆ m_vTrigGroupNames

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

Definition at line 742 of file ManagedMonitorToolBase.h.

◆ m_zeroLimitHG

int TileDigitsMonTool::m_zeroLimitHG {}
private

Definition at line 179 of file TileDigitsMonTool.h.


The documentation for this class was generated from the following files:
AthenaMonManager::ownedLWHistOfKey
virtual LWHist * ownedLWHistOfKey(const std::string &key) const
Definition: AthenaMonManager.cxx:726
ManagedMonitorToolBase::m_nEvents
unsigned int m_nEvents
Definition: ManagedMonitorToolBase.h:926
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
LWHist
Definition: LWHist.h:26
TileRawChannelContainer
Definition: TileRawChannelContainer.h:13
ManagedMonitorToolBase::THistSvc_deReg_fixTGraph
StatusCode THistSvc_deReg_fixTGraph(TFile *file, TGraph *theGraph, std::string &directoryName)
Fixes THistSvc->deReg(obj) when obj is TGraph instance.
Definition: ManagedMonitorToolBase.cxx:1098
TileDigitsMonTool::m_f_ADCmax
float m_f_ADCmax
Definition: TileDigitsMonTool.h:173
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
ManagedMonitorToolBase::m_templateEfficiencies
std::map< Interval_t, std::vector< MgmtParams< TEfficiency > > > m_templateEfficiencies
Definition: ManagedMonitorToolBase.h:738
AthenaMonManager::writeAndDeleteLWHist
virtual LWHist * writeAndDeleteLWHist(const std::string &key, const std::string &streamName)
Definition: AthenaMonManager.cxx:743
ManagedMonitorToolBase::streamNameFunction
virtual StreamNameFcn * streamNameFunction()
Returns the function object that converts logical paramters into a physical stream name.
Definition: ManagedMonitorToolBase.cxx:503
TilePaterMonTool::book1F
TH1F * book1F(std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
Definition: TilePaterMonTool.cxx:175
TileDigitsMonTool::m_fillPedestalDifference
bool m_fillPedestalDifference
Definition: TileDigitsMonTool.h:166
ManagedMonitorToolBase::m_newRun
bool m_newRun
Definition: ManagedMonitorToolBase.h:883
ManagedMonitorToolBase::m_supportedIntervalsForRebooking
std::set< Interval_t > m_supportedIntervalsForRebooking
Definition: ManagedMonitorToolBase.h:959
defineDB.smd
string smd
Definition: JetTagCalibration/share/defineDB.py:44
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
ManagedMonitorToolBase::m_path
std::string m_path
Definition: ManagedMonitorToolBase.h:915
ymin
double ymin
Definition: listroot.cxx:63
TileDigitsMonTool::bookHists
virtual StatusCode bookHists() override
Calls bookHists( true, true, true ) and initializes lumiBlock and run numbers.
Definition: TileDigitsMonTool.cxx:134
checkFileSG.line
line
Definition: checkFileSG.py:75
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
TileDigitsMonTool::m_zeroLimitHG
int m_zeroLimitHG
Definition: TileDigitsMonTool.h:179
ManagedMonitorToolBase::getHist
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.
Definition: ManagedMonitorToolBase.cxx:1589
ManagedMonitorToolBase::m_newEventsBlock
bool m_newEventsBlock
Definition: ManagedMonitorToolBase.h:884
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TilePaterMonTool::NO_ROB
@ NO_ROB
Definition: TilePaterMonTool.h:65
get_generator_info.result
result
Definition: get_generator_info.py:21
header
Definition: hcg.cxx:526
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:126
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
max
#define max(a, b)
Definition: cfImp.cxx:41
TileDigitsMonTool::m_allHistsFilled
bool m_allHistsFilled
Definition: TileDigitsMonTool.h:161
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
AddEmptyComponent.histName
string histName
Definition: AddEmptyComponent.py:64
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
TileDigitsMonTool::PhysRun
@ PhysRun
Definition: TileDigitsMonTool.h:111
ManagedMonitorToolBase::deregHist
virtual StatusCode deregHist(LWHist *h)
Definition: ManagedMonitorToolBase.cxx:1826
TilePaterMonTool::initialize
virtual StatusCode initialize() override
Definition: TilePaterMonTool.cxx:106
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
TilePaterMonTool::TilePaterMonTool
TilePaterMonTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TilePaterMonTool.cxx:78
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TilePaterMonTool::ALL_00
@ ALL_00
Definition: TilePaterMonTool.h:65
ManagedMonitorToolBase::higStat
@ higStat
Definition: ManagedMonitorToolBase.h:115
python.ExitCodes.ALL_OK
int ALL_OK
successful run
Definition: ExitCodes.py:10
ManagedMonitorToolBase::lumiBlock
@ lumiBlock
Definition: ManagedMonitorToolBase.h:114
ManagedMonitorToolBase::m_endOfLumiBlock
bool m_endOfLumiBlock
Definition: ManagedMonitorToolBase.h:885
TH1I
Definition: rootspy.cxx:332
TH2F
Definition: rootspy.cxx:420
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TileDigitsMonTool::statTestHistos
void statTestHistos(int ros, int drawer, int gain)
Definition: TileDigitsMonTool.cxx:1844
TileDigitsMonTool::m_tileInfo
const TileInfo * m_tileInfo
Definition: TileDigitsMonTool.h:171
PixelAthClusterMonAlgCfg.zmin
zmin
Definition: PixelAthClusterMonAlgCfg.py:176
ManagedMonitorToolBase::m_THistSvc
ServiceHandle< ITHistSvc > m_THistSvc
Definition: ManagedMonitorToolBase.h:906
ManagedMonitorToolBase::m_procNEventsProp
long m_procNEventsProp
Definition: ManagedMonitorToolBase.h:914
TileDigitsMonTool::m_contNameDSP
std::string m_contNameDSP
Definition: TileDigitsMonTool.h:107
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
AthenaMonManager::writeAndResetLWHist
virtual LWHist * writeAndResetLWHist(const std::string &key, const std::string &streamName)
Definition: AthenaMonManager.cxx:802
ManagedMonitorToolBase::regTree
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.
Definition: ManagedMonitorToolBase.cxx:1749
TilePaterMonTool::m_EBcellName
std::string m_EBcellName[48]
Definition: TilePaterMonTool.h:235
TilePaterMonTool::m_savePng
bool m_savePng
Definition: TilePaterMonTool.h:228
TilePaterMonTool::regHist
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="")
Definition: TilePaterMonTool.cxx:52
plotmaker.hist
hist
Definition: plotmaker.py:148
TilePaterMonTool::m_savePs
bool m_savePs
Definition: TilePaterMonTool.h:229
AthenaMonManager::fileKey
virtual std::string fileKey() const
Definition: AthenaMonManager.cxx:699
TileDQstatus::calibMode
uint32_t calibMode() const
Calibration mode.
Definition: TileDQstatus.h:148
AthenaMonManager::AOD
@ AOD
Definition: AthenaMonManager.h:49
AthenaMonManager::passOwnership
virtual void passOwnership(TObject *h, const std::string &key)
Pass ownership of a TObject/LWHist to this manager so that it will be deleted appropriately.
Definition: AthenaMonManager.cxx:707
tree
TChain * tree
Definition: tile_monitor.h:30
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
TilePaterMonTool::CRC_ERR
@ CRC_ERR
Definition: TilePaterMonTool.h:65
TilePaterMonTool::m_LBcellName
std::string m_LBcellName[48]
Definition: TilePaterMonTool.h:240
ManagedMonitorToolBase::lbDuration
virtual double lbDuration(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Luminosity block time (in seconds)
Definition: ManagedMonitorToolBase.cxx:2047
ManagedMonitorToolBase::m_trigDecTool
PublicToolHandle< Trig::ITrigDecisionTool > m_trigDecTool
Definition: ManagedMonitorToolBase.h:908
TileDigitsMonTool::m_NCont
static const int m_NCont
Definition: TileDigitsMonTool.h:76
TilePaterMonTool::m_chMapEB
int m_chMapEB[48]
Definition: TilePaterMonTool.h:270
TH1I_LW
Definition: TH1I_LW.h:23
skel.it
it
Definition: skel.GENtoEVGEN.py:423
TileDigitsMonTool::m_cispar
const uint32_t * m_cispar
Definition: TileDigitsMonTool.h:122
TProfile2D
Definition: rootspy.cxx:531
TH1D
Definition: rootspy.cxx:342
PixelAthClusterMonAlgCfg.ybins
ybins
Definition: PixelAthClusterMonAlgCfg.py:163
TH1I_LW::create
static TH1I_LW * create(const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup)
Definition: TH1I_LW.cxx:33
bin
Definition: BinsDiffFromStripMedian.h:43
TileDigitsMonTool::LasRun
@ LasRun
Definition: TileDigitsMonTool.h:112
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
TileDigitsMonTool::m_shiftnbins
int m_shiftnbins
Definition: TileDigitsMonTool.h:177
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
TileDigitsMonTool::stuckBits
int stuckBits(TH1S *hist, int adc)
Method to find stuckbits in Read-Out ADC channel.
Definition: TileDigitsMonTool.cxx:1260
AthCommonMsg< AlgTool >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
TileHWID::frag
int frag(const HWIdentifier &id) const
extract frag field from HW identifier
Definition: TileHWID.h:181
TileDigitsMonTool::m_saturationLimitHG
int m_saturationLimitHG
Definition: TileDigitsMonTool.h:180
LWHistAthMonWrapper::setStreamName
static void setStreamName(LWHist *, const std::string &streamName)
ManagedMonitorToolBase::m_dataType
AthenaMonManager::DataType_t m_dataType
Definition: ManagedMonitorToolBase.h:901
TileDigitsMonTool::m_runType
int m_runType
Definition: TileDigitsMonTool.h:106
TilePaterMonTool::m_chMapLB
int m_chMapLB[48]
Definition: TilePaterMonTool.h:265
TileDigitsMonTool::LedRun
@ LedRun
Definition: TileDigitsMonTool.h:113
ManagedMonitorToolBase::regGraph
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...
Definition: ManagedMonitorToolBase.cxx:1693
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
ManagedMonitorToolBase::m_newLowStatInterval
bool m_newLowStatInterval
Definition: ManagedMonitorToolBase.h:882
ManagedMonitorToolBase::fill
@ fill
Definition: ManagedMonitorToolBase.h:116
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.TrigTLAMonitorAlgorithm.triggers
triggers
Definition: TrigTLAMonitorAlgorithm.py:196
TileDigitsMonTool::CRCcheck
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.
Definition: TileDigitsMonTool.cxx:1609
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
TileDigitsContainer
Definition: TileDigitsContainer.h:13
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
HWIdentifier
Definition: HWIdentifier.h:13
covarianceTool.prob
prob
Definition: covarianceTool.py:678
TProfile_LW
Definition: TProfile_LW.h:24
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
TileDigitsMonTool::DMUheaderFormatCheck
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...
Definition: TileDigitsMonTool.h:85
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:83
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
ManagedMonitorToolBase::registerMetadata
StatusCode registerMetadata(const std::string &streamName, const std::string &hName, const MonGroup &group)
Definition: ManagedMonitorToolBase.cxx:1006
TilePaterMonTool::book2F
TH2F * book2F(std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
Definition: TilePaterMonTool.cxx:244
TH2S
Definition: rootspy.cxx:400
ManagedMonitorToolBase::m_newHigStatInterval
bool m_newHigStatInterval
Definition: ManagedMonitorToolBase.h:882
ManagedMonitorToolBase::m_newMedStatInterval
bool m_newMedStatInterval
Definition: ManagedMonitorToolBase.h:882
TileHWID::channel
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
Definition: TileHWID.h:189
TruthTest.itE
itE
Definition: TruthTest.py:25
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
TileDigitsMonTool::stuckBits_Amp2
int stuckBits_Amp2(TH1S *hist, TH1C *modhist, int adc, TH2C *outhist=NULL, int ch=0, uint8_t *stuck_probs=NULL)
Definition: TileDigitsMonTool.cxx:1423
Monitored::X
@ X
Definition: HistogramFillerUtils.h:24
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
TileCalibUtils::MAX_DRAWER
static const unsigned int MAX_DRAWER
Number of drawers in ROS 1-4.
Definition: TileCalibUtils.h:139
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
TileHWID::ros
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
Definition: TileHWID.h:167
AthenaMonManager::environment
static Environment_t environment()
Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects ...
Definition: AthenaMonManager.cxx:321
LWHistAthMonWrapper::streamName
static const std::string & streamName(LWHist *)
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
TilePaterMonTool::NO_FRAG
@ NO_FRAG
Definition: TilePaterMonTool.h:65
python.checkMetadata.metadata
metadata
Definition: checkMetadata.py:175
TilePaterMonTool::m_chMapEBsp
int m_chMapEBsp[48]
Definition: TilePaterMonTool.h:275
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:269
TileDigitsMonTool::DMUheaderCheck
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...
Definition: TileDigitsMonTool.cxx:1738
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
TileDigitsMonTool::m_tileToolNoiseSample
ToolHandle< TileCondToolNoiseSample > m_tileToolNoiseSample
tool which provided noise values
Definition: TileDigitsMonTool.h:120
cm
const double cm
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/FCAL_ChannelMap.cxx:25
ManagedMonitorToolBase::m_bookHistogramsInitial
bool m_bookHistogramsInitial
Definition: ManagedMonitorToolBase.h:956
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
LWHist::usingROOTBackend
bool usingROOTBackend() const
Definition: LWHist.h:73
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
ManagedMonitorToolBase::getNewStreamNameFcn
virtual StreamNameFcn * getNewStreamNameFcn() const
Definition: ManagedMonitorToolBase.cxx:2388
python.PyAthena.module
module
Definition: PyAthena.py:134
ManagedMonitorToolBase::m_preScaleProp
long m_preScaleProp
Definition: ManagedMonitorToolBase.h:916
WriteCellNoiseToCool.gn
gn
Definition: WriteCellNoiseToCool.py:531
LWHistAthMonWrapper::removeCustomData
static void removeCustomData(LWHist *)
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
ManagedMonitorToolBase::m_fileKey
std::string m_fileKey
Definition: ManagedMonitorToolBase.h:896
TilePaterMonTool::m_saveSvg
bool m_saveSvg
Definition: TilePaterMonTool.h:230
TileDQstatus
Class that holds Data Quality fragment information and provides functions to extract the data quality...
Definition: TileDQstatus.h:49
TileDCSDataPlotter.tit
tit
Definition: TileDCSDataPlotter.py:890
TileHWID::adc
int adc(const HWIdentifier &id) const
extract adc field from HW identifier
Definition: TileHWID.h:193
AthenaMonManager::tier0ESD
@ tier0ESD
Definition: AthenaMonManager.h:49
ManagedMonitorToolBase::lbAverageLivefraction
virtual float lbAverageLivefraction(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Average luminosity livefraction.
Definition: ManagedMonitorToolBase.cxx:1993
ManagedMonitorToolBase::m_templateGraphs
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > m_templateGraphs
Definition: ManagedMonitorToolBase.h:726
TH1C
Definition: rootspy.cxx:352
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthenaMonManager::dataType
static DataType_t dataType()
Returns the data type that the monitoring application is running over to help ManagedMonitorToolBase ...
Definition: AthenaMonManager.cxx:338
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TileDigitsMonTool::m_nEventsTileMon
int m_nEventsTileMon
Definition: TileDigitsMonTool.h:125
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
PURW_create_actual_mu_profile.outhist
outhist
Definition: PURW_create_actual_mu_profile.py:58
ManagedMonitorToolBase::m_manager
AthenaMonManager * m_manager
Definition: ManagedMonitorToolBase.h:892
LWHistAthMonWrapper::key
static const std::string & key(LWHist *)
ManagedMonitorToolBase::m_lumiDataKey
SG::ReadCondHandleKey< LuminosityCondData > m_lumiDataKey
Definition: ManagedMonitorToolBase.h:950
ManagedMonitorToolBase::deregGraph
virtual StatusCode deregGraph(TGraph *g)
De-registers a TGraph from the THistSvc, but does NOT delete the object.
Definition: ManagedMonitorToolBase.cxx:1844
ManagedMonitorToolBase::m_streamNameFcn
StreamNameFcn * m_streamNameFcn
Definition: ManagedMonitorToolBase.h:904
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:100
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:193
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
perfmonmt-plotter.colors
dictionary colors
Definition: perfmonmt-plotter.py:21
TProfile_LW::create
static TProfile_LW * create(const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup, const char *option=" ")
Definition: TProfile_LW.cxx:32
lumiFormat.i
int i
Definition: lumiFormat.py:92
xmin
double xmin
Definition: listroot.cxx:60
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
ReadCellNoiseFromCool.chan
chan
Definition: ReadCellNoiseFromCool.py:52
AthenaMonManager::tier0
@ tier0
Definition: AthenaMonManager.h:49
python.LArBadChannelDBAlg.xFFFFFFFF
xFFFFFFFF
Definition: LArBadChannelDBAlg.py:73
TH2I_LW::create
static TH2I_LW * create(const char *name, const char *title, unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double &ymin, const double &ymax)
Definition: TH2I_LW.cxx:33
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
extractSporadic.h
list h
Definition: extractSporadic.py:97
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
checkxAOD.frac
frac
Definition: Tools/PyUtils/bin/checkxAOD.py:256
AthenaMonManager::online
@ online
Definition: AthenaMonManager.h:49
TH2I
Definition: rootspy.cxx:410
TGraph1
Definition: TilePaterMonTool.cxx:409
ManagedMonitorToolBase::file
@ file
Definition: ManagedMonitorToolBase.h:114
AthenaMonManager::writeAndDelete
virtual void writeAndDelete(const std::string &key)
If the TObject is owned by this manager, its Write() method is called and it is deleted.
Definition: AthenaMonManager.cxx:870
TileDigitsMonTool::m_bigain
bool m_bigain
Definition: TileDigitsMonTool.h:124
master.flag
bool flag
Definition: master.py:29
getLatestRuns.interval
interval
Definition: getLatestRuns.py:24
ManagedMonitorToolBase::ATTRIB_UNMANAGED
@ ATTRIB_UNMANAGED
Definition: ManagedMonitorToolBase.h:131
PixelAthClusterMonAlgCfg.zmax
zmax
Definition: PixelAthClusterMonAlgCfg.py:176
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AthenaMonManager::tier0Raw
@ tier0Raw
Definition: AthenaMonManager.h:49
TilePaterMonTool::m_TMDB_LB_cell_names
std::string m_TMDB_LB_cell_names[8]
Definition: TilePaterMonTool.h:252
TilePaterMonTool::book2C
TH2C * book2C(std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
Definition: TilePaterMonTool.cxx:290
AthenaMonManager::user
@ user
Definition: AthenaMonManager.h:49
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
ManagedMonitorToolBase::ATTRIB_MANAGED
@ ATTRIB_MANAGED
Definition: ManagedMonitorToolBase.h:131
ManagedMonitorToolBase::StreamNameFcn::getStreamName
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.
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TileDigitsMonTool::MonoRun
@ MonoRun
Definition: TileDigitsMonTool.h:116
TH2D
Definition: rootspy.cxx:430
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
TileCalibUtils::MAX_ROS
static const unsigned int MAX_ROS
Number of ROSs
Definition: TileCalibUtils.h:138
ManagedMonitorToolBase::medStat
@ medStat
Definition: ManagedMonitorToolBase.h:115
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
ManagedMonitorToolBase::m_templateTrees
std::map< Interval_t, std::vector< MgmtParams< TTree > > > m_templateTrees
Definition: ManagedMonitorToolBase.h:730
ManagedMonitorToolBase::m_metadataMap
MDMap_t m_metadataMap
Definition: ManagedMonitorToolBase.h:889
TilePaterMonTool::ALL_OK
@ ALL_OK
Definition: TilePaterMonTool.h:65
ManagedMonitorToolBase::m_endOfEventsBlock
bool m_endOfEventsBlock
Definition: ManagedMonitorToolBase.h:885
fcn
void fcn(int &, double *, double &result, double par[], int)
this is where we write out chi2
Definition: Chi2LJets.cxx:183
ManagedMonitorToolBase::m_trigLiveFractionDataKey
SG::ReadCondHandleKey< TrigLiveFractionCondData > m_trigLiveFractionDataKey
Definition: ManagedMonitorToolBase.h:954
TileDigitsMonTool::stuckBits_Amp
int stuckBits_Amp(TH1S *hist, int adc)
A crude method to check Read-Out ADC channel stuckbits.
Definition: TileDigitsMonTool.cxx:1369
bin2
Definition: KillBinsByStrip.h:34
TilePaterMonTool::book1I
TH1I * book1I(std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
Definition: TilePaterMonTool.cxx:219
TileDigitsMonTool::shiftHisto
void shiftHisto(TH1S *hist, int ros, int drawer, int ch, int gain)
Definition: TileDigitsMonTool.cxx:1822
ManagedMonitorToolBase::m_environment
AthenaMonManager::Environment_t m_environment
Definition: ManagedMonitorToolBase.h:902
beamspotman.dir
string dir
Definition: beamspotman.py:623
TileDigitsMonTool::m_digitsContainerName
std::string m_digitsContainerName
Definition: TileDigitsMonTool.h:167
min
#define min(a, b)
Definition: cfImp.cxx:40
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
TilePaterMonTool::regGraph
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="")
Definition: TilePaterMonTool.cxx:65
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Monitored::Y
@ Y
Definition: HistogramFillerUtils.h:24
TileDigitsMonTool::m_ADCmaxMinusEps
float m_ADCmaxMinusEps
Definition: TileDigitsMonTool.h:174
ManagedMonitorToolBase::m_newLumiBlock
bool m_newLumiBlock
Definition: ManagedMonitorToolBase.h:883
ManagedMonitorToolBase::m_endOfLowStat
bool m_endOfLowStat
Definition: ManagedMonitorToolBase.h:885
TileDigitsMonTool::m_DQstatusKey
SG::ReadHandleKey< TileDQstatus > m_DQstatusKey
Definition: TileDigitsMonTool.h:182
TileDigitsCollection
Definition: TileDigitsCollection.h:18
ManagedMonitorToolBase::m_lbDurationDataKey
SG::ReadCondHandleKey< LBDurationCondData > m_lbDurationDataKey
Definition: ManagedMonitorToolBase.h:952
TH2I_LW
Definition: TH2I_LW.h:23
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
TileDigitsMonTool::m_i_ADCmax
int m_i_ADCmax
Definition: TileDigitsMonTool.h:172
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
TileDigits
Definition: TileDigits.h:30
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TileDigitsMonTool::define_palette
int define_palette(int ncolors, int *colors=NULL)
Definition: TileDigitsMonTool.cxx:945
plotBeamSpotVxVal.bin
int bin
Definition: plotBeamSpotVxVal.py:83
TileDigitsMonTool::m_book2D
bool m_book2D
Definition: TileDigitsMonTool.h:105
TileRawChannelCollection
Definition: TileRawChannelCollection.h:12
LWHistAthMonWrapper::setKey
static void setKey(LWHist *, const std::string &key)
charge
double charge(const T &p)
Definition: AtlasPID.h:494
TilePaterMonTool::bookProfile
TProfile * bookProfile(std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
Definition: TilePaterMonTool.cxx:301
TProfile
Definition: rootspy.cxx:515
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
TilePaterMonTool::m_fragIDsToIgnoreDMUerrors
std::vector< int > m_fragIDsToIgnoreDMUerrors
Definition: TilePaterMonTool.h:232
item
Definition: ItemListSvc.h:43
green
@ green
Definition: BinsDiffFromStripMedian.h:18
LArNewCalib_PedestalAutoCorr.cp
cp
Definition: LArNewCalib_PedestalAutoCorr.py:175
TilePaterMonTool::book1S
TH1S * book1S(std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
Definition: TilePaterMonTool.cxx:197
TileDigitsMonTool::Unknown
@ Unknown
Definition: TileDigitsMonTool.h:110
TileDQstatus::cispar
const uint32_t * cispar() const
CIS parameters.
Definition: TileDQstatus.h:152
ManagedMonitorToolBase::lowStat
@ lowStat
Definition: ManagedMonitorToolBase.h:115
TileDigitsMonTool::m_is12bit
bool m_is12bit
Definition: TileDigitsMonTool.h:176
LWHist::setOwnsROOTHisto
void setOwnsROOTHisto(bool b)
Definition: LWHist.h:75
ManagedMonitorToolBase::m_lwhists
std::set< LWHist * > m_lwhists
Definition: ManagedMonitorToolBase.h:891
TH1C::GetBinContent
double GetBinContent(int) const
Definition: rootspy.cxx:357
TilePaterMonTool::book2D
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.
Definition: TilePaterMonTool.h:76
Example_ReadSampleNoise.ped
ped
Definition: Example_ReadSampleNoise.py:45
LArCellBinning.xbins
int xbins
Definition: LArCellBinning.py:163
ManagedMonitorToolBase::m_templateLWHistograms
std::map< Interval_t, std::vector< MgmtParams< LWHist > > > m_templateLWHistograms
Definition: ManagedMonitorToolBase.h:734
TilePaterMonTool::isDisconnected
bool isDisconnected(int ros, int drawer, int ch)
Definition: TilePaterMonTool.h:281
TrackingGeometryValidation.stops
stops
Definition: TrackingGeometryValidation.py:30
ManagedMonitorToolBase::m_managerNameProp
std::string m_managerNameProp
Definition: ManagedMonitorToolBase.h:894
dqt_zlumi_pandas.bin4
bin4
Definition: dqt_zlumi_pandas.py:345
ManagedMonitorToolBase::run
@ run
Definition: ManagedMonitorToolBase.h:116
ManagedMonitorToolBase::m_endOfRun
bool m_endOfRun
Definition: ManagedMonitorToolBase.h:885
TileCalibUtils::getDrawerString
static std::string getDrawerString(unsigned int ros, unsigned int drawer)
Return the drawer name, e.g.
Definition: TileCalibUtils.cxx:145
ManagedMonitorToolBase::m_newLowStat
bool m_newLowStat
Definition: ManagedMonitorToolBase.h:883
AthenaPoolExample_Copy.streamName
string streamName
Definition: AthenaPoolExample_Copy.py:39
lumiFormat.lumi
lumi
Definition: lumiFormat.py:113
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
TileDigitsMonTool::DMUheaderParityCheck
bool DMUheaderParityCheck(uint32_t header)
Function to check that the DMU header parity is correct Parity of the DMU header should be odd Return...
Definition: TileDigitsMonTool.h:95
TileDigitsMonTool::CisRamp
@ CisRamp
Definition: TileDigitsMonTool.h:117
dqt_zlumi_pandas.bin1
bin1
Definition: dqt_zlumi_pandas.py:329
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
h
TileHWID::drawer
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
Definition: TileHWID.h:171
TH1F
Definition: rootspy.cxx:320
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
TileDigitsMonTool::m_data
std::unique_ptr< Data > m_data
Definition: TileDigitsMonTool.h:160
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
TH2C
Definition: rootspy.cxx:390
TH1S
Definition: rootspy.cxx:362
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
ref
const boost::regex ref(r_ef)
AthenaMonManager::altprod
@ altprod
Definition: AthenaMonManager.h:49
ManagedMonitorToolBase::eventsBlock
@ eventsBlock
Definition: ManagedMonitorToolBase.h:114
python.envutil.filelist
filelist
print ("Checking files %s..." % fullfile)
Definition: envutil.py:152
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TH1
Definition: rootspy.cxx:268
DEBUG
#define DEBUG
Definition: page_access.h:11
generate::GetEntries
double GetEntries(TH1D *h, int ilow, int ihi)
Definition: rmsFrac.cxx:20
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
TilePaterMonTool::book1D
TH1D * book1D(const std::string &nam, const std::string &tit, int nx, double xmin, double xmax)
Implicit version of book1D.
Definition: TilePaterMonTool.h:69
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
bin3
Definition: BinsOutOfRange.h:33
xmax
double xmax
Definition: listroot.cxx:61
ManagedMonitorToolBase::all
@ all
Definition: ManagedMonitorToolBase.h:116
ManagedMonitorToolBase::deregObject
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.
Definition: ManagedMonitorToolBase.cxx:1852
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
entries
double entries
Definition: listroot.cxx:49
ManagedMonitorToolBase::StreamNameFcn::getDirectoryName
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...
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
TileDigitsMonTool::m_infoName
std::string m_infoName
Definition: TileDigitsMonTool.h:170
ManagedMonitorToolBase::lbAverageLuminosity
virtual float lbAverageLuminosity(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1)
Definition: ManagedMonitorToolBase.cxx:1960
str
Definition: BTagTrackIpAccessor.cxx:11
LArG4GenerateShowerLib.nevents
nevents
Definition: LArG4GenerateShowerLib.py:19
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
python.Logging.manager
manager
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py:92
merge.status
status
Definition: merge.py:17
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
TileCalibUtils::getDrawerIdx
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
Definition: TileCalibUtils.cxx:60
TileAANtupleConfig.rawChannelContainer
rawChannelContainer
Definition: TileAANtupleConfig.py:120
TileDigitsMonTool::drawHists
void drawHists(int ros, int drawer, const std::string &moduleName)
Definition: TileDigitsMonTool.cxx:975
TilePaterMonTool::ALL_FF
@ ALL_FF
Definition: TilePaterMonTool.h:65
python.LumiCalcRecover.subdir
subdir
Definition: LumiCalcRecover.py:25
ManagedMonitorToolBase::m_templateHistograms
std::map< Interval_t, std::vector< MgmtParams< TH1 > > > m_templateHistograms
Definition: ManagedMonitorToolBase.h:722
TileDigitsMonTool::PedRun
@ PedRun
Definition: TileDigitsMonTool.h:114
TilePaterMonTool::book1C
TH1C * book1C(std::string dir, std::string nam, std::string tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, std::string trigChain="", std::string mergeAlgo="")
Definition: TilePaterMonTool.cxx:186
TileCalibUtils::MAX_CHAN
static const unsigned int MAX_CHAN
Number of channels in drawer.
Definition: TileCalibUtils.h:141
TilePaterMonTool::m_tileHWID
const TileHWID * m_tileHWID
Definition: TilePaterMonTool.h:224
ManagedMonitorToolBase::ATTRIB_X_VS_LB
@ ATTRIB_X_VS_LB
Definition: ManagedMonitorToolBase.h:131
TilePaterMonTool::m_TMDB_EB_cell_names
std::string m_TMDB_EB_cell_names[4]
Definition: TilePaterMonTool.h:253
ManagedMonitorToolBase::Imp::s_svcLocator
static std::atomic< ISvcLocator * > s_svcLocator
Definition: ManagedMonitorToolBase.cxx:41
python.PyAthena.obj
obj
Definition: PyAthena.py:135
ManagedMonitorToolBase::m_trigTranslator
PublicToolHandle< ITriggerTranslatorTool > m_trigTranslator
Definition: ManagedMonitorToolBase.h:910
LWHist::getROOTHistBase
virtual TH1 * getROOTHistBase()=0
TMultiGraph1
Definition: TilePaterMonTool.cxx:528
python.compressB64.c
def c
Definition: compressB64.py:93
red
@ red
Definition: BinsDiffFromStripMedian.h:18
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TileDigitsMonTool::RODCRCcalc
StatusCode RODCRCcalc(const TileDQstatus *dqStatus)
Definition: TileDigitsMonTool.cxx:1779
ManagedMonitorToolBase::regHist
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 ...
Definition: ManagedMonitorToolBase.cxx:1454
TileInfo::ADCmax
int ADCmax() const
Returns the maximum ADC output (10 bits --> 1023)
Definition: TileInfo.h:71
TrackingGeometryValidation.blue
blue
Definition: TrackingGeometryValidation.py:33
TileDigitsMonTool::CisRun
@ CisRun
Definition: TileDigitsMonTool.h:115
merge
Definition: merge.py:1
AthenaMonManager::noOutput
@ noOutput
Definition: AthenaMonManager.h:49
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
ManagedMonitorToolBase::intervalEnumToString
static std::string intervalEnumToString(Interval_t interval)
Converts a LevelOfDetail_t to a string of the same name.
Definition: ManagedMonitorToolBase.cxx:588
TileRawChannelUnit::ADCcounts
@ ADCcounts
Definition: TileRawChannelUnit.h:17
fitman.k
k
Definition: fitman.py:528
python.handimod.cc
int cc
Definition: handimod.py:523
ymax
double ymax
Definition: listroot.cxx:64
ManagedMonitorToolBase::m_defaultLBDuration
float m_defaultLBDuration
Definition: ManagedMonitorToolBase.h:958
TileDigitsMonTool::m_bookAll
bool m_bookAll
Definition: TileDigitsMonTool.h:104
TileDigitsMonTool::m_nSamples
int m_nSamples
Definition: TileDigitsMonTool.h:126