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 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 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 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 writeAndDelete (TH1 *h, const MonGroup &group)
 Write out histogram and delete it. More...
 
virtual StatusCode deregHist (TH1 *h)
 De-registers a TH1 from the THistSvc, but does NOT delete the object. 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

TH1D * book1D (const std::string &nam, const std::string &tit, int nx, double xmin, double xmax)
 Implicit version of book1D. More...
 
TH1D * book1D (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH2D * book2D (const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax)
 Implicit version of book2D. More...
 
TH2D * book2D (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH1F * book1F (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH1I * book1I (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH1S * book1S (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH1S * book1Sx (const std::string &dir, const std::string &nam, const std::string &tit, int nx, const Double_t *xlgbins, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH1C * book1C (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH2F * book2F (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH2F * book2F (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, const double *ybins, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH2I * book2I (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH2S * book2S (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TH2C * book2C (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TProfile * bookProfile (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TProfile * bookProfile (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TProfile * bookProfile (const std::string &dir, const std::string &nam, const std::string &tit, int nx, const float *xbins, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TProfile2D * bookProfile2D (const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, double zmin, double zmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
 
TGraph * bookGraph (const std::string &dir, const std::string &nam, const std::string &tit, int N, float *X, float *Y)
 
TGraphErrors * bookGraphErrors (const std::string &dir, const std::string &nam, const std::string &tit, int N, float *X, float *Y, float *X_errors, float *Y_errors)
 
TGraphAsymmErrors * bookGraphAsymmErrors (const std::string &dir, const std::string &nam, const std::string &tit, int N, float *X, float *Y, float *X_errors1, float *X_errors2, float *Y_errors1, float *Y_errors2)
 
TMultiGraph * bookMultiGraph (const std::string &dir, const std::string &nam, const std::string &tit)
 
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...
 
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 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< TEfficiency > > > m_templateEfficiencies
 
std::vector< std::string > m_vTrigChainNames
 
std::vector< std::string > m_vTrigGroupNames
 
MDMap_t m_metadataMap
 
AthenaMonManagerm_manager
 
std::string m_managerNameProp
 
std::string m_fileKey
 
std::string m_dataTypeStr
 
std::string m_environmentStr
 
unsigned int m_detailLevel
 
AthenaMonManager::DataType_t m_dataType
 
AthenaMonManager::Environment_t m_environment
 
StreamNameFcnm_streamNameFcn
 
ServiceHandle< ITHistSvc > m_THistSvc
 
PublicToolHandle< Trig::ITrigDecisionToolm_trigDecTool {this, "TrigDecisionTool",""}
 
PublicToolHandle< ITriggerTranslatorToolm_trigTranslator {this,"TriggerTranslatorTool",""}
 
ToolHandleArray< IDQFilterToolm_DQFilterTools {this,"FilterTools",{}}
 
long m_procNEventsProp
 
std::string m_path
 
long m_preScaleProp
 
std::string m_triggerChainProp
 
std::string m_triggerGroupProp
 
bool m_useTrigger
 
unsigned int m_lastLumiBlock
 
unsigned int m_lastRun
 
int m_lastLowStatInterval
 
int m_lastMedStatInterval
 
int m_lastHigStatInterval
 
unsigned int m_nEvents
 
unsigned int m_nEventsIgnoreTrigger
 
unsigned int m_nLumiBlocks
 
bool m_haveClearedLastEventBlock
 

Private Types

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

Private Member Functions

int stuckBits (TH1S *hist, int adc)
 Method to find stuckbits in Read-Out ADC channel. 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 826 of file ManagedMonitorToolBase.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ Interval_t

An enumeration describing how detailed a particular monitoring object is.

summary: used to summarize the state of the system

runstat: same as summary

shift: used to flag potential problems

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

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

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

Enumerator
file 
eventsBlock 
lumiBlock 
lowStat 
medStat 
higStat 
run 
fill 
all 

Definition at line 113 of file ManagedMonitorToolBase.h.

113  { file = 0, eventsBlock, lumiBlock,
115  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 130 of file ManagedMonitorToolBase.h.

◆ RunType

Enumerator
Unknown 
PhysRun 
LasRun 
LedRun 
PedRun 
CisRun 
MonoRun 
CisRamp 

Definition at line 109 of file TileDigitsMonTool.h.

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

◆ TileFragStatus

Enumerator
ALL_OK 
CRC_ERR 
ALL_FF 
ALL_00 
NO_FRAG 
NO_ROB 

Definition at line 62 of file TilePaterMonTool.h.

62 {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 ( const std::string &  dir,
const std::string &  nam,
const std::string &  tit,
int  nx,
double  xmin,
double  xmax,
Interval_t  interval = run,
MgmtAttr_t  attribute = ATTRIB_MANAGED,
const std::string &  trigChain = "",
const std::string &  mergeAlgo = "" 
)
protectedinherited

Definition at line 181 of file TilePaterMonTool.cxx.

185 {
186 
187  TH1C* hist = new TH1C(TString(nam), TString(tit), nx, xmin, xmax);
188  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
189  return hist;
190 }

◆ book1D() [1/2]

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

Definition at line 159 of file TilePaterMonTool.cxx.

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

◆ book1D() [2/2]

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

Implicit version of book1D.

Definition at line 66 of file TilePaterMonTool.h.

68  {
69  return book1D(m_path, nam, tit, nx, xmin, xmax);
70  }

◆ book1F()

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

Definition at line 170 of file TilePaterMonTool.cxx.

174 {
175 
176  TH1F* hist = new TH1F(TString(nam), TString(tit), nx, xmin, xmax);
177  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
178  return hist;
179 }

◆ book1I()

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

Definition at line 214 of file TilePaterMonTool.cxx.

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

◆ book1S()

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

Definition at line 192 of file TilePaterMonTool.cxx.

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

◆ book1Sx()

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

Definition at line 203 of file TilePaterMonTool.cxx.

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

◆ book2C()

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

Definition at line 285 of file TilePaterMonTool.cxx.

290 {
291  TH2C* hist = new TH2C(TString(nam), TString(tit), nx, xmin, xmax, ny, ymin, ymax);
292  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
293  return hist;
294 }

◆ book2D() [1/2]

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

Definition at line 228 of file TilePaterMonTool.cxx.

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

◆ book2D() [2/2]

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

Implicit version of book2D.

Definition at line 73 of file TilePaterMonTool.h.

76  {
77  return book2D(m_path, nam, tit, nx, xmin, xmax, ny, ymin, ymax);
78  }

◆ book2F() [1/2]

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

Definition at line 250 of file TilePaterMonTool.cxx.

255 {
256  TH2F* hist = new TH2F(TString(nam), TString(tit), nx, xmin, xmax, ny, ybins);
257  regHist(subdir, hist, interval, attribute, trigChain, mergeAlgo);
258  return hist;
259 }

◆ book2F() [2/2]

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

Definition at line 239 of file TilePaterMonTool.cxx.

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

◆ book2I()

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

Definition at line 262 of file TilePaterMonTool.cxx.

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

◆ book2S()

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

Definition at line 274 of file TilePaterMonTool.cxx.

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

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

389  {
390 
391  TGraph1 *hist = new TGraph1(N, X, Y);
392  hist->SetName(TString(nam));
393  hist->SetTitle(TString(tit));
394 
395  regGraph(subdir, hist);
396 
397  return (TGraph*) hist;
398 }

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

479 {
480 
481  TGraphAsymmErrors *hist = new TGraphAsymmErrors(N, X, Y, X_errors1, X_errors2, Y_errors1, Y_errors2);
482  hist->SetName(TString(nam));
483  hist->SetTitle(TString(tit));
484 
485  regGraph(subdir, hist);
486  return (TGraphAsymmErrors*) hist;
487 }

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

419  {
420 
421  TGraphErrors *hist = new TGraphErrors(N, X, Y, X_errors, Y_errors);
422  hist->SetName(TString(nam));
423  hist->SetTitle(TString(tit));
424 
425  regGraph(subdir, hist);
426  return (TGraphErrors *) hist;
427 }

◆ bookHistograms()

StatusCode ManagedMonitorToolBase::bookHistograms ( )
virtualinherited

◆ bookHistogramsRecurrent()

StatusCode ManagedMonitorToolBase::bookHistogramsRecurrent ( )
virtualinherited

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

Reimplemented in MdtVsTgcRawDataValAlg, MdtVsRpcRawDataValAlg, and ManagedMonitorToolTest.

Definition at line 1286 of file ManagedMonitorToolBase.cxx.

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

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

508  {
509 
510  TMultiGraph1* hist = new TMultiGraph1();
511  hist->SetName(TString(nam));
512  hist->SetTitle(TString(tit));
513 
514  regGraph(subdir, (TGraph*) hist);
515  return (TMultiGraph*) hist;
516 }

◆ bookProfile() [1/3]

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

Definition at line 317 of file TilePaterMonTool.cxx.

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

◆ bookProfile() [2/3]

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

Definition at line 306 of file TilePaterMonTool.cxx.

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

◆ bookProfile() [3/3]

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

Definition at line 296 of file TilePaterMonTool.cxx.

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

◆ bookProfile2D()

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

Definition at line 327 of file TilePaterMonTool.cxx.

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

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

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

1627 {
1628  return m_THistSvc->deReg( g );
1629 }

◆ deregHist()

StatusCode ManagedMonitorToolBase::deregHist ( TH1 *  h)
virtualinherited

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

Definition at line 1617 of file ManagedMonitorToolBase.cxx.

1619 {
1620  return m_THistSvc->deReg( h );
1621 }

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

1645 {
1646  std::string streamName = streamNameFunction()->getStreamName( this, group, objName );
1647  return m_THistSvc->deReg( streamName );
1648 }

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

1636 {
1637  MonGroup group( this, system, interval );
1638  return deregObject( objName, group );
1639 }

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

794 { return m_endOfEventsBlock; }

◆ endOfLowStatFlag()

bool ManagedMonitorToolBase::endOfLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 795 of file ManagedMonitorToolBase.h.

795 { return m_endOfLowStat; }

◆ endOfLumiBlockFlag()

bool ManagedMonitorToolBase::endOfLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 796 of file ManagedMonitorToolBase.h.

796 { return m_endOfLumiBlock; }

◆ endOfRunFlag()

bool ManagedMonitorToolBase::endOfRunFlag ( ) const
inlineprotectedinherited

Definition at line 797 of file ManagedMonitorToolBase.h.

797 { 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

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

692  {
693  return m_nEvents;
694  }

◆ get_procNEventsProp()

long ManagedMonitorToolBase::get_procNEventsProp ( ) const
inlineprotectedinherited

Definition at line 696 of file ManagedMonitorToolBase.h.

696  {
697  return m_procNEventsProp;
698  }

◆ getCellName()

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

Definition at line 224 of file TilePaterMonTool.h.

224  {
225  if (ros < 3) return m_LBcellName[channel];
226  else return m_EBcellName[channel];
227  };

◆ getHist() [1/4]

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

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

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

Definition at line 1419 of file ManagedMonitorToolBase.cxx.

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

◆ getHist() [2/4]

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

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

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

Definition at line 1409 of file ManagedMonitorToolBase.cxx.

1412 {
1413  MonGroup group( this, system, interval );
1414  return getHist( h, hName, group );
1415 }

◆ getHist() [3/4]

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

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

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

Definition at line 1438 of file ManagedMonitorToolBase.cxx.

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

◆ getHist() [4/4]

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

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

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

Definition at line 1428 of file ManagedMonitorToolBase.cxx.

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

◆ getNewStreamNameFcn()

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

Definition at line 2157 of file ManagedMonitorToolBase.cxx.

2159 {
2160  StreamNameFcn* fcn(0);
2161 
2162  switch( m_environment ) {
2164  fcn = new NoOutputStream();
2165  break;
2167  fcn = new OnlineStream();
2168  break;
2170  fcn = new DefaultStream( m_fileKey );
2171  break;
2175  case AthenaMonManager::AOD:
2177  default:
2178  fcn = new OfflineStream( m_fileKey, m_dataType, m_environment );
2179  }
2180 
2181  return fcn;
2182 }

◆ getTMDBCellName()

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

Definition at line 233 of file TilePaterMonTool.h.

233  {
234  if (ros < 3) return m_TMDB_LB_cell_names[channel];
235  else return m_TMDB_EB_cell_names[channel];
236  };

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

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

◆ intervalStringToEnum()

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

Converts a string to the corresponding Interval_t.

Definition at line 578 of file ManagedMonitorToolBase.cxx.

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

◆ isDisconnected()

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

Definition at line 259 of file TilePaterMonTool.h.

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

◆ lbAverageInteractionsPerCrossing()

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

Average mu, i.e.

<mu>

Definition at line 1693 of file ManagedMonitorToolBase.cxx.

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

◆ lbAverageLivefraction()

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

Average luminosity livefraction.

Definition at line 1762 of file ManagedMonitorToolBase.cxx.

1764 {
1766  return 1.0;
1767 
1770  return live->lbAverageLiveFraction();
1771  } else {
1772  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageLivefraction() can't work properly! ");
1773  ATH_MSG_DEBUG("Warning: lbAverageLivefraction() - luminosity not availble (i.e. EnableLumi = False)");
1774  return -1.0;
1775  }
1776  // not reached
1777 }

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

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

◆ lbDuration()

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

Luminosity block time (in seconds)

Definition at line 1816 of file ManagedMonitorToolBase.cxx.

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

◆ lbInteractionsPerCrossing()

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

Instantaneous number of interactions, i.e.

mu

Definition at line 1709 of file ManagedMonitorToolBase.cxx.

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

◆ lbLuminosityPerBCID()

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

Instantaneous luminosity.

Definition at line 1745 of file ManagedMonitorToolBase.cxx.

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

◆ lbLumiWeight()

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

Average Integrated Luminosity Live Fraction.

Definition at line 1800 of file ManagedMonitorToolBase.cxx.

1802 {
1803  if (!m_lumiDataKey.empty()) {
1804  return (lbAverageLuminosity(ctx)*lbDuration(ctx))*lbAverageLivefraction(ctx);
1805  } else{
1806  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbLumiWeight() can't work properly! ");
1807  ATH_MSG_DEBUG("Warning: lbLumiWeight() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1808  return -1.0;
1809  }
1810  // not reached
1811 }

◆ livefractionPerBCID()

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

Livefraction per bunch crossing ID.

Definition at line 1781 of file ManagedMonitorToolBase.cxx.

1783 {
1785  return 1.0;
1786 
1789  return live->l1LiveFractionVector().at (ctx.eventID().bunch_crossing_id());
1790  } else {
1791  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! livefractionPerBCID() can't work properly! ");
1792  ATH_MSG_DEBUG("Warning: livefractionPerBCID() - luminosity retrieved available (i.e. EnableLumi = False)");
1793  return -1.0;
1794  }
1795  // not reached
1796 }

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

793 { return m_newEventsBlock; }

◆ newHigStatIntervalFlag()

bool ManagedMonitorToolBase::newHigStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 789 of file ManagedMonitorToolBase.h.

789 { return m_newHigStatInterval; }

◆ newLowStatFlag()

bool ManagedMonitorToolBase::newLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 790 of file ManagedMonitorToolBase.h.

790 { 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 787 of file ManagedMonitorToolBase.h.

787 { return m_newLowStatInterval; }

◆ newLumiBlockFlag()

bool ManagedMonitorToolBase::newLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 791 of file ManagedMonitorToolBase.h.

791 { return m_newLumiBlock; }

◆ newMedStatIntervalFlag()

bool ManagedMonitorToolBase::newMedStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 788 of file ManagedMonitorToolBase.h.

788 { return m_newMedStatInterval; }

◆ newRunFlag()

bool ManagedMonitorToolBase::newRunFlag ( ) const
inlineprotectedinherited

Definition at line 792 of file ManagedMonitorToolBase.h.

792 { return m_newRun; }

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ parseList()

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

Definition at line 2113 of file ManagedMonitorToolBase.cxx.

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

◆ preSelector()

bool ManagedMonitorToolBase::preSelector ( )
virtualinherited

Implements IMonitorToolBase.

Definition at line 1681 of file ManagedMonitorToolBase.cxx.

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

◆ procHistograms()

StatusCode ManagedMonitorToolBase::procHistograms ( )
virtualinherited

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

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

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

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

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

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

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

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

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

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

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

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

◆ regHist() [1/5]

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

Definition at line 47 of file TilePaterMonTool.cxx.

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

◆ regHist() [2/5]

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

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

◆ regHist() [3/5]

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

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

◆ regHist() [4/5]

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

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

◆ regHist() [5/5]

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

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

◆ registerMetadata()

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

Definition at line 946 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedEfficiencies()

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

Definition at line 1141 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedGraphs()

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

Definition at line 1070 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedHistograms()

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

Definition at line 973 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedTrees()

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

Definition at line 1201 of file ManagedMonitorToolBase.cxx.

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

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

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

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

1549 {
1550  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1551  return regTree( t, group );
1552 }

◆ removeTObj()

StatusCode TilePaterMonTool::removeTObj ( TObject *  obj)
protectedinherited

Definition at line 429 of file TilePaterMonTool.cxx.

429  {
430  if (obj != 0) {
431  if (obj->IsA()->InheritsFrom("TH1")) {
432  if (deregHist((TH1*) obj).isFailure()) {
433  ATH_MSG_WARNING( "Could not dereg Histogram : " << obj->GetName() );
434  return StatusCode::FAILURE;
435  } else {
436  delete obj;
437  }
438  } else if (obj->IsA()->InheritsFrom("TGraph")) {
439  if (deregGraph((TGraph*) obj) != StatusCode::SUCCESS) {
440  ATH_MSG_WARNING( "Could not dereg Graph : " << obj->GetName() );
441  return StatusCode::FAILURE;
442  } else {
443  delete obj;
444  }
445  } else {
446  ATH_MSG_WARNING( "Asked to remove object " << obj->GetName() << "of unsupported type " << obj->IsA() );
447  return StatusCode::FAILURE;
448  }
449  } else {
450  ATH_MSG_WARNING( "Asked to remove NULL pointer" );
451  return StatusCode::FAILURE;
452  }
453  return StatusCode::SUCCESS;
454 }

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

1665 {
1666  return StatusCode::SUCCESS;
1667 }

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

1329 {
1330  ATH_MSG_DEBUG( "ManagedMonitorToolBase::setMonManager():");
1331  m_manager = manager;
1332  if( m_manager != 0 ) {
1333  ATH_MSG_DEBUG( " --> Setting manager");
1334  m_managerNameProp = m_manager->name();
1338  delete m_streamNameFcn;
1340  }
1341  ATH_MSG_DEBUG( " --> Exiting successfully");
1342 }

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

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

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

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

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

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

◆ trigChainsArePassed()

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

Definition at line 2094 of file ManagedMonitorToolBase.cxx.

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

◆ updateTriggersForGroups()

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

Definition at line 2132 of file ManagedMonitorToolBase.cxx.

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

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

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

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

◆ m_cabling

const TileCablingService* TilePaterMonTool::m_cabling {}
protectedinherited

Definition at line 204 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 248 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 253 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 243 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 900 of file ManagedMonitorToolBase.h.

◆ m_data

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

Definition at line 160 of file TileDigitsMonTool.h.

◆ m_dataType

AthenaMonManager::DataType_t ManagedMonitorToolBase::m_dataType
protectedinherited

Definition at line 838 of file ManagedMonitorToolBase.h.

◆ m_dataTypeStr

std::string ManagedMonitorToolBase::m_dataTypeStr
protectedinherited

Definition at line 834 of file ManagedMonitorToolBase.h.

◆ m_defaultLBDuration

float ManagedMonitorToolBase::m_defaultLBDuration
privateinherited

Definition at line 895 of file ManagedMonitorToolBase.h.

◆ m_detailLevel

unsigned int ManagedMonitorToolBase::m_detailLevel
protectedinherited

Definition at line 836 of file ManagedMonitorToolBase.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_digitsContainerName

std::string TileDigitsMonTool::m_digitsContainerName
private

Definition at line 167 of file TileDigitsMonTool.h.

◆ m_DQFilterTools

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

Definition at line 849 of file ManagedMonitorToolBase.h.

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

◆ m_endOfEventsBlock

bool ManagedMonitorToolBase::m_endOfEventsBlock
privateinherited

Definition at line 823 of file ManagedMonitorToolBase.h.

◆ m_endOfLowStat

bool ManagedMonitorToolBase::m_endOfLowStat
privateinherited

Definition at line 823 of file ManagedMonitorToolBase.h.

◆ m_endOfLumiBlock

bool ManagedMonitorToolBase::m_endOfLumiBlock
privateinherited

Definition at line 823 of file ManagedMonitorToolBase.h.

◆ m_endOfRun

bool ManagedMonitorToolBase::m_endOfRun
privateinherited

Definition at line 823 of file ManagedMonitorToolBase.h.

◆ m_environment

AthenaMonManager::Environment_t ManagedMonitorToolBase::m_environment
protectedinherited

Definition at line 839 of file ManagedMonitorToolBase.h.

◆ m_environmentStr

std::string ManagedMonitorToolBase::m_environmentStr
protectedinherited

Definition at line 835 of file ManagedMonitorToolBase.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_f_ADCmax

float TileDigitsMonTool::m_f_ADCmax {}
private

Definition at line 173 of file TileDigitsMonTool.h.

◆ m_fileKey

std::string ManagedMonitorToolBase::m_fileKey
protectedinherited

Definition at line 833 of file ManagedMonitorToolBase.h.

◆ m_fillPedestalDifference

bool TileDigitsMonTool::m_fillPedestalDifference {}
private

Definition at line 166 of file TileDigitsMonTool.h.

◆ m_fragIDsDemonstrators

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

Definition at line 211 of file TilePaterMonTool.h.

◆ m_fragIDsToIgnoreDMUerrors

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

Definition at line 210 of file TilePaterMonTool.h.

◆ m_haveClearedLastEventBlock

bool ManagedMonitorToolBase::m_haveClearedLastEventBlock
protectedinherited

Definition at line 866 of file ManagedMonitorToolBase.h.

◆ m_i_ADCmax

int TileDigitsMonTool::m_i_ADCmax {}
private

Definition at line 172 of file TileDigitsMonTool.h.

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

◆ m_lastLowStatInterval

int ManagedMonitorToolBase::m_lastLowStatInterval
protectedinherited

Definition at line 861 of file ManagedMonitorToolBase.h.

◆ m_lastLumiBlock

unsigned int ManagedMonitorToolBase::m_lastLumiBlock
protectedinherited

Definition at line 859 of file ManagedMonitorToolBase.h.

◆ m_lastMedStatInterval

int ManagedMonitorToolBase::m_lastMedStatInterval
protectedinherited

Definition at line 861 of file ManagedMonitorToolBase.h.

◆ m_lastRun

unsigned int ManagedMonitorToolBase::m_lastRun
protectedinherited

Definition at line 860 of file ManagedMonitorToolBase.h.

◆ m_LBcellName

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

Definition at line 218 of file TilePaterMonTool.h.

◆ m_lbDurationDataKey

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

Definition at line 888 of file ManagedMonitorToolBase.h.

◆ m_lumiDataKey

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

Definition at line 886 of file ManagedMonitorToolBase.h.

◆ m_manager

AthenaMonManager* ManagedMonitorToolBase::m_manager
protectedinherited

Definition at line 829 of file ManagedMonitorToolBase.h.

◆ m_managerNameProp

std::string ManagedMonitorToolBase::m_managerNameProp
protectedinherited

Definition at line 831 of file ManagedMonitorToolBase.h.

◆ m_metadataMap

MDMap_t ManagedMonitorToolBase::m_metadataMap
protectedinherited

Definition at line 827 of file ManagedMonitorToolBase.h.

◆ m_NCont

const int TileDigitsMonTool::m_NCont = 10
staticprivate

Definition at line 76 of file TileDigitsMonTool.h.

◆ m_nEvents

unsigned int ManagedMonitorToolBase::m_nEvents
protectedinherited

Definition at line 863 of file ManagedMonitorToolBase.h.

◆ m_nEventsIgnoreTrigger

unsigned int ManagedMonitorToolBase::m_nEventsIgnoreTrigger
protectedinherited

Definition at line 864 of file ManagedMonitorToolBase.h.

◆ m_nEventsTileMon

int TileDigitsMonTool::m_nEventsTileMon {}
private

Definition at line 125 of file TileDigitsMonTool.h.

◆ m_newEventsBlock

bool ManagedMonitorToolBase::m_newEventsBlock
privateinherited

Definition at line 822 of file ManagedMonitorToolBase.h.

◆ m_newHigStatInterval

bool ManagedMonitorToolBase::m_newHigStatInterval
privateinherited

Definition at line 820 of file ManagedMonitorToolBase.h.

◆ m_newLowStat

bool ManagedMonitorToolBase::m_newLowStat
privateinherited

Definition at line 821 of file ManagedMonitorToolBase.h.

◆ m_newLowStatInterval

bool ManagedMonitorToolBase::m_newLowStatInterval
privateinherited

Definition at line 820 of file ManagedMonitorToolBase.h.

◆ m_newLumiBlock

bool ManagedMonitorToolBase::m_newLumiBlock
privateinherited

Definition at line 821 of file ManagedMonitorToolBase.h.

◆ m_newMedStatInterval

bool ManagedMonitorToolBase::m_newMedStatInterval
privateinherited

Definition at line 820 of file ManagedMonitorToolBase.h.

◆ m_newRun

bool ManagedMonitorToolBase::m_newRun
privateinherited

Definition at line 821 of file ManagedMonitorToolBase.h.

◆ m_nLumiBlocks

unsigned int ManagedMonitorToolBase::m_nLumiBlocks
protectedinherited

Definition at line 865 of file ManagedMonitorToolBase.h.

◆ m_nSamples

int TileDigitsMonTool::m_nSamples {}
private

Definition at line 126 of file TileDigitsMonTool.h.

◆ m_path

std::string ManagedMonitorToolBase::m_path
protectedinherited

Definition at line 852 of file ManagedMonitorToolBase.h.

◆ m_preScaleProp

long ManagedMonitorToolBase::m_preScaleProp
protectedinherited

Definition at line 853 of file ManagedMonitorToolBase.h.

◆ m_procNEventsProp

long ManagedMonitorToolBase::m_procNEventsProp
protectedinherited

Definition at line 851 of file ManagedMonitorToolBase.h.

◆ m_runType

int TileDigitsMonTool::m_runType {}
private

Definition at line 106 of file TileDigitsMonTool.h.

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

◆ m_savePs

bool TilePaterMonTool::m_savePs {}
protectedinherited

Definition at line 207 of file TilePaterMonTool.h.

◆ m_saveSvg

bool TilePaterMonTool::m_saveSvg {}
protectedinherited

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

◆ m_supportedIntervalsForRebooking

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

Definition at line 896 of file ManagedMonitorToolBase.h.

◆ m_templateEfficiencies

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

Definition at line 676 of file ManagedMonitorToolBase.h.

◆ m_templateGraphs

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

Definition at line 668 of file ManagedMonitorToolBase.h.

◆ m_templateHistograms

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

Definition at line 664 of file ManagedMonitorToolBase.h.

◆ m_templateTrees

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

Definition at line 672 of file ManagedMonitorToolBase.h.

◆ m_THistSvc

ServiceHandle<ITHistSvc> ManagedMonitorToolBase::m_THistSvc
protectedinherited

Definition at line 843 of file ManagedMonitorToolBase.h.

◆ m_tileHWID

const TileHWID* TilePaterMonTool::m_tileHWID {}
protectedinherited

Definition at line 202 of file TilePaterMonTool.h.

◆ m_tileID

const TileID* TilePaterMonTool::m_tileID {}
protectedinherited

Definition at line 201 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 203 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 231 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 230 of file TilePaterMonTool.h.

◆ m_trigDecTool

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

Definition at line 845 of file ManagedMonitorToolBase.h.

◆ m_triggerChainProp

std::string ManagedMonitorToolBase::m_triggerChainProp
protectedinherited

Definition at line 854 of file ManagedMonitorToolBase.h.

◆ m_triggerGroupProp

std::string ManagedMonitorToolBase::m_triggerGroupProp
protectedinherited

Definition at line 855 of file ManagedMonitorToolBase.h.

◆ m_trigLiveFractionDataKey

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

Definition at line 890 of file ManagedMonitorToolBase.h.

◆ m_trigTranslator

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

Definition at line 847 of file ManagedMonitorToolBase.h.

◆ m_useLumi

bool ManagedMonitorToolBase::m_useLumi
privateinherited

Definition at line 894 of file ManagedMonitorToolBase.h.

◆ m_useTrigger

bool ManagedMonitorToolBase::m_useTrigger
protectedinherited

Definition at line 857 of file ManagedMonitorToolBase.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

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

Definition at line 680 of file ManagedMonitorToolBase.h.

◆ m_vTrigGroupNames

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

Definition at line 680 of file ManagedMonitorToolBase.h.

◆ m_zeroLimitHG

int TileDigitsMonTool::m_zeroLimitHG {}
private

Definition at line 179 of file TileDigitsMonTool.h.


The documentation for this class was generated from the following files:
ManagedMonitorToolBase::m_nEvents
unsigned int m_nEvents
Definition: ManagedMonitorToolBase.h:863
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
TileRawChannelContainer
Definition: TileRawChannelContainer.h:13
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
TilePaterMonTool::book1I
TH1I * book1I(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
Definition: TilePaterMonTool.cxx:214
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:1039
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:676
ManagedMonitorToolBase::streamNameFunction
virtual StreamNameFcn * streamNameFunction()
Returns the function object that converts logical paramters into a physical stream name.
Definition: ManagedMonitorToolBase.cxx:452
TileDigitsMonTool::m_fillPedestalDifference
bool m_fillPedestalDifference
Definition: TileDigitsMonTool.h:166
ManagedMonitorToolBase::m_newRun
bool m_newRun
Definition: ManagedMonitorToolBase.h:821
ManagedMonitorToolBase::m_supportedIntervalsForRebooking
std::set< Interval_t > m_supportedIntervalsForRebooking
Definition: ManagedMonitorToolBase.h:896
defineDB.smd
string smd
Definition: JetTagCalibration/share/defineDB.py:44
ManagedMonitorToolBase::m_path
std::string m_path
Definition: ManagedMonitorToolBase.h:852
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:1410
ManagedMonitorToolBase::m_newEventsBlock
bool m_newEventsBlock
Definition: ManagedMonitorToolBase.h:822
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TilePaterMonTool::NO_ROB
@ NO_ROB
Definition: TilePaterMonTool.h:62
get_generator_info.result
result
Definition: get_generator_info.py:21
header
Definition: hcg.cxx:526
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
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:24
TileDigitsMonTool::PhysRun
@ PhysRun
Definition: TileDigitsMonTool.h:111
TilePaterMonTool::initialize
virtual StatusCode initialize() override
Definition: TilePaterMonTool.cxx:101
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:73
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TilePaterMonTool::ALL_00
@ ALL_00
Definition: TilePaterMonTool.h:62
ManagedMonitorToolBase::higStat
@ higStat
Definition: ManagedMonitorToolBase.h:114
python.ExitCodes.ALL_OK
int ALL_OK
successful run
Definition: ExitCodes.py:10
ManagedMonitorToolBase::lumiBlock
@ lumiBlock
Definition: ManagedMonitorToolBase.h:113
ManagedMonitorToolBase::m_endOfLumiBlock
bool m_endOfLumiBlock
Definition: ManagedMonitorToolBase.h:823
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:169
ManagedMonitorToolBase::m_THistSvc
ServiceHandle< ITHistSvc > m_THistSvc
Definition: ManagedMonitorToolBase.h:843
ManagedMonitorToolBase::m_procNEventsProp
long m_procNEventsProp
Definition: ManagedMonitorToolBase.h:851
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
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:1547
TilePaterMonTool::m_EBcellName
std::string m_EBcellName[48]
Definition: TilePaterMonTool.h:213
TilePaterMonTool::m_savePng
bool m_savePng
Definition: TilePaterMonTool.h:206
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:47
plotmaker.hist
hist
Definition: plotmaker.py:148
TilePaterMonTool::m_savePs
bool m_savePs
Definition: TilePaterMonTool.h:207
AthenaMonManager::fileKey
virtual std::string fileKey() const
Definition: AthenaMonManager.cxx:648
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 to this manager so that it will be deleted appropriately.
Definition: AthenaMonManager.cxx:656
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:62
TilePaterMonTool::m_LBcellName
std::string m_LBcellName[48]
Definition: TilePaterMonTool.h:218
ManagedMonitorToolBase::lbDuration
virtual double lbDuration(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Luminosity block time (in seconds)
Definition: ManagedMonitorToolBase.cxx:1817
ManagedMonitorToolBase::m_trigDecTool
PublicToolHandle< Trig::ITrigDecisionTool > m_trigDecTool
Definition: ManagedMonitorToolBase.h:845
TileDigitsMonTool::m_NCont
static const int m_NCont
Definition: TileDigitsMonTool.h:76
TilePaterMonTool::m_chMapEB
int m_chMapEB[48]
Definition: TilePaterMonTool.h:248
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TileDigitsMonTool::m_cispar
const uint32_t * m_cispar
Definition: TileDigitsMonTool.h:122
PixelAthClusterMonAlgCfg.ybins
ybins
Definition: PixelAthClusterMonAlgCfg.py:169
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
ManagedMonitorToolBase::m_dataType
AthenaMonManager::DataType_t m_dataType
Definition: ManagedMonitorToolBase.h:838
TileDigitsMonTool::m_runType
int m_runType
Definition: TileDigitsMonTool.h:106
TilePaterMonTool::m_chMapLB
int m_chMapLB[48]
Definition: TilePaterMonTool.h:243
TileDigitsMonTool::LedRun
@ LedRun
Definition: TileDigitsMonTool.h:113
GetEntries
TGraphErrors * GetEntries(TH2F *histo)
Definition: TRTCalib_makeplots.cxx:4019
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:1491
JetTiledMap::N
@ N
Definition: TiledEtaPhiMap.h:44
ManagedMonitorToolBase::m_newLowStatInterval
bool m_newLowStatInterval
Definition: ManagedMonitorToolBase.h:820
ManagedMonitorToolBase::fill
@ fill
Definition: ManagedMonitorToolBase.h:115
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
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
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
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:947
ManagedMonitorToolBase::m_newHigStatInterval
bool m_newHigStatInterval
Definition: ManagedMonitorToolBase.h:820
ManagedMonitorToolBase::m_newMedStatInterval
bool m_newMedStatInterval
Definition: ManagedMonitorToolBase.h:820
TileHWID::channel
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
Definition: TileHWID.h:189
ManagedMonitorToolBase::deregHist
virtual StatusCode deregHist(TH1 *h)
De-registers a TH1 from the THistSvc, but does NOT delete the object.
Definition: ManagedMonitorToolBase.cxx:1618
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:298
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
TilePaterMonTool::NO_FRAG
@ NO_FRAG
Definition: TilePaterMonTool.h:62
python.checkMetadata.metadata
metadata
Definition: checkMetadata.py:175
TilePaterMonTool::m_chMapEBsp
int m_chMapEBsp[48]
Definition: TilePaterMonTool.h:253
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
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
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
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
ManagedMonitorToolBase::getNewStreamNameFcn
virtual StreamNameFcn * getNewStreamNameFcn() const
Definition: ManagedMonitorToolBase.cxx:2158
python.PyAthena.module
module
Definition: PyAthena.py:131
ManagedMonitorToolBase::m_preScaleProp
long m_preScaleProp
Definition: ManagedMonitorToolBase.h:853
WriteCellNoiseToCool.gn
gn
Definition: WriteCellNoiseToCool.py:531
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:833
TilePaterMonTool::m_saveSvg
bool m_saveSvg
Definition: TilePaterMonTool.h:208
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
TilePaterMonTool::book1F
TH1F * book1F(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
Definition: TilePaterMonTool.cxx:170
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:1763
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
ManagedMonitorToolBase::m_templateGraphs
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > m_templateGraphs
Definition: ManagedMonitorToolBase.h:668
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:315
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:829
ManagedMonitorToolBase::m_lumiDataKey
SG::ReadCondHandleKey< LuminosityCondData > m_lumiDataKey
Definition: ManagedMonitorToolBase.h:887
ManagedMonitorToolBase::deregGraph
virtual StatusCode deregGraph(TGraph *g)
De-registers a TGraph from the THistSvc, but does NOT delete the object.
Definition: ManagedMonitorToolBase.cxx:1626
ManagedMonitorToolBase::m_streamNameFcn
StreamNameFcn * m_streamNameFcn
Definition: ManagedMonitorToolBase.h:841
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:116
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
perfmonmt-plotter.colors
dictionary colors
Definition: perfmonmt-plotter.py:21
lumiFormat.i
int i
Definition: lumiFormat.py:85
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
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:257
AthenaMonManager::online
@ online
Definition: AthenaMonManager.h:49
TGraph1
Definition: TilePaterMonTool.cxx:370
ManagedMonitorToolBase::file
@ file
Definition: ManagedMonitorToolBase.h:113
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:665
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:130
PixelAthClusterMonAlgCfg.zmax
zmax
Definition: PixelAthClusterMonAlgCfg.py:169
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:230
AthenaMonManager::user
@ user
Definition: AthenaMonManager.h:49
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
hist_file_dump.f
f
Definition: hist_file_dump.py:135
ManagedMonitorToolBase::ATTRIB_MANAGED
@ ATTRIB_MANAGED
Definition: ManagedMonitorToolBase.h:130
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
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:114
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:672
ManagedMonitorToolBase::m_metadataMap
MDMap_t m_metadataMap
Definition: ManagedMonitorToolBase.h:827
TilePaterMonTool::ALL_OK
@ ALL_OK
Definition: TilePaterMonTool.h:62
ManagedMonitorToolBase::m_endOfEventsBlock
bool m_endOfEventsBlock
Definition: ManagedMonitorToolBase.h:823
ManagedMonitorToolBase::m_trigLiveFractionDataKey
SG::ReadCondHandleKey< TrigLiveFractionCondData > m_trigLiveFractionDataKey
Definition: ManagedMonitorToolBase.h:891
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
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:839
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:60
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
TilePaterMonTool::book2F
TH2F * book2F(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
Definition: TilePaterMonTool.cxx:239
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:821
ManagedMonitorToolBase::m_endOfLowStat
bool m_endOfLowStat
Definition: ManagedMonitorToolBase.h:823
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:889
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
TileDigitsMonTool::m_i_ADCmax
int m_i_ADCmax
Definition: TileDigitsMonTool.h:172
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
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
charge
double charge(const T &p)
Definition: AtlasPID.h:538
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
TilePaterMonTool::m_fragIDsToIgnoreDMUerrors
std::vector< int > m_fragIDsToIgnoreDMUerrors
Definition: TilePaterMonTool.h:210
item
Definition: ItemListSvc.h:43
green
@ green
Definition: BinsDiffFromStripMedian.h:18
LArNewCalib_PedestalAutoCorr.cp
cp
Definition: LArNewCalib_PedestalAutoCorr.py:185
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:114
TileDigitsMonTool::m_is12bit
bool m_is12bit
Definition: TileDigitsMonTool.h:176
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:73
Example_ReadSampleNoise.ped
ped
Definition: Example_ReadSampleNoise.py:45
LArCellBinning.xbins
int xbins
Definition: LArCellBinning.py:163
TilePaterMonTool::isDisconnected
bool isDisconnected(int ros, int drawer, int ch)
Definition: TilePaterMonTool.h:259
TrackingGeometryValidation.stops
stops
Definition: TrackingGeometryValidation.py:30
ManagedMonitorToolBase::m_managerNameProp
std::string m_managerNameProp
Definition: ManagedMonitorToolBase.h:831
dqt_zlumi_pandas.bin4
bin4
Definition: dqt_zlumi_pandas.py:352
ManagedMonitorToolBase::run
@ run
Definition: ManagedMonitorToolBase.h:115
ManagedMonitorToolBase::m_endOfRun
bool m_endOfRun
Definition: ManagedMonitorToolBase.h:823
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:821
AthenaPoolExample_Copy.streamName
string streamName
Definition: AthenaPoolExample_Copy.py:39
lumiFormat.lumi
lumi
Definition: lumiFormat.py:106
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:336
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
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
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:113
python.envutil.filelist
filelist
print ("Checking files %s..." % fullfile)
Definition: envutil.py:133
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DEBUG
#define DEBUG
Definition: page_access.h:11
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:66
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:115
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:1634
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
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...
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:1730
str
Definition: BTagTrackIpAccessor.cxx:11
LArG4GenerateShowerLib.nevents
nevents
Definition: LArG4GenerateShowerLib.py:19
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
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:62
python.LumiCalcRecover.subdir
subdir
Definition: LumiCalcRecover.py:25
ManagedMonitorToolBase::m_templateHistograms
std::map< Interval_t, std::vector< MgmtParams< TH1 > > > m_templateHistograms
Definition: ManagedMonitorToolBase.h:664
TileDigitsMonTool::PedRun
@ PedRun
Definition: TileDigitsMonTool.h:114
TileCalibUtils::MAX_CHAN
static const unsigned int MAX_CHAN
Number of channels in drawer.
Definition: TileCalibUtils.h:141
TilePaterMonTool::bookProfile
TProfile * bookProfile(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
Definition: TilePaterMonTool.cxx:296
TilePaterMonTool::m_tileHWID
const TileHWID * m_tileHWID
Definition: TilePaterMonTool.h:202
ManagedMonitorToolBase::ATTRIB_X_VS_LB
@ ATTRIB_X_VS_LB
Definition: ManagedMonitorToolBase.h:130
TilePaterMonTool::m_TMDB_EB_cell_names
std::string m_TMDB_EB_cell_names[4]
Definition: TilePaterMonTool.h:231
ManagedMonitorToolBase::Imp::s_svcLocator
static std::atomic< ISvcLocator * > s_svcLocator
Definition: ManagedMonitorToolBase.cxx:38
python.PyAthena.obj
obj
Definition: PyAthena.py:132
ManagedMonitorToolBase::m_trigTranslator
PublicToolHandle< ITriggerTranslatorTool > m_trigTranslator
Definition: ManagedMonitorToolBase.h:847
TMultiGraph1
Definition: TilePaterMonTool.cxx:489
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
TilePaterMonTool::book1C
TH1C * book1C(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
Definition: TilePaterMonTool.cxx:181
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:1346
TileInfo::ADCmax
int ADCmax() const
Returns the maximum ADC output (10 bits --> 1023)
Definition: TileInfo.h:71
TrackingGeometryValidation.blue
blue
Definition: TrackingGeometryValidation.py:33
TilePaterMonTool::book1S
TH1S * book1S(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
Definition: TilePaterMonTool.cxx:192
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:537
TileRawChannelUnit::ADCcounts
@ ADCcounts
Definition: TileRawChannelUnit.h:17
TilePaterMonTool::book2C
TH2C * book2C(const std::string &dir, const std::string &nam, const std::string &tit, int nx, double xmin, double xmax, int ny, double ymin, double ymax, Interval_t interval=run, MgmtAttr_t attribute=ATTRIB_MANAGED, const std::string &trigChain="", const std::string &mergeAlgo="")
Definition: TilePaterMonTool.cxx:285
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:895
TileDigitsMonTool::m_bookAll
bool m_bookAll
Definition: TileDigitsMonTool.h:104
TileDigitsMonTool::m_nSamples
int m_nSamples
Definition: TileDigitsMonTool.h:126