ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
MdtRawDataValAlg Class Reference

#include <MdtRawDataValAlg.h>

Inheritance diagram for MdtRawDataValAlg:
Collaboration diagram for MdtRawDataValAlg:

Public Types

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

 MdtRawDataValAlg (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~MdtRawDataValAlg ()
 
StatusCode initialize ()
 
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 StreamNameFcnstreamNameFunction ()
 Returns the function object that converts logical paramters into a physical stream name. More...
 
virtual StatusCode bookHists ()
 Calls bookHists( true, true, true ) and initializes lumiBlock and run numbers. More...
 
virtual StatusCode fillHists ()
 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 ()
 Calls procHists( true, true, true ). More...
 
virtual StatusCode convertLWHists ()
 Deal with the LW histograms. More...
 
virtual StatusCode bookHistograms ()
 An inheriting class should either override this function or bookHists(). More...
 
virtual void setMonManager (AthenaMonManager *manager)
 Takes a pointer to a managing object to get information from it when needed. More...
 
virtual StatusCode regHist (TH1 *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram. More...
 
virtual StatusCode regHist (TH1 *h, const MonGroup &group)
 Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram. More...
 
virtual StatusCode regHist (LWHist *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Support for lightweight histograms: More...
 
virtual StatusCode regHist (LWHist *h, const MonGroup &group)
 
virtual StatusCode getHist (TH1 *&h, const std::string &hName, const std::string &system, Interval_t interval)
 Returns a TH1 via the pointer passed as the first argument. More...
 
virtual StatusCode getHist (TH1 *&h, const std::string &hName, const MonGroup &group)
 Returns a TH1 via the pointer passed as the first argument. More...
 
virtual StatusCode getHist (TH2 *&h, const std::string &hName, const std::string &system, Interval_t interval)
 Returns a TH2 via the pointer passed as the first argument. More...
 
virtual StatusCode getHist (TH2 *&h, const std::string &hName, const MonGroup &group)
 Returns a TH2 via the pointer passed as the first argument. More...
 
virtual StatusCode getHist (LWHist *&h, const std::string &hName, const std::string &system, Interval_t interval)
 
virtual StatusCode getHist (LWHist *&h, const std::string &hName, const MonGroup &group)
 
virtual StatusCode regEfficiency (TEfficiency *e, const MonGroup &group)
 Registers a TEfficiency to be included in the output stream using logical parameters that describe the plot. More...
 
virtual StatusCode 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 StatusCode regTree (TTree *t, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Registers a TTree to be included in the output stream using logical parameters that describe it. More...
 
virtual StatusCode regTree (TTree *t, const MonGroup &group)
 Registers a TTree to be included in the output stream using logical parameters that describe it. More...
 
virtual StatusCode deregHist (LWHist *h)
 
virtual StatusCode deregHist (TH1 *h)
 De-registers a TH1 from the THistSvc, but does NOT delete the object. More...
 
virtual StatusCode writeAndDelete (TH1 *h, const MonGroup &group)
 Write out histogram and delete it. More...
 
virtual StatusCode deregGraph (TGraph *g)
 De-registers a TGraph from the THistSvc, but does NOT delete the object. More...
 
virtual StatusCode deregObject (const std::string &objName, const std::string &system, Interval_t interval)
 De-registers a TObject from the THistSvc, but does NOT delete the object. More...
 
virtual StatusCode deregObject (const std::string &objName, const MonGroup &group)
 De-registers a TObject from the THistSvc, but does NOT delete the object. More...
 
virtual StatusCode setupOutputStreams (std::vector< std::string > Mapping=std::vector< std::string >())
 This implementation does nothing—streams in this class should be managed by the AthenaMonManager. More...
 
virtual StatusCode runStat ()
 This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ). More...
 
virtual StatusCode checkHists (bool calledFromFinalize)
 This implementation does nothing; equivalent functionality may be provided by procHists(...) with appropriate arguments. 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 ()
 

Protected Types

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

Protected Member Functions

StatusCode regManagedHistograms (std::vector< MgmtParams< TH1 > > &templateHistograms)
 
StatusCode regManagedGraphs (std::vector< MgmtParams< TGraph > > &templateGraphs)
 
StatusCode regManagedTrees (std::vector< MgmtParams< TTree > > &templateTrees)
 
StatusCode regManagedLWHistograms (std::vector< MgmtParams< LWHist > > &templateLWHistograms)
 
StatusCode regManagedEfficiencies (std::vector< MgmtParams< TEfficiency > > &templateEfficiencies)
 
StatusCode parseList (const std::string &, std::vector< std::string > &)
 
void updateTriggersForGroups (std::vector< std::string > &)
 
StatusCode registerMetadata (const std::string &streamName, const std::string &hName, const MonGroup &group)
 
StatusCode THistSvc_deReg_fixTGraph (TFile *file, TGraph *theGraph, std::string &directoryName)
 Fixes THistSvc->deReg(obj) when obj is TGraph instance. More...
 
unsigned int get_nEvents () const
 
long get_procNEventsProp () const
 
virtual bool trigChainsArePassed (std::vector< std::string > &)
 
virtual StreamNameFcngetNewStreamNameFcn () const
 
bool newLowStatIntervalFlag () const
 Flag functions allowing clients to determine when to book new and process old histograms; values are updated by fillHists() based on counting lumiBlocks, and are correctly set when fillHistograms(), bookHistograms() and procHistograms() are called. More...
 
bool newMedStatIntervalFlag () const
 
bool newHigStatIntervalFlag () const
 
bool newLowStatFlag () const
 
bool newLumiBlockFlag () const
 
bool newRunFlag () const
 
bool newEventsBlockFlag () const
 
bool endOfEventsBlockFlag () const
 
bool endOfLowStatFlag () const
 
bool endOfLumiBlockFlag () const
 
bool endOfRunFlag () const
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Protected Attributes

std::map< Interval_t, std::vector< MgmtParams< TH1 > > > m_templateHistograms
 
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > m_templateGraphs
 
std::map< Interval_t, std::vector< MgmtParams< TTree > > > m_templateTrees
 
std::map< Interval_t, std::vector< MgmtParams< LWHist > > > m_templateLWHistograms
 
std::map< Interval_t, std::vector< MgmtParams< TEfficiency > > > m_templateEfficiencies
 
std::vector< std::string > m_vTrigChainNames
 
std::vector< std::string > m_vTrigGroupNames
 
MDMap_t m_metadataMap
 
std::set< LWHist * > m_lwhists
 
AthenaMonManagerm_manager
 
std::string m_managerNameProp
 
std::string m_fileKey
 
std::string m_dataTypeStr
 
std::string m_environmentStr
 
unsigned int m_detailLevel
 
AthenaMonManager::DataType_t m_dataType
 
AthenaMonManager::Environment_t m_environment
 
StreamNameFcnm_streamNameFcn
 
ServiceHandle< ITHistSvc > m_THistSvc
 
PublicToolHandle< Trig::ITrigDecisionToolm_trigDecTool {this, "TrigDecisionTool",""}
 
PublicToolHandle< ITriggerTranslatorToolm_trigTranslator {this,"TriggerTranslatorTool",""}
 
ToolHandleArray< IDQFilterToolm_DQFilterTools {this,"FilterTools",{}}
 
long m_procNEventsProp
 
std::string m_path
 
long m_preScaleProp
 
std::string m_triggerChainProp
 
std::string m_triggerGroupProp
 
bool m_useTrigger
 
unsigned int m_lastLumiBlock
 
unsigned int m_lastRun
 
int m_lastLowStatInterval
 
int m_lastMedStatInterval
 
int m_lastHigStatInterval
 
unsigned int m_nEvents
 
unsigned int m_nEventsIgnoreTrigger
 
unsigned int m_nLumiBlocks
 
bool m_haveClearedLastEventBlock
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

bool isATLASReady () const
 
void setIsATLASReady ()
 
virtual StatusCode bookMDTHistograms (MDTChamber *chamber, Identifier digcoll_id)
 
virtual StatusCode fillMDTHistograms (const Muon::MdtPrepData *)
 
virtual StatusCode bookMDTSummaryHistograms (bool newLumiBlock, bool newRun)
 
virtual StatusCode fillMDTSummaryHistograms (const Muon::MdtPrepData *, std::set< std::string >, bool &isNoiseBurstCandidate)
 
virtual StatusCode bookMDTOverviewHistograms (bool newLumiBlock, bool newRun)
 
virtual StatusCode fillMDTOverviewHistograms (const Muon::MdtPrepData *, bool &isNoiseBurstCandidate)
 
StatusCode handleEvent_effCalc (const Trk::SegmentCollection *segms)
 
virtual StatusCode binMdtGlobal (TH2 *, char ecap)
 
virtual StatusCode binMdtRegional (TH2 *, std::string_view xAxis)
 
virtual StatusCode binMdtGlobal_byLayer (TH2 *, TH2 *, TH2 *)
 
virtual StatusCode binMdtOccVsLB (TH2 *&h, int region, int layer)
 
virtual StatusCode binMdtOccVsLB_Crate (TH2 *&h, int region, int crate)
 
virtual StatusCode bookMDTHisto_overview (TH1 *&, TString, TString, TString, int, float, float, MonGroup &)
 
virtual StatusCode bookMDTHisto_chambers (TH1F_LW *&, TString, TString, TString, int, float, float, MonGroup &)
 
virtual StatusCode bookMDTHisto_overview_2D (TH2 *&h, TString, TString, TString, int, float, float, int, float, float, MonGroup &)
 
virtual StatusCode bookMDTHisto_chambers_2D (TH2F_LW *&h, TString, TString, TString, int, float, float, int, float, float, MonGroup &)
 
virtual StatusCode bookMDTHisto_OccVsLB (TH2 *&h, TString, TString, TString, int, float, float, int, float, float, MonGroup &)
 
virtual StatusCode fillMDTMaskedTubes (IdentifierHash, const std::string &, TH1F_LW *&h)
 
int get_bin_for_LB_crate_hist (int region, int layer, int phi, int eta, std::string_view chamber)
 
void mdtchamberId ()
 
int mezzmdt (Identifier)
 
int GetTubeMax (const Identifier &digcoll_id, std::string_view hardware_name)
 
StatusCode StoreTriggerType ()
 
void StoreTriggerType (int type)
 
int GetTriggerType ()
 
bool HasTrigBARREL ()
 
bool HasTrigENDCAP ()
 
StatusCode fillLumiBlock ()
 
StatusCode GetTimingInfo ()
 
StatusCode GetEventNum ()
 
void initDeadChannels (const MuonGM::MdtReadoutElement *mydetEl)
 
std::string getChamberName (const Muon::MdtPrepData *)
 
std::string getChamberName (const Identifier &id)
 
StatusCode getChamber (IdentifierHash id, MDTChamber *&chamber)
 
int cachedTubeMax (const Identifier &id) const
 
int cachedTubeLayerMax (const Identifier &id) const
 
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...
 

Static Private Member Functions

static bool AinB (int A, std::vector< int > &B)
 
static void TubeID_to_ID_L_ML (int &tubeID, std::string_view hardware_name, int &tube, int &layer, int &ML, int max)
 
static void ChamberTubeNumberCorrection (int &tubeNum, std::string_view hardware_name, int tubePos, int numLayers)
 
static void CorrectTubeMax (const std::string &hardware_name, int &numTubes)
 
static void CorrectLayerMax (const std::string &hardware_name, int &numLayers)
 
static void putBox (TH2 *h, float x1, float y1, float x2, float y2)
 
static void putLine (TH2 *h, float x1, float y1, float x2, float y2, Color_t c=kBlack)
 
static int get_bin_for_LB_hist (int region, int layer, int phi, int eta, bool isBIM)
 
static int returnInt (const std::string &s)
 

Private Attributes

std::string m_title
 
bool m_atlas_ready {false}
 
std::unique_ptr< MDTMonGroupStructm_mg
 
std::unique_ptr< MDTNoisyTubesm_masked_tubes
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 
ToolHandle< CP::IMuonSelectionToolm_muonSelectionTool
 
SG::ReadCondHandleKey< MuonGM::MuonDetectorManagerm_DetectorManagerKey
 
ToolHandleArray< IDQFilterToolm_MdtDQFilterTools
 
int m_lumiblock {0}
 
int m_eventNum {0}
 
int m_firstEvent {0}
 
uint32_t m_time {0U}
 
uint32_t m_firstTime {0U}
 
int m_numberOfEvents {0}
 
SG::ReadHandleKey< Trk::SegmentCollectionm_segm_type {this, "Eff_segm_type", "TrackMuonSegments", "muon segments"}
 
std::vector< Identifierm_chambersId
 
std::vector< IdentifierHashm_chambersIdHash
 
std::set< std::string > m_hardware_name_list
 
std::set< int > m_hashId_list
 
std::map< std::string, float > m_hitsperchamber_map
 
std::map< std::string, float > m_tubesperchamber_map
 
bool m_doMdtESD
 
bool m_doChamberHists
 
bool m_isOnline
 
bool m_maskNoisyTubes
 
bool m_chamber_2D
 
std::string m_chamberName
 
std::string m_StationSize
 
SG::ReadHandleKey< Muon::MdtPrepDataContainerm_key_mdt {this, "MdtPrepDataContainer", "MDT_DriftCircles", "MDT PRDs"}
 
SG::ReadHandleKey< Muon::RpcPrepDataContainerm_key_rpc {this, "RpcPrepDataContainer", "RPC_Measurements", "RPC PRDs"}
 
SG::ReadHandleKey< xAOD::MuonRoIContainerm_l1RoiKey {this, "L1RoiKey", "LVL1MuonRoIs", "L1 muon ROIs"}
 
SG::ReadHandleKey< xAOD::MuonContainerm_muonKey {this, "MuonKey", "Muons", "muons"}
 
SG::ReadHandleKey< xAOD::EventInfom_eventInfo {this, "EventInfo", "EventInfo", "event info"}
 
int m_StationEta
 
int m_StationPhi
 
int m_trigtype = 0
 
bool m_trig_BARREL {false}
 
bool m_trig_ENDCAP {false}
 
float m_ADCCut
 
float m_ADCCut_Bkgrd
 
float m_curTime = 0.0F
 
TH2m_overalltdcadcLumi {}
 
TH2m_overalltdcadcPRLumi [4] {}
 
TH1m_overalltdccutLumi {}
 
TH1m_overalltdccut_segm_Lumi {}
 
TH1m_overalladc_segm_Lumi {}
 
TH1m_overalladc_Lumi {}
 
TH1m_overalltdccut_segm_PR_Lumi [4] {}
 
TH1m_overalltdccutPRLumi [4] {}
 
TH1m_overalladc_segm_PR_Lumi [4] {}
 
TH1m_overalladcPRLumi [4] {}
 
TH1m_overalladccutPRLumi [4] {}
 
TH1m_overalltdccutPRLumi_RPCtrig [4] {}
 
TH1m_overalltdccutPRLumi_TGCtrig [4] {}
 
TH2m_overalltdcadcHighOcc {}
 
TH1m_overalltdcHighOcc {}
 
TH1m_overalltdcHighOcc_ADCCut {}
 
TH1m_overalladc_HighOcc {}
 
TH2m_overalltdcadcPR_HighOcc [4] {}
 
TH1m_overalltdcPR_HighOcc [4] {}
 
TH1m_overalltdcPR_HighOcc_ADCCut [4] {}
 
TH1m_overalladcPR_HighOcc [4] {}
 
TH2m_overall_mdt_DRvsDT {}
 
TH2m_overall_mdt_DRvsSegD {}
 
TH2m_overallPR_mdt_DRvsDT [4] {}
 
TH2m_overallPR_mdt_DRvsSegD [4] {}
 
TH2m_MdtNHitsvsRpcNHits {}
 
TH1m_mdteventscutLumi {}
 
TH1m_mdteventscutLumi_big {}
 
TH1m_mdteventsLumi {}
 
TH1m_mdteventsLumi_big {}
 
TH1m_mdtglobalhitstime {}
 
TH1m_nummdtchamberswithhits {}
 
TH1m_nummdtchamberswithhits_ADCCut {}
 
TH1m_nummdtchamberswithHighOcc {}
 
TH1m_mdtchamberstat {}
 
TH1m_mdtchamberstatphislice [16] {}
 
TH1m_mdtChamberHits [4][4][16] {}
 
TH2m_mdtxydet [3] {}
 
TH2m_mdtrzdet [3] {}
 
TH2m_mdthitspermultilayerLumi [4][4] {}
 
TH2m_mdteffpermultilayer [4][4] {}
 
TH2m_mdthitsperchamber_InnerMiddleOuterLumi [2] {}
 
TH2m_mdthitsperchamber_InnerMiddleOuter_HighOcc [2] {}
 
TH2m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi [2] {}
 
TH2m_mdteffperchamber_InnerMiddleOuter [4] {}
 
TH2m_mdthitsperML_byLayer [3] {}
 
TH2m_mdtoccvslb [4][3] {}
 
TH2m_mdtoccvslb_by_crate [4][4] {}
 
TH2m_mdtoccvslb_ontrack_by_crate [4][4] {}
 
TH2m_mdtoccvslb_summaryPerSector {}
 
TH1m_mdttdccut_sector [4][4][16] {}
 
std::vector< std::unique_ptr< MDTChamber > > m_hist_hash_list {}
 
bool m_do_mdtchamberstatphislice
 
bool m_do_mdtChamberHits
 
bool m_do_mdttdccut_sector
 
bool m_do_mdttdc
 
bool m_do_mdttdccut_ML1
 
bool m_do_mdttdccut_ML2
 
bool m_do_mdtadc_onSegm_ML1
 
bool m_do_mdtadc_onSegm_ML2
 
bool m_do_mdttdccut_RPCtrig_ML1
 
bool m_do_mdttdccut_TGCtrig_ML1
 
bool m_do_mdttdccut_RPCtrig_ML2
 
bool m_do_mdttdccut_TGCtrig_ML2
 
bool m_do_mdtadc
 
bool m_do_mdttdcadc
 
bool m_do_mdtmultil
 
bool m_do_mdtlayer
 
bool m_do_mdttube
 
bool m_do_mdttube_bkgrd
 
bool m_do_mdttube_fornoise
 
bool m_do_mdttube_masked
 
bool m_do_mdtmezz
 
bool m_do_mdt_effEntries
 
bool m_do_mdt_effCounts
 
bool m_do_mdt_effPerTube
 
bool m_do_mdt_DRvsDT
 
bool m_do_mdt_DRvsDRerr
 
bool m_do_mdt_DRvsSegD
 
bool m_do_mdttubenoise
 
bool m_do_mdttdctube
 
float m_nb_hits
 
float m_road_width
 
float m_chi2_cut
 
float m_HighOccThreshold
 
bool m_BMGpresent {false}
 
int m_BMGid {-1}
 
std::map< Identifier, std::vector< Identifier > > m_DeadChannels
 
const MuonGM::MuonDetectorManagerm_detMgr {nullptr}
 
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
 

Detailed Description

Definition at line 98 of file MdtRawDataValAlg.h.

Member Typedef Documentation

◆ MDMap_t

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

Definition at line 888 of file ManagedMonitorToolBase.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ Interval_t

An enumeration describing how detailed a particular monitoring object is.

summary: used to summarize the state of the system

runstat: same as summary

shift: used to flag potential problems

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

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

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

Enumerator
file 
eventsBlock 
lumiBlock 
lowStat 
medStat 
higStat 
run 
fill 
all 

Definition at line 114 of file ManagedMonitorToolBase.h.

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

◆ MgmtAttr_t

An enumeration describing how the class handles the histogram.

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

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

Enumerator
ATTRIB_MANAGED 
ATTRIB_UNMANAGED 
ATTRIB_X_VS_LB 

Definition at line 131 of file ManagedMonitorToolBase.h.

Constructor & Destructor Documentation

◆ MdtRawDataValAlg()

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

Definition at line 64 of file MdtRawDataValAlg.cxx.

64  :
66  m_muonSelectionTool(this, "MuonSelectionTool", "CP::MuonSelectionTool/MuonSelectionTool"),
67  m_MdtDQFilterTools(this) {
68  // Declare the properties
69  declareProperty("DoMdtEsd", m_doMdtESD = false);
70  declareProperty("DoChamber2DHist", m_chamber_2D = true);
71  declareProperty("DoChamberHist", m_doChamberHists = true);
72  declareProperty("DoOnlineMonitoring", m_isOnline = false);
73  declareProperty("maskNoisyTubes", m_maskNoisyTubes = true);
74  declareProperty("ChamberName", m_chamberName = "XXX");
75  declareProperty("StationSize", m_StationSize = "XXX");
76  declareProperty("StationEta", m_StationEta = -100);
77  declareProperty("StationPhi", m_StationPhi = -100);
78  declareProperty("ADCCut", m_ADCCut = 50.);
79  declareProperty("ADCCutForBackground", m_ADCCut_Bkgrd = 80.);
80  declareProperty("Eff_nHits", m_nb_hits = 5.);
81  declareProperty("Eff_roadWidth", m_road_width = 2.);
82  declareProperty("Eff_chi2Cut", m_chi2_cut = 10.);
83  declareProperty("AtlasFilterTool", m_MdtDQFilterTools);
84  declareProperty("Title", m_title);
85  // Global Histogram controls
86  declareProperty("do_mdtChamberHits", m_do_mdtChamberHits = true);
87  declareProperty("do_mdttdccut_sector", m_do_mdttdccut_sector = true);
88  declareProperty("do_mdtchamberstatphislice", m_do_mdtchamberstatphislice = true);
89  // Chamber wise histogram control
90  declareProperty("do_mdttdc", m_do_mdttdc = true);
91  declareProperty("do_mdttdccut_ML1", m_do_mdttdccut_ML1 = true);
92  declareProperty("do_mdttdccut_ML2", m_do_mdttdccut_ML2 = true);
93  declareProperty("do_mdtadc_onSegm_ML1", m_do_mdtadc_onSegm_ML1 = true);
94  declareProperty("do_mdtadc_onSegm_ML2", m_do_mdtadc_onSegm_ML2 = true);
95  declareProperty("do_mdttdccut_RPCtrig_ML1", m_do_mdttdccut_RPCtrig_ML1 = true);
96  declareProperty("do_mdttdccut_TGCtrig_ML1", m_do_mdttdccut_TGCtrig_ML1 = true);
97  declareProperty("do_mdttdccut_RPCtrig_ML2", m_do_mdttdccut_RPCtrig_ML2 = true);
98  declareProperty("do_mdttdccut_TGCtrig_ML2", m_do_mdttdccut_TGCtrig_ML2 = true);
99  declareProperty("do_mdtadc", m_do_mdtadc = true);
100  declareProperty("do_mdttdcadc", m_do_mdttdcadc = true);
101  declareProperty("do_mdtmultil", m_do_mdtmultil = true);
102  declareProperty("do_mdtlayer", m_do_mdtlayer = true);
103  declareProperty("do_mdttube", m_do_mdttube = true);
104  declareProperty("do_mdttube_bkgrd", m_do_mdttube_bkgrd = true);
105  declareProperty("do_mdttube_fornoise", m_do_mdttube_fornoise = true);
106  declareProperty("do_mdttube_masked", m_do_mdttube_masked = true);
107  declareProperty("do_mdtmezz", m_do_mdtmezz = true);
108  declareProperty("do_mdt_effEntries", m_do_mdt_effEntries = true);
109  declareProperty("do_mdt_effCounts", m_do_mdt_effCounts = true);
110  declareProperty("do_mdt_effPerTube", m_do_mdt_effPerTube = false);
111  declareProperty("do_mdt_DRvsDT", m_do_mdt_DRvsDT = true);
112  declareProperty("do_mdt_DRvsDRerr", m_do_mdt_DRvsDRerr = false);
113  declareProperty("do_mdt_DRvsSegD", m_do_mdt_DRvsSegD = true);
114  declareProperty("do_mdttubenoise", m_do_mdttubenoise = false);
115  declareProperty("do_mdttdctube", m_do_mdttdctube = false);
116  declareProperty("nHits_NoiseThreshold", m_HighOccThreshold = 16000.);
117 }

◆ ~MdtRawDataValAlg()

MdtRawDataValAlg::~MdtRawDataValAlg ( )
virtualdefault

Member Function Documentation

◆ AinB()

bool MdtRawDataValAlg::AinB ( int  A,
std::vector< int > &  B 
)
staticprivate

Definition at line 1132 of file MDTRawDataUtils.cxx.

1132  {
1133  for (int i : B) {
1134  if (i == A) return true;
1135  }
1136  return false;
1137 }

◆ binMdtGlobal()

StatusCode MdtRawDataValAlg::binMdtGlobal ( TH2 h,
char  ecap 
)
privatevirtual

Definition at line 29 of file MDTRawDataUtils.cxx.

29  {
30  // Set x-axis labels
31  int LowerEta = 0;
32  int UpperEta = 0;
33  if (ecap == 'B') {
34  LowerEta = -8;
35  UpperEta = 8;
36  } else {
37  LowerEta = -6;
38  UpperEta = 6;
39  }
40  TString eta_s;
41  for (int ieta = LowerEta; ieta != UpperEta + 1; ++ieta) {
42  if (ieta == 0 && ecap == 'E') continue;
43  eta_s = ecap;
44  (ieta < 0) ? eta_s += "C" : ((ieta > 0) ? eta_s += "A" : eta_s += "B");
45  eta_s += std::to_string(std::abs(ieta));
46  h->Fill(eta_s, 1, 0);
47  }
48 
49  // Set y-axis labels
50  TString phi_s;
51  for (int iphi = 1; iphi <= 16; iphi++) {
52  if (iphi < 10)
53  phi_s = "0" + std::to_string(iphi);
54  else
55  phi_s = std::to_string(iphi);
56  if (ecap == 'B' && (iphi == 11 || iphi == 15)) {
57  h->Fill(eta_s, "I," + phi_s + ",R", 0);
58  h->Fill(eta_s, "I," + phi_s + ",M", 0);
59  h->Fill(eta_s, "M," + phi_s, 0);
60  h->Fill(eta_s, "O," + phi_s, 0);
61  } else {
62  h->Fill(eta_s, "I," + phi_s, 0);
63  h->Fill(eta_s, "M," + phi_s, 0);
64  h->Fill(eta_s, "O," + phi_s, 0);
65  if (iphi % 2 == 0 && ecap == 'B')
66  h->Fill(eta_s, "E," + phi_s, 0);
67  else if (ecap == 'E')
68  h->Fill(eta_s, "E," + phi_s, 0);
69  }
70  }
71 
72  h->LabelsDeflate("X");
73  h->LabelsDeflate("Y");
74  h->LabelsOption("a", "Y");
75  h->GetYaxis()->SetLabelSize(0.025);
76  h->Reset();
77 
78  // Place Bounding Lines around bins representing actual detector
79  if (ecap == 'B') {
80  // Left Side
81  putBox(h, 0, 0, 6, 16);
82  putLine(h, 6, 0, 6, 16);
83  putLine(h, 2, 16, 6, 16);
84  putBox(h, 0, 16, 2, 18);
85  putLine(h, 2, 16, 2, 18);
86  putLine(h, 0, 18, 2, 18); // 1
87  putBox(h, 0, 20, 2, 22);
88  putLine(h, 2, 20, 2, 22);
89  putLine(h, 0, 20, 2, 20);
90  putLine(h, 0, 22, 2, 22); // 3
91  putBox(h, 0, 24, 2, 26);
92  putLine(h, 2, 24, 2, 26);
93  putLine(h, 0, 24, 2, 24);
94  putLine(h, 0, 26, 2, 26); // 5
95  putBox(h, 0, 28, 2, 30);
96  putLine(h, 2, 28, 2, 30);
97  putLine(h, 0, 28, 2, 28);
98  putLine(h, 0, 30, 2, 30); // 7
99  putBox(h, 0, 32, 2, 34);
100  putLine(h, 2, 32, 2, 34);
101  putLine(h, 0, 32, 2, 32);
102  putLine(h, 0, 34, 2, 34); // 9
103  putBox(h, 0, 36, 3, 38);
104  putLine(h, 3, 36, 3, 38);
105  putLine(h, 0, 36, 3, 36);
106  putLine(h, 2, 38, 3, 38); // 11M
107  putBox(h, 0, 38, 2, 40);
108  putLine(h, 2, 38, 2, 40);
109  putLine(h, 0, 40, 2, 40); // 11R
110  putBox(h, 0, 42, 2, 44);
111  putLine(h, 0, 42, 2, 42);
112  putLine(h, 2, 42, 2, 44);
113  putLine(h, 0, 44, 2, 44); // 13
114  putBox(h, 0, 46, 3, 48);
115  putLine(h, 3, 46, 3, 48);
116  putLine(h, 0, 46, 3, 46);
117  putLine(h, 2, 48, 3, 48); // 15M
118  putBox(h, 0, 48, 2, 50);
119  putLine(h, 2, 48, 2, 50);
120  putLine(h, 0, 50, 2, 50); // 15R
121  putBox(h, 0, 52, 2, 106);
122  putLine(h, 0, 52, 2, 52);
123  putLine(h, 0, 106, 2, 106); // putLine(h,2,48,2,102);
124  putBox(h, 0, 108, 1, 110);
125  putLine(h, 1, 108, 1, 110);
126  putLine(h, 0, 108, 1, 108);
127  putLine(h, 0, 110, 1, 110);
128  putBox(h, 0, 112, 2, 116);
129  putLine(h, 2, 112, 2, 116);
130  putLine(h, 0, 112, 2, 112);
131 
132  putLine(h, 2, 52, 2, 106);
133 
134  // Mid Section
135  putBox(h, 8, 0, 9, 106);
136  putLine(h, 8, 0, 8, 106);
137  putLine(h, 8, 106, 9, 106);
138  putLine(h, 9, 0, 9, 106);
139  putBox(h, 8, 108, 9, 110);
140  putLine(h, 8, 108, 9, 108);
141  putLine(h, 8, 110, 9, 110);
142  putLine(h, 8, 108, 8, 110);
143  putLine(h, 9, 108, 9, 110);
144  putBox(h, 8, 112, 9, 116);
145  putLine(h, 8, 112, 9, 112);
146  putLine(h, 8, 112, 8, 116);
147  putLine(h, 9, 112, 9, 116);
148 
149  // Right Side
150  putBox(h, 11, 0, 17, 16);
151  putLine(h, 11, 0, 11, 16);
152  putLine(h, 11, 16, 15, 16);
153  putBox(h, 15, 16, 17, 18);
154  putLine(h, 15, 16, 15, 18);
155  putLine(h, 15, 18, 17, 18); // 1
156  putBox(h, 15, 20, 17, 22);
157  putLine(h, 15, 20, 15, 22);
158  putLine(h, 15, 20, 17, 20);
159  putLine(h, 15, 22, 17, 22); // 3
160  putBox(h, 15, 24, 17, 26);
161  putLine(h, 15, 24, 15, 26);
162  putLine(h, 15, 24, 17, 24);
163  putLine(h, 15, 26, 17, 26); // 5
164  putBox(h, 15, 28, 17, 30);
165  putLine(h, 15, 28, 15, 30);
166  putLine(h, 15, 28, 17, 28);
167  putLine(h, 15, 30, 17, 30); // 7
168  putBox(h, 15, 32, 17, 34);
169  putLine(h, 15, 32, 15, 34);
170  putLine(h, 15, 32, 17, 32);
171  putLine(h, 15, 34, 17, 34); // 9
172  putBox(h, 14, 36, 17, 38);
173  putLine(h, 14, 36, 14, 38);
174  putLine(h, 14, 36, 17, 36);
175  putLine(h, 14, 38, 15, 38); // 11M
176  putBox(h, 15, 38, 17, 40);
177  putLine(h, 15, 38, 15, 40);
178  putLine(h, 15, 40, 17, 40); // 11R
179  putBox(h, 15, 42, 17, 44);
180  putLine(h, 15, 42, 15, 44);
181  putLine(h, 15, 42, 17, 42);
182  putLine(h, 15, 44, 17, 44); // 13
183  putBox(h, 14, 46, 17, 48);
184  putLine(h, 14, 46, 14, 48);
185  putLine(h, 14, 46, 17, 46);
186  putLine(h, 14, 48, 15, 48); // 15M
187  putBox(h, 15, 48, 17, 50);
188  putLine(h, 15, 48, 15, 50);
189  putLine(h, 15, 50, 17, 50); // 15R
190  putBox(h, 15, 52, 17, 106);
191  putLine(h, 15, 52, 17, 52);
192  putLine(h, 15, 106, 17, 106); // putLine(h,2,48,2,102);
193  putBox(h, 16, 108, 17, 110);
194  putLine(h, 16, 108, 16, 110);
195  putLine(h, 16, 108, 17, 108);
196  putLine(h, 16, 110, 17, 110);
197  putBox(h, 15, 112, 17, 116);
198  putLine(h, 15, 112, 15, 116);
199  putLine(h, 15, 112, 17, 112);
200 
201  putLine(h, 15, 52, 15, 106);
202 
203  // Draw TickMarks
204  for (int i = 0; i < 59; i += 1) {
205  TLine* l = new TLine(0, i, 0.55, i);
206  // l->SetLineColor(kRed);
207  h->GetListOfFunctions()->Add(l);
208  }
209  for (int i = 0; i != 18; ++i) {
210  TLine* l = new TLine(i, 0, i, 0.55 / 17 * 58);
211  // l->SetLineColor(kRed);
212  h->GetListOfFunctions()->Add(l);
213  }
214  TLine* lx = new TLine(0, 0, 0, 58);
215  TLine* ly = new TLine(0, 0, 17, 0);
216  lx->SetLineColor(kBlack);
217  ly->SetLineColor(kBlack);
218  h->GetListOfFunctions()->Add(lx);
219  h->GetListOfFunctions()->Add(ly);
220  }
221 
222  if (ecap == 'E') {
223  // //Bottom: OLD (without new EE chambers)
224  // putBox(h, 0, 0, 12, 8); //phi 1-4
225  // putBox(h, 0, 8, 5, 10); //phi 5
226  // putBox(h, 7, 8, 12, 10); putLine(h, 5, 8, 7, 8); putLine(h, 5, 10, 7, 10); putLine(h, 5, 8, 5, 10); putLine(h, 7, 8, 7,
227  // 10);//phi 5 putBox(h, 0, 10, 12, 20); // phi 6-10 putBox(h, 0, 20, 6, 22); // phi 11 putBox(h, 8, 20, 12, 22); putLine(h, 6,
228  // 20, 8, 20); putLine(h, 6, 22, 8, 22); putLine(h, 6, 20, 6, 22); putLine(h, 8, 20, 8, 22); //phi 11 putBox(h, 0, 22, 12, 24);
229  // // phi 12 putBox(h, 0, 24, 4, 26); // phi 13 putBox(h, 8, 14, 12, 26); putLine(h, 4, 24, 8, 24); putLine(h, 4, 26, 8, 26);
230  // putLine(h, 4, 24, 4, 26); putLine(h, 8, 24, 8, 26); //phi 13 putBox(h, 0, 26, 12, 28); //phi 14 putBox(h, 0, 28, 4, 30);
231  // //phi 15 putBox(h, 6, 28, 12, 30); putLine(h, 4, 28, 6, 28); putLine(h, 4, 30, 6, 30); putLine(h, 4, 28, 4, 30); putLine(h,
232  // 6, 28, 6, 30);//phi 15 putBox(h, 0, 30, 12, 32); //phi 16
233 
234  // Bottom: NEW
235  putBox(h, 0, 0, 4, 32);
236  putBox(h, 4, 8, 5, 10);
237  putLine(h, 4, 0, 4, 8);
238  putLine(h, 4, 8, 5, 8);
239  putLine(h, 5, 8, 5, 10);
240  putLine(h, 4, 10, 5, 10);
241  putLine(h, 4, 10, 4, 32); // Left side
242  putBox(h, 8, 0, 12, 32);
243  putBox(h, 7, 8, 8, 10);
244  putLine(h, 8, 0, 8, 8);
245  putLine(h, 7, 8, 8, 8);
246  putLine(h, 7, 8, 7, 10);
247  putLine(h, 7, 10, 8, 10);
248  putLine(h, 8, 10, 8, 32);
249 
250  // Left
251  putBox(h, 0, 32, 1, 34);
252  putLine(h, 1, 32, 4, 32);
253  putLine(h, 1, 32, 1, 34); // phi 1
254  putBox(h, 0, 34, 4, 36);
255  putLine(h, 1, 34, 4, 34);
256  putLine(h, 4, 34, 4, 36);
257  putLine(h, 2, 36, 4, 36); // phi 2
258  putBox(h, 0, 36, 2, 38);
259  putLine(h, 2, 36, 2, 38); // phi 3
260  putBox(h, 0, 38, 4, 40);
261  putLine(h, 2, 38, 4, 38);
262  putLine(h, 4, 38, 4, 40);
263  putLine(h, 2, 40, 4, 40); // phi 4
264  putBox(h, 0, 40, 2, 42);
265  putLine(h, 2, 40, 2, 42); // phi 5
266  putBox(h, 0, 42, 4, 44);
267  putLine(h, 2, 42, 4, 42);
268  putLine(h, 4, 42, 4, 44);
269  putLine(h, 2, 44, 4, 44); // phi 6
270  putBox(h, 0, 44, 2, 46);
271  putLine(h, 2, 44, 2, 46); // phi 7
272  putBox(h, 0, 46, 4, 48);
273  putLine(h, 2, 46, 4, 46);
274  putLine(h, 4, 46, 4, 48);
275  putLine(h, 1, 48, 4, 48); // phi 8
276  putBox(h, 0, 48, 1, 50);
277  putLine(h, 1, 48, 1, 50); // phi 9
278  putBox(h, 0, 50, 4, 52);
279  putLine(h, 1, 50, 4, 50);
280  putLine(h, 4, 50, 4, 52);
281  putLine(h, 2, 52, 4, 52); // phi 10
282  putBox(h, 0, 52, 2, 54);
283  putLine(h, 2, 52, 2, 54); // phi 11
284  putBox(h, 0, 54, 4, 56);
285  putLine(h, 2, 54, 4, 54);
286  putLine(h, 4, 54, 4, 56);
287  putLine(h, 2, 56, 4, 56); // phi 12
288  putBox(h, 0, 56, 2, 58);
289  putLine(h, 2, 56, 2, 58); // phi 13
290  putBox(h, 0, 58, 4, 60);
291  putLine(h, 2, 58, 4, 58);
292  putLine(h, 4, 58, 4, 60);
293  putLine(h, 2, 60, 4, 60); // phi 14
294  putBox(h, 0, 60, 2, 62);
295  putLine(h, 2, 60, 2, 62); // phi 15
296  putBox(h, 0, 62, 4, 64);
297  putLine(h, 2, 62, 4, 62);
298  putLine(h, 4, 62, 4, 64);
299  putLine(h, 1, 64, 4, 64); // phi 16
300 
301  putBox(h, 0, 64, 1, 96);
302  putLine(h, 1, 64, 1, 96);
303  putLine(h, 0, 96, 1, 96);
304 
305  // Right
306  putBox(h, 11, 32, 12, 34);
307  putLine(h, 8, 32, 11, 32);
308  putLine(h, 11, 32, 11, 34); // phi 1
309  putBox(h, 8, 34, 12, 36);
310  putLine(h, 8, 34, 11, 34);
311  putLine(h, 8, 34, 8, 36);
312  putLine(h, 10, 36, 8, 36); // phi 2
313  putBox(h, 10, 36, 12, 38);
314  putLine(h, 10, 36, 10, 38); // phi 3
315  putBox(h, 8, 38, 12, 40);
316  putLine(h, 10, 38, 8, 38);
317  putLine(h, 8, 38, 8, 40);
318  putLine(h, 10, 40, 8, 40); // phi 4
319  putBox(h, 10, 40, 12, 42);
320  putLine(h, 10, 40, 10, 42); // phi 5
321  putBox(h, 8, 42, 12, 44);
322  putLine(h, 10, 42, 8, 42);
323  putLine(h, 8, 42, 8, 44);
324  putLine(h, 10, 44, 8, 44); // phi 6
325  putBox(h, 10, 44, 12, 46);
326  putLine(h, 10, 44, 10, 46); // phi 7
327  putBox(h, 8, 46, 12, 48);
328  putLine(h, 10, 46, 8, 46);
329  putLine(h, 8, 46, 8, 48);
330  putLine(h, 11, 48, 8, 48); // phi 8
331  putBox(h, 11, 48, 12, 50);
332  putLine(h, 11, 48, 11, 50); // phi 9
333  putBox(h, 8, 50, 12, 52);
334  putLine(h, 11, 50, 8, 50);
335  putLine(h, 8, 50, 8, 52);
336  putLine(h, 10, 52, 8, 52); // phi 10
337  putBox(h, 10, 52, 12, 54);
338  putLine(h, 10, 52, 10, 54); // phi 11
339  putBox(h, 8, 54, 12, 56);
340  putLine(h, 10, 54, 8, 54);
341  putLine(h, 8, 54, 8, 56);
342  putLine(h, 10, 56, 8, 56); // phi 12
343  putBox(h, 10, 56, 12, 58);
344  putLine(h, 10, 56, 10, 58); // phi 13
345  putBox(h, 8, 58, 12, 60);
346  putLine(h, 10, 58, 8, 58);
347  putLine(h, 8, 58, 8, 60);
348  putLine(h, 10, 60, 8, 60); // phi 14
349  putBox(h, 10, 60, 12, 62);
350  putLine(h, 10, 60, 10, 62); // phi 15
351  putBox(h, 8, 62, 12, 64);
352  putLine(h, 10, 62, 8, 62);
353  putLine(h, 8, 62, 8, 64);
354  putLine(h, 11, 64, 8, 64); // phi 16
355 
356  putBox(h, 11, 64, 12, 96);
357  putLine(h, 11, 64, 11, 96);
358  putLine(h, 12, 96, 11, 96);
359 
360  // Draw TickMarks
361  for (int i = 0; i < 65; i++) {
362  TLine* l = new TLine(0, i, 0.55 * 12 / 17, i);
363  // l->SetLineColor(kRed);
364  h->GetListOfFunctions()->Add(l);
365  }
366  for (int i = 0; i != 13; ++i) {
367  TLine* l = new TLine(i, 0, i, 0.55 / 17 * 64);
368  // l->SetLineColor(kRed);
369  h->GetListOfFunctions()->Add(l);
370  }
371 
372  putLine(h, 0, 0, 0, 64);
373  putLine(h, 0, 0, 12, 0);
374  }
375 
376  return StatusCode::SUCCESS;
377 }

◆ binMdtGlobal_byLayer()

StatusCode MdtRawDataValAlg::binMdtGlobal_byLayer ( TH2 nHits_In,
TH2 nHits_Mid,
TH2 nHits_Out 
)
privatevirtual

Definition at line 756 of file MDTRawDataUtils.cxx.

756  {
757  for (int iPhi = 1; iPhi != 17; ++iPhi) {
758  TString phiString = "";
759  if (iPhi < 10)
760  phiString = "0" + std::to_string(iPhi);
761  else
762  phiString = std::to_string(iPhi);
763  TString phiString_ml1 = phiString + ",1";
764  TString phiString_ml2 = phiString + ",2";
765  if (iPhi == 11 || iPhi == 15) {
766  TString phiString_ml1_BIR = phiString + ",1,R";
767  TString phiString_ml2_BIR = phiString + ",2,R";
768  nHits_In->Fill("EIC5", phiString_ml1_BIR, 0.);
769  nHits_In->Fill("EIC5", phiString_ml2_BIR, 0.);
770  TString phiString_ml1_BIM = phiString + ",1,M";
771  TString phiString_ml2_BIM = phiString + ",2,M";
772  nHits_In->Fill("EIC5", phiString_ml1_BIM, 0.);
773  nHits_In->Fill("EIC5", phiString_ml2_BIM, 0.);
774  } else {
775  nHits_In->Fill("EIC5", phiString_ml1, 0.);
776  nHits_In->Fill("EIC5", phiString_ml2, 0.);
777  }
778  nHits_Mid->Fill("EMC5", phiString_ml1, 0.);
779  nHits_Mid->Fill("EMC5", phiString_ml2, 0.);
780  nHits_Out->Fill("EOC6", phiString_ml1, 0.);
781  nHits_Out->Fill("EOC6", phiString_ml2, 0.);
782  }
783  for (int iEta = 6; iEta != -2; --iEta) {
784  TString etaIn = "EIC" + std::to_string(iEta);
785  TString etaMid = "EMC" + std::to_string(iEta);
786  TString etaOut = "EOC" + std::to_string(iEta);
787  if (iEta > 0) {
788  if (iEta < 6) {
789  nHits_In->Fill(etaIn, "01,1", 0);
790  nHits_Mid->Fill(etaMid, "01,1", 0);
791  }
792  nHits_Out->Fill(etaOut, "01,1", 0);
793  } else {
794  nHits_In->Fill("", "01,1", 0);
795  nHits_Mid->Fill("", "01,1", 0);
796  nHits_Out->Fill("", "01,1", 0);
797  }
798  }
799  // Add BIR11/15 separately at a higher eta station
800 
801  // BEE, EE chambers on inner plots
802  for (int iEta = -4; iEta != 1; ++iEta) {
803  TString etaIn = "";
804  if (iEta < -2) {
805  etaIn = "EEC" + std::to_string(std::abs(iEta + 2));
806  nHits_In->Fill(etaIn, "01,1", 0);
807  } else if (iEta < 0) {
808  etaIn = "BEC" + std::to_string(std::abs(iEta));
809  nHits_In->Fill(etaIn, "01,1", 0);
810  } else
811  nHits_In->Fill(" ", "01,1", 0);
812  }
813 
814  for (int iEta = -8; iEta != 11; ++iEta) {
815  TString etaIn = "";
816  TString etaMid = "";
817  TString etaOut = "";
818  if (iEta < 0) {
819  etaIn = "BIC" + std::to_string(std::abs(iEta));
820  etaOut = "BOC" + std::to_string(std::abs(iEta));
821  if (iEta > -7) { etaMid = "BMC" + std::to_string(std::abs(iEta)); }
822  } else if (iEta == 0) {
823  etaOut = "BOB" + std::to_string(iEta);
824  } else if (iEta < 9) {
825  etaIn = "BIA" + std::to_string(iEta);
826  etaOut = "BOA" + std::to_string(iEta);
827  if (iEta < 7) { etaMid = "BMA" + std::to_string(iEta); }
828  }
829  if (iEta < 9) {
830  nHits_In->Fill(etaIn, "01,1", 0);
831  nHits_Mid->Fill(etaMid, "01,1", 0);
832  nHits_Out->Fill(etaOut, "01,1", 0);
833  } else {
834  nHits_In->Fill(" ", "01,1", 0);
835  nHits_Mid->Fill(" ", "01,1", 0);
836  nHits_Out->Fill(" ", "01,1", 0);
837  }
838  }
839 
840  // BEE, EE chambers on inner plots
841  for (int iEta = 1; iEta != 6; ++iEta) {
842  TString etaIn = "";
843  if (iEta < 3) {
844  etaIn = "BEA" + std::to_string(std::abs(iEta));
845  nHits_In->Fill(etaIn, "01,1", 0);
846  } else if (iEta < 5) {
847  etaIn = "EEA" + std::to_string(std::abs(iEta - 2));
848  nHits_In->Fill(etaIn, "01,1", 0);
849  } else
850  nHits_In->Fill(" ", "01,1", 0);
851  }
852 
853  for (int iEta = 1; iEta != 7; ++iEta) {
854  TString etaIn = "EIA" + std::to_string(iEta);
855  TString etaMid = "EMA" + std::to_string(iEta);
856  TString etaOut = "EOA" + std::to_string(iEta);
857  if (iEta < 6) {
858  nHits_In->Fill(etaIn, "01,1", 0);
859  nHits_Mid->Fill(etaMid, "01,1", 0);
860  }
861  nHits_Out->Fill(etaOut, "01,1", 0);
862  }
863 
864  nHits_In->LabelsDeflate("X");
865  nHits_In->LabelsDeflate("Y");
866  nHits_In->LabelsOption("v", "x");
867  nHits_In->Reset();
868  nHits_Mid->LabelsDeflate("X");
869  nHits_Mid->LabelsDeflate("Y");
870  nHits_Mid->LabelsOption("v", "x");
871  nHits_Mid->Reset();
872  nHits_Out->LabelsDeflate("X");
873  nHits_Out->LabelsDeflate("Y");
874  nHits_Out->LabelsOption("v", "x");
875  nHits_Out->Reset();
876 
877  return StatusCode::SUCCESS;
878 }

◆ binMdtOccVsLB()

StatusCode MdtRawDataValAlg::binMdtOccVsLB ( TH2 *&  h,
int  region,
int  layer 
)
privatevirtual

Definition at line 1324 of file MDTRawDataUtils.cxx.

1324  {
1325  if (region == 0 || region == 1) { // Barrel
1326  if (layer == 0) { // Inner
1327  // Add Labels
1328  h->SetBins(834, 1, 2502, 122, 0, 122);
1329  h->GetYaxis()->SetBinLabel(1, "BI1");
1330  h->GetYaxis()->SetBinLabel(19, "BI2");
1331  h->GetYaxis()->SetBinLabel(37, "BI3");
1332  h->GetYaxis()->SetBinLabel(55, "BI4");
1333  h->GetYaxis()->SetBinLabel(73, "BI5");
1334  h->GetYaxis()->SetBinLabel(91, "BI6");
1335  h->GetYaxis()->SetBinLabel(107, "BI7");
1336  h->GetYaxis()->SetBinLabel(115, "BI8");
1337  // Add lines
1338  h->GetYaxis()->SetTickLength(0);
1339  for (int i = 0; i < 6; i++) {
1340  TLine* l = new TLine(1, 18 * i, 50, 18 * i);
1341  h->GetListOfFunctions()->Add(l);
1342  }
1343  TLine* l2 = new TLine(1, 106, 50, 106);
1344  h->GetListOfFunctions()->Add(l2);
1345  TLine* l3 = new TLine(1, 114, 50, 114);
1346  h->GetListOfFunctions()->Add(l3);
1347  for (int i = 1; i < 122; i++) {
1348  if (i < 90 && (i % 18 == 11 || i % 18 == 16)) {
1349  TLine* l = new TLine(1, i, 10, i);
1350  h->GetListOfFunctions()->Add(l);
1351  } else {
1352  TLine* l = new TLine(1, i, 20, i);
1353  h->GetListOfFunctions()->Add(l);
1354  }
1355  }
1356  }
1357 
1358  else if (layer == 1) { // Middle
1359  h->SetBins(834, 1, 2502, 95, 0, 95); // 95 = 1 + 16 + 16 + 16 + 16 + 16 + 14 total number of phi sectors (+1)
1360  // in the last eta-sector (6) there is no phi-sector 13; ie there arent chambers BML6A13
1361  // and BML6C13 so there are only 14 phi sectors
1362  // Add Labels
1363  h->GetYaxis()->SetBinLabel(1, "BM1");
1364  h->GetYaxis()->SetBinLabel(17, "BM2");
1365  h->GetYaxis()->SetBinLabel(33, "BM3");
1366  h->GetYaxis()->SetBinLabel(49, "BM4");
1367  h->GetYaxis()->SetBinLabel(65, "BM5");
1368  h->GetYaxis()->SetBinLabel(81, "BM6");
1369  // Add lines
1370  h->GetYaxis()->SetTickLength(0);
1371  for (int i = 1; i < 95; i++) {
1372  TLine* l = new TLine(1, i, 20, i);
1373  h->GetListOfFunctions()->Add(l);
1374  }
1375  TLine* l1 = new TLine(1, 16, 50, 16);
1376  h->GetListOfFunctions()->Add(l1);
1377  TLine* l2 = new TLine(1, 32, 50, 32);
1378  h->GetListOfFunctions()->Add(l2);
1379  TLine* l3 = new TLine(1, 48, 50, 48);
1380  h->GetListOfFunctions()->Add(l3);
1381  TLine* l4 = new TLine(1, 64, 50, 64);
1382  h->GetListOfFunctions()->Add(l4);
1383  TLine* l5 = new TLine(1, 80, 50, 80);
1384  h->GetListOfFunctions()->Add(l5);
1385  }
1386 
1387  else if (layer == 2 && region == 0) { // Outer, side A
1388  h->SetBins(834, 1, 2502, 118, 0, 118);
1389  // Add labels
1390  h->GetYaxis()->SetBinLabel(1, "BO0");
1391  h->GetYaxis()->SetBinLabel(4, "BO1");
1392  h->GetYaxis()->SetBinLabel(19, "BO2");
1393  h->GetYaxis()->SetBinLabel(35, "BO3");
1394  h->GetYaxis()->SetBinLabel(51, "BO4");
1395  h->GetYaxis()->SetBinLabel(67, "BO5");
1396  h->GetYaxis()->SetBinLabel(83, "BO6");
1397  h->GetYaxis()->SetBinLabel(99, "BO7,8");
1398  // h->GetYaxis()->SetBinLabel(101,"BO8");
1399  h->GetYaxis()->SetBinLabel(103, "BE1");
1400  h->GetYaxis()->SetBinLabel(111, "BE2");
1401  // Add lines
1402  h->GetYaxis()->SetTickLength(0);
1403  for (int i = 1; i < 118; i++) {
1404  TLine* l = new TLine(1, i, 20, i);
1405  h->GetListOfFunctions()->Add(l);
1406  }
1407  TLine* l1 = new TLine(1, 2, 50, 2);
1408  h->GetListOfFunctions()->Add(l1);
1409  TLine* l2 = new TLine(1, 18, 50, 18);
1410  h->GetListOfFunctions()->Add(l2);
1411  TLine* l3 = new TLine(1, 34, 50, 34);
1412  h->GetListOfFunctions()->Add(l3);
1413  TLine* l4 = new TLine(1, 50, 50, 50);
1414  h->GetListOfFunctions()->Add(l4);
1415  TLine* l5 = new TLine(1, 66, 50, 66);
1416  h->GetListOfFunctions()->Add(l5);
1417  TLine* l6 = new TLine(1, 82, 50, 82);
1418  h->GetListOfFunctions()->Add(l6);
1419  TLine* l7 = new TLine(1, 98, 50, 98);
1420  h->GetListOfFunctions()->Add(l7);
1421  TLine* l8 = new TLine(1, 100, 50, 100);
1422  h->GetListOfFunctions()->Add(l8);
1423  TLine* l9 = new TLine(1, 102, 50, 102);
1424  h->GetListOfFunctions()->Add(l9);
1425  TLine* l10 = new TLine(1, 110, 50, 110);
1426  h->GetListOfFunctions()->Add(l10);
1427  }
1428 
1429  else if (layer == 2 && region == 1) { // Outer, side C (no eta = 0)
1430  h->SetBins(834, 1, 2502, 116, 0, 116);
1431  // Add labels
1432  h->GetYaxis()->SetBinLabel(1, "BO1");
1433  h->GetYaxis()->SetBinLabel(17, "BO2");
1434  h->GetYaxis()->SetBinLabel(33, "BO3");
1435  h->GetYaxis()->SetBinLabel(49, "BO4");
1436  h->GetYaxis()->SetBinLabel(65, "BO5");
1437  h->GetYaxis()->SetBinLabel(81, "BO6");
1438  h->GetYaxis()->SetBinLabel(97, "BO7,8");
1439  // h->GetYaxis()->SetBinLabel(101,"BO8");
1440  h->GetYaxis()->SetBinLabel(101, "BE1");
1441  h->GetYaxis()->SetBinLabel(109, "BE2");
1442  // Add lines
1443  h->GetYaxis()->SetTickLength(0);
1444  for (int i = 1; i < 116; i++) {
1445  TLine* l = new TLine(1, i, 20, i);
1446  h->GetListOfFunctions()->Add(l);
1447  }
1448  TLine* l1 = new TLine(1, 16, 50, 16);
1449  h->GetListOfFunctions()->Add(l1);
1450  TLine* l2 = new TLine(1, 32, 50, 32);
1451  h->GetListOfFunctions()->Add(l2);
1452  TLine* l3 = new TLine(1, 48, 50, 48);
1453  h->GetListOfFunctions()->Add(l3);
1454  TLine* l4 = new TLine(1, 64, 50, 64);
1455  h->GetListOfFunctions()->Add(l4);
1456  TLine* l5 = new TLine(1, 80, 50, 80);
1457  h->GetListOfFunctions()->Add(l5);
1458  TLine* l6 = new TLine(1, 96, 50, 96);
1459  h->GetListOfFunctions()->Add(l6);
1460  TLine* l7 = new TLine(1, 98, 50, 98);
1461  h->GetListOfFunctions()->Add(l7);
1462  TLine* l8 = new TLine(1, 100, 50, 100);
1463  h->GetListOfFunctions()->Add(l8);
1464  TLine* l9 = new TLine(1, 108, 50, 108);
1465  h->GetListOfFunctions()->Add(l9);
1466  }
1467  }
1468 
1469  else { // Endcap
1470  if (layer == 0) { // Inner
1471  h->SetBins(834, 1, 2502, 50, 0, 50);
1472  // Add labels
1473  h->GetYaxis()->SetBinLabel(1, "EI1");
1474  h->GetYaxis()->SetBinLabel(17, "EI2");
1475  h->GetYaxis()->SetBinLabel(33, "EI3");
1476  h->GetYaxis()->SetBinLabel(41, "EI4");
1477  h->GetYaxis()->SetBinLabel(49, "EI5");
1478  // Add lines
1479  h->GetYaxis()->SetTickLength(0);
1480  for (int i = 1; i < 50; i++) {
1481  TLine* l = new TLine(1, i, 20, i);
1482  h->GetListOfFunctions()->Add(l);
1483  }
1484  TLine* l1 = new TLine(1, 16, 50, 16);
1485  h->GetListOfFunctions()->Add(l1);
1486  TLine* l2 = new TLine(1, 32, 50, 32);
1487  h->GetListOfFunctions()->Add(l2);
1488  TLine* l3 = new TLine(1, 40, 50, 40);
1489  h->GetListOfFunctions()->Add(l3);
1490  TLine* l4 = new TLine(1, 48, 50, 48);
1491  h->GetListOfFunctions()->Add(l4);
1492  }
1493 
1494  else if (layer == 1) { // Middle
1495  h->SetBins(834, 1, 2502, 80, 0, 80);
1496  // Add labels
1497  h->GetYaxis()->SetBinLabel(1, "EM1");
1498  h->GetYaxis()->SetBinLabel(17, "EM2");
1499  h->GetYaxis()->SetBinLabel(33, "EM3");
1500  h->GetYaxis()->SetBinLabel(49, "EM4");
1501  h->GetYaxis()->SetBinLabel(65, "EM5");
1502  // Add lines
1503  h->GetYaxis()->SetTickLength(0);
1504  for (int i = 1; i < 80; i++) {
1505  TLine* l = new TLine(1, i, 20, i);
1506  h->GetListOfFunctions()->Add(l);
1507  }
1508  TLine* l1 = new TLine(1, 16, 50, 16);
1509  h->GetListOfFunctions()->Add(l1);
1510  TLine* l2 = new TLine(1, 32, 50, 32);
1511  h->GetListOfFunctions()->Add(l2);
1512  TLine* l3 = new TLine(1, 48, 50, 48);
1513  h->GetListOfFunctions()->Add(l3);
1514  TLine* l4 = new TLine(1, 64, 50, 64);
1515  h->GetListOfFunctions()->Add(l4);
1516  }
1517 
1518  else if (layer == 2) { // Outer + extra
1519 
1520  if (region == 2) { // side A
1521  h->SetBins(834, 1, 2502, 103, 0, 103);
1522  // Add labels
1523  h->GetYaxis()->SetBinLabel(1, "EO1");
1524  h->GetYaxis()->SetBinLabel(17, "EO2");
1525  h->GetYaxis()->SetBinLabel(33, "EO3");
1526  h->GetYaxis()->SetBinLabel(49, "EO4");
1527  h->GetYaxis()->SetBinLabel(65, "EO5");
1528  h->GetYaxis()->SetBinLabel(81, "EO6");
1529  h->GetYaxis()->SetBinLabel(97, "EE1,2");
1530  // Add lines
1531  h->GetYaxis()->SetTickLength(0);
1532  for (int i = 1; i < 103; i++) {
1533  TLine* l = new TLine(1, i, 20, i);
1534  h->GetListOfFunctions()->Add(l);
1535  }
1536  TLine* l1 = new TLine(1, 16, 50, 16);
1537  h->GetListOfFunctions()->Add(l1);
1538  TLine* l2 = new TLine(1, 32, 50, 32);
1539  h->GetListOfFunctions()->Add(l2);
1540  TLine* l3 = new TLine(1, 48, 50, 48);
1541  h->GetListOfFunctions()->Add(l3);
1542  TLine* l4 = new TLine(1, 64, 50, 64);
1543  h->GetListOfFunctions()->Add(l4);
1544  TLine* l5 = new TLine(1, 80, 50, 80);
1545  h->GetListOfFunctions()->Add(l5);
1546  TLine* l6 = new TLine(1, 96, 50, 96);
1547  h->GetListOfFunctions()->Add(l6);
1548  TLine* l7 = new TLine(1, 100, 50, 100);
1549  h->GetListOfFunctions()->Add(l7);
1550  } else if (region == 3) { // side C
1551  h->SetBins(834, 1, 2502, 127, 0, 127);
1552  // Add labels
1553  h->GetYaxis()->SetBinLabel(1, "EO1");
1554  h->GetYaxis()->SetBinLabel(17, "EO2");
1555  h->GetYaxis()->SetBinLabel(33, "EO3");
1556  h->GetYaxis()->SetBinLabel(49, "EO4");
1557  h->GetYaxis()->SetBinLabel(65, "EO5");
1558  h->GetYaxis()->SetBinLabel(81, "EO6");
1559  h->GetYaxis()->SetBinLabel(97, "EE1");
1560  h->GetYaxis()->SetBinLabel(113, "EE2");
1561  // Add lines
1562  h->GetYaxis()->SetTickLength(0);
1563  for (int i = 1; i < 127; i++) {
1564  TLine* l = new TLine(1, i, 20, i);
1565  h->GetListOfFunctions()->Add(l);
1566  }
1567  TLine* l1 = new TLine(1, 16, 50, 16);
1568  h->GetListOfFunctions()->Add(l1);
1569  TLine* l2 = new TLine(1, 32, 50, 32);
1570  h->GetListOfFunctions()->Add(l2);
1571  TLine* l3 = new TLine(1, 48, 50, 48);
1572  h->GetListOfFunctions()->Add(l3);
1573  TLine* l4 = new TLine(1, 64, 50, 64);
1574  h->GetListOfFunctions()->Add(l4);
1575  TLine* l5 = new TLine(1, 80, 50, 80);
1576  h->GetListOfFunctions()->Add(l5);
1577  TLine* l6 = new TLine(1, 96, 50, 96);
1578  h->GetListOfFunctions()->Add(l6);
1579  TLine* l7 = new TLine(1, 112, 50, 112);
1580  h->GetListOfFunctions()->Add(l7);
1581  }
1582  }
1583  }
1584 
1585  return StatusCode::SUCCESS;
1586 }

◆ binMdtOccVsLB_Crate()

StatusCode MdtRawDataValAlg::binMdtOccVsLB_Crate ( TH2 *&  h,
int  region,
int  crate 
)
privatevirtual

Definition at line 1588 of file MDTRawDataUtils.cxx.

1588  {
1589  if (region == 0 || region == 1) { // Barrel
1590  if (crate == 0) { // Crate BA01 or BC01
1591  // Add Labels
1592  h->SetBins(834, 1, 2502, 73, 0, 73);
1593  h->GetYaxis()->SetBinLabel(1, "BIL");
1594  h->GetYaxis()->SetBinLabel(13, "BIS");
1595  h->GetYaxis()->SetBinLabel(25, "BME");
1596  h->GetYaxis()->SetBinLabel(26, "BML");
1597  h->GetYaxis()->SetBinLabel(38, "BMS");
1598  h->GetYaxis()->SetBinLabel(50, "BOL");
1599  h->GetYaxis()->SetBinLabel(62, "BOS");
1600  // Add lines
1601  h->GetYaxis()->SetTickLength(0);
1602  for (int i = 0; i < 73; i++) {
1603  TLine* l = new TLine(1, i, 20, i);
1604  h->GetListOfFunctions()->Add(l);
1605  }
1606  TLine* l2 = new TLine(1, 0, 50, 0);
1607  h->GetListOfFunctions()->Add(l2);
1608  TLine* l3 = new TLine(1, 12, 50, 12);
1609  h->GetListOfFunctions()->Add(l3);
1610  TLine* l4 = new TLine(1, 24, 50, 24);
1611  h->GetListOfFunctions()->Add(l4);
1612  TLine* l5 = new TLine(1, 25, 50, 25);
1613  h->GetListOfFunctions()->Add(l5);
1614  TLine* l6 = new TLine(1, 37, 50, 37);
1615  h->GetListOfFunctions()->Add(l6);
1616  TLine* l8 = new TLine(1, 49, 50, 49);
1617  h->GetListOfFunctions()->Add(l8);
1618  TLine* l9 = new TLine(1, 61, 50, 61);
1619  h->GetListOfFunctions()->Add(l9);
1620  }
1621 
1622  else if (crate == 1) { // BA02, BC02
1623  h->SetBins(834, 1, 2502, 73, 0, 73);
1624  // Add Labels
1625  h->GetYaxis()->SetBinLabel(1, "BIL");
1626  h->GetYaxis()->SetBinLabel(13, "BIS");
1627  h->GetYaxis()->SetBinLabel(25, "BME");
1628  h->GetYaxis()->SetBinLabel(37, "BMS");
1629  h->GetYaxis()->SetBinLabel(49, "BOL");
1630  h->GetYaxis()->SetBinLabel(61, "BOS");
1631  // Add lines
1632  h->GetYaxis()->SetTickLength(0);
1633  for (int i = 1; i < 73; i++) {
1634  TLine* l = new TLine(1, i, 20, i);
1635  h->GetListOfFunctions()->Add(l);
1636  }
1637  TLine* l1 = new TLine(1, 12, 50, 12);
1638  h->GetListOfFunctions()->Add(l1);
1639  TLine* l2 = new TLine(1, 24, 50, 24);
1640  h->GetListOfFunctions()->Add(l2);
1641  TLine* l3 = new TLine(1, 36, 50, 36);
1642  h->GetListOfFunctions()->Add(l3);
1643  TLine* l4 = new TLine(1, 48, 50, 48);
1644  h->GetListOfFunctions()->Add(l4);
1645  TLine* l6 = new TLine(1, 60, 50, 60);
1646  h->GetListOfFunctions()->Add(l6);
1647 
1648  } else if (crate == 2) { // BA03, BC03
1649  // Add Labels
1650  h->SetBins(834, 1, 2502, 80, 0, 80);
1651  h->GetYaxis()->SetBinLabel(1, "BIL");
1652  h->GetYaxis()->SetBinLabel(7, "BIM");
1653  h->GetYaxis()->SetBinLabel(12, "BIR");
1654  h->GetYaxis()->SetBinLabel(18, "BIS");
1655  h->GetYaxis()->SetBinLabel(30, "BMF");
1656  h->GetYaxis()->SetBinLabel(33, "BMG");
1657  h->GetYaxis()->SetBinLabel(36, "BML");
1658  h->GetYaxis()->SetBinLabel(48, "BMS");
1659  h->GetYaxis()->SetBinLabel(54, "BOF");
1660  h->GetYaxis()->SetBinLabel(58, "BOG");
1661  if (region == 0) {
1662  h->GetYaxis()->SetBinLabel(63, "BOL");
1663  h->GetYaxis()->SetBinLabel(75, "BOS");
1664  } else if (region == 1) {
1665  h->GetYaxis()->SetBinLabel(62, "BOL");
1666  h->GetYaxis()->SetBinLabel(74, "BOS");
1667  }
1668  // Add lines
1669  h->GetYaxis()->SetTickLength(0);
1670  for (int i = 0; i < 80; i++) {
1671  TLine* l = new TLine(1, i, 20, i);
1672  h->GetListOfFunctions()->Add(l);
1673  }
1674  TLine* l2 = new TLine(1, 6, 50, 6);
1675  h->GetListOfFunctions()->Add(l2);
1676  TLine* l3 = new TLine(1, 11, 50, 11);
1677  h->GetListOfFunctions()->Add(l3);
1678  TLine* l3b = new TLine(1, 17, 50, 17);
1679  h->GetListOfFunctions()->Add(l3b);
1680  // TLine* l4 = new TLine(1,26,50,26); h->GetListOfFunctions()->Add(l4); //removed this line because it doesnt correspond to
1681  // anything
1682  TLine* l5 = new TLine(1, 29, 50, 29);
1683  h->GetListOfFunctions()->Add(l5);
1684  TLine* l6 = new TLine(1, 32, 50, 32);
1685  h->GetListOfFunctions()->Add(l6);
1686  TLine* l7 = new TLine(1, 35, 50, 35);
1687  h->GetListOfFunctions()->Add(l7);
1688  TLine* l8 = new TLine(1, 47, 50, 47);
1689  h->GetListOfFunctions()->Add(l8);
1690  TLine* l9 = new TLine(1, 53, 50, 53);
1691  h->GetListOfFunctions()->Add(l9);
1692  TLine* l9b = new TLine(1, 57, 50, 57);
1693  h->GetListOfFunctions()->Add(l9b);
1694  if (region == 0) {
1695  TLine* l10 = new TLine(1, 62, 50, 62);
1696  h->GetListOfFunctions()->Add(l10);
1697  TLine* l11 = new TLine(1, 74, 50, 74);
1698  h->GetListOfFunctions()->Add(l11);
1699  } else if (region == 1) {
1700  TLine* l10 = new TLine(1, 61, 50, 61);
1701  h->GetListOfFunctions()->Add(l10);
1702  TLine* l11 = new TLine(1, 73, 50, 73);
1703  h->GetListOfFunctions()->Add(l11);
1704  }
1705  }
1706 
1707  else if (crate == 3) { // BA04, BC04
1708  // Add Labels
1709  h->SetBins(834, 1, 2502, 79, 0, 79);
1710  h->GetYaxis()->SetBinLabel(1, "BIL");
1711  h->GetYaxis()->SetBinLabel(7, "BIM");
1712  h->GetYaxis()->SetBinLabel(12, "BIR");
1713  h->GetYaxis()->SetBinLabel(18, "BIS");
1714  h->GetYaxis()->SetBinLabel(30, "BMF");
1715  h->GetYaxis()->SetBinLabel(33, "BMG");
1716  h->GetYaxis()->SetBinLabel(36, "BML");
1717  h->GetYaxis()->SetBinLabel(47, "BMS");
1718  h->GetYaxis()->SetBinLabel(53, "BOF");
1719  h->GetYaxis()->SetBinLabel(57, "BOG");
1720  if (region == 0) {
1721  h->GetYaxis()->SetBinLabel(62, "BOL");
1722  h->GetYaxis()->SetBinLabel(75, "BOS");
1723  } else if (region == 1) {
1724  h->GetYaxis()->SetBinLabel(61, "BOL");
1725  h->GetYaxis()->SetBinLabel(74, "BOS");
1726  }
1727 
1728  // Add lines
1729  h->GetYaxis()->SetTickLength(0);
1730  for (int i = 0; i < 79; i++) {
1731  TLine* l = new TLine(1, i, 20, i);
1732  h->GetListOfFunctions()->Add(l);
1733  }
1734  TLine* l2 = new TLine(1, 6, 50, 6);
1735  h->GetListOfFunctions()->Add(l2);
1736  TLine* l3 = new TLine(1, 11, 50, 11);
1737  h->GetListOfFunctions()->Add(l3);
1738  TLine* l3b = new TLine(1, 17, 50, 17);
1739  h->GetListOfFunctions()->Add(l3b);
1740  // TLine* l4 = new TLine(1,26,50,26); h->GetListOfFunctions()->Add(l4);//removed this line because it doesnt correspond to
1741  // anything
1742  TLine* l5 = new TLine(1, 29, 50, 29);
1743  h->GetListOfFunctions()->Add(l5);
1744  TLine* l6 = new TLine(1, 32, 50, 32);
1745  h->GetListOfFunctions()->Add(l6);
1746  TLine* l7 = new TLine(1, 35, 50, 35);
1747  h->GetListOfFunctions()->Add(l7);
1748  TLine* l8 = new TLine(1, 46, 50, 46);
1749  h->GetListOfFunctions()->Add(l8);
1750  TLine* l9 = new TLine(1, 52, 50, 52);
1751  h->GetListOfFunctions()->Add(l9);
1752  TLine* l9b = new TLine(1, 56, 50, 56);
1753  h->GetListOfFunctions()->Add(l9b);
1754  if (region == 0) {
1755  TLine* l10 = new TLine(1, 61, 50, 61);
1756  h->GetListOfFunctions()->Add(l10);
1757  TLine* l11 = new TLine(1, 74, 50, 74);
1758  h->GetListOfFunctions()->Add(l11);
1759  } else if (region == 1) {
1760  TLine* l10 = new TLine(1, 60, 50, 60);
1761  h->GetListOfFunctions()->Add(l10);
1762  TLine* l11 = new TLine(1, 73, 50, 73);
1763  h->GetListOfFunctions()->Add(l11);
1764  }
1765  }
1766  }
1767 
1768  else { // Endcap
1769  if (crate == 0 || crate == 2) { // EA01, EC01 and EA03, EC03 are the same
1770  h->SetBins(834, 1, 2502, 73, 0, 73);
1771  // Add labels
1772  h->GetYaxis()->SetBinLabel(1, "BEE");
1773  h->GetYaxis()->SetBinLabel(5, "BIS");
1774  h->GetYaxis()->SetBinLabel(9, "EEL");
1775  h->GetYaxis()->SetBinLabel(13, "EES");
1776  h->GetYaxis()->SetBinLabel(17, "EIL");
1777  h->GetYaxis()->SetBinLabel(26, "EIS");
1778  h->GetYaxis()->SetBinLabel(30, "EML");
1779  h->GetYaxis()->SetBinLabel(40, "EMS");
1780  h->GetYaxis()->SetBinLabel(50, "EOL");
1781  h->GetYaxis()->SetBinLabel(62, "EOS");
1782  // Add lines
1783  h->GetYaxis()->SetTickLength(0);
1784  for (int i = 1; i < 73; i++) {
1785  TLine* l = new TLine(1, i, 20, i);
1786  h->GetListOfFunctions()->Add(l);
1787  }
1788  TLine* l2 = new TLine(1, 4, 50, 4);
1789  h->GetListOfFunctions()->Add(l2);
1790  TLine* l3 = new TLine(1, 8, 50, 8);
1791  h->GetListOfFunctions()->Add(l3);
1792  TLine* l4 = new TLine(1, 12, 50, 12);
1793  h->GetListOfFunctions()->Add(l4);
1794  TLine* l5 = new TLine(1, 16, 50, 16);
1795  h->GetListOfFunctions()->Add(l5);
1796  TLine* l6 = new TLine(1, 25, 50, 25);
1797  h->GetListOfFunctions()->Add(l6);
1798  TLine* l7 = new TLine(1, 29, 50, 29);
1799  h->GetListOfFunctions()->Add(l7);
1800  TLine* l8 = new TLine(1, 39, 50, 39);
1801  h->GetListOfFunctions()->Add(l8);
1802  TLine* l9 = new TLine(1, 49, 50, 49);
1803  h->GetListOfFunctions()->Add(l9);
1804  TLine* l10 = new TLine(1, 61, 50, 61);
1805  h->GetListOfFunctions()->Add(l10);
1806  } else if (crate == 1) { // EA02, EC02
1807  h->SetBins(834, 1, 2502, 71, 0, 71);
1808  // Add labels
1809  h->GetYaxis()->SetBinLabel(1, "BEE");
1810  h->GetYaxis()->SetBinLabel(5, "BIS");
1811  h->GetYaxis()->SetBinLabel(9, "EEL");
1812  h->GetYaxis()->SetBinLabel(12, "EES");
1813  h->GetYaxis()->SetBinLabel(16, "EIL");
1814  h->GetYaxis()->SetBinLabel(24, "EIS");
1815  h->GetYaxis()->SetBinLabel(28, "EML");
1816  h->GetYaxis()->SetBinLabel(38, "EMS");
1817  h->GetYaxis()->SetBinLabel(48, "EOL");
1818  h->GetYaxis()->SetBinLabel(60, "EOS");
1819  // Add lines
1820  h->GetYaxis()->SetTickLength(0);
1821  for (int i = 1; i < 71; i++) {
1822  TLine* l = new TLine(1, i, 20, i);
1823  h->GetListOfFunctions()->Add(l);
1824  }
1825  TLine* l2 = new TLine(1, 4, 50, 4);
1826  h->GetListOfFunctions()->Add(l2);
1827  TLine* l3 = new TLine(1, 8, 50, 8);
1828  h->GetListOfFunctions()->Add(l3);
1829  TLine* l4 = new TLine(1, 11, 50, 11);
1830  h->GetListOfFunctions()->Add(l4);
1831  TLine* l5 = new TLine(1, 15, 50, 15);
1832  h->GetListOfFunctions()->Add(l5);
1833  TLine* l6 = new TLine(1, 23, 50, 23);
1834  h->GetListOfFunctions()->Add(l6);
1835  TLine* l7 = new TLine(1, 27, 50, 27);
1836  h->GetListOfFunctions()->Add(l7);
1837  TLine* l8 = new TLine(1, 37, 50, 37);
1838  h->GetListOfFunctions()->Add(l8);
1839  TLine* l9 = new TLine(1, 47, 50, 47);
1840  h->GetListOfFunctions()->Add(l9);
1841  TLine* l10 = new TLine(1, 59, 50, 59);
1842  h->GetListOfFunctions()->Add(l10);
1843  } else if (crate == 3) { // EA04, EC04
1844  h->SetBins(834, 1, 2502, 72, 0, 72);
1845  // Add labels
1846  h->GetYaxis()->SetBinLabel(1, "BEE");
1847  h->GetYaxis()->SetBinLabel(5, "BIS");
1848  h->GetYaxis()->SetBinLabel(9, "EEL");
1849  h->GetYaxis()->SetBinLabel(13, "EES");
1850  h->GetYaxis()->SetBinLabel(17, "EIL");
1851  h->GetYaxis()->SetBinLabel(25, "EIS");
1852  h->GetYaxis()->SetBinLabel(29, "EML");
1853  h->GetYaxis()->SetBinLabel(39, "EMS");
1854  h->GetYaxis()->SetBinLabel(49, "EOL");
1855  h->GetYaxis()->SetBinLabel(61, "EOS");
1856  // Add lines
1857  h->GetYaxis()->SetTickLength(0);
1858  for (int i = 1; i < 72; i++) {
1859  TLine* l = new TLine(1, i, 20, i);
1860  h->GetListOfFunctions()->Add(l);
1861  }
1862  TLine* l2 = new TLine(1, 4, 50, 4);
1863  h->GetListOfFunctions()->Add(l2);
1864  TLine* l3 = new TLine(1, 8, 50, 8);
1865  h->GetListOfFunctions()->Add(l3);
1866  TLine* l4 = new TLine(1, 12, 50, 12);
1867  h->GetListOfFunctions()->Add(l4);
1868  TLine* l5 = new TLine(1, 16, 50, 16);
1869  h->GetListOfFunctions()->Add(l5);
1870  TLine* l6 = new TLine(1, 24, 50, 24);
1871  h->GetListOfFunctions()->Add(l6);
1872  TLine* l7 = new TLine(1, 28, 50, 28);
1873  h->GetListOfFunctions()->Add(l7);
1874  TLine* l8 = new TLine(1, 38, 50, 38);
1875  h->GetListOfFunctions()->Add(l8);
1876  TLine* l9 = new TLine(1, 48, 50, 48);
1877  h->GetListOfFunctions()->Add(l9);
1878  TLine* l10 = new TLine(1, 60, 50, 60);
1879  h->GetListOfFunctions()->Add(l10);
1880  }
1881  }
1882 
1883  return StatusCode::SUCCESS;
1884 }

◆ binMdtRegional()

StatusCode MdtRawDataValAlg::binMdtRegional ( TH2 h,
std::string_view  xAxis 
)
privatevirtual

SET Ghost Entries

Definition at line 379 of file MDTRawDataUtils.cxx.

379  {
381  int LowerEta = -0;
382  int UpperEta = 0;
383  if (xAxis.substr(0, 2) == "BO" || xAxis.substr(0, 2) == "BI") { // Barrel Hit Mutltiplicities
384  LowerEta = -8;
385  UpperEta = 8;
386  } else if (xAxis.substr(0, 2) == "BM" || xAxis.substr(0, 2) == "EO") {
387  LowerEta = -6;
388  UpperEta = 6;
389  } else if (xAxis.substr(0, 2) == "EM" || xAxis.substr(0, 2) == "EI") {
390  LowerEta = -5;
391  UpperEta = 5;
392  } else {
393  LowerEta = -2;
394  UpperEta = 2;
395  }
396 
397  // Set x-axis labels
398  TString eta_s;
399  for (int ieta = LowerEta; ieta != UpperEta + 1; ++ieta) {
400  if (xAxis.substr(2, 1) == "A" && ieta < 0) continue; // A side goes from 1-...
401  if (xAxis.substr(2, 1) == "C" && ieta == 0) break; // C side goes from ...-1
402  if (ieta == 0 && xAxis.substr(0, 2) == "BO")
403  eta_s = "BOB";
404  else if (ieta == 0)
405  continue;
406  else
407  eta_s = xAxis.substr(0, 3);
408  eta_s += std::to_string(std::abs(ieta));
409  h->Fill(eta_s, 1, 0);
410  }
411 
412  bool barrelExtra = (xAxis == "BEA" || xAxis == "BEC");
413  // Set y-axis labels
414  TString phi_s;
415  for (int iphi = 1; iphi <= 16; iphi++) {
416  if (iphi < 10)
417  phi_s = "0" + std::to_string(iphi);
418  else
419  phi_s = std::to_string(iphi);
420  if (!barrelExtra) {
421  // Also uncomment lines in MdtRawDataValAlg.cxx in fillMDTSummaryHistograms() that actually fill these values
422  if (xAxis.substr(0, 2) == "BI" && (iphi == 11 || iphi == 15)) {
423  h->Fill(eta_s, phi_s + ",1,R", 0);
424  h->Fill(eta_s, phi_s + ",2,R", 0);
425  h->Fill(eta_s, phi_s + ",1,M", 0);
426  h->Fill(eta_s, phi_s + ",2,M", 0);
427  } else {
428  h->Fill(eta_s, phi_s + ",1", 0);
429  h->Fill(eta_s, phi_s + ",2", 0);
430  }
431  } else if (iphi % 2 == 0)
432  h->Fill(eta_s, phi_s + ",1", 0);
433  }
434 
435  if (xAxis == "BEA" || xAxis == "BEC" || xAxis == "EMA" || xAxis == "EMC" || xAxis == "EOA" || xAxis == "EOC") {
436  h->GetXaxis()->FindBin(".");
437  }
438 
439  h->LabelsDeflate("X");
440  h->LabelsDeflate("Y");
441  h->Reset();
442 
443  // Make gray boxes
444  if (xAxis == "BOA") {
445  putBox(h, 0, 0, 1, 44);
446  putBox(h, 7, 0, 9, 44);
447  putBox(h, 0, 48, 1, 52);
448  putBox(h, 8, 48, 9, 52);
449  putBox(h, 0, 56, 1, 64);
450  putBox(h, 7, 56, 9, 64);
451 
452  putLine(h, 1, 0, 1, 44);
453  putLine(h, 7, 0, 7, 44);
454  putLine(h, 0, 44, 1, 44);
455  putLine(h, 7, 44, 9, 44);
456  putLine(h, 1, 48, 1, 52);
457  putLine(h, 8, 48, 8, 52);
458  putLine(h, 0, 48, 1, 48);
459  putLine(h, 8, 48, 9, 48);
460  putLine(h, 0, 52, 1, 52);
461  putLine(h, 8, 52, 9, 52);
462  putLine(h, 1, 56, 1, 64);
463  putLine(h, 7, 56, 7, 64);
464  putLine(h, 0, 56, 1, 56);
465  putLine(h, 7, 56, 9, 56);
466  }
467  if (xAxis == "BOC") {
468  putBox(h, 0, 0, 2, 44);
469  putBox(h, 0, 48, 1, 52);
470  putBox(h, 0, 56, 2, 64);
471 
472  putLine(h, 2, 0, 2, 44);
473  putLine(h, 0, 44, 2, 44);
474  putLine(h, 1, 48, 1, 52);
475  putLine(h, 0, 48, 1, 48);
476  putLine(h, 0, 52, 1, 52);
477  putLine(h, 2, 56, 2, 64);
478  putLine(h, 0, 56, 2, 56);
479  }
480  if (xAxis == "BIA") {
481  putBox(h, 6, 0, 8, 4);
482  putLine(h, 6, 0, 8, 0);
483  putLine(h, 6, 0, 6, 4);
484  putLine(h, 6, 4, 8, 4); // phi 1
485  putBox(h, 7, 6, 8, 8);
486  putLine(h, 7, 6, 8, 6);
487  putLine(h, 7, 6, 7, 8); // phi 2
488  putBox(h, 6, 8, 8, 12);
489  putLine(h, 6, 8, 7, 8);
490  putLine(h, 6, 8, 6, 12);
491  putLine(h, 6, 12, 8, 12); // phi 3
492  putBox(h, 7, 14, 8, 16);
493  putLine(h, 7, 14, 8, 14);
494  putLine(h, 7, 14, 7, 16); // phi 4
495  putBox(h, 6, 16, 8, 20);
496  putLine(h, 6, 16, 7, 16);
497  putLine(h, 6, 16, 6, 20);
498  putLine(h, 6, 20, 8, 20); // phi 5
499  putBox(h, 7, 22, 8, 24);
500  putLine(h, 7, 22, 8, 22);
501  putLine(h, 7, 22, 7, 24); // phi 6
502  putBox(h, 6, 24, 8, 28);
503  putLine(h, 6, 24, 7, 24);
504  putLine(h, 6, 24, 6, 28);
505  putLine(h, 6, 28, 8, 28); // phi 7
506  putBox(h, 7, 30, 8, 32);
507  putLine(h, 7, 30, 8, 30);
508  putLine(h, 7, 30, 7, 32); // phi 8
509  putBox(h, 6, 32, 8, 36);
510  putLine(h, 6, 32, 7, 32);
511  putLine(h, 6, 32, 6, 36);
512  putLine(h, 6, 36, 8, 36); // phi 9
513  putBox(h, 7, 38, 8, 40);
514  putLine(h, 7, 38, 8, 38);
515  putLine(h, 7, 38, 7, 40); // phi 10
516  putBox(h, 6, 40, 8, 44);
517  putLine(h, 6, 40, 7, 40);
518  putLine(h, 6, 40, 6, 44); // putLine(h, 6, 40, 5, 44); //phi 11
519  putBox(h, 5, 44, 8, 48);
520  putLine(h, 5, 44, 6, 44);
521  putLine(h, 5, 44, 5, 48);
522  putLine(h, 5, 48, 8, 48); // phi 11 M
523  putBox(h, 7, 50, 8, 52);
524  putLine(h, 7, 50, 8, 50);
525  putLine(h, 7, 50, 7, 52); // phi 12
526  putBox(h, 6, 52, 8, 56);
527  putLine(h, 6, 52, 7, 52);
528  putLine(h, 6, 52, 6, 56);
529  putLine(h, 6, 56, 8, 56); // phi 13
530  putBox(h, 7, 58, 8, 60);
531  putLine(h, 7, 58, 8, 58);
532  putLine(h, 7, 58, 7, 60); // phi 14
533  putBox(h, 6, 60, 8, 64);
534  putLine(h, 6, 60, 7, 60);
535  putLine(h, 6, 60, 6, 64); // putLine(h, 6, 60, 5, 64); //phi 15
536  putBox(h, 5, 64, 8, 68);
537  putLine(h, 5, 64, 6, 64);
538  putLine(h, 5, 64, 5, 68);
539  putLine(h, 5, 68, 8, 68); // phi 15 M
540  putBox(h, 7, 70, 8, 72);
541  putLine(h, 7, 70, 8, 70);
542  putLine(h, 7, 70, 7, 72);
543  putLine(h, 7, 72, 8, 72); // phi 16
544  }
545  if (xAxis == "BIC") {
546  putBox(h, 2, 0, 0, 4);
547  putLine(h, 2, 0, 0, 0);
548  putLine(h, 2, 0, 2, 4);
549  putLine(h, 2, 4, 0, 4); // phi 1
550  putBox(h, 1, 6, 0, 8);
551  putLine(h, 1, 6, 0, 6);
552  putLine(h, 1, 6, 1, 8); // phi 2
553  putBox(h, 2, 8, 0, 12);
554  putLine(h, 2, 8, 1, 8);
555  putLine(h, 2, 8, 2, 12);
556  putLine(h, 2, 12, 0, 12); // phi 3
557  putBox(h, 1, 14, 0, 16);
558  putLine(h, 1, 14, 0, 14);
559  putLine(h, 1, 14, 1, 16); // phi 4
560  putBox(h, 2, 16, 0, 20);
561  putLine(h, 2, 16, 1, 16);
562  putLine(h, 2, 16, 2, 20);
563  putLine(h, 2, 20, 0, 20); // phi 5
564  putBox(h, 1, 22, 0, 24);
565  putLine(h, 1, 22, 0, 22);
566  putLine(h, 1, 22, 1, 24); // phi 6
567  putBox(h, 2, 24, 0, 28);
568  putLine(h, 2, 24, 1, 24);
569  putLine(h, 2, 24, 2, 28);
570  putLine(h, 2, 28, 0, 28); // phi 7
571  putBox(h, 1, 30, 0, 32);
572  putLine(h, 1, 30, 0, 30);
573  putLine(h, 1, 30, 1, 32); // phi 8
574  putBox(h, 2, 32, 0, 36);
575  putLine(h, 2, 32, 1, 32);
576  putLine(h, 2, 32, 2, 36);
577  putLine(h, 2, 36, 0, 36); // phi 9
578  putBox(h, 1, 38, 0, 40);
579  putLine(h, 1, 38, 0, 38);
580  putLine(h, 1, 38, 1, 40); // phi 10
581  putBox(h, 2, 40, 0, 44);
582  putLine(h, 2, 40, 1, 40);
583  putLine(h, 2, 40, 2, 44); // putLine(h, 2, 40, 3, 44); //phi 11
584  putBox(h, 3, 44, 0, 48);
585  putLine(h, 3, 44, 2, 44);
586  putLine(h, 3, 44, 3, 48);
587  putLine(h, 3, 48, 0, 48); // phi 11 M
588  putBox(h, 1, 50, 0, 52);
589  putLine(h, 1, 50, 0, 50);
590  putLine(h, 1, 50, 1, 52); // phi 12
591  putBox(h, 2, 52, 0, 56);
592  putLine(h, 2, 52, 1, 52);
593  putLine(h, 2, 52, 2, 56);
594  putLine(h, 2, 56, 0, 56); // phi 13
595  putBox(h, 1, 58, 0, 60);
596  putLine(h, 1, 58, 0, 58);
597  putLine(h, 1, 58, 1, 60); // phi 14
598  putBox(h, 2, 60, 0, 64);
599  putLine(h, 2, 60, 1, 60);
600  putLine(h, 2, 60, 2, 64); // putLine(h, 2, 60, 3, 64); //phi 15
601  putBox(h, 3, 64, 0, 68);
602  putLine(h, 3, 64, 2, 64);
603  putLine(h, 3, 64, 3, 68);
604  putLine(h, 3, 68, 0, 68); // phi 15 M
605  putBox(h, 1, 70, 0, 72);
606  putLine(h, 1, 70, 0, 70);
607  putLine(h, 1, 70, 1, 72);
608  putLine(h, 1, 72, 0, 72); // phi 16
609  }
610 
611  if (xAxis == "EIA") {
612  putBox(h, 2, 4, 5, 8);
613  putLine(h, 2, 4, 5, 4);
614  putLine(h, 2, 4, 2, 8);
615  putLine(h, 2, 8, 4, 8); // phi 2
616  putBox(h, 4, 8, 5, 12);
617  putLine(h, 4, 8, 4, 12); // phi 3
618  putBox(h, 2, 12, 5, 16);
619  putLine(h, 2, 12, 4, 12);
620  putLine(h, 2, 12, 2, 16);
621  putLine(h, 2, 16, 4, 16); // phi 4
622  putBox(h, 4, 16, 5, 20);
623  putLine(h, 4, 16, 4, 20); // phi 5
624  putBox(h, 2, 20, 5, 24);
625  putLine(h, 2, 20, 4, 20);
626  putLine(h, 2, 20, 2, 24);
627  putLine(h, 2, 24, 4, 24); // phi 6
628  putBox(h, 4, 24, 5, 28);
629  putLine(h, 4, 24, 4, 28); // phi 7
630  putBox(h, 2, 28, 5, 32);
631  putLine(h, 2, 28, 4, 28);
632  putLine(h, 2, 28, 2, 32);
633  putLine(h, 2, 32, 5, 32); // phi 8
634  putBox(h, 2, 36, 5, 40);
635  putLine(h, 2, 36, 5, 36);
636  putLine(h, 2, 36, 2, 40);
637  putLine(h, 2, 40, 4, 40); // phi 10
638  putBox(h, 4, 40, 5, 44);
639  putLine(h, 4, 40, 4, 44); // phi 11
640  putBox(h, 2, 44, 5, 48);
641  putLine(h, 2, 44, 4, 44);
642  putLine(h, 2, 44, 2, 48);
643  putLine(h, 2, 48, 4, 48); // phi 12
644  putBox(h, 4, 48, 5, 52);
645  putLine(h, 4, 48, 4, 52); // phi 13
646  putBox(h, 2, 52, 5, 56);
647  putLine(h, 2, 52, 4, 52);
648  putLine(h, 2, 52, 2, 56);
649  putLine(h, 2, 56, 4, 56); // phi 14
650  putBox(h, 4, 56, 5, 60);
651  putLine(h, 4, 56, 4, 60); // phi 15
652  putBox(h, 2, 60, 5, 64);
653  putLine(h, 2, 60, 4, 60);
654  putLine(h, 2, 60, 2, 64);
655  putLine(h, 2, 64, 5, 64); // phi 16
656  }
657  if (xAxis == "EIC") {
658  putBox(h, 3, 4, 0, 8);
659  putLine(h, 3, 4, 0, 4);
660  putLine(h, 3, 4, 3, 8);
661  putLine(h, 3, 8, 1, 8); // phi 2
662  putBox(h, 1, 8, 0, 12);
663  putLine(h, 1, 8, 1, 12); // phi 3
664  putBox(h, 3, 12, 0, 16);
665  putLine(h, 3, 12, 1, 12);
666  putLine(h, 3, 12, 3, 16);
667  putLine(h, 3, 16, 1, 16); // phi 4
668  putBox(h, 1, 16, 0, 20);
669  putLine(h, 1, 16, 1, 20); // phi 5
670  putBox(h, 3, 20, 0, 24);
671  putLine(h, 3, 20, 1, 20);
672  putLine(h, 3, 20, 3, 24);
673  putLine(h, 3, 24, 1, 24); // phi 6
674  putBox(h, 1, 24, 0, 28);
675  putLine(h, 1, 24, 1, 28); // phi 7
676  putBox(h, 3, 28, 0, 32);
677  putLine(h, 3, 28, 1, 28);
678  putLine(h, 3, 28, 3, 32);
679  putLine(h, 3, 32, 0, 32); // phi 8
680  putBox(h, 3, 36, 0, 40);
681  putLine(h, 3, 36, 0, 36);
682  putLine(h, 3, 36, 3, 40);
683  putLine(h, 3, 40, 1, 40); // phi 10
684  putBox(h, 1, 40, 0, 44);
685  putLine(h, 1, 40, 1, 44); // phi 11
686  putBox(h, 3, 44, 0, 48);
687  putLine(h, 3, 44, 1, 44);
688  putLine(h, 3, 44, 3, 48);
689  putLine(h, 3, 48, 1, 48); // phi 12
690  putBox(h, 1, 48, 0, 52);
691  putLine(h, 1, 48, 1, 52); // phi 13
692  putBox(h, 3, 52, 0, 56);
693  putLine(h, 3, 52, 1, 52);
694  putLine(h, 3, 52, 3, 56);
695  putLine(h, 3, 56, 1, 56); // phi 14
696  putBox(h, 1, 56, 0, 60);
697  putLine(h, 1, 56, 1, 60); // phi 15
698  putBox(h, 3, 60, 0, 64);
699  putLine(h, 3, 60, 1, 60);
700  putLine(h, 3, 60, 3, 64);
701  putLine(h, 3, 64, 0, 64); // phi 16
702  }
703 
704  if (xAxis == "EEA") {
705  putBox(h, 1, 16, 2, 20);
706  putLine(h, 1, 16, 2, 16);
707  putLine(h, 1, 16, 1, 20);
708  putLine(h, 1, 20, 2, 20);
709  }
710 
711  if (xAxis == "EEC") {
712  putBox(h, 0, 16, 1, 20);
713  putLine(h, 0, 16, 1, 16);
714  putLine(h, 1, 16, 1, 20);
715  putLine(h, 0, 20, 1, 20);
716  }
717 
718  if (xAxis == "BEA" || xAxis == "BEC") {
719  putBox(h, 2, 0, 3, 16);
720  putLine(h, 2, 0, 2, 16);
721  }
722 
723  if (xAxis == "EMA" || xAxis == "EMC") {
724  putBox(h, 5, 0, 6, 64);
725  putLine(h, 5, 0, 5, 64);
726  }
727 
728  if (xAxis == "EOA" || xAxis == "EOC") {
729  putBox(h, 6, 0, 7, 64);
730  putLine(h, 6, 0, 6, 64);
731  }
732 
733  if (xAxis.substr(0, 2) == "EE" || xAxis.substr(0, 2) == "BI" || xAxis.substr(0, 2) == "EI" || xAxis.substr(0, 2) == "BM" ||
734  xAxis.substr(0, 2) == "BO") {
735  // Draw TickMarks
736  for (int i = 0; i != h->GetNbinsY() + 1; i++) {
737  TLine* l = new TLine(0, i, 0.55 * h->GetNbinsX() / 17, i);
738  h->GetListOfFunctions()->Add(l);
739  }
740  for (int i = 0; i != h->GetNbinsX() + 1; ++i) {
741  TLine* l = new TLine(i, 0, i, 0.55 / 17 * h->GetNbinsY());
742  h->GetListOfFunctions()->Add(l);
743  }
744 
745  TLine* lx = new TLine(0, 0, h->GetNbinsX(), 0);
746  TLine* ly = new TLine(0, 0, 0, h->GetNbinsY());
747  lx->SetLineColor(kBlack);
748  ly->SetLineColor(kBlack);
749  h->GetListOfFunctions()->Add(lx);
750  h->GetListOfFunctions()->Add(ly);
751  }
752 
753  return StatusCode::SUCCESS;
754 }

◆ bookHistograms()

StatusCode ManagedMonitorToolBase::bookHistograms ( )
virtualinherited

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

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

Definition at line 1406 of file ManagedMonitorToolBase.cxx.

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

◆ bookHistogramsRecurrent()

StatusCode MdtRawDataValAlg::bookHistogramsRecurrent ( )
virtual

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

Reimplemented from ManagedMonitorToolBase.

Definition at line 223 of file MdtRawDataValAlg.cxx.

225 {
226  // changed for booking unmanaged histograms for MIG2
227 
228  StatusCode sc = StatusCode::SUCCESS;
229 
230  if (newRunFlag() || newLowStatIntervalFlag()) {
231  sc = bookMDTSummaryHistograms(/* isNewEventsBlock,*/ newLumiBlockFlag(), newRunFlag());
232  if (sc.isFailure()) {
233  ATH_MSG_FATAL("Failed to bookMDTSummaryHistograms");
234  return sc;
235  }
236  sc = bookMDTOverviewHistograms(/* isNewEventsBlock,*/ newLumiBlockFlag(), newRunFlag());
237  if (sc.isFailure()) {
238  ATH_MSG_FATAL("Failed to bookMDTOverviewHistograms");
239  return sc;
240  }
241  }
242 
243  // if(isNewEventsBlock) {}
244  if (newLumiBlockFlag()) {}
245  if (newRunFlag()) {
246  ATH_MSG_DEBUG("MDT RawData Monitoring from ESD : newRunFlag()");
247  // Book All Chambers
248  // Protection against newRunFlag()()
249  int counter = 0;
250  sc = GetTimingInfo();
251  if (sc.isFailure()) {
252  ATH_MSG_ERROR(" Cannot GetTimingInfo ");
253  return sc;
254  }
256 
257  sc = GetEventNum();
258  if (sc.isFailure()) {
259  ATH_MSG_ERROR(" Cannot GetEventNum ");
260  return sc;
261  }
263 
264  ATH_MSG_DEBUG("MdtRawDataValAlg::MDT RawData Monitoring Histograms being filled");
265 
266  for (std::vector<Identifier>::const_iterator itr = m_chambersId.begin(); itr != m_chambersId.end(); ++itr, ++counter) {
267  std::string hardware_name =
268  convertChamberName(m_idHelperSvc->mdtIdHelper().stationName(*itr), m_idHelperSvc->mdtIdHelper().stationEta(*itr),
269  m_idHelperSvc->mdtIdHelper().stationPhi(*itr), "MDT");
270  // Skip Chambers That Do NOT Exist
271  if (hardware_name == "BML6A13" || hardware_name == "BML6C13") continue;
272 
273  std::unique_ptr<MDTChamber>& chamber = m_hist_hash_list[m_chambersIdHash.at(counter)];
274  chamber = std::make_unique<MDTChamber>(hardware_name);
275 
276  m_hardware_name_list.insert(hardware_name);
277  chamber->SetMDTHitsPerChamber_IMO_Bin(
278  dynamic_cast<TH2F*>(m_mdthitsperchamber_InnerMiddleOuterLumi[chamber->GetBarrelEndcapEnum()]));
279  chamber->SetMDTHitsPerChamber_IMO_Bin(
280  dynamic_cast<TH2F*>(m_mdthitsperchamber_InnerMiddleOuter_HighOcc[chamber->GetBarrelEndcapEnum()]));
281  chamber->SetMDTHitsPerML_byLayer_Bins(
282  dynamic_cast<TH2F*>(m_mdthitspermultilayerLumi[chamber->GetRegionEnum()][chamber->GetLayerEnum()]),
283  dynamic_cast<TH2F*>(m_mdthitsperML_byLayer[(chamber->GetLayerEnum() < 3 ? chamber->GetLayerEnum() : 0)]));
284  if (m_doChamberHists) { sc = bookMDTHistograms(chamber.get(), *itr); }
285  }
286 
287  } // if newRunFlag()
288 
289  return sc;
290 }

◆ bookHists()

StatusCode ManagedMonitorToolBase::bookHists ( )
virtualinherited

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

Implements IMonitorToolBase.

Reimplemented in TileRawChannelMonTool, and TileDigitsMonTool.

Definition at line 782 of file ManagedMonitorToolBase.cxx.

784 {
785  // The Run/LumiBlock numbers are not set when beginRun() is called. Therefore,
786  // book histograms on the first call to fillHists(), which is called from execute().
787  return StatusCode::SUCCESS;
788 }

◆ bookMDTHisto_chambers()

StatusCode MdtRawDataValAlg::bookMDTHisto_chambers ( TH1F_LW *&  h,
TString  h_title,
TString  xtit,
TString  ytit,
int  nbin,
float  xi,
float  xf,
MonGroup mgrp 
)
privatevirtual

Definition at line 970 of file MDTRawDataUtils.cxx.

971  {
972  h = TH1F_LW::create(h_title, h_title, nbin, xi, xf);
973  h->GetXaxis()->SetTitle(xtit);
974  h->GetYaxis()->SetTitle(ytit);
975  ATH_MSG_VERBOSE("INSIDE bookMDTHisto: " << h << " " << h_title);
976  StatusCode sc = mgrp.regHist(h);
977  if (sc.isFailure()) ATH_MSG_WARNING("couldn't register " << h_title << " hist to MonGroup");
978  return sc;
979 }

◆ bookMDTHisto_chambers_2D()

StatusCode MdtRawDataValAlg::bookMDTHisto_chambers_2D ( TH2F_LW *&  h,
TString  h_title,
TString  xtit,
TString  ytit,
int  nbin1,
float  xi1,
float  xf1,
int  nbin2,
float  xi2,
float  xf2,
MonGroup mgrp 
)
privatevirtual

Definition at line 996 of file MDTRawDataUtils.cxx.

997  {
998  h = TH2F_LW::create(h_title, h_title, nbin1, xi1, xf1, nbin2, xi2, xf2);
999  h->SetOption("COLZ");
1000  // h->SetFillColor(42);
1001  h->SetMarkerColor(1);
1002  h->SetMarkerStyle(21);
1003  h->SetMarkerSize(0.2);
1004  h->GetXaxis()->SetTitle(xtit);
1005  h->GetYaxis()->SetTitle(ytit);
1006  ATH_MSG_VERBOSE("INSIDE bookMDTHisto: " << h << " " << h_title);
1007  StatusCode sc = mgrp.regHist(h);
1008  if (sc.isFailure()) ATH_MSG_WARNING("couldn't register " << h_title << " hist to MonGroup");
1009  return sc;
1010 }

◆ bookMDTHisto_OccVsLB()

StatusCode MdtRawDataValAlg::bookMDTHisto_OccVsLB ( TH2 *&  h,
TString  h_title,
TString  xtit,
TString  ytit,
int  nbin1,
float  xi1,
float  xf1,
int  nbin2,
float  xi2,
float  xf2,
MonGroup mgrp 
)
privatevirtual

Definition at line 1012 of file MDTRawDataUtils.cxx.

1013  {
1014  h = new TH2F(h_title, h_title, nbin1, xi1, xf1, nbin2, xi2, xf2);
1015  h->SetOption("COLZ");
1016  h->SetMarkerColor(1);
1017  h->SetMarkerStyle(21);
1018  h->SetMarkerSize(0.2);
1019  h->GetXaxis()->SetTitle(xtit);
1020  h->GetYaxis()->SetTitle(ytit);
1021  ATH_MSG_DEBUG("INSIDE bookMDTHisto_OccVsLB: " << h << " " << h_title);
1022  StatusCode sc = mgrp.regHist(h);
1023  if (sc.isFailure()) ATH_MSG_WARNING("couldn't register " << h_title << " hist to MonGroup");
1024  return sc;
1025 }

◆ bookMDTHisto_overview()

StatusCode MdtRawDataValAlg::bookMDTHisto_overview ( TH1 *&  h,
TString  h_title,
TString  xtit,
TString  ytit,
int  nbin,
float  xi,
float  xf,
MonGroup mgrp 
)
privatevirtual

Definition at line 957 of file MDTRawDataUtils.cxx.

958  {
959  h = new TH1F(h_title, h_title, nbin, xi, xf);
960  h->SetFillColor(42);
961  h->SetTitleSize(0.3, "y");
962  h->GetXaxis()->SetTitle(xtit);
963  h->GetYaxis()->SetTitle(ytit);
964  ATH_MSG_DEBUG("INSIDE bookMDTHisto: " << h << " " << h_title);
965  StatusCode sc = mgrp.regHist(h);
966  if (sc.isFailure()) ATH_MSG_WARNING("couldn't register " << h_title << " hist to MonGroup");
967  return sc;
968 }

◆ bookMDTHisto_overview_2D()

StatusCode MdtRawDataValAlg::bookMDTHisto_overview_2D ( TH2 *&  h,
TString  h_title,
TString  xtit,
TString  ytit,
int  nbin1,
float  xi1,
float  xf1,
int  nbin2,
float  xi2,
float  xf2,
MonGroup mgrp 
)
privatevirtual

Definition at line 981 of file MDTRawDataUtils.cxx.

982  {
983  h = new TH2F(h_title, h_title, nbin1, xi1, xf1, nbin2, xi2, xf2);
984  h->SetOption("COLZ");
985  h->SetMarkerColor(1);
986  h->SetMarkerStyle(21);
987  h->SetMarkerSize(0.2);
988  h->GetXaxis()->SetTitle(xtit);
989  h->GetYaxis()->SetTitle(ytit);
990  ATH_MSG_DEBUG("INSIDE bookMDTHisto: " << h << " " << h_title);
991  StatusCode sc = mgrp.regHist(h);
992  if (sc.isFailure()) ATH_MSG_WARNING("couldn't register " << h_title << " hist to MonGroup");
993  return sc;
994 }

◆ bookMDTHistograms()

StatusCode MdtRawDataValAlg::bookMDTHistograms ( MDTChamber chamber,
Identifier  digcoll_id 
)
privatevirtual

Definition at line 706 of file MdtRawDataValAlg.cxx.

706  {
707  StatusCode sc = StatusCode::SUCCESS;
708 
709  std::string hardware_name = chamber->getName();
710  IdentifierHash idHash;
711  m_idHelperSvc->mdtIdHelper().get_module_hash(digcoll_id, idHash);
712 
713  int tubeIdMax = GetTubeMax(digcoll_id, hardware_name);
714 
715  // declare a group of histograms
716  std::string subdir_path = hardware_name.substr(0, 1) + hardware_name.substr(4, 1);
717  if (subdir_path.at(1) == 'B') subdir_path.at(1) = 'A'; // Place BOG0B12,14 in MDTBA
718 
719  MonGroup* mongroup_chambers_expert = nullptr;
720  if (subdir_path == "BA")
721  mongroup_chambers_expert = &(m_mg->mongroup_chambers_expert_MDTBA);
722  else if (subdir_path == "BC")
723  mongroup_chambers_expert = &(m_mg->mongroup_chambers_expert_MDTBC);
724  else if (subdir_path == "EA")
725  mongroup_chambers_expert = &(m_mg->mongroup_chambers_expert_MDTEA);
726  else
727  mongroup_chambers_expert = &(m_mg->mongroup_chambers_expert_MDTEC);
728 
730  // histo path for mdt EfficiencyEntries
733  sc = bookMDTHisto_chambers(chamber->mdt_effEntries, hardware_name + "_MDT_Station_EFFENTRIES", "tubeID", "Number of Entries",
734  tubeIdMax, 1, tubeIdMax + 1, *mongroup_chambers_expert);
735 
737  // histo path for mdt EfficiencyCounts
739  if (m_do_mdt_effCounts)
740  sc = bookMDTHisto_chambers(chamber->mdt_effCounts, hardware_name + "_MDT_Station_EFFCOUNTS", "tubeID", "Number of Counts",
741  tubeIdMax, 1, tubeIdMax + 1, *mongroup_chambers_expert);
742 
744  // histo path for mdt EfficiencyPerTube
747  sc = bookMDTHisto_chambers(chamber->mdt_effPerTube, hardware_name + "_MDT_Station_EFFPERTUBE", "tubeID", "Efficiency", tubeIdMax, 1,
748  tubeIdMax + 1, *mongroup_chambers_expert);
749 
751  // histo path for mdt tdc
753  if (m_do_mdttdc)
754  sc = bookMDTHisto_chambers(chamber->mdttdc, hardware_name + "_MDT_Station_TDC", "[nsec]", "Number of Entries", 100, 0, 2000.,
755  *mongroup_chambers_expert);
756 
758  // histo path for mdt tdccut ML1
760  if (m_do_mdttdccut_ML1)
761  sc = bookMDTHisto_chambers(chamber->mdttdccut_ML1, hardware_name + "_MDT_Station_TDC_ML1_ADCCut", "[nsec]", "Number of Entries",
762  100, 0, 2000., *mongroup_chambers_expert);
763 
765  // histo path for mdt tdccut ML2
767  if (m_do_mdttdccut_ML2)
768  sc = bookMDTHisto_chambers(chamber->mdttdccut_ML2, hardware_name + "_MDT_Station_TDC_ML2_ADCCut", "[nsec]", "Number of Entries",
769  100, 0, 2000., *mongroup_chambers_expert);
771  // histo path for mdt adc on segment ML1
774  sc = bookMDTHisto_chambers(chamber->mdtadc_onSegm_ML1, hardware_name + "_MDT_Station_ADC_onSegm_ML1", "[adc counts]",
775  "Number of Entries", 100, 0, 400., *mongroup_chambers_expert);
776 
778  // histo path for mdt adc on segment ML2
781  sc = bookMDTHisto_chambers(chamber->mdtadc_onSegm_ML2, hardware_name + "_MDT_Station_ADC_onSegm_ML2", "[adc counts]",
782  "Number of Entries", 100, 0, 400., *mongroup_chambers_expert);
783 
785  // histo path for mdt adc
787  if (m_do_mdtadc)
788  sc = bookMDTHisto_chambers(chamber->mdtadc, hardware_name + "_MDT_Station_ADC", "[adc counts]", "Number of Entries", 100, 0, 400.,
789  *mongroup_chambers_expert);
790 
792  // histo path for mdt layer
793  if (m_do_mdtlayer)
794  sc = bookMDTHisto_chambers(chamber->mdtlayer, hardware_name + "_MDT_Station_LAYER_ADCCut", "layerID", "Number of Entries", 10, 0,
795  10., *mongroup_chambers_expert);
796 
798  // histo path for mdt tube
799  if (m_do_mdttube)
800  sc = bookMDTHisto_chambers(chamber->mdttube, hardware_name + "_MDT_Station_TUBE_ADCCut", "tubeID", "Number of Entries", tubeIdMax,
801  1, tubeIdMax + 1, *mongroup_chambers_expert);
802 
804  // histo path for mdt tube masked info
805  if (m_do_mdttube_masked) {
806  sc = bookMDTHisto_chambers(chamber->mdttube_masked, hardware_name + "_MDT_Station_TUBE_masked", "tubeID", "Number of Entries",
807  tubeIdMax, 1, tubeIdMax + 1, *mongroup_chambers_expert);
808  sc = fillMDTMaskedTubes(idHash, chamber->getName(), chamber->mdttube_masked);
809  }
810 
812  // histo path for mdt mezzannine
813  if (m_do_mdtmezz)
814  sc = bookMDTHisto_chambers(chamber->mdtmezz, hardware_name + "_MDT_Station_MEZZ_ADCCut", "mezzID", "Number of Entries", 20, 0, 20.,
815  *mongroup_chambers_expert);
816 
818  // 2D hists
819  if (m_chamber_2D) {
821  // histo path for mdt tdcadc
822  if (m_do_mdttdcadc)
823  sc = bookMDTHisto_chambers_2D(chamber->mdttdcadc, hardware_name + "_MDT_Station_TDCADC", "[nsec]", "[adc counts]", 50, 0, 2000.,
824  20., 0., 400., *mongroup_chambers_expert);
825 
827  // histo path for mdt drift radius vs drift time
828  if (m_do_mdt_DRvsDT)
829  sc = bookMDTHisto_chambers_2D(chamber->mdt_DRvsDT, hardware_name + "_MDT_Station_DRvsDT", "Drift Radius [mm]",
830  "Drift Time [nsec]", 80, -20, 20., 120, -200., 1000., *mongroup_chambers_expert);
831 
832  // //////////////////////////////////////////////////////////////////////////////////////
833  // //histo path for mdt drift radius vs drift time
834  if (m_do_mdt_DRvsDRerr)
835  sc = bookMDTHisto_chambers_2D(chamber->mdt_DRvsDRerr, hardware_name + "_MDT_Station_DRvsDRerr", "Drift Radius [mm]",
836  "Error [mm]", 80, -20, 20., 80, -5., 5., *mongroup_chambers_expert);
837 
839  // histo path for mdt drift radius vs drift time
840  if (m_do_mdt_DRvsSegD)
841  sc = bookMDTHisto_chambers_2D(chamber->mdt_DRvsSegD, hardware_name + "_MDT_Station_DRvsSegD", "Drift Radius [mm]",
842  "Segm dist. to tube [mm]", 80, -20, 20., 80, -20., 20., *mongroup_chambers_expert);
843  }
844 
845  ATH_MSG_DEBUG("Booked bookMDTHistograms successfully");
846 
847  return sc;
848 }

◆ bookMDTOverviewHistograms()

StatusCode MdtRawDataValAlg::bookMDTOverviewHistograms ( bool  newLumiBlock,
bool  newRun 
)
privatevirtual

FOR R-Z view

FOR X-Y view

Definition at line 1318 of file MdtRawDataValAlg.cxx.

1318  {
1319  StatusCode sc = StatusCode::SUCCESS;
1320 
1321  // if( isNewEventsBlock ){}
1322  if (newLumiBlock) {}
1323  // book these histos as lowStat interval if not online monitoring
1324  if ((newLowStatIntervalFlag() && !m_isOnline) || (m_isOnline && newRun)) {
1326  // histo path for overall tdccut spectrum
1327  sc = bookMDTHisto_overview(m_overalltdccutLumi, "Overall_TDC_ADCCut_spectrum", "[nsec]", "Number of Entries", 120, 0., 2000.,
1328  m_mg->mongroup_overview_shiftLumi);
1329 
1331  // histo path for overall tdccut spectrum (along segms)
1332  sc = bookMDTHisto_overview(m_overalltdccut_segm_Lumi, "Overall_TDC_onSegm_ADCCut_spectrum", "[nsec]", "Number of Entries", 120, 0.,
1333  2000., m_mg->mongroup_overview_shiftLumi);
1334 
1336  // histo path for overall adc spectrum (along segms)
1337  sc = bookMDTHisto_overview(m_overalladc_segm_Lumi, "Overall_ADC_onSegm_spectrum", "[adc counts]", "Number of Entries", 100, 0.,
1338  400., m_mg->mongroup_overview_shiftLumi);
1339 
1341  // histo path for overall adc spectrum
1342  sc = bookMDTHisto_overview(m_overalladc_Lumi, "Overall_ADC_spectrum", "[adc counts]", "Number of Entries", 100, 0., 400.,
1343  m_mg->mongroup_overview_shiftLumi);
1344 
1346  // histo path for TotalNumber_of_MDT_hits_per_event with a cut on ADC
1347  sc = bookMDTHisto_overview(m_mdteventscutLumi, "TotalNumber_of_MDT_hits_per_event_ADCCut", "[counts]", "Number of Events", 400, 0.,
1348  10000., m_mg->mongroup_overview_shiftLumi);
1350  // histo path for TotalNumber_of_MDT_hits_per_event with a cut on ADC (for high mult. events)
1351  sc = bookMDTHisto_overview(m_mdteventscutLumi_big, "TotalNumber_of_MDT_hits_per_event_big_ADCCut", "[counts]", "Number of Events",
1352  200, 0., 100000., m_mg->mongroup_overview_shiftLumi);
1354  // histo path for TotalNumber_of_MDT_hits_per_event without a cut on ADC
1355  sc = bookMDTHisto_overview(m_mdteventsLumi, "TotalNumber_of_MDT_hits_per_event", "[counts]", "Number of Events", 500, 0., 20000.,
1356  m_mg->mongroup_overview_shiftLumi);
1357 
1359  // histo path for TotalNumber_of_MDT_hits_per_event without a cut on ADC (for high mult. events)
1360  sc = bookMDTHisto_overview(m_mdteventsLumi_big, "TotalNumber_of_MDT_hits_per_event_big", "[counts]", "Number of Events", 200, 0.,
1361  100000., m_mg->mongroup_overview_shiftLumi);
1362 
1364  // histo path for overall tdc vs adc spectrum
1365  sc = bookMDTHisto_overview_2D(m_overalltdcadcLumi, "Overall_TDCADC_spectrum", "[nsec]", "[adc counts]", 50, 0, 2000., 20., 0., 400.,
1366  m_mg->mongroup_overview_shiftLumi);
1367  }
1368 
1369  if (newRun) {
1370  // histo path for Time_large_global_hits with a cut on ADC
1371  sc = bookMDTHisto_overview(m_mdtglobalhitstime, "Time_large_global_hits", "time", "Number of Events", 10000, 0., 10000.,
1372  m_mg->mongroup_overview_shift);
1373 
1374  // histo path for m_MdtNHitsvsRpcNHits
1375  sc = bookMDTHisto_overview_2D(m_MdtNHitsvsRpcNHits, "m_MdtNHitsvsRpcNHits", "# MDT hits", "# RPC hits", 1000, 0., 100000., 100, 0.,
1376  10000., m_mg->mongroup_overview_shift);
1378  // histo path for overall tdccut spectrum
1379  sc = bookMDTHisto_overview(m_overalltdcHighOcc, "Overall_TDC_spectrum_NoiseBursts", "[nsec]", "Number of Entries", 120, 0., 2000.,
1380  m_mg->mongroup_overview_shift);
1382  // histo path for overall adc spectrum
1383  sc = bookMDTHisto_overview(m_overalladc_HighOcc, "Overall_ADC_spectrum_NoiseBursts", "[adc counts]", "Number of Entries", 100, 0.,
1384  400., m_mg->mongroup_overview_shift);
1386  // histo path for overall tdc vs adc spectrum
1387  sc = bookMDTHisto_overview_2D(m_overalltdcadcHighOcc, "Overall_TDCADC_spectrum_NoiseBursts", "[nsec]", "[adc counts]", 50, 0, 2000.,
1388  20., 0., 400., m_mg->mongroup_overview_shift);
1390  // histo path for Number_of_MDTs_with_hits_per_event
1391  sc = bookMDTHisto_overview(m_nummdtchamberswithhits, "number_of_Chambers_with_hits_per_event", "[Number_of_MDT_chambers_with_hits]",
1392  "Number of Entries", 400, 0., 1600., m_mg->mongroup_overview_shift);
1393 
1394  // histo path for Number_of_MDTs_with_hits_per_event
1395  sc = bookMDTHisto_overview(m_nummdtchamberswithHighOcc, "number_of_Chambers_with_high_occupancy_per_event",
1396  "[Number_of_MDT_chambers_with_high_occupancy]", "Number of Entries", 200, 0., 800.,
1397  m_mg->mongroup_overview_shift);
1398 
1400  // histo path for Number_of_MDTs_with_hits_per_event_ADCCut
1401  sc =
1402  bookMDTHisto_overview(m_nummdtchamberswithhits_ADCCut, "number_of_Chambers_with_hits_per_event_ADCCut",
1403  "[Number_of_MDT_chambers_with_hits]", "Number of Entries", 400, 0., 1600., m_mg->mongroup_overview_shift);
1404 
1406  // Histo Path for Number_of_MDT_hits_per_chamber
1407  sc = bookMDTHisto_overview(m_mdtchamberstat, "Number_of_MDT_hits_per_chamber_ADCCut", "MDTChamber", "Counts/Chamber", 1, 0., 1.,
1408  m_mg->mongroup_overview_expert);
1409  for (auto itr : m_chambersId) {
1410  std::string hardware_name = getChamberName(itr);
1411  // Skip Chambers That Do NOT Exist
1412  if (hardware_name == "BML6A13" || hardware_name == "BML6C13") continue;
1413  m_mdtchamberstat->Fill(hardware_name.c_str(), 0.0);
1414  }
1415  m_mdtchamberstat->Reset();
1416  m_mdtchamberstat->LabelsOption("a");
1417  m_mdtchamberstat->GetXaxis()->LabelsOption("v");
1418 
1420  // histo path for Number_of_MDTHits_inRZView_Global and Number_of_MDTHits_inYXView_Global for EndCap, Barrel and Overlap
1421  // respectively
1422  std::string mdtreg[3] = {"Barrel", "Overlap", "EndCap"};
1423  std::string generic_path_mdtrzxydet = "MDT/Overview";
1424 
1425  for (int imdtreg = 0; imdtreg < 3; imdtreg++) {
1427  sc = bookMDTHisto_overview_2D(m_mdtrzdet[imdtreg], "Number_of_" + mdtreg[imdtreg] + "MDTHits_inRZView_Global_ADCCut",
1428  "MDT-GlobalZ(mm)", "MDT-GlobalR(mm)", 250, -25000., 25000., 120, 0., 12000.,
1429  m_mg->mongroup_overview_shift_geometry);
1430 
1432  sc = bookMDTHisto_overview_2D(m_mdtxydet[imdtreg], "Number_of_" + mdtreg[imdtreg] + "MDTHits_inYXView_Global_ADCCut",
1433  "MDT-GlobalX(mm)", "MDT-GlobalY(mm)", 150, -15000., 15000., 150, -15000., 15000.,
1434  m_mg->mongroup_overview_shift_geometry);
1435  }
1436 
1437  } // newRun
1438  return sc;
1439 }

◆ bookMDTSummaryHistograms()

StatusCode MdtRawDataValAlg::bookMDTSummaryHistograms ( bool  newLumiBlock,
bool  newRun 
)
privatevirtual

Definition at line 850 of file MdtRawDataValAlg.cxx.

850  {
851  StatusCode sc = StatusCode::SUCCESS;
852  // if( isNewEventsBlock ){}
853  if (newLumiBlock) {}
854  // book these histos as lowStat interval if not online monitoring
855  if ((newLowStatIntervalFlag() && !m_isOnline) || (m_isOnline && newRun)) {
856  // Book tdc adccut per region per lowStat
857  sc = bookMDTHisto_overview(m_overalltdccut_segm_PR_Lumi[enumBarrelA], "MDTTDC_segm_Summary_ADCCut_BA", "[nsec]",
858  "Number of Entries", 120, 0., 2000., m_mg->mongroup_brA_shiftLumi);
859  sc = bookMDTHisto_overview(m_overalltdccut_segm_PR_Lumi[enumBarrelC], "MDTTDC_segm_Summary_ADCCut_BC", "[nsec]",
860  "Number of Entries", 120, 0., 2000., m_mg->mongroup_brC_shiftLumi);
861  sc = bookMDTHisto_overview(m_overalltdccut_segm_PR_Lumi[enumEndCapA], "MDTTDC_segm_Summary_ADCCut_EA", "[nsec]",
862  "Number of Entries", 120, 0., 2000., m_mg->mongroup_ecA_shiftLumi);
863  sc = bookMDTHisto_overview(m_overalltdccut_segm_PR_Lumi[enumEndCapC], "MDTTDC_segm_Summary_ADCCut_EC", "[nsec]",
864  "Number of Entries", 120, 0., 2000., m_mg->mongroup_ecC_shiftLumi);
865  sc = bookMDTHisto_overview(m_overalltdccutPRLumi[enumBarrelA], "MDTTDC_Summary_ADCCut_BA", "[nsec]", "Number of Entries", 120, 0.,
866  2000., m_mg->mongroup_brA_shiftLumi);
867  sc = bookMDTHisto_overview(m_overalltdccutPRLumi[enumBarrelC], "MDTTDC_Summary_ADCCut_BC", "[nsec]", "Number of Entries", 120, 0.,
868  2000., m_mg->mongroup_brC_shiftLumi);
869  sc = bookMDTHisto_overview(m_overalltdccutPRLumi[enumEndCapA], "MDTTDC_Summary_ADCCut_EA", "[nsec]", "Number of Entries", 120, 0.,
870  2000., m_mg->mongroup_ecA_shiftLumi);
871  sc = bookMDTHisto_overview(m_overalltdccutPRLumi[enumEndCapC], "MDTTDC_Summary_ADCCut_EC", "[nsec]", "Number of Entries", 120, 0.,
872  2000., m_mg->mongroup_ecC_shiftLumi);
873 
874  // Book adc adccut per region on & off segment
875  sc = bookMDTHisto_overview(m_overalladc_segm_PR_Lumi[enumBarrelA], "MDTADC_segm_Summary_BA", "[adc counts]", "Number of Entries",
876  100, 0.5, 400.5, m_mg->mongroup_brA_shiftLumi);
877  sc = bookMDTHisto_overview(m_overalladc_segm_PR_Lumi[enumBarrelC], "MDTADC_segm_Summary_BC", "[adc counts]", "Number of Entries",
878  100, 0.5, 400.5, m_mg->mongroup_brC_shiftLumi);
879  sc = bookMDTHisto_overview(m_overalladc_segm_PR_Lumi[enumEndCapA], "MDTADC_segm_Summary_EA", "[adc counts]", "Number of Entries",
880  100, 0.5, 400.5, m_mg->mongroup_ecA_shiftLumi);
881  sc = bookMDTHisto_overview(m_overalladc_segm_PR_Lumi[enumEndCapC], "MDTADC_segm_Summary_EC", "[adc counts]", "Number of Entries",
882  100, 0.5, 400.5, m_mg->mongroup_ecC_shiftLumi);
883  sc = bookMDTHisto_overview(m_overalladcPRLumi[enumBarrelA], "MDTADC_Summary_BA", "[adc counts]", "Number of Entries", 100, 0., 400.,
884  m_mg->mongroup_brA_shiftLumi);
885  sc = bookMDTHisto_overview(m_overalladcPRLumi[enumBarrelC], "MDTADC_Summary_BC", "[adc counts]", "Number of Entries", 100, 0., 400.,
886  m_mg->mongroup_brC_shiftLumi);
887  sc = bookMDTHisto_overview(m_overalladcPRLumi[enumEndCapA], "MDTADC_Summary_EA", "[adc counts]", "Number of Entries", 100, 0., 400.,
888  m_mg->mongroup_ecA_shiftLumi);
889  sc = bookMDTHisto_overview(m_overalladcPRLumi[enumEndCapC], "MDTADC_Summary_EC", "[adc counts]", "Number of Entries", 100, 0., 400.,
890  m_mg->mongroup_ecC_shiftLumi);
891  sc = bookMDTHisto_overview(m_overalladccutPRLumi[enumBarrelA], "MDTADC_Summary_ADCCut_BA", "[adc counts]", "Number of Entries", 100,
892  0., 400., m_mg->mongroup_brA_shiftLumi);
893  sc = bookMDTHisto_overview(m_overalladccutPRLumi[enumBarrelC], "MDTADC_Summary_ADCCut_BC", "[adc counts]", "Number of Entries", 100,
894  0., 400., m_mg->mongroup_brC_shiftLumi);
895  sc = bookMDTHisto_overview(m_overalladccutPRLumi[enumEndCapA], "MDTADC_Summary_ADCCut_EA", "[adc counts]", "Number of Entries", 100,
896  0., 400., m_mg->mongroup_ecA_shiftLumi);
897  sc = bookMDTHisto_overview(m_overalladccutPRLumi[enumEndCapC], "MDTADC_Summary_ADCCut_EC", "[adc counts]", "Number of Entries", 100,
898  0., 400., m_mg->mongroup_ecC_shiftLumi);
899 
900  // TriggerAware TDC
901  sc = bookMDTHisto_overview(m_overalltdccutPRLumi_RPCtrig[enumBarrelA], "MDTTDC_Summary_ADCCut_BA_RPC", "[nsec]",
902  "Number of Entries", 120, 0., 2000., m_mg->mongroup_brA_shiftLumi);
903  sc = bookMDTHisto_overview(m_overalltdccutPRLumi_RPCtrig[enumBarrelC], "MDTTDC_Summary_ADCCut_BC_RPC", "[nsec]",
904  "Number of Entries", 120, 0., 2000., m_mg->mongroup_brC_shiftLumi);
905  sc = bookMDTHisto_overview(m_overalltdccutPRLumi_RPCtrig[enumEndCapA], "MDTTDC_Summary_ADCCut_EA_RPC", "[nsec]",
906  "Number of Entries", 120, 0., 2000., m_mg->mongroup_ecA_shiftLumi);
907  sc = bookMDTHisto_overview(m_overalltdccutPRLumi_RPCtrig[enumEndCapC], "MDTTDC_Summary_ADCCut_EC_RPC", "[nsec]",
908  "Number of Entries", 120, 0., 2000., m_mg->mongroup_ecC_shiftLumi);
909  sc = bookMDTHisto_overview(m_overalltdccutPRLumi_TGCtrig[enumBarrelA], "MDTTDC_Summary_ADCCut_BA_TGC", "[nsec]",
910  "Number of Entries", 120, 0., 2000., m_mg->mongroup_brA_shiftLumi);
911  sc = bookMDTHisto_overview(m_overalltdccutPRLumi_TGCtrig[enumBarrelC], "MDTTDC_Summary_ADCCut_BC_TGC", "[nsec]",
912  "Number of Entries", 120, 0., 2000., m_mg->mongroup_brC_shiftLumi);
913  sc = bookMDTHisto_overview(m_overalltdccutPRLumi_TGCtrig[enumEndCapA], "MDTTDC_Summary_ADCCut_EA_TGC", "[nsec]",
914  "Number of Entries", 120, 0., 2000., m_mg->mongroup_ecA_shiftLumi);
915  sc = bookMDTHisto_overview(m_overalltdccutPRLumi_TGCtrig[enumEndCapC], "MDTTDC_Summary_ADCCut_EC_TGC", "[nsec]",
916  "Number of Entries", 120, 0., 2000., m_mg->mongroup_ecC_shiftLumi);
917 
918  // Book tdcadc per region per lowStat
919  sc = bookMDTHisto_overview_2D(m_overalltdcadcPRLumi[enumBarrelA], "Overall_TDCADC_spectrum_BA", "[nsec]", "[adc counts]", 50, 0,
920  2000., 20., 0., 400., m_mg->mongroup_brA_shiftLumi);
921  sc = bookMDTHisto_overview_2D(m_overalltdcadcPRLumi[enumBarrelC], "Overall_TDCADC_spectrum_BC", "[nsec]", "[adc counts]", 50, 0,
922  2000., 20., 0., 400., m_mg->mongroup_brC_shiftLumi);
923  sc = bookMDTHisto_overview_2D(m_overalltdcadcPRLumi[enumEndCapA], "Overall_TDCADC_spectrum_EA", "[nsec]", "[adc counts]", 50, 0,
924  2000., 20., 0., 400., m_mg->mongroup_ecA_shiftLumi);
925  sc = bookMDTHisto_overview_2D(m_overalltdcadcPRLumi[enumEndCapC], "Overall_TDCADC_spectrum_EC", "[nsec]", "[adc counts]", 50, 0,
926  2000., 20., 0., 400., m_mg->mongroup_ecC_shiftLumi);
927 
928  // Book Global Hit Coverage/ML by Layer(Inner, Middle, Outer)
929  sc = bookMDTHisto_overview_2D(m_mdthitsperML_byLayer[enumInner], "NumberOfHitsInMDTInner_ADCCut", "#eta station", "#phi station", 1,
930  0, 1, 1, 0, 1, m_mg->mongroup_overview_shiftLumi);
931  sc = bookMDTHisto_overview_2D(m_mdthitsperML_byLayer[enumMiddle], "NumberOfHitsInMDTMiddle_ADCCut", "#eta station", "#phi station",
932  1, 0, 1, 1, 0, 1, m_mg->mongroup_overview_shiftLumi);
933  sc = bookMDTHisto_overview_2D(m_mdthitsperML_byLayer[enumOuter], "NumberOfHitsInMDTOuter_ADCCut", "#eta station", "#phi station", 1,
934  0, 1, 1, 0, 1, m_mg->mongroup_overview_shiftLumi);
936  // histo path for MDT Summary plots Barrel-EndCap
937  std::string ecap[4] = {"BA", "BC", "EA", "EC"};
938  std::string layer[4] = {"Inner", "Middle", "Outer", "Extra"};
939  std::string MDTHits_BE[2] = {"Barrel", "EndCap"};
940 
941  for (int iecap = 0; iecap < 4; iecap++) { // BA,BC,EA,EC
942  for (int ilayer = 0; ilayer < 4; ilayer++) { // inner, middle, outer, extra
944  // Number of hits/effs per Multilayer
946  if (iecap == enumBarrelA)
948  "NumberOfHitsIn" + ecap[iecap] + layer[ilayer] + "PerMultiLayer_ADCCut", "[Eta]",
949  "[Phi,Multilayer]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_brA_shiftLumi);
950  else if (iecap == enumBarrelC)
952  "NumberOfHitsIn" + ecap[iecap] + layer[ilayer] + "PerMultiLayer_ADCCut", "[Eta]",
953  "[Phi,Multilayer]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_brC_shiftLumi);
954  else if (iecap == enumEndCapA)
956  "NumberOfHitsIn" + ecap[iecap] + layer[ilayer] + "PerMultiLayer_ADCCut", "[Eta]",
957  "[Phi,Multilayer]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_ecA_shiftLumi);
958  else
960  "NumberOfHitsIn" + ecap[iecap] + layer[ilayer] + "PerMultiLayer_ADCCut", "[Eta]",
961  "[Phi,Multilayer]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_ecC_shiftLumi);
962 
963  std::string xAxis = ecap[iecap].substr(0, 1) + layer[ilayer].substr(0, 1) + ecap[iecap].substr(1, 1);
964  sc = binMdtRegional(m_mdthitspermultilayerLumi[iecap][ilayer], xAxis);
965 
966  if (sc.isFailure()) {
967  ATH_MSG_ERROR("mdthitspermultilayer Failed to register histogram lowStat");
968  return sc;
969  }
970  ATH_MSG_DEBUG("Inside LowStat Loop, iecap=" << iecap << ", ilayer=" << ilayer);
971 
973  // Number of hits per chamber (all sectors in one plot)
975  if (ilayer == 0 && ((iecap == 0 || iecap == 2))) {
976  ATH_MSG_DEBUG("Bookint mdthitsperchamber_InnerMiddleOuter LowStat");
978  "NumberOfHitsIn" + MDTHits_BE[iecap / 2] + "PerChamber_ADCCut", "[Eta]", "[Layer,Phi]", 1,
979  0, 1, 1, 0, 1, m_mg->mongroup_overview_shiftLumi);
980  sc = binMdtGlobal(m_mdthitsperchamber_InnerMiddleOuterLumi[iecap / 2], MDTHits_BE[iecap / 2].at(0));
981 
983  "NumberOfHitsIn" + MDTHits_BE[iecap / 2] + "PerChamber_ADCCut_NoiseBurst", "[Eta]",
984  "[Layer,Phi]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_overview_shiftLumi);
985  sc = binMdtGlobal(m_mdthitsperchamber_InnerMiddleOuter_HighOcc[iecap / 2], MDTHits_BE[iecap / 2].at(0));
986 
987  ATH_MSG_DEBUG("Bookint m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi LowStat");
989  "NumberOfHitsIn" + MDTHits_BE[iecap / 2] + "PerChamber_onSegm_ADCCut", "[Eta]",
990  "[Layer,Phi]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_overview_shiftLumi_recoMon);
991  sc = binMdtGlobal(m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi[iecap / 2], MDTHits_BE[iecap / 2].at(0));
992 
993  if (sc.isFailure()) {
994  ATH_MSG_ERROR("mdthitsperchamber_InnerMiddleOuter Failed to register histogram in lowStat");
995  return sc;
996  }
997  } // end if(ilayer==0&&(iecap==0||iecap==2) )
998  } // layer
999  } // ecap
1000  } // newLowStatIntervalFlag()
1001 
1002  if (newRun) {
1003  // //Book t0 tmax tdrift summary plots
1004  // //Just create these in the post-processing
1005 
1006  // histo path for MDT Summary plots Barrel-EndCap
1007  std::string ecap[4] = {"BA", "BC", "EA", "EC"};
1008  std::string layer[4] = {"Inner", "Middle", "Outer", "Extra"};
1009  std::string MDTHits_BE[2] = {"Barrel", "EndCap"};
1010  std::string crate[4] = {"01", "02", "03", "04"};
1011 
1012  for (int iecap = 0; iecap < 4; iecap++) { // BA,BC,EA,EC
1013  for (int ilayer = 0; ilayer < 4; ilayer++) { // inner, middle, outer, extra
1015  // Number of hits/effs per Multilayer
1017  // To-do Remove these from ESD monitoring in place of Post-Processing
1018  if (iecap == enumBarrelA) {
1020  "effsIn" + ecap[iecap] + layer[ilayer] + "PerMultiLayer_ADCCut", "[Eta]",
1021  "[Phi,Multilayer]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_brA_shift);
1022  } else if (iecap == enumBarrelC) {
1024  "effsIn" + ecap[iecap] + layer[ilayer] + "PerMultiLayer_ADCCut", "[Eta]",
1025  "[Phi,Multilayer]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_brC_shift);
1026  } else if (iecap == enumEndCapA) {
1028  "effsIn" + ecap[iecap] + layer[ilayer] + "PerMultiLayer_ADCCut", "[Eta]",
1029  "[Phi,Multilayer]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_ecA_shift);
1030  } else {
1032  "effsIn" + ecap[iecap] + layer[ilayer] + "PerMultiLayer_ADCCut", "[Eta]",
1033  "[Phi,Multilayer]", 1, 0, 1, 1, 0, 1, m_mg->mongroup_ecC_shift);
1034  }
1035 
1036  std::string xAxis = ecap[iecap].substr(0, 1) + layer[ilayer].substr(0, 1) + ecap[iecap].substr(1, 1);
1037  sc = binMdtRegional(m_mdteffpermultilayer[iecap][ilayer], xAxis);
1038 
1039  if (sc.isFailure()) {
1040  ATH_MSG_ERROR("mdthitspermultilayer Failed to register histogram ");
1041  return sc;
1042  }
1043  ATH_MSG_DEBUG("Inside Loop, iecap=" << iecap << ", ilayer=" << ilayer);
1044 
1046  // Number of hits per chamber (all sectors in one plot)
1048  if (ilayer == 0 && ((iecap == 0 || iecap == 2))) {
1049  ATH_MSG_DEBUG("Bookint m_mdteffperchamber_InnerMiddleOuter");
1051  "effsIn" + MDTHits_BE[iecap / 2] + "PerChamber_ADCCut", "[Eta]", "[Layer,Phi]", 1, 0, 1,
1052  1, 0, 1, m_mg->mongroup_overview_shift);
1053 
1054  sc = binMdtGlobal(m_mdteffperchamber_InnerMiddleOuter[iecap / 2], MDTHits_BE[iecap / 2].at(0));
1055 
1056  if (sc.isFailure()) {
1057  ATH_MSG_ERROR("mdthitsperchamber_InnerMiddleOuter Failed to register histogram ");
1058  return sc;
1059  }
1060  } // end if(ilayer==0&&(iecap==0||iecap==2) )
1061 
1062  // Book adc, tdc histograms for noise burst monitoring
1063  sc = bookMDTHisto_overview(m_overalladcPR_HighOcc[enumBarrelA], "MDTADC_NoiseBursts_BA", "[adc counts]",
1064  "Number of Entries", 100, 0., 400., m_mg->mongroup_brA_shift);
1065  sc = bookMDTHisto_overview(m_overalladcPR_HighOcc[enumBarrelC], "MDTADC_NoiseBursts_BC", "[adc counts]",
1066  "Number of Entries", 100, 0., 400., m_mg->mongroup_brC_shift);
1067  sc = bookMDTHisto_overview(m_overalladcPR_HighOcc[enumEndCapA], "MDTADC_NoiseBursts_EA", "[adc counts]",
1068  "Number of Entries", 100, 0., 400., m_mg->mongroup_ecA_shift);
1069  sc = bookMDTHisto_overview(m_overalladcPR_HighOcc[enumEndCapC], "MDTADC_NoiseBursts_EC", "[adc counts]",
1070  "Number of Entries", 100, 0., 400., m_mg->mongroup_ecC_shift);
1071  sc = bookMDTHisto_overview_2D(m_overalltdcadcPR_HighOcc[enumBarrelA], "Overall_TDCADC_spectrum_BA_NoiseBursts", "[nsec]",
1072  "[adc counts]", 50, 0, 2000., 40, 0., 400., m_mg->mongroup_brA_shift);
1073  sc = bookMDTHisto_overview_2D(m_overalltdcadcPR_HighOcc[enumBarrelC], "Overall_TDCADC_spectrum_BC_NoiseBursts", "[nsec]",
1074  "[adc counts]", 50, 0, 2000., 40, 0., 400., m_mg->mongroup_brC_shift);
1075  sc = bookMDTHisto_overview_2D(m_overalltdcadcPR_HighOcc[enumEndCapA], "Overall_TDCADC_spectrum_EA_NoiseBursts", "[nsec]",
1076  "[adc counts]", 50, 0, 2000., 40, 0., 400., m_mg->mongroup_ecA_shift);
1077  sc = bookMDTHisto_overview_2D(m_overalltdcadcPR_HighOcc[enumEndCapC], "Overall_TDCADC_spectrum_EC_NoiseBursts", "[nsec]",
1078  "[adc counts]", 50, 0, 2000., 40, 0., 400., m_mg->mongroup_ecC_shift);
1079  sc = bookMDTHisto_overview(m_overalltdcPR_HighOcc[enumBarrelA], "MDTTDC_NoiseBursts_BA", "[nsec]", "Number of Entries", 120,
1080  0., 2000., m_mg->mongroup_brA_shift);
1081  sc = bookMDTHisto_overview(m_overalltdcPR_HighOcc[enumBarrelC], "MDTTDC_NoiseBursts_BC", "[nsec]", "Number of Entries", 120,
1082  0., 2000., m_mg->mongroup_brC_shift);
1083  sc = bookMDTHisto_overview(m_overalltdcPR_HighOcc[enumEndCapA], "MDTTDC_NoiseBursts_EA", "[nsec]", "Number of Entries", 120,
1084  0., 2000., m_mg->mongroup_ecA_shift);
1085  sc = bookMDTHisto_overview(m_overalltdcPR_HighOcc[enumEndCapC], "MDTTDC_NoiseBursts_EC", "[nsec]", "Number of Entries", 120,
1086  0., 2000., m_mg->mongroup_ecC_shift);
1087  sc = bookMDTHisto_overview(m_overalltdcPR_HighOcc_ADCCut[enumBarrelA], "MDTTDC_NoiseBursts_ADCCut_BA", "[nsec]",
1088  "Number of Entries", 120, 0., 2000., m_mg->mongroup_brA_shift);
1089  sc = bookMDTHisto_overview(m_overalltdcPR_HighOcc_ADCCut[enumBarrelC], "MDTTDC_NoiseBursts_ADCCut_BC", "[nsec]",
1090  "Number of Entries", 120, 0., 2000., m_mg->mongroup_brC_shift);
1091  sc = bookMDTHisto_overview(m_overalltdcPR_HighOcc_ADCCut[enumEndCapA], "MDTTDC_NoiseBursts_ADCCut_EA", "[nsec]",
1092  "Number of Entries", 120, 0., 2000., m_mg->mongroup_ecA_shift);
1093  sc = bookMDTHisto_overview(m_overalltdcPR_HighOcc_ADCCut[enumEndCapC], "MDTTDC_NoiseBursts_ADCCut_EC", "[nsec]",
1094  "Number of Entries", 120, 0., 2000., m_mg->mongroup_ecC_shift);
1096  // Book occupancy as function of lumiblock
1098 
1099  if (ilayer != 3) { // put extras in outer
1100  std::string lbhisttitle;
1101  if (ilayer == 2)
1102  lbhisttitle = "OccupancyVsLB_" + ecap[iecap] + layer[ilayer] + "PlusExtra";
1103  else
1104  lbhisttitle = "OccupancyVsLB_" + ecap[iecap] + layer[ilayer];
1105  if (iecap == enumBarrelA) {
1106  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb[iecap][ilayer], lbhisttitle, "LB", "[Eta,Phi]", 834, 1, 2502, 100, 1, 100,
1107  m_mg->mongroup_brA_shift);
1108  if (sc.isFailure()) {
1109  ATH_MSG_ERROR("m_mdtoccvslb Failed to register histogram ");
1110  return sc;
1111  }
1112  } else if (iecap == enumBarrelC) {
1113  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb[iecap][ilayer], lbhisttitle, "LB", "[Eta,Phi]", 834, 1, 2502, 100, 0, 100,
1114  m_mg->mongroup_brC_shift);
1115  if (sc.isFailure()) {
1116  ATH_MSG_ERROR("m_mdtoccvslb Failed to register histogram ");
1117  return sc;
1118  }
1119  } else if (iecap == enumEndCapA) {
1120  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb[iecap][ilayer], lbhisttitle, "LB", "[Eta,Phi]", 834, 1, 2502, 100, 0, 100,
1121  m_mg->mongroup_ecA_shift);
1122  if (sc.isFailure()) {
1123  ATH_MSG_ERROR("m_mdtoccvslb Failed to register histogram ");
1124  return sc;
1125  }
1126  } else {
1127  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb[iecap][ilayer], lbhisttitle, "LB", "[Eta,Phi]", 834, 1, 2502, 100, 0, 100,
1128  m_mg->mongroup_ecC_shift);
1129  if (sc.isFailure()) {
1130  ATH_MSG_ERROR("m_mdtoccvslb Failed to register histogram ");
1131  return sc;
1132  }
1133  }
1134 
1135  sc = binMdtOccVsLB(m_mdtoccvslb[iecap][ilayer], iecap, ilayer);
1136  if (sc.isFailure()) {
1137  ATH_MSG_ERROR("m_mdtoccvslb Failed to register histogram ");
1138  return sc;
1139  }
1140  }
1141 
1143  // Book occupancy as function of lumiblock by crate
1145 
1146  std::string lbCrate_histtitle = "OccupancyVsLB_" + ecap[iecap] + crate[ilayer];
1147  if (iecap == enumBarrelA) {
1148  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb_by_crate[iecap][ilayer], lbCrate_histtitle, "LB", "[Eta,Phi]", 834, 1, 2502, 100,
1149  1, 100, m_mg->mongroup_brA_shift);
1150  if (sc.isFailure()) {
1151  ATH_MSG_ERROR("m_mdtoccvslb_by_crate Failed to register histogram ");
1152  return sc;
1153  }
1154  } else if (iecap == enumBarrelC) {
1155  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb_by_crate[iecap][ilayer], lbCrate_histtitle, "LB", "[Eta,Phi]", 834, 1, 2502, 100,
1156  0, 100, m_mg->mongroup_brC_shift);
1157  if (sc.isFailure()) {
1158  ATH_MSG_ERROR("m_mdtoccvslb_by_crate Failed to register histogram ");
1159  return sc;
1160  }
1161  } else if (iecap == enumEndCapA) {
1162  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb_by_crate[iecap][ilayer], lbCrate_histtitle, "LB", "[Eta,Phi]", 834, 1, 2502, 100,
1163  0, 100, m_mg->mongroup_ecA_shift);
1164  if (sc.isFailure()) {
1165  ATH_MSG_ERROR("m_mdtoccvslb_by_crate Failed to register histogram ");
1166  return sc;
1167  }
1168  } else {
1169  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb_by_crate[iecap][ilayer], lbCrate_histtitle, "LB", "[Eta,Phi]", 834, 1, 2502, 100,
1170  0, 100, m_mg->mongroup_ecC_shift);
1171  if (sc.isFailure()) {
1172  ATH_MSG_ERROR("m_mdtoccvslb_by_crate Failed to register histogram ");
1173  return sc;
1174  }
1175  }
1176 
1177  sc = binMdtOccVsLB_Crate(m_mdtoccvslb_by_crate[iecap][ilayer], iecap, ilayer);
1178  if (sc.isFailure()) {
1179  ATH_MSG_ERROR("m_mdtoccvslb_by_crate Failed to register histogram ");
1180  return sc;
1181  }
1182 
1183  std::string perSectors_summary_histtitle = "OccupancyPerSectorVsLB";
1184  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb_summaryPerSector, perSectors_summary_histtitle, "LB", "[Phi]", 834, 1, 2502, 100, 1,
1185  100, m_mg->mongroup_overview_shift);
1186  if (sc.isFailure()) {
1187  ATH_MSG_ERROR(" mdtoccvslb_summaryPerSector Failed to register histogram ");
1188  return sc;
1189  }
1190  m_mdtoccvslb_summaryPerSector->SetBins(834, 1, 2502, 64, 0, 64);
1191  m_mdtoccvslb_summaryPerSector->GetYaxis()->SetBinLabel(1, "BA");
1192  m_mdtoccvslb_summaryPerSector->GetYaxis()->SetBinLabel(17, "BC");
1193  m_mdtoccvslb_summaryPerSector->GetYaxis()->SetBinLabel(33, "EA");
1194  m_mdtoccvslb_summaryPerSector->GetYaxis()->SetBinLabel(49, "EC");
1195 
1196  std::string lbCrate_ontrack_histtitle = "OccupancyVsLB_ontrack_" + ecap[iecap] + crate[ilayer];
1197  if (iecap == enumBarrelA) {
1198  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb_ontrack_by_crate[iecap][ilayer], lbCrate_ontrack_histtitle, "LB", "[Eta,Phi]",
1199  834, 1, 2502, 100, 1, 100, m_mg->mongroup_brA_shift);
1200  if (sc.isFailure()) {
1201  ATH_MSG_ERROR("mdtoccvslb_ontrack_by_crate Failed to register histogram ");
1202  return sc;
1203  }
1204  } else if (iecap == enumBarrelC) {
1205  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb_ontrack_by_crate[iecap][ilayer], lbCrate_ontrack_histtitle, "LB", "[Eta,Phi]",
1206  834, 1, 2502, 100, 0, 100, m_mg->mongroup_brC_shift);
1207  if (sc.isFailure()) {
1208  ATH_MSG_ERROR("mdtoccvslb_ontrack_by_crate Failed to register histogram ");
1209  return sc;
1210  }
1211  } else if (iecap == enumEndCapA) {
1212  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb_ontrack_by_crate[iecap][ilayer], lbCrate_ontrack_histtitle, "LB", "[Eta,Phi]",
1213  834, 1, 2502, 100, 0, 100, m_mg->mongroup_ecA_shift);
1214  if (sc.isFailure()) {
1215  ATH_MSG_ERROR("mdtoccvslb_ontrack_by_crate Failed to register histogram ");
1216  return sc;
1217  }
1218  } else {
1219  sc = bookMDTHisto_OccVsLB(m_mdtoccvslb_ontrack_by_crate[iecap][ilayer], lbCrate_ontrack_histtitle, "LB", "[Eta,Phi]",
1220  834, 1, 2502, 100, 0, 100, m_mg->mongroup_ecC_shift);
1221  if (sc.isFailure()) {
1222  ATH_MSG_ERROR("mdtoccvslb_ontrack_by_crate Failed to register histogram ");
1223  return sc;
1224  }
1225  }
1226 
1227  sc = binMdtOccVsLB_Crate(m_mdtoccvslb_ontrack_by_crate[iecap][ilayer], iecap, ilayer);
1228  if (sc.isFailure()) {
1229  ATH_MSG_ERROR("mdtoccvslb_by_crate Failed to register histogram ");
1230  return sc;
1231  }
1232 
1234  // Finished number of MDT hits per multilayer
1236  for (int iPhi = 0; iPhi < 16; ++iPhi) {
1237  std::string Phi = std::to_string(iPhi + 1); // iPhi starts from zero
1238 
1240  if (ilayer == 0 && iecap == 0) {
1241  // Initialize to zero
1242  m_mdtchamberstatphislice[iPhi] = nullptr;
1244  sc = bookMDTHisto_overview(m_mdtchamberstatphislice[iPhi], "MDTHitsOccup_ADCCut_Sector" + Phi, "",
1245  "Counts/Chamber", 1, 0., 1., m_mg->mongroup_sectors_expert);
1246  }
1247  }
1248 
1250  if (!(iecap <= 1 && ilayer == enumExtra &&
1251  iPhi % 2 != 1)) { // for barrel no odd-sectored extra layers // !(ilayer==enumExtra && iecap>=2) ) {
1252  // //don't do layer 'Extra' for endcaps
1253  std::string title_MDTHitSummary = "MDTHits_ADCCut_" + ecap[iecap] + "_" + layer[ilayer] + "_StPhi" + Phi;
1254  int max = (iecap < 2 && ilayer == 0) ? 11 : 7;
1255  int nbins = (iecap < 2 && ilayer == 0) ? 10 : 6;
1256 
1257  // Initialize to zero
1258  m_mdtChamberHits[iecap][ilayer][iPhi] = nullptr;
1259  if (m_do_mdtChamberHits) {
1260  if (iecap == 0)
1261  sc = bookMDTHisto_overview(m_mdtChamberHits[iecap][ilayer][iPhi], title_MDTHitSummary.c_str(), "StationEta",
1262  "Counts/Chamber", nbins, 1, max, m_mg->mongroup_brA_hits_expert);
1263  if (iecap == 1)
1264  sc = bookMDTHisto_overview(m_mdtChamberHits[iecap][ilayer][iPhi], title_MDTHitSummary.c_str(), "StationEta",
1265  "Counts/Chamber", nbins, 1, max, m_mg->mongroup_brC_hits_expert);
1266  if (iecap == 2)
1267  sc = bookMDTHisto_overview(m_mdtChamberHits[iecap][ilayer][iPhi], title_MDTHitSummary.c_str(), "StationEta",
1268  "Counts/Chamber", nbins, 1, max, m_mg->mongroup_ecA_hits_expert);
1269  if (iecap == 3)
1270  sc = bookMDTHisto_overview(m_mdtChamberHits[iecap][ilayer][iPhi], title_MDTHitSummary.c_str(), "StationEta",
1271  "Counts/Chamber", nbins, 1, max, m_mg->mongroup_ecC_hits_expert);
1272  }
1273 
1274  if (sc.isFailure()) {
1275  ATH_MSG_ERROR("m_mdtChamberHits per eta and phi Failed to register histogram ");
1276  return sc;
1277  }
1278 
1279  // ATH_MSG_DEBUG("SHIFT : " << shift );
1280  ATH_MSG_DEBUG("RUN : " << run);
1282 
1284  std::string title_MDTTDCSummary = "MDTTDC_ADCCut_" + ecap[iecap] + "_" + layer[ilayer] + "_StPhi" + Phi;
1285 
1286  // Initialize to zero
1287  m_mdttdccut_sector[iecap][ilayer][iPhi] = nullptr;
1288  if (m_do_mdttdccut_sector) {
1289  if (iecap == 0)
1290  sc = bookMDTHisto_overview(m_mdttdccut_sector[iecap][ilayer][iPhi], title_MDTTDCSummary.c_str(), "[nsec]",
1291  "number of entries", 100, 0, 2000., m_mg->mongroup_brA_tdc_expert);
1292  if (iecap == 1)
1293  sc = bookMDTHisto_overview(m_mdttdccut_sector[iecap][ilayer][iPhi], title_MDTTDCSummary.c_str(), "[nsec]",
1294  "number of entries", 100, 0, 2000., m_mg->mongroup_brC_tdc_expert);
1295  if (iecap == 2)
1296  sc = bookMDTHisto_overview(m_mdttdccut_sector[iecap][ilayer][iPhi], title_MDTTDCSummary.c_str(), "[nsec]",
1297  "number of entries", 100, 0, 2000., m_mg->mongroup_ecA_tdc_expert);
1298  if (iecap == 3)
1299  sc = bookMDTHisto_overview(m_mdttdccut_sector[iecap][ilayer][iPhi], title_MDTTDCSummary.c_str(), "[nsec]",
1300  "number of entries", 100, 0, 2000., m_mg->mongroup_ecC_tdc_expert);
1301  }
1302 
1303  if (sc.isFailure()) {
1304  ATH_MSG_ERROR("m_mdttdccut_sector per eta and phi Failed to register histogram ");
1305  return sc;
1306  }
1307  }
1308 
1309  } // loop in phi
1310  } // loop in layer
1311  } // loop in ecap
1312  } // newRunFlag()
1313 
1314  ATH_MSG_DEBUG("LEAVING MDTSUMMARYBOOK");
1315  return sc;
1316 }

◆ cachedTubeLayerMax()

int MdtRawDataValAlg::cachedTubeLayerMax ( const Identifier id) const
private

Definition at line 2101 of file MDTRawDataUtils.cxx.

2101  {
2103  return roe ? roe->getNLayers() : -1;
2104 }

◆ cachedTubeMax()

int MdtRawDataValAlg::cachedTubeMax ( const Identifier id) const
private

Definition at line 2097 of file MDTRawDataUtils.cxx.

2097  {
2099  return roe ? roe->getNtubesperlayer() : -1;
2100 }

◆ ChamberTubeNumberCorrection()

void MdtRawDataValAlg::ChamberTubeNumberCorrection ( int &  tubeNum,
std::string_view  hardware_name,
int  tubePos,
int  numLayers 
)
staticprivate

Definition at line 929 of file MDTRawDataUtils.cxx.

929  {
930  // numLayers should be mdt_layer-1 so numLayers = 0 implies layer 1 ML 1 or mdt_layer==1
931  if (hardware_name.substr(0, 4) == "BMS4" || hardware_name.substr(0, 4) == "BMS6") { // layer 1-4 tubeId 41-48 cut out
932  if (numLayers <= 2) tubeNum = tubePos + numLayers * 48;
933  }
934  if (hardware_name.substr(0, 3) == "BIR" && numLayers <= 3) {
935  if (hardware_name.substr(5, 2) == "11" || hardware_name.substr(5, 2) == "15") {
936  if (hardware_name.substr(3, 1) == "1") tubeNum = tubePos + 6 + numLayers * 30; // layer 1-4 tube id 1-6 cut out
937  if (hardware_name.substr(3, 1) == "2") tubeNum = tubePos + numLayers * 30; // layer 1-4 tube id 28-30 cut out
938  if (hardware_name.substr(3, 1) == "4") tubeNum = tubePos + 3 + numLayers * 30; // layer 1-4 tube id 1-3 cut out
939  if (hardware_name.substr(3, 1) == "5") tubeNum = tubePos + numLayers * 24; // layer 1-4 tube id 22-24 cut out
940  }
941  }
942  if (hardware_name.substr(0, 3) == "BIR" && hardware_name.substr(3, 1) == "3") tubeNum = tubePos + numLayers * 36; // cut out on both ML
943  if (hardware_name == "EEL1A05" || hardware_name == "EEL1C05")
944  tubeNum = tubePos + numLayers * 48; // mdtIdHelper gives wrong #tubes/layer (incidentally also wrong #layers)
945 }

◆ checkHists()

StatusCode ManagedMonitorToolBase::checkHists ( bool  calledFromFinalize)
virtualinherited

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

Implements IMonitorToolBase.

Reimplemented in SCTHitsNoiseMonTool, SCTTracksMonTool, SCTLorentzMonTool, TileRawChannelMonTool, TileDigitsMonTool, DQTDataFlowMonTool, DQTNonCollBkg_ZDC, DQTGlobalWZFinderTool, DataQualityFatherMonTool, DQTDetSynchMonTool, DQTMuonIDTrackTool, TileCellNoiseMonTool, CscCalibMonToolBase, CscPrdValAlg, and CscRdoValAlg.

Definition at line 1901 of file ManagedMonitorToolBase.cxx.

1903 {
1904  // Histograms will be checked using the data-quality monitoring framework (DQMF)
1905 
1906  return StatusCode::SUCCESS;
1907 }

◆ convertLWHists()

StatusCode ManagedMonitorToolBase::convertLWHists ( )
virtualinherited

Deal with the LW histograms.

Implements IMonitorToolBase.

Definition at line 1377 of file ManagedMonitorToolBase.cxx.

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

◆ CorrectLayerMax()

void MdtRawDataValAlg::CorrectLayerMax ( const std::string &  hardware_name,
int &  numLayers 
)
staticprivate

Definition at line 953 of file MDTRawDataUtils.cxx.

953  {
954  if (hardware_name == "EEL1A05" || hardware_name == "EEL1C05") numLayers = 3;
955 }

◆ CorrectTubeMax()

void MdtRawDataValAlg::CorrectTubeMax ( const std::string &  hardware_name,
int &  numTubes 
)
staticprivate

Definition at line 948 of file MDTRawDataUtils.cxx.

948  {
949  if (hardware_name == "EEL1A05" || hardware_name == "EEL1C05") numTubes = 48;
950 }

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

◆ deregGraph()

StatusCode ManagedMonitorToolBase::deregGraph ( TGraph *  g)
virtualinherited

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

Definition at line 1843 of file ManagedMonitorToolBase.cxx.

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

◆ deregHist() [1/2]

StatusCode ManagedMonitorToolBase::deregHist ( LWHist h)
virtualinherited

Definition at line 1826 of file ManagedMonitorToolBase.cxx.

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

◆ deregHist() [2/2]

StatusCode ManagedMonitorToolBase::deregHist ( TH1 h)
virtualinherited

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

Definition at line 1819 of file ManagedMonitorToolBase.cxx.

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

◆ deregObject() [1/2]

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

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

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

Definition at line 1861 of file ManagedMonitorToolBase.cxx.

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

◆ deregObject() [2/2]

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

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

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

Definition at line 1851 of file ManagedMonitorToolBase.cxx.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ endOfEventsBlockFlag()

bool ManagedMonitorToolBase::endOfEventsBlockFlag ( ) const
inlineprotectedinherited

Definition at line 856 of file ManagedMonitorToolBase.h.

856 { return m_endOfEventsBlock; }

◆ endOfLowStatFlag()

bool ManagedMonitorToolBase::endOfLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 857 of file ManagedMonitorToolBase.h.

857 { return m_endOfLowStat; }

◆ endOfLumiBlockFlag()

bool ManagedMonitorToolBase::endOfLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 858 of file ManagedMonitorToolBase.h.

858 { return m_endOfLumiBlock; }

◆ endOfRunFlag()

bool ManagedMonitorToolBase::endOfRunFlag ( ) const
inlineprotectedinherited

Definition at line 859 of file ManagedMonitorToolBase.h.

859 { return m_endOfRun; }

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

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

Add StoreName to extra input/output deps as needed.

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

◆ fillHistograms()

StatusCode MdtRawDataValAlg::fillHistograms ( )
virtual

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

Reimplemented from ManagedMonitorToolBase.

Definition at line 293 of file MdtRawDataValAlg.cxx.

295 {
296  StatusCode sc = StatusCode::SUCCESS;
297 
298  // Set ATLASReadyFlag
299  setIsATLASReady();
300 
302 
303  // Get lumiblock, event number, timing info
304  sc = fillLumiBlock();
305  if (sc.isFailure()) {
306  ATH_MSG_ERROR("Could Not Get LumiBlock Info");
307  return sc;
308  }
309  sc = GetEventNum();
310  if (sc.isFailure()) {
311  ATH_MSG_ERROR("Could Not Get Event Num Info");
312  return sc;
313  }
314  sc = GetTimingInfo();
315  if (sc.isFailure()) {
316  ATH_MSG_ERROR(" Cannot GetTimingInfo ");
317  return sc;
318  }
319  ATH_MSG_DEBUG("MdtRawDataValAlg::MDT RawData Monitoring Histograms being filled");
320 
321  //
322  // Retrieve the LVL1 Muon RoIs:
323  //
325  try {
327  if (muonRoIs.isPresent() && muonRoIs.isValid()) {
328  // sroe: was verbose
329  ATH_MSG_VERBOSE("Retrieved LVL1MuonRoIs object with key: " << m_l1RoiKey.key());
330  for (const xAOD::MuonRoI_v1* roi : *muonRoIs) {
333  }
334  }
335  } catch (SG::ExcNoAuxStore& excpt) { ATH_MSG_INFO("SG::ExcNoAuxStore caught, " << m_l1RoiKey.key() << " not available."); }
336  // declare MDT stuff
338 
339  ATH_MSG_DEBUG("****** mdtContainer->size() : " << mdt_container->size());
340 
341  int nColl = 0; // Number of MDT chambers with hits
342  int nColl_ADCCut = 0; // Number of MDT chambers with hits above ADC cut
343  int nPrd = 0; // Total number of MDT prd digits
344  int nPrdcut = 0; // Total number of MDT prd digits with a cut on ADC>50.
345 
346  // declare RPC stuff
348 
349  ATH_MSG_DEBUG("****** rpc->size() : " << rpc_container->size());
350 
352 
354  float Nhitsrpc = 0;
355  for (containerIt = rpc_container->begin(); containerIt != rpc_container->end(); ++containerIt) {
356  for (Muon::RpcPrepDataCollection::const_iterator rpcPrd = (*containerIt)->begin(); rpcPrd != (*containerIt)->end(); ++rpcPrd) {
357  ++Nhitsrpc;
358  }
359  }
360  float Nhitsmdt = 0;
361  bool isNoiseBurstCandidate = false;
363  for (MdtcontainerIt = mdt_container->begin(); MdtcontainerIt != mdt_container->end(); ++MdtcontainerIt) {
364  for (Muon::MdtPrepDataCollection::const_iterator mdtCollection = (*MdtcontainerIt)->begin();
365  mdtCollection != (*MdtcontainerIt)->end(); ++mdtCollection) {
366  ++Nhitsmdt;
367  }
368  }
369  if (Nhitsmdt > m_HighOccThreshold) isNoiseBurstCandidate = true;
370  std::string type = "MDT";
371  std::string hardware_name;
372 
373  std::map<std::string, float> evnt_hitsperchamber_map;
374  std::set<std::string> chambers_from_tracks;
375 
376  if (m_doMdtESD) {
380 
381  for (const auto* const mu : *muons) {
382  if (!(mu->muonType() == xAOD::Muon::Combined)) continue;
383  xAOD::Muon::Quality quality = m_muonSelectionTool->getQuality(*mu);
384  if (!(quality <= xAOD::Muon::Medium)) continue;
385  const xAOD::TrackParticle* tp = mu->primaryTrackParticle();
386  if (tp) {
387  const Trk::Track* trk = tp->track();
388  if (!trk) { continue; }
389 
390  uint8_t ntri_eta = 0;
391  uint8_t n_phi = 0;
392  tp->summaryValue(ntri_eta, xAOD::numberOfTriggerEtaLayers);
393  tp->summaryValue(n_phi, xAOD::numberOfPhiLayers);
394  if (ntri_eta + n_phi == 0) continue;
395 
396  for (const Trk::MeasurementBase* hit : *trk->measurementsOnTrack()) {
397  const Trk::RIO_OnTrack* rot_from_track = dynamic_cast<const Trk::RIO_OnTrack*>(hit);
398  if (!rot_from_track) continue;
399  Identifier rotId = rot_from_track->identify();
400  if (!m_idHelperSvc->isMdt(rotId)) continue;
401  IdentifierHash mdt_idHash;
402  MDTChamber* mdt_chamber = nullptr;
403  m_idHelperSvc->mdtIdHelper().get_module_hash(rotId, mdt_idHash);
404  sc = getChamber(mdt_idHash, mdt_chamber);
405  std::string mdt_chambername = mdt_chamber->getName();
406  chambers_from_tracks.insert(mdt_chambername);
407  }
408  }
409  }
410 
411  // loop in MdtPrepDataContainer
412  for (Muon::MdtPrepDataContainer::const_iterator containerIt = mdt_container->begin(); containerIt != mdt_container->end();
413  ++containerIt) {
414  if (containerIt == mdt_container->end() || containerIt->empty()) continue; // check if there are counts
415  nColl++;
416 
417  bool isHit_above_ADCCut = false;
418  // loop over hits
419  for (const auto* mdtCollection : **containerIt) {
420  nPrd++;
421  hardware_name = getChamberName(mdtCollection);
422  float adc = mdtCollection->adc();
423  if (hardware_name.compare(0, 3, "BMG") == 0) adc /= 4.;
424  if (adc > m_ADCCut) {
425  nPrdcut++;
426  isHit_above_ADCCut = true;
427  }
428 
429  sc = fillMDTOverviewHistograms(mdtCollection, isNoiseBurstCandidate);
430  if (sc.isSuccess()) {
431  ATH_MSG_DEBUG("Filled MDTOverviewHistograms");
432  } else {
433  ATH_MSG_ERROR("Failed to fill MDTOverviewHistograms");
434  return sc;
435  }
436 
437  sc = fillMDTSummaryHistograms(mdtCollection, chambers_from_tracks, isNoiseBurstCandidate);
438  if (sc.isSuccess()) {
439  ATH_MSG_DEBUG("Filled MDTSummaryHistograms ");
440  } else {
441  ATH_MSG_ERROR("Failed to Fill MDTSummaryHistograms");
442  return sc;
443  }
444 
445  if (m_doChamberHists) {
446  if (isATLASReady()) sc = fillMDTHistograms(mdtCollection);
447  if (sc.isSuccess()) {
448  ATH_MSG_DEBUG("Filled MDThistograms (chamber by chamber histos)");
449  } else {
450  ATH_MSG_ERROR("Failed to Fill MDTHistograms");
451  return sc;
452  }
453  }
454  std::map<std::string, float>::iterator iter_hitsperchamber = evnt_hitsperchamber_map.find(hardware_name);
455  if (iter_hitsperchamber == evnt_hitsperchamber_map.end()) {
456  evnt_hitsperchamber_map.insert(make_pair(hardware_name, 1));
457  } else {
458  iter_hitsperchamber->second += 1;
459  }
460 
461  if (adc > m_ADCCut) {
462  std::map<std::string, float>::iterator iter_hitsperchamber = m_hitsperchamber_map.find(hardware_name);
463  if (iter_hitsperchamber == m_hitsperchamber_map.end()) {
464  m_hitsperchamber_map.insert(make_pair(hardware_name, 1));
465  } else {
466  iter_hitsperchamber->second += 1;
467  }
468  }
469 
470  // } //chamber name selection
471 
472  } // for loop over hits
473  if (isHit_above_ADCCut) nColl_ADCCut++;
474  } // loop in MdtPrepDataContainer
475 
476  int nHighOccChambers = 0;
478 
479  for (iterstat = evnt_hitsperchamber_map.begin(); iterstat != evnt_hitsperchamber_map.end(); ++iterstat) {
480  std::string hardware_name = iterstat->first;
481  std::map<std::string, float>::iterator iter_tubesperchamber = m_tubesperchamber_map.find(hardware_name);
482  float nTubes = iter_tubesperchamber->second;
483  float hits = iterstat->second;
484  float occ = hits / nTubes;
485  if (occ > 0.1) nHighOccChambers++;
486  }
488  m_nummdtchamberswithHighOcc->Fill(nHighOccChambers);
489  else { ATH_MSG_DEBUG("m_nummdtchamberswithHighOcc not in hist list!"); }
490 
491  m_MdtNHitsvsRpcNHits->Fill(nPrd, Nhitsrpc);
492 
493  // TotalNumber_of_MDT_hits_per_event with cut on ADC
494  if (m_mdteventscutLumi)
495  m_mdteventscutLumi->Fill(nPrdcut);
496  else { ATH_MSG_DEBUG("m_mdteventscutLumi not in hist list!"); }
497 
498  // TotalNumber_of_MDT_hits_per_event with cut on ADC (for high mult. evt)
500  m_mdteventscutLumi_big->Fill(nPrdcut);
501  else { ATH_MSG_DEBUG("m_mdteventscutLumi_big not in hist list!"); }
502 
503  // TotalNumber_of_MDT_hits_per_event without cut on ADC
504  if (m_mdteventsLumi)
505  m_mdteventsLumi->Fill(nPrd);
506  else { ATH_MSG_DEBUG("m_mdteventsLumi not in hist list!"); }
507 
508  // TotalNumber_of_MDT_hits_per_event without cut on ADC (for high mult. evt)
510  m_mdteventsLumi_big->Fill(nPrd);
511  else { ATH_MSG_DEBUG("m_mdteventsLumi_big not in hist list!"); }
512 
514 
515  // Number_of_Chambers_with_hits_per_event
518  else { ATH_MSG_DEBUG("m_nummdtchamberswithhits not in hist list!"); }
519 
520  // Number_of_Chambers_with_hits_per_event_ADCCut
522  m_nummdtchamberswithhits_ADCCut->Fill(nColl_ADCCut);
523  else { ATH_MSG_DEBUG("m_nummdtchamberswithhits_ADCCut not in hist list!"); }
524 
525  } // m_environment == AthenaMonManager::tier0 || m_environment == AthenaMonManager::tier0ESD
526  } // m_doMdtESD==true
527 
529 
530  if (isATLASReady()) sc = handleEvent_effCalc(segms.cptr()); //, mdt_container );
531  if (sc.isFailure()) {
532  ATH_MSG_ERROR("Couldn't handleEvent_effCalc ");
533  return sc;
534  }
535 
536  return sc;
537 }

◆ fillHists()

StatusCode ManagedMonitorToolBase::fillHists ( )
virtualinherited

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

Implements IMonitorToolBase.

Reimplemented in TileRawChannelMonTool, and TileDigitsMonTool.

Definition at line 792 of file ManagedMonitorToolBase.cxx.

794 {
795 
798  msg(MSG::WARNING) << "ManagedMonitorToolBase::initialize() never called from reimplementation!" << endmsg;
799  }
800 
801 
802  bool isNewEventsBlock = ( m_procNEventsProp > 0 && ((m_nEvents % m_procNEventsProp) == 1) && m_haveClearedLastEventBlock );
803  if (isNewEventsBlock) m_haveClearedLastEventBlock = false;
804 
805  m_newLowStat = false;
806  m_newLumiBlock = false;
807  m_newRun = false;
808  newLowStat = false;
809  newLumiBlock = false;
810  newRun = false;
811 
812  m_newLowStatInterval = false;
813  m_newMedStatInterval = false;
814  m_newHigStatInterval = false;
815  newLowStatInterval = false;
816  newMedStatInterval = false;
817  newHigStatInterval = false;
818 
819  m_useTrigger = ( (m_triggerChainProp != "" || m_triggerGroupProp != "") && (!m_trigDecTool.empty()) );
820 
821  if( m_manager != 0 ) {
824  newLumiBlock = m_newLumiBlock;
825  newRun = m_newRun;
826 
827  if(m_newRun) {
828  m_newLumiBlock = true;
829  newLumiBlock = m_newLumiBlock;
830  isNewEventsBlock = true;
831  }
832 
833  m_newEventsBlock = isNewEventsBlock;
834  newEventsBlock = m_newEventsBlock;
835 
836  if( m_newLumiBlock ) {
837  // check if a new LB interval has started
838  // lowest lumiBlockNumber() is 1
839  // m_lastLowStatInterval is -1 initially
840  int currentLB = m_manager->lumiBlockNumber();
841  int LBsLowStat = m_manager->getLBsLowStat();
842  int LBsMedStat = m_manager->getLBsMedStat();
843  int LBsHigStat = m_manager->getLBsHigStat();
844 
845  if( LBsLowStat*LBsMedStat*LBsHigStat == 0) {
846  msg(MSG::WARNING) << "zero LBs requested for interval" << endmsg;
847  }
848  else {
849  if( ((currentLB-1)/LBsLowStat) != m_lastLowStatInterval ) m_newLowStatInterval = true;
850  if( ((currentLB-1)/LBsMedStat) != m_lastMedStatInterval ) m_newMedStatInterval = true;
851  if( ((currentLB-1)/LBsHigStat) != m_lastHigStatInterval ) m_newHigStatInterval = true;
852  newLowStatInterval = m_newLowStatInterval;
853  newMedStatInterval = m_newHigStatInterval;
854  newHigStatInterval = m_newHigStatInterval;
855  }
856  }
857 
858  // Allow inheriting classes the option of using the lastLumiBloc/lastRun values
859  // before updating them
860  }
861 
862 
863  StatusCode sc0( StatusCode::SUCCESS );
864  StatusCode sc1( StatusCode::SUCCESS );
865  StatusCode sc2( StatusCode::SUCCESS );
866  StatusCode sc3( StatusCode::SUCCESS );
867 
868  // Set end of LowStat, LumiBlock and Run variables
869  // These are needed to be used in procHistograms().
874  endOfEventsBlock = m_newEventsBlock;
875  endOfLowStat = m_newLowStatInterval;
876  endOfLumiBlock = m_newLumiBlock;
877  endOfRun = m_newRun;
878 
879  // just duplicates m_newLowStatInterval
881  newLowStat = m_newLowStatInterval;
882 
884  ATH_MSG_DEBUG("Interval transition processing");
885  // Process histograms from the previous lumiBlock/run
886  if( m_nEvents != 1 ) {
888  sc0 = procHistograms();
890  }
891  // Re-book new histograms
893 
895  sc1 = bookHistograms();
897  } else {
898  std::vector<Interval_t> intervals_to_process;
899  if (m_newEventsBlock) intervals_to_process.push_back(eventsBlock);
900  if (m_newLumiBlock) intervals_to_process.push_back(lumiBlock);
901  if (m_newLowStatInterval) intervals_to_process.push_back(lowStat);
902  if (m_newRun) intervals_to_process.push_back(run);
903  for (const auto interval: intervals_to_process) {
908  }
909  }
910  for (const auto& interval: std::vector<Interval_t>{ eventsBlock, lumiBlock, lowStat, run }) {
911  for (const auto& it: m_templateHistograms[interval]) {
912  // is histogram too small in x axis for LB range?
913  if (it.m_group.histo_mgmt() == ATTRIB_X_VS_LB) {
914  //ATH_MSG_WARNING("We are rebinning for " << it.m_templateHist->GetName());
915  while ( it.m_templateHist->GetXaxis()->GetXmax() <= AthenaMonManager::lumiBlockNumber() ) {
916  it.m_templateHist->LabelsInflate("X");
917  }
918  }
919  }
920  for (auto& it: m_templateEfficiencies[interval]) {
921  if (it.m_group.histo_mgmt() == ATTRIB_X_VS_LB) {
922  // get the underlying passed and total TH1's from the TEfficiency
923  TH1* passedHist = it.m_templateHist->GetCopyPassedHisto();
924  TH1* totalHist = it.m_templateHist->GetCopyTotalHisto();
925  // inflate them until they exceed the lumi-block number
926  while (passedHist->GetXaxis()->GetXmax() <= AthenaMonManager::lumiBlockNumber() ) {
927  passedHist->LabelsInflate("X");
928  totalHist->LabelsInflate("X");
929  }
930  // Replace them in the TEfficiency. First one has force ("f") option, since the
931  // histograms will not be consistent. This is corrected in the next line, so we
932  // do check for consistency then.
933  it.m_templateHist->SetPassedHistogram(*passedHist, "f");
934  it.m_templateHist->SetTotalHistogram(*totalHist, " ");
935  delete passedHist; // not owned by THistSvc, so need to be deleted.
936  delete totalHist;
937  }
938  }
939  }
940 
941  if (auto streamname = dynamic_cast<OfflineStream*>(streamNameFunction())) {
942  streamname->updateRunLB();
943  }
944 
945  sc3 = bookHistogramsRecurrent( );
946 
948 
949  if (m_manager->forkedProcess()) {
950  ATH_MSG_INFO("Child process: Resetting all " << m_lwhists.size() << " LW Histograms");
951  for (LWHist* h : m_lwhists) {
952  h->Reset();
953  }
954  }
955  }//end if new RUN/LB/Block
956 
957  // check filters
958  bool filterresult(true);
959  if (! m_DQFilterTools.empty()) {
960  ToolHandleArray<IDQFilterTool>::const_iterator ifilter(m_DQFilterTools.begin()), filterend(m_DQFilterTools.end());
961  for (; filterresult && (ifilter != filterend);
962  ++ifilter) {
963  filterresult = (filterresult && (*ifilter)->accept());
964  }
965  }
966 
967 
968  // ...and fill as normal
969  if(filterresult &&
970  (!m_useTrigger
973  ATH_MSG_DEBUG("Passed trigger, presumably");
975  fillHistograms().ignore();
978  ++m_nEvents;
979  } else { ATH_MSG_DEBUG("Failed trigger, presumably"); }
980 
982  if( m_newLumiBlock && (m_nEventsIgnoreTrigger != 1) ) {
983  ++m_nLumiBlocks;
984  }
985  if( m_manager != 0 ) {
987  if( m_newLumiBlock ) {
989 
990  int LBsLowStat = m_manager->getLBsLowStat();
991  int LBsMedStat = m_manager->getLBsMedStat();
992  int LBsHigStat = m_manager->getLBsHigStat();
993  if( LBsLowStat*LBsMedStat*LBsHigStat > 0) {
997  }
998  }
999  }
1000 
1001  return StatusCode::SUCCESS;
1002 }

◆ fillLumiBlock()

StatusCode MdtRawDataValAlg::fillLumiBlock ( )
private

Definition at line 1166 of file MDTRawDataUtils.cxx.

1166  {
1167  m_lumiblock = -1;
1168 
1170 
1171  m_lumiblock = evt->lumiBlock();
1172 
1173  return StatusCode::SUCCESS;
1174 }

◆ fillMDTHistograms()

StatusCode MdtRawDataValAlg::fillMDTHistograms ( const Muon::MdtPrepData mdtCollection)
privatevirtual

Definition at line 1441 of file MdtRawDataValAlg.cxx.

1441  {
1442  // fill chamber by chamber histos
1443  StatusCode sc = StatusCode::SUCCESS;
1444  Identifier digcoll_id = (mdtCollection)->identify();
1445  IdentifierHash digcoll_idHash = (mdtCollection)->collectionHash();
1446 
1448  sc = getChamber(digcoll_idHash, chamber);
1449  if (!sc.isSuccess()) {
1450  ATH_MSG_ERROR("Could Not Retrieve MDTChamber w/ ID " << digcoll_idHash);
1451  return sc;
1452  }
1453 
1454  std::string hardware_name = chamber->getName();
1455 
1456  // //convert layer numbering from 1->4 to 1->8
1457  // //check if we are in 2nd multilayer
1458  // //then add 4 if large chamber, 3 if small chamber
1459  int mdtlayer = m_idHelperSvc->mdtIdHelper().tubeLayer(digcoll_id);
1460  if (m_idHelperSvc->mdtIdHelper().multilayer(digcoll_id) == 2) {
1461  if (hardware_name.at(1) == 'I' && hardware_name.at(3) != '8')
1462  mdtlayer += 4;
1463  else
1464  mdtlayer += 3;
1465  }
1466  int tubeMax = m_idHelperSvc->mdtIdHelper().tubeMax(digcoll_id);
1467  int mdttube = m_idHelperSvc->mdtIdHelper().tube(digcoll_id) + (mdtlayer - 1) * tubeMax;
1468  ChamberTubeNumberCorrection(mdttube, hardware_name, m_idHelperSvc->mdtIdHelper().tube(digcoll_id), mdtlayer - 1);
1469 
1470  bool isNoisy = m_masked_tubes->isNoisy(mdtCollection);
1471 
1472  std::string tube_str = std::to_string(mdttube);
1473 
1474  float tdc = mdtCollection->tdc() * 25.0 / 32.0;
1475  // Note: the BMG is digitized with 200ps which is not same as other MDT chambers with 25/32=781.25ps
1476  if (hardware_name.compare(0, 3, "BMG") == 0) tdc = mdtCollection->tdc() * 0.2;
1477  float adc = mdtCollection->adc();
1478  if (hardware_name.compare(0, 3, "BMG") == 0) adc /= 4.;
1479 
1480  if (chamber->mdttdc) {
1481  chamber->mdttdc->Fill(tdc);
1482  } else {
1483  ATH_MSG_DEBUG("mdttdc not in hist list!");
1484  }
1485 
1486  int mdtMultLayer = m_idHelperSvc->mdtIdHelper().multilayer(digcoll_id);
1487 
1488  // trigger specific
1489  if (adc > m_ADCCut && !isNoisy) {
1490  if (chamber->mdttdccut_ML1 && mdtMultLayer == 1) { chamber->mdttdccut_ML1->Fill(tdc); }
1491  if (chamber->mdttdccut_ML2 && mdtMultLayer == 2) { chamber->mdttdccut_ML2->Fill(tdc); }
1492  }
1493 
1494  if (chamber->mdtadc) { chamber->mdtadc->Fill(adc); }
1495 
1496  if (chamber->mdttdcadc && adc > 0) { chamber->mdttdcadc->Fill(tdc, adc); }
1497 
1498  if (chamber->mdtlayer) {
1499  if ((adc > m_ADCCut && !isNoisy)) chamber->mdtlayer->Fill(mdtlayer);
1500  }
1501 
1502  if (chamber->mdttube) {
1503  if ((adc > m_ADCCut)) chamber->mdttube->Fill(mdttube);
1504  }
1505  if (chamber->mdtmezz) {
1506  if (adc > m_ADCCut) chamber->mdtmezz->Fill(mezzmdt(digcoll_id));
1507  }
1508 
1509  return sc;
1510 }

◆ fillMDTMaskedTubes()

StatusCode MdtRawDataValAlg::fillMDTMaskedTubes ( IdentifierHash  idHash,
const std::string &  hardware_name,
TH1F_LW *&  h 
)
privatevirtual

Definition at line 1027 of file MDTRawDataUtils.cxx.

1027  {
1028  // Loop Over all mdt identifiers
1029  if (!m_masked_tubes) {
1030  ATH_MSG_WARNING("Could Not Fill masked tubes noise map not set!");
1031  return StatusCode::SUCCESS;
1032  }
1033 
1034  std::set<Identifier> noisyTubes = m_masked_tubes->getNoiseList(idHash);
1035  for (auto digcoll_id : noisyTubes) {
1036  int mdtlayer = m_idHelperSvc->mdtIdHelper().tubeLayer(digcoll_id);
1037  if (m_idHelperSvc->mdtIdHelper().multilayer(digcoll_id) == 2) {
1038  if (hardware_name.at(1) == 'I' && hardware_name.at(3) != '8')
1039  mdtlayer += 4;
1040  else
1041  mdtlayer += 3;
1042  }
1043  int tubeMax = m_idHelperSvc->mdtIdHelper().tubeMax(digcoll_id);
1044  int mdttube = m_idHelperSvc->mdtIdHelper().tube(digcoll_id) + (mdtlayer - 1) * tubeMax;
1045  ChamberTubeNumberCorrection(mdttube, hardware_name, m_idHelperSvc->mdtIdHelper().tube(digcoll_id), mdtlayer - 1);
1046  h->Fill(mdttube, 1);
1047  }
1048  return StatusCode::SUCCESS;
1049 }

◆ fillMDTOverviewHistograms()

StatusCode MdtRawDataValAlg::fillMDTOverviewHistograms ( const Muon::MdtPrepData mdtCollection,
bool &  isNoiseBurstCandidate 
)
privatevirtual

Definition at line 1614 of file MdtRawDataValAlg.cxx.

1614  {
1615  StatusCode sc = StatusCode::SUCCESS;
1616  Identifier digcoll_id = (mdtCollection)->identify();
1617 
1618  std::string hardware_name = getChamberName(mdtCollection);
1619  bool isNoisy = m_masked_tubes->isNoisy(mdtCollection);
1620 
1621  // MuonDetectorManager from the conditions store
1623  const MuonGM::MuonDetectorManager* MuonDetMgr = DetectorManagerHandle.cptr();
1624  if (MuonDetMgr == nullptr) {
1625  ATH_MSG_ERROR("Null pointer to the read MuonDetectorManager conditions object");
1626  return StatusCode::FAILURE;
1627  }
1628 
1629  const MuonGM::MdtReadoutElement* pReadoutElementMDT = MuonDetMgr->getMdtReadoutElement(digcoll_id);
1630  const Amg::Vector3D mdtgPos = pReadoutElementMDT->tubePos(digcoll_id); // global position of the wire
1631  float mdt_tube_eta = mdtgPos.eta();
1632  float mdt_tube_x = mdtgPos.x();
1633  float mdt_tube_y = mdtgPos.y();
1634  float mdt_tube_z = mdtgPos.z();
1635  float mdt_tube_perp = mdtgPos.perp();
1636 
1637  float tdc = mdtCollection->tdc() * 25.0 / 32.0;
1638  // Note: the BMG is digitized with 200ps which is not same as other MDT chambers with 25/32=781.25ps
1639  if (hardware_name.compare(0, 3, "BMG") == 0) tdc = mdtCollection->tdc() * 0.2;
1640  float adc = mdtCollection->adc();
1641  if (hardware_name.compare(0, 3, "BMG") == 0) adc /= 4.;
1642 
1643  // Barrel -->Fill MDT Global RZ and YX
1644  if (adc > m_ADCCut) {
1645  if (std::abs(mdt_tube_eta) > 0. && std::abs(mdt_tube_eta) < 0.9) {
1646  m_mdtrzdet[0]->Fill(mdt_tube_z, mdt_tube_perp);
1647  m_mdtxydet[0]->Fill(mdt_tube_x, mdt_tube_y);
1648  }
1649  // OverLap -->Fill MDT Global RZ and YX
1650  if (std::abs(mdt_tube_eta) > 0.9 && std::abs(mdt_tube_eta) < 1.2) {
1651  m_mdtrzdet[1]->Fill(mdt_tube_z, mdt_tube_perp);
1652  m_mdtxydet[1]->Fill(mdt_tube_x, mdt_tube_y);
1653  }
1654  // EndCap -->Fill MDT Global RZ and YX
1655  if (std::abs(mdt_tube_eta) > 1.2 && std::abs(mdt_tube_eta) < 2.7) {
1656  m_mdtrzdet[2]->Fill(mdt_tube_z, mdt_tube_perp);
1657  m_mdtxydet[2]->Fill(mdt_tube_x, mdt_tube_y);
1658  }
1659  }
1660 
1661  if (m_overalltdcadcLumi && !isNoisy && adc > 0)
1662  m_overalltdcadcLumi->Fill(tdc, adc);
1663  else if (!m_overalltdcadcLumi)
1664  ATH_MSG_DEBUG("m_overalltdcadcLumi not in hist list!");
1665 
1666  if (m_overalladc_Lumi) {
1668  } else
1669  ATH_MSG_DEBUG("m_overalladc_Lumi not in hist list!");
1670 
1671  if (isNoiseBurstCandidate) {
1672  if (m_overalladc_HighOcc && !isNoisy) {
1674  } else
1675  ATH_MSG_DEBUG("m_overalladc_HighOcc not in hist list!");
1676  if (m_overalltdcadcHighOcc && adc > 0) {
1678  } else
1679  ATH_MSG_DEBUG("m_overalltdcadcHighOcc not in hist list!");
1680  if (m_overalltdcHighOcc) {
1681  m_overalltdcHighOcc->Fill(tdc);
1682  } else
1683  ATH_MSG_DEBUG("m_overalltdcHighOcc not in hist list!");
1686  } else
1687  ATH_MSG_DEBUG("m_overalltdcHighOcc_ADCCut not in hist list!");
1688  }
1689 
1690  if (adc > m_ADCCut) {
1691  if (m_overalltdccutLumi && !isNoisy) m_overalltdccutLumi->Fill(tdc);
1692  if (!m_overalltdccutLumi) ATH_MSG_DEBUG("overalltdccut not in hist list");
1693  }
1694 
1695  return sc;
1696 }

◆ fillMDTSummaryHistograms()

StatusCode MdtRawDataValAlg::fillMDTSummaryHistograms ( const Muon::MdtPrepData mdtCollection,
std::set< std::string >  chambers_from_tracks,
bool &  isNoiseBurstCandidate 
)
privatevirtual

Definition at line 1512 of file MdtRawDataValAlg.cxx.

1513  {
1514  StatusCode sc = StatusCode::SUCCESS;
1515  Identifier digcoll_id = (mdtCollection)->identify();
1516  IdentifierHash digcoll_idHash = (mdtCollection)->collectionHash();
1517 
1519  sc = getChamber(digcoll_idHash, chamber);
1520  if (!sc.isSuccess()) {
1521  ATH_MSG_ERROR("Could Not Retrieve MDTChamber w/ ID " << digcoll_idHash);
1522  return sc;
1523  }
1524  bool isNoisy = m_masked_tubes->isNoisy(mdtCollection);
1525 
1526  int ibarrel = chamber->GetBarrelEndcapEnum();
1527  int iregion = chamber->GetRegionEnum();
1528  int ilayer = chamber->GetLayerEnum();
1529  int icrate = chamber->GetCrate();
1530  int stationEta = chamber->GetStationEta();
1531  int stationPhi = chamber->GetStationPhi();
1532  std::string chambername = chamber->getName();
1533  bool is_on_track = false;
1534  for (const auto& ch : chambers_from_tracks) {
1535  if (chambername == ch) is_on_track = true;
1536  }
1537  bool isBIM = (chambername.at(2) == 'M');
1538  float tdc = mdtCollection->tdc() * 25.0 / 32.0;
1539  // Note: the BMG is digitized with 200ps which is not same as other MDT chambers with 25/32=781.25ps
1540  if (chambername.compare(0, 3, "BMG") == 0) tdc = mdtCollection->tdc() * 0.2;
1541  float adc = mdtCollection->adc();
1542  if (chambername.compare(0, 3, "BMG") == 0) adc /= 4.;
1543 
1544  if (m_mdtChamberHits[iregion][ilayer][stationPhi] && adc > m_ADCCut)
1545  m_mdtChamberHits[iregion][ilayer][stationPhi]->Fill(std::abs(stationEta));
1546 
1547  int mlayer_n = m_idHelperSvc->mdtIdHelper().multilayer(digcoll_id);
1548 
1549  // Fill Barrel - Endcap Multilayer Hits
1550  if (!isNoisy && adc > 0) {
1551  m_overalltdcadcPRLumi[iregion]->Fill(tdc, adc);
1552  if (isNoiseBurstCandidate) m_overalltdcadcPR_HighOcc[iregion]->Fill(tdc, adc);
1553  }
1554  if (!isNoisy) {
1555  m_overalladcPRLumi[iregion]->Fill(adc);
1556  if (isNoiseBurstCandidate) {
1557  m_overalltdcPR_HighOcc[iregion]->Fill(tdc);
1558  m_overalladcPR_HighOcc[iregion]->Fill(adc);
1559  }
1560  }
1561  if (adc > m_ADCCut && !isNoisy) {
1562  m_mdthitsperchamber_InnerMiddleOuterLumi[ibarrel]->AddBinContent(chamber->GetMDTHitsPerChamber_IMO_Bin(), 1.);
1564 
1565  m_mdthitspermultilayerLumi[iregion][ilayer]->AddBinContent(chamber->GetMDTHitsPerML_Bin(mlayer_n), 1.);
1566  m_mdthitspermultilayerLumi[iregion][ilayer]->SetEntries(m_mdthitspermultilayerLumi[iregion][ilayer]->GetEntries() + 1);
1567 
1568  // We put the "extras" on the inner histogram to avoid creating separate histogram.
1569  m_mdthitsperML_byLayer[(ilayer < 3 ? ilayer : enumInner)]->AddBinContent(chamber->GetMDTHitsPerML_byLayer_Bin(mlayer_n), 1.);
1570  m_mdthitsperML_byLayer[(ilayer < 3 ? ilayer : enumInner)]->SetEntries(
1571  m_mdthitsperML_byLayer[(ilayer < 3 ? ilayer : enumInner)]->GetEntries() + 1);
1572 
1573  m_overalladccutPRLumi[iregion]->Fill(adc);
1574  m_overalltdccutPRLumi[iregion]->Fill(tdc);
1575  if (isNoiseBurstCandidate) {
1576  m_mdthitsperchamber_InnerMiddleOuter_HighOcc[ibarrel]->AddBinContent(chamber->GetMDTHitsPerChamber_IMO_Bin(), 1.);
1577  m_mdthitsperchamber_InnerMiddleOuter_HighOcc[ibarrel]->SetEntries(
1579  m_overalltdcPR_HighOcc_ADCCut[iregion]->Fill(tdc);
1580  }
1581 
1582  if (HasTrigBARREL()) m_overalltdccutPRLumi_RPCtrig[iregion]->Fill(tdc);
1583  if (HasTrigENDCAP()) m_overalltdccutPRLumi_TGCtrig[iregion]->Fill(tdc);
1584 
1585  //
1586  // Fill occupancy vs. Lumiblock
1587  if (ilayer != 3)
1588  m_mdtoccvslb[iregion][ilayer]->Fill(m_lumiblock, get_bin_for_LB_hist(iregion, ilayer, stationPhi, stationEta, isBIM));
1589  else
1590  m_mdtoccvslb[iregion][2]->Fill(
1591  m_lumiblock, get_bin_for_LB_hist(iregion, ilayer, stationPhi, stationEta, isBIM)); // Put extras in with outer
1592 
1594 
1595  // correct readout crate info for BEE,BIS7/8
1596  int crate_region = iregion;
1597  if (chambername.compare(0, 3, "BEE") == 0 || (chambername.compare(0, 3, "BIS") == 0 && (stationEta == 7 || stationEta == 8))) {
1598  if (iregion == 0) crate_region = 2;
1599  if (iregion == 1) crate_region = 3;
1600  }
1601  // use stationPhi+1 becuase that's the actual phi, not phi indexed from zero.
1602  m_mdtoccvslb_by_crate[crate_region][icrate - 1]->Fill(
1603  m_lumiblock, get_bin_for_LB_crate_hist(crate_region, icrate, stationPhi + 1, stationEta, chambername));
1604 
1605  if (is_on_track) {
1606  m_mdtoccvslb_ontrack_by_crate[crate_region][icrate - 1]->Fill(
1607  m_lumiblock, get_bin_for_LB_crate_hist(crate_region, icrate, stationPhi + 1, stationEta, chambername));
1608  }
1609  }
1610 
1611  return sc;
1612 }

◆ finalHists()

StatusCode ManagedMonitorToolBase::finalHists ( )
virtualinherited

Calls procHists( true, true, true ).

Implements IMonitorToolBase.

Reimplemented in TileRawChannelMonTool, TileDigitsMonTool, and TileCellNoiseMonTool.

Definition at line 1333 of file ManagedMonitorToolBase.cxx.

1335 {
1336 
1337  // This assumes that the end of a file will naturally end a run, which is not always true.
1338  // A merging application run afterwards should be able to put parts of a run together.
1339  if( m_nEvents != 1 ) {
1341 
1342  // Set end flags for the LowStat, LumiBlock and Run variables.
1343  // This is needed to be used in the procHistograms method below.
1344  m_endOfEventsBlock = true;
1345  m_endOfLowStat = true;
1346  m_endOfLumiBlock = true;
1347  m_endOfRun = true;
1348  endOfEventsBlock = true;
1349  endOfLowStat = true;
1350  endOfLumiBlock = true;
1351  endOfRun = true;
1352 
1354 
1355 /*
1356  StatusCode sc1( StatusCode::SUCCESS );
1357 
1358 #if 0
1359  for (const auto interval: m_supportedIntervalsForRebooking) {
1360  //sc1 = regManagedHistograms(m_templateHistograms[interval], false);
1361  //sc1 = regManagedGraphs(m_templateGraphs[interval], false);
1362  //sc1 = regManagedTrees(m_templateTrees[interval], false);
1363 
1364  // Yura: commented out when fixing online environment
1365  //sc1 = regManagedLWHistograms(m_templateLWHistograms[interval], false, true);
1366  }
1367 */
1368 
1370  return sc;
1371  }
1372  return StatusCode::SUCCESS;
1373 }

◆ get_bin_for_LB_crate_hist()

int MdtRawDataValAlg::get_bin_for_LB_crate_hist ( int  region,
int  layer,
int  phi,
int  eta,
std::string_view  chamber 
)
private

Definition at line 1886 of file MDTRawDataUtils.cxx.

1886  {
1887  int binNum = 999;
1888 
1889  if (region == 0 || region == 1) { // Barrel
1890  if (crate == 1) { // BA01, BC01
1891  if (chamber.substr(0, 3) == "BIL")
1892  binNum = 2 * eta + (phi - 1) / 2 - 1;
1893  else if (chamber.substr(0, 3) == "BIS")
1894  binNum = 12 + 2 * eta + (phi - 2) / 2 - 1;
1895  else if (chamber.substr(0, 3) == "BME")
1896  binNum = 25;
1897  else if (chamber.substr(0, 3) == "BML")
1898  binNum = 25 + 2 * eta + (phi - 1) / 2 - 1;
1899  else if (chamber.substr(0, 3) == "BMS")
1900  binNum = 37 + 2 * eta + (phi - 2) / 2 - 1;
1901  else if (chamber.substr(0, 3) == "BOL")
1902  binNum = 49 + 2 * eta + (phi - 1) / 2 - 1;
1903  else if (chamber.substr(0, 3) == "BOS")
1904  binNum = 61 + 2 * eta + (phi - 2) / 2 - 1;
1905  else
1906  ATH_MSG_INFO("chamber " << chamber << " didn't exist in crate Bx01");
1907  return binNum - 1;
1908  } else if (crate == 2) { // BA02, BC02
1909 
1910  if (chamber.substr(0, 3) == "BIL")
1911  binNum = 2 * eta + (phi - 5) / 2 - 1;
1912  else if (chamber.substr(0, 3) == "BIS")
1913  binNum = 12 + 2 * eta + (phi - 6) / 2 - 1;
1914  else if (chamber.substr(0, 3) == "BML")
1915  binNum = 24 + 2 * eta + (phi - 5) / 2 - 1;
1916  else if (chamber.substr(0, 3) == "BMS")
1917  binNum = 36 + 2 * eta + (phi - 6) / 2 - 1;
1918  else if (chamber.substr(0, 3) == "BOL")
1919  binNum = 48 + 2 * eta + (phi - 5) / 2 - 1;
1920  else if (chamber.substr(0, 3) == "BOS")
1921  binNum = 60 + 2 * eta + (phi - 6) / 2 - 1;
1922  else
1923  ATH_MSG_INFO("chamber " << chamber << " didn't exist in crate Bx02");
1924  return binNum - 1;
1925  } else if (crate == 3) { // BA03,BC03
1926  if (chamber.substr(0, 3) == "BIL")
1927  binNum = eta;
1928  else if (chamber.substr(0, 3) == "BIM")
1929  binNum = 6 + eta;
1930  else if (chamber.substr(0, 3) == "BIR")
1931  binNum = 11 + eta;
1932  else if (chamber.substr(0, 3) == "BIS")
1933  binNum = 17 + 2 * eta + (phi - 10) / 2 - 1;
1934  else if (chamber.substr(0, 3) == "BMF")
1935  binNum = 29 + (eta + 1) / 2;
1936  else if (chamber.substr(0, 3) == "BMG")
1937  binNum = 32 + eta / 2;
1938  else if (chamber.substr(0, 3) == "BML")
1939  binNum = 35 + 2 * eta + (phi - 9) / 2 - 1;
1940  else if (chamber.substr(0, 3) == "BMS")
1941  binNum = 47 + eta;
1942  else if (chamber.substr(0, 3) == "BOF")
1943  binNum = 53 + (eta + 1) / 2;
1944  else if (chamber.substr(0, 4) == "BOG0" && region == 0)
1945  binNum = 58;
1946  else if (chamber.substr(0, 3) == "BOG")
1947  binNum = 58 + eta / 2 - region;
1948  else if (chamber.substr(0, 3) == "BOL")
1949  binNum = 62 + 2 * eta + (phi - 9) / 2 - 1 - region;
1950  else if (chamber.substr(0, 3) == "BOS")
1951  binNum = 74 + eta - region;
1952  else
1953  ATH_MSG_INFO("chamber " << chamber << " didn't exist in crate Bx03");
1954  return binNum - 1;
1955  } else if (crate == 4) { // BA04, BC04
1956 
1957  if (chamber.substr(0, 3) == "BIL")
1958  binNum = eta;
1959  else if (chamber.substr(0, 3) == "BIM")
1960  binNum = 6 + eta;
1961  else if (chamber.substr(0, 3) == "BIR")
1962  binNum = 11 + eta;
1963  else if (chamber.substr(0, 3) == "BIS")
1964  binNum = 17 + 2 * eta + (phi - 14) / 2 - 1;
1965  else if (chamber.substr(0, 3) == "BMF")
1966  binNum = 29 + (eta + 1) / 2;
1967  else if (chamber.substr(0, 3) == "BMG")
1968  binNum = 32 + eta / 2;
1969  else if (chamber.substr(0, 3) == "BML" && eta < 6)
1970  binNum = 35 + 2 * eta + (phi - 13) / 2 - 1;
1971  else if (chamber.substr(0, 7) == "BML6A15" || chamber.substr(0, 7) == "BML6C15")
1972  binNum = 46;
1973  else if (chamber.substr(0, 3) == "BMS")
1974  binNum = 46 + eta;
1975  else if (chamber.substr(0, 3) == "BOF")
1976  binNum = 52 + (eta + 1) / 2;
1977  else if (chamber.substr(0, 4) == "BOG0" && region == 0)
1978  binNum = 57;
1979  else if (chamber.substr(0, 3) == "BOG")
1980  binNum = 57 + eta / 2 - region;
1981  else if (chamber.substr(0, 3) == "BOL")
1982  binNum = 61 + 2 * eta + (phi - 13) / 2 - 1 - region;
1983  else if (chamber.substr(0, 3) == "BOS")
1984  binNum = 74 + eta - region;
1985  else
1986  ATH_MSG_INFO("chamber " << chamber << " didn't exist in crate Bx04");
1987  return binNum - 1;
1988  }
1989  } else if (region == 2 || region == 3) {
1990  if (crate == 1) { // EA01, EC01
1991  if (chamber.substr(0, 3) == "BEE")
1992  binNum = 2 * eta + (phi - 2) / 2 - 1;
1993  else if (chamber.substr(0, 3) == "BIS")
1994  binNum = 4 + 2 * (eta - 6) + (phi - 2) / 2 - 1;
1995  else if (chamber.substr(0, 3) == "EEL")
1996  binNum = 8 + 2 * eta + (phi - 1) / 2 - 1;
1997  else if (chamber.substr(0, 3) == "EES")
1998  binNum = 12 + 2 * eta + (phi - 2) / 2 - 1;
1999  else if (chamber.substr(0, 3) == "EIL" && eta < 5)
2000  binNum = 16 + 2 * eta + (phi - 1) / 2 - 1;
2001  else if (chamber.substr(0, 3) == "EIL" && eta == 5)
2002  binNum = 25;
2003  else if (chamber.substr(0, 3) == "EIS")
2004  binNum = 25 + 2 * eta + (phi - 2) / 2 - 1;
2005  else if (chamber.substr(0, 3) == "EML")
2006  binNum = 29 + 2 * eta + (phi - 1) / 2 - 1;
2007  else if (chamber.substr(0, 3) == "EMS")
2008  binNum = 39 + 2 * eta + (phi - 2) / 2 - 1;
2009  else if (chamber.substr(0, 3) == "EOL")
2010  binNum = 49 + 2 * eta + (phi - 1) / 2 - 1;
2011  else if (chamber.substr(0, 3) == "EOS")
2012  binNum = 61 + 2 * eta + (phi - 2) / 2 - 1;
2013  else
2014  ATH_MSG_INFO("chamber " << chamber << " didn't exist in crate Ex01");
2015  return binNum - 1;
2016  } else if (crate == 2) { // EA02, EC02
2017  if (chamber.substr(0, 3) == "BEE")
2018  binNum = 2 * eta + (phi - 6) / 2 - 1;
2019  else if (chamber.substr(0, 3) == "BIS")
2020  binNum = 4 + 2 * (eta - 6) + (phi - 6) / 2 - 1;
2021  else if (chamber.substr(0, 4) == "EEL1")
2022  binNum = 9 + (phi - 3) / 2 - 1;
2023  else if (chamber.substr(0, 4) == "EEL2")
2024  binNum = 11;
2025  else if (chamber.substr(0, 3) == "EES")
2026  binNum = 11 + 2 * eta + (phi - 6) / 2 - 1;
2027  else if (chamber.substr(0, 3) == "EIL")
2028  binNum = 15 + 2 * eta + (phi - 5) / 2 - 1;
2029  else if (chamber.substr(0, 3) == "EIS")
2030  binNum = 23 + 2 * eta + (phi - 6) / 2 - 1;
2031  else if (chamber.substr(0, 3) == "EML")
2032  binNum = 27 + 2 * eta + (phi - 5) / 2 - 1;
2033  else if (chamber.substr(0, 3) == "EMS")
2034  binNum = 37 + 2 * eta + (phi - 6) / 2 - 1;
2035  else if (chamber.substr(0, 3) == "EOL")
2036  binNum = 47 + 2 * eta + (phi - 5) / 2 - 1;
2037  else if (chamber.substr(0, 3) == "EOS")
2038  binNum = 59 + 2 * eta + (phi - 6) / 2 - 1;
2039  else
2040  ATH_MSG_INFO("chamber " << chamber << " didn't exist in crate Ex02");
2041  return binNum - 1;
2042  } else if (crate == 3) { // EA03, EC03
2043 
2044  if (chamber.substr(0, 3) == "BEE")
2045  binNum = 2 * eta + (phi - 10) / 2 - 1;
2046  else if (chamber.substr(0, 3) == "BIS")
2047  binNum = 4 + 2 * (eta - 6) + (phi - 10) / 2 - 1;
2048  else if (chamber.substr(0, 3) == "EEL")
2049  binNum = 8 + 2 * eta + (phi - 9) / 2 - 1;
2050  else if (chamber.substr(0, 3) == "EES")
2051  binNum = 12 + 2 * eta + (phi - 10) / 2 - 1;
2052  else if (chamber.substr(0, 3) == "EIL" && eta < 5)
2053  binNum = 16 + 2 * eta + (phi - 9) / 2 - 1;
2054  else if (chamber.substr(0, 4) == "EIL5")
2055  binNum = 25;
2056  else if (chamber.substr(0, 3) == "EIS")
2057  binNum = 25 + 2 * eta + (phi - 10) / 2 - 1;
2058  else if (chamber.substr(0, 3) == "EML")
2059  binNum = 29 + 2 * eta + (phi - 9) / 2 - 1;
2060  else if (chamber.substr(0, 3) == "EMS")
2061  binNum = 39 + 2 * eta + (phi - 10) / 2 - 1;
2062  else if (chamber.substr(0, 3) == "EOL")
2063  binNum = 49 + 2 * eta + (phi - 9) / 2 - 1;
2064  else if (chamber.substr(0, 3) == "EOS")
2065  binNum = 61 + 2 * eta + (phi - 10) / 2 - 1;
2066  else
2067  ATH_MSG_INFO("chamber " << chamber << " didn't exist in crate Ex03");
2068  return binNum - 1;
2069  } else if (crate == 4) { // EA04, EC04
2070  if (chamber.substr(0, 3) == "BEE")
2071  binNum = 2 * eta + (phi - 14) / 2 - 1;
2072  else if (chamber.substr(0, 3) == "BIS")
2073  binNum = 4 + 2 * (eta - 6) + (phi - 14) / 2 - 1;
2074  else if (chamber.substr(0, 3) == "EEL")
2075  binNum = 8 + 2 * eta + (phi - 13) / 2 - 1;
2076  else if (chamber.substr(0, 3) == "EES")
2077  binNum = 12 + 2 * eta + (phi - 14) / 2 - 1;
2078  else if (chamber.substr(0, 3) == "EIL")
2079  binNum = 16 + 2 * eta + (phi - 13) / 2 - 1;
2080  else if (chamber.substr(0, 3) == "EIS")
2081  binNum = 24 + 2 * eta + (phi - 14) / 2 - 1;
2082  else if (chamber.substr(0, 3) == "EML")
2083  binNum = 28 + 2 * eta + (phi - 13) / 2 - 1;
2084  else if (chamber.substr(0, 3) == "EMS")
2085  binNum = 38 + 2 * eta + (phi - 14) / 2 - 1;
2086  else if (chamber.substr(0, 3) == "EOL")
2087  binNum = 48 + 2 * eta + (phi - 13) / 2 - 1;
2088  else if (chamber.substr(0, 3) == "EOS")
2089  binNum = 60 + 2 * eta + (phi - 14) / 2 - 1;
2090  else
2091  ATH_MSG_INFO("chamber " << chamber << " didn't exist in crate Ex04");
2092  return binNum - 1;
2093  }
2094  }
2095  return -1;
2096 }

◆ get_bin_for_LB_hist()

int MdtRawDataValAlg::get_bin_for_LB_hist ( int  region,
int  layer,
int  phi,
int  eta,
bool  isBIM 
)
staticprivate

Definition at line 1229 of file MDTRawDataUtils.cxx.

1229  {
1230  if (region == 0 || region == 1) { // Barrel
1231 
1232  if (layer == 0) { // Inner
1233  if (eta < 6) {
1234  if (phi < 11 && !isBIM)
1235  return 18 * (eta - 1) + phi;
1236  else if ((phi == 10 && isBIM) || (phi < 15 && !isBIM))
1237  return 18 * (eta - 1) + phi + 1;
1238  else
1239  return 18 * (eta - 1) + phi + 2;
1240  } else if (eta == 6)
1241  return 90 + phi;
1242  else if (eta == 7)
1243  return 106 + (phi / 2);
1244  else if (eta == 8)
1245  return 114 + (phi / 2);
1246  }
1247 
1248  else if (layer == 1) { // Middle
1249  // 95 = 1 + 16 + 16 + 16 + 16 + 16 + 14 total number of phi sectors (+1)
1250  // in the last eta-sector (6) there is no phi-sector 13; ie there are no chambers BML6A13 and BML6C13, so there are only 14 phi
1251  // sectos we move the bin of phi=14 directly above phi=12 so there is no white line in the histogram
1252  if (eta == 6 && phi > 11)
1253  return 16 * (eta - 1) + phi - 1;
1254  else
1255  return 16 * (eta - 1) + phi;
1256 
1257  } else if (layer == 2 && region == 0) { // Outer, side A (must be separated due to presence of eta=0 chambers)
1258  if (eta == 0 && phi == 11)
1259  return 0;
1260  else if (eta == 0 && phi == 13)
1261  return 1;
1262  else if (eta < 7)
1263  return 16 * (eta - 1) + phi + 2;
1264  else if (eta == 7 && phi == 11)
1265  return 98;
1266  else if (eta == 7 && phi == 13)
1267  return 99;
1268  else if (eta == 8 && phi == 11)
1269  return 100;
1270  else if (eta == 8 && phi == 13)
1271  return 101;
1272  } else if (layer == 3 && region == 0) { // Extra: put with outer
1273  return 102 + 8 * (eta - 1) + (phi - 1) / 2;
1274  } else if (layer == 2 && region == 1) { // Outer, side C
1275  if (eta < 7)
1276  return 16 * (eta - 1) + phi;
1277  else if (eta == 7 && phi == 11)
1278  return 96;
1279  else if (eta == 7 && phi == 13)
1280  return 97;
1281  else if (eta == 8 && phi == 11)
1282  return 98;
1283  else if (eta == 8 && phi == 13)
1284  return 99;
1285  } else if (layer == 3 && region == 1) { // Extra: put with outer
1286  return 100 + 8 * (eta - 1) + (phi - 1) / 2;
1287  }
1288 
1289  }
1290 
1291  else { // Endcap
1292  if (layer == 0) { // Inner
1293  if (eta < 3)
1294  return 16 * (eta - 1) + phi;
1295  else if (eta == 3)
1296  return 32 + phi / 2;
1297  else if (eta == 4)
1298  return 40 + phi / 2;
1299  else if (eta == 5)
1300  return 48 + phi / 8;
1301  } else if (layer == 1) { // Middle
1302  return 16 * (eta - 1) + phi;
1303  } else if (layer == 2) { // Outer
1304  return 16 * (eta - 1) + phi;
1305  } else if (layer == 3 && region == 2) { // Extra A: put with outer. Asymmetry between A and C
1306  if (eta == 1 && phi == 2) return 96;
1307  if (eta == 1 && phi == 4) return 97;
1308  if (eta == 1 && phi == 10) return 98;
1309  if (eta == 1 && phi == 12) return 99;
1310  if (eta == 2 && phi == 2) return 100;
1311  if (eta == 2 && phi == 10) return 101;
1312  if (eta == 2 && phi == 12) return 102;
1313  } else if (layer == 3 && region == 3) { // Extra C: put with outer.
1314  if (eta == 1 || phi < 5)
1315  return 80 + 16 * eta + phi;
1316  else
1317  return 79 + 16 * eta + phi; //(missing eta = 2, phi = 5)
1318  }
1319  }
1320 
1321  return -1;
1322 }

◆ get_nEvents()

unsigned int ManagedMonitorToolBase::get_nEvents ( ) const
inlineprotectedinherited

Definition at line 754 of file ManagedMonitorToolBase.h.

754  {
755  return m_nEvents;
756  }

◆ get_procNEventsProp()

long ManagedMonitorToolBase::get_procNEventsProp ( ) const
inlineprotectedinherited

Definition at line 758 of file ManagedMonitorToolBase.h.

758  {
759  return m_procNEventsProp;
760  }

◆ getChamber()

StatusCode MdtRawDataValAlg::getChamber ( IdentifierHash  id,
MDTChamber *&  chamber 
)
private

Definition at line 1220 of file MDTRawDataUtils.cxx.

1220  {
1221  if (id >= m_hist_hash_list.size()) return StatusCode::FAILURE;
1222 
1223  chamber = m_hist_hash_list[id].get();
1224  if (!chamber) return StatusCode::FAILURE;
1225 
1226  return StatusCode::SUCCESS;
1227 }

◆ getChamberName() [1/2]

std::string MdtRawDataValAlg::getChamberName ( const Identifier id)
private

Definition at line 1211 of file MDTRawDataUtils.cxx.

1211  {
1212  IdentifierHash idHash{0};
1213  const MdtIdHelper& id_helper = m_idHelperSvc->mdtIdHelper();
1214  id_helper.get_module_hash(id, idHash);
1215  MDTChamber* chamber{nullptr};
1216  if (getChamber(idHash, chamber).isSuccess()) return chamber->getName();
1217  return convertChamberName(id_helper.stationName(id), id_helper.stationEta(id), id_helper.stationPhi(id), "MDT");
1218 }

◆ getChamberName() [2/2]

std::string MdtRawDataValAlg::getChamberName ( const Muon::MdtPrepData hit)
private

Definition at line 1209 of file MDTRawDataUtils.cxx.

1209 { return getChamberName(hit->identify()); }

◆ GetEventNum()

StatusCode MdtRawDataValAlg::GetEventNum ( )
private

Definition at line 1175 of file MDTRawDataUtils.cxx.

1175  {
1176  m_eventNum = -1;
1177 
1179 
1180  m_eventNum = evt->eventNumber();
1181 
1182  return StatusCode::SUCCESS;
1183 }

◆ getHist() [1/6]

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

Definition at line 1614 of file ManagedMonitorToolBase.cxx.

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

◆ getHist() [2/6]

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

Definition at line 1606 of file ManagedMonitorToolBase.cxx.

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

◆ getHist() [3/6]

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

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

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

Definition at line 1598 of file ManagedMonitorToolBase.cxx.

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

◆ getHist() [4/6]

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

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

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

Definition at line 1588 of file ManagedMonitorToolBase.cxx.

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

◆ getHist() [5/6]

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

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

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

Definition at line 1640 of file ManagedMonitorToolBase.cxx.

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

◆ getHist() [6/6]

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

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

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

Definition at line 1630 of file ManagedMonitorToolBase.cxx.

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

◆ getNewStreamNameFcn()

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

Definition at line 2387 of file ManagedMonitorToolBase.cxx.

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

◆ GetTimingInfo()

StatusCode MdtRawDataValAlg::GetTimingInfo ( )
private

Definition at line 1139 of file MDTRawDataUtils.cxx.

1139  {
1140  m_time = -1;
1141 
1143  m_time = (1000000000L * (uint64_t)evt->timeStamp() + evt->timeStampNSOffset()) * 0.000000001;
1144 
1145  // protection against simulated cosmics when the trigger_info() of the event_info is not filled and returns a null pointer.
1146  // trigtype = eventInfo->level1TriggerType();
1147 
1148  return StatusCode::SUCCESS;
1149 }

◆ GetTriggerType()

int MdtRawDataValAlg::GetTriggerType ( )
inlineprivate

Definition at line 160 of file MdtRawDataValAlg.h.

160 { return m_trigtype; }

◆ GetTubeMax()

int MdtRawDataValAlg::GetTubeMax ( const Identifier digcoll_id,
std::string_view  hardware_name 
)
private

Definition at line 1096 of file MDTRawDataUtils.cxx.

1096  {
1097  int numtubes = m_idHelperSvc->mdtIdHelper().tubeMax(digcoll_id);
1098  int numlayers = m_idHelperSvc->mdtIdHelper().tubeLayerMax(digcoll_id);
1099  int numML = m_idHelperSvc->mdtIdHelper().numberOfMultilayers(digcoll_id);
1100  int tubeMax = numtubes * numlayers * numML;
1101 
1102  if (hardware_name.substr(0, 4) == "BIS8") // Why does mdtIdHelper get this one wrong?
1103  tubeMax = 16 * 3;
1104  if (hardware_name.substr(0, 4) == "BIR5")
1105  // tubeMax = 21*4 + 24*4;
1106  tubeMax = 24 * 4 + 24 * 4;
1107  if (hardware_name.substr(0, 4) == "BIR2" || hardware_name.substr(0, 4) == "BIR4")
1108  // tubeMax = 27*4 + 30*4;
1109  tubeMax = 30 * 4 + 30 * 4;
1110  if (hardware_name.substr(0, 4) == "BIR3") tubeMax = 36 * 4 + 36 * 4;
1111  if (hardware_name.substr(0, 4) == "BIR1")
1112  // tubeMax = 24*4 + 30*4;
1113  tubeMax = 30 * 4 + 30 * 4;
1114  if (hardware_name.substr(0, 4) == "BMS4" || hardware_name.substr(0, 4) == "BMS6")
1115  // tubeMax = 40*3 + 48*3;
1116  tubeMax = 48 * 3 + 48 * 3;
1117  if (hardware_name == "EEL1A05" || hardware_name == "EEL1C05") tubeMax = 48 * 3 + 48 * 3;
1118  if (hardware_name.substr(0, 3) == "BME") tubeMax = 546;
1119 
1120  std::string hardware_namestr(hardware_name);
1121  std::map<string, float>::iterator iter_tubesperchamber = m_tubesperchamber_map.find(hardware_namestr);
1122  if (iter_tubesperchamber == m_tubesperchamber_map.end()) {
1123  m_tubesperchamber_map.insert(make_pair(hardware_namestr, tubeMax));
1124  ATH_MSG_DEBUG("Chamber " << hardware_name << " has " << tubeMax << " tubes.");
1125  } else {
1126  ATH_MSG_WARNING("GetTubeMax: computing tubes per chamber twice for this chamber!");
1127  }
1128 
1129  return tubeMax;
1130 }

◆ handleEvent_effCalc()

StatusCode MdtRawDataValAlg::handleEvent_effCalc ( const Trk::SegmentCollection segms)
private

Definition at line 1711 of file MdtRawDataValAlg.cxx.

1712  { //, const Muon::MdtPrepDataContainer* mdt_container) {
1713  StatusCode sc = StatusCode::SUCCESS;
1714  std::string type = "MDT";
1715  std::set<TubeTraversedBySegment, TubeTraversedBySegment_cmp> store_effTubes;
1716  std::set<Identifier> store_ROTs;
1717 
1718  // MuonDetectorManager from the conditions store
1720  const MuonGM::MuonDetectorManager* MuonDetMgr = DetectorManagerHandle.cptr();
1721  if (MuonDetMgr == nullptr) {
1722  ATH_MSG_ERROR("Null pointer to the read MuonDetectorManager conditions object");
1723  return StatusCode::FAILURE;
1724  }
1725 
1726  // LOOP OVER SEGMENTS
1727  for (const auto* segm : *segms) {
1728  const Muon::MuonSegment* segment = dynamic_cast<const Muon::MuonSegment*>(segm);
1729  if (segment == nullptr) {
1730  ATH_MSG_DEBUG("no pointer to segment!!!");
1731  break;
1732  }
1733  if (segment->numberOfContainedROTs() < m_nb_hits || segment->numberOfContainedROTs() <= 0 ||
1734  segment->fitQuality()->chiSquared() / segment->fitQuality()->doubleNumberDoF() > m_chi2_cut) {
1735  continue;
1736  }
1737 
1738  // Gather hits used in segment
1739  std::vector<Identifier> ROTs_chamber;
1740  std::vector<int> ROTs_tube;
1741  std::vector<int> ROTs_L;
1742  std::vector<int> ROTs_ML;
1743  std::vector<float> ROTs_DR;
1744  std::vector<float> ROTs_DRerr;
1745  std::vector<float> ROTs_DT;
1746  for (unsigned int irot = 0; irot < segment->numberOfContainedROTs(); irot++) {
1747  const Trk::RIO_OnTrack* rot = segment->rioOnTrack(irot);
1748  const Muon::MdtDriftCircleOnTrack* mrot = dynamic_cast<const Muon::MdtDriftCircleOnTrack*>(rot);
1749  if (mrot) {
1750  Identifier tmpid = rot->identify();
1751  IdentifierHash idHash;
1752  MDTChamber* chamber = nullptr;
1753  m_idHelperSvc->mdtIdHelper().get_module_hash(tmpid, idHash);
1754  sc = getChamber(idHash, chamber);
1755  std::string chambername = chamber->getName();
1756  float adc = mrot->prepRawData()->adc();
1757  if (chambername.compare(0, 3, "BMG") == 0) adc /= 4.;
1759  if (store_ROTs.insert(tmpid).second) { // Let's not double-count hits belonging to multiple segments
1760 
1761  double tdc = mrot->prepRawData()->tdc() * 25.0 / 32.0;
1762  // Note: the BMG is digitized with 200ps which is not same as other MDT chambers with 25/32=781.25ps
1763  if (chambername.compare(0, 3, "BMG") == 0) tdc = mrot->prepRawData()->tdc() * 0.2;
1764  // double tdc = mrot->driftTime()+500;
1765  int iregion = chamber->GetRegionEnum();
1766  int ilayer = chamber->GetLayerEnum();
1767  int statphi = chamber->GetStationPhi();
1768  int ibarrel_endcap = chamber->GetBarrelEndcapEnum();
1769  // hard cut to adc only to present this histogram
1770  if (m_overalladc_segm_PR_Lumi[iregion] && adc > 50.) m_overalladc_segm_PR_Lumi[iregion]->Fill(adc);
1771  if (adc > m_ADCCut) { // This is somewhat redundant because this is usual cut for segment-reconstruction, but that's OK
1772  if (statphi > 15) {
1773  ATH_MSG_ERROR("MDT StationPhi: " << statphi << " Is too high. Chamber name: " << chamber->getName());
1774  continue;
1775  }
1776 
1777  if (m_mdttdccut_sector[iregion][ilayer][statphi]) m_mdttdccut_sector[iregion][ilayer][statphi]->Fill(tdc);
1778  // Fill Overview Plots
1780  if (m_overalltdccut_segm_PR_Lumi[iregion]) m_overalltdccut_segm_PR_Lumi[iregion]->Fill(tdc);
1781 
1783  m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi[ibarrel_endcap]->AddBinContent(
1784  chamber->GetMDTHitsPerChamber_IMO_Bin(), 1.);
1785  m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi[ibarrel_endcap]->SetEntries(
1787  }
1788  }
1789  int mdtMultLayer = m_idHelperSvc->mdtIdHelper().multilayer(tmpid);
1790  if (chamber->mdtadc_onSegm_ML1 && mdtMultLayer == 1) { chamber->mdtadc_onSegm_ML1->Fill(adc); }
1791  if (chamber->mdtadc_onSegm_ML2 && mdtMultLayer == 2) { chamber->mdtadc_onSegm_ML2->Fill(adc); }
1792  }
1793  // This information needs to be stored fully for each segment (for calculations below), so deal with these duplicates later
1794  // (otherwise we may not check a traversed ML for a differently pointing overlapping segment, for example)
1795 
1796  ROTs_chamber.push_back(tmpid);
1797  ROTs_ML.push_back(m_idHelperSvc->mdtIdHelper().multilayer(tmpid));
1798  ROTs_L.push_back(m_idHelperSvc->mdtIdHelper().tubeLayer(tmpid));
1799  ROTs_tube.push_back(m_idHelperSvc->mdtIdHelper().tube(tmpid));
1800  ROTs_DR.push_back(mrot->driftRadius());
1801  ROTs_DRerr.push_back((mrot->localCovariance())(Trk::driftRadius, Trk::driftRadius)); // always returns value 2.0
1802  ROTs_DT.push_back(mrot->driftTime());
1803  }
1804  }
1805  // Finished gathering hits used in segment
1806 
1807  if (m_doChamberHists) { // Don't perform this block if not doing chamber by chamber hists
1808 
1809  // Find unique chambers (since above we stored one chamber for every tube)
1810  // Also store the MLs affected by the ROTs, since we don't necessarily want to look for traversed tubes in entire chamber
1811  std::vector<Identifier> unique_chambers;
1812  std::vector<std::vector<int> > unique_chambers_ML;
1813  for (unsigned i = 0; i < ROTs_chamber.size(); i++) {
1814  bool isUnique = true;
1815  for (unsigned j = 0; j < unique_chambers.size(); j++) {
1816  if (getChamberName(ROTs_chamber.at(i)) == getChamberName(unique_chambers.at(j))) {
1817  isUnique = false;
1818  if (!AinB(ROTs_ML.at(i), unique_chambers_ML.at(j))) unique_chambers_ML.at(j).push_back(ROTs_ML.at(i));
1819  break;
1820  }
1821  }
1822  if (isUnique) {
1823  unique_chambers.push_back(ROTs_chamber.at(i));
1824  std::vector<int> tmp_ML;
1825  tmp_ML.push_back(ROTs_ML.at(i));
1826  unique_chambers_ML.push_back(tmp_ML);
1827  }
1828  }
1829  // Done finding unique chambers
1830 
1831  // Loop over the unique chambers
1832  // Here we store the tubes in each chamber that were traversed by the segment
1833  std::vector<Identifier> traversed_station_id;
1834  std::vector<int> traversed_tube;
1835  std::vector<int> traversed_L;
1836  std::vector<int> traversed_ML;
1837  std::vector<float> traversed_distance;
1838  for (unsigned i_chamber = 0; i_chamber < unique_chambers.size(); i_chamber++) {
1839  Identifier station_id = unique_chambers.at(i_chamber);
1840  if (!m_idHelperSvc->isMdt(station_id)) { ATH_MSG_DEBUG("Found non-MDT station identifier in segm-based mdt eff calc"); }
1841  std::string hardware_name = getChamberName(station_id);
1842 
1843  // SEGMENT track
1844  const MuonGM::MdtReadoutElement* detEl = MuonDetMgr->getMdtReadoutElement(station_id);
1845  Amg::Transform3D gToStation = detEl->GlobalToAmdbLRSTransform();
1846  Amg::Vector3D segPosG(segment->globalPosition());
1847  Amg::Vector3D segDirG(segment->globalDirection());
1848  Amg::Vector3D segPosL = gToStation * segPosG;
1849  Amg::Vector3D segDirL = gToStation.linear() * segDirG;
1850  MuonCalib::MTStraightLine segment_track =
1851  MuonCalib::MTStraightLine(segPosL, segDirL, Amg::Vector3D(0, 0, 0), Amg::Vector3D(0, 0, 0));
1852 
1853  // Loop over tubes in chamber, find those along segment
1854  for (int ML : unique_chambers_ML.at(i_chamber)) {
1855  Identifier newId = m_idHelperSvc->mdtIdHelper().channelID(
1856  hardware_name.substr(0, 3), m_idHelperSvc->mdtIdHelper().stationEta(station_id),
1857  m_idHelperSvc->mdtIdHelper().stationPhi(station_id), ML, 1, 1);
1858  auto [tubeMin, tubeMax] = m_idHelperSvc->mdtIdHelper().tubeMinMax(newId);
1859  auto [tubeLayerMin, tubeLayerMax] = m_idHelperSvc->mdtIdHelper().tubeLayerMinMax(newId);
1860  CorrectTubeMax(hardware_name, tubeMax);
1861  CorrectLayerMax(hardware_name, tubeLayerMax);
1862  for (int i_tube = tubeMin; i_tube <= tubeMax; i_tube++) {
1863  for (int i_layer = tubeLayerMin; i_layer <= tubeLayerMax; i_layer++) {
1864  const MuonGM::MdtReadoutElement* MdtRoEl = MuonDetMgr->getMdtReadoutElement(newId);
1865  Identifier tubeId = m_idHelperSvc->mdtIdHelper().channelID(newId, ML, i_layer, i_tube);
1866  if (m_BMGpresent && m_idHelperSvc->mdtIdHelper().stationName(newId) == m_BMGid) {
1867  std::map<Identifier, std::vector<Identifier> >::iterator myIt = m_DeadChannels.find(MdtRoEl->identify());
1868  if (myIt != m_DeadChannels.end()) {
1869  if (std::find((myIt->second).begin(), (myIt->second).end(), tubeId) != (myIt->second).end()) {
1870  ATH_MSG_DEBUG("Skipping tube with identifier "
1871  << m_idHelperSvc->mdtIdHelper().show_to_string(tubeId));
1872  continue;
1873  }
1874  }
1875  }
1876  Amg::Vector3D TubePos = MdtRoEl->GlobalToAmdbLRSCoords(MdtRoEl->tubePos(tubeId));
1877  MuonCalib::MTStraightLine tube_track =
1878  MuonCalib::MTStraightLine(TubePos, Amg::Vector3D::UnitX(), Amg::Vector3D(0, 0, 0), Amg::Vector3D(0, 0, 0));
1879  double distance = std::abs(segment_track.signDistFrom(tube_track));
1880  if (distance < (MdtRoEl->innerTubeRadius())) {
1881  traversed_station_id.push_back(station_id);
1882  traversed_tube.push_back(i_tube);
1883  traversed_L.push_back(i_layer);
1884  traversed_ML.push_back(ML);
1885  traversed_distance.push_back(segment_track.signDistFrom(tube_track));
1886  }
1887  }
1888  }
1889  }
1890  }
1891  // Done looping over the unqiue chambers
1892 
1893  // Loop over traversed tubes that were stored above
1894  // Here we fill the DRvsDT/DRvsSegD histos, as well is unique hits and traversed tubes to calculate efficiencies
1895  if (traversed_tube.size() < 20) { // quality cut here -- 20 traversed tubes is ridiculous and generates low efficiencies (these
1896  // are due to non-pointing segments)
1897  for (unsigned k = 0; k < traversed_tube.size(); k++) {
1898  std::string hardware_name = getChamberName(traversed_station_id.at(k));
1899  // GET HISTS
1900  IdentifierHash idHash;
1901  m_idHelperSvc->mdtIdHelper().get_module_hash(traversed_station_id.at(k), idHash);
1903  sc = getChamber(idHash, chamber);
1904  if (!sc.isSuccess()) {
1905  ATH_MSG_ERROR("Could Not Retrieve MDTChamber w/ ID " << idHash);
1906  return sc;
1907  }
1908 
1909  bool hit_flag = false;
1910  for (unsigned j = 0; j < ROTs_tube.size(); j++) {
1911  if ((getChamberName(ROTs_chamber.at(j)) == hardware_name) && (traversed_tube.at(k) == ROTs_tube.at(j)) &&
1912  (traversed_L.at(k) == ROTs_L.at(j)) &&
1913  (traversed_ML.at(k) == ROTs_ML.at(j))) { // found traversed tube with hit used in segment
1914  hit_flag = true;
1915  if (chamber->mdt_DRvsDT) chamber->mdt_DRvsDT->Fill(ROTs_DR.at(j), ROTs_DT.at(j));
1916  if (chamber->mdt_DRvsDRerr)
1917  chamber->mdt_DRvsDRerr->Fill(ROTs_DR.at(j), ROTs_DRerr.at(j)); // plot appears useless
1918  if (chamber->mdt_DRvsSegD) chamber->mdt_DRvsSegD->Fill(ROTs_DR.at(j), traversed_distance.at(k));
1919  break;
1920  }
1921  }
1922  Identifier newId = m_idHelperSvc->mdtIdHelper().channelID(
1923  hardware_name.substr(0, 3), m_idHelperSvc->mdtIdHelper().stationEta(traversed_station_id.at(k)),
1924  m_idHelperSvc->mdtIdHelper().stationPhi(traversed_station_id.at(k)), traversed_ML.at(k), 1, 1);
1925  int tubeLayerMax = m_idHelperSvc->mdtIdHelper().tubeLayerMax(newId);
1926  m_idHelperSvc->mdtIdHelper().get_module_hash(newId, idHash);
1927 
1928  CorrectLayerMax(hardware_name, tubeLayerMax); // ChamberTubeNumberCorrection handles the tubeMax problem
1929  int mdtlayer = ((traversed_L.at(k) - 1) + (traversed_ML.at(k) - 1) * tubeLayerMax);
1930  int tubeMax = m_idHelperSvc->mdtIdHelper().tubeMax(newId);
1931  int ibin = traversed_tube.at(k) + mdtlayer * tubeMax;
1932  ChamberTubeNumberCorrection(ibin, hardware_name, traversed_tube.at(k), mdtlayer);
1933  // Store info for eff calc
1934  // (Here we make sure we are removing duplicates from overlapping segments by using sets)
1936  TubeTraversedBySegment tmp_effTube = TubeTraversedBySegment(hardware_name, ibin, hit_flag, idHash);
1937  TubeTraversedBySegment tmp_effTube_Hit = TubeTraversedBySegment(hardware_name, ibin, true, idHash);
1938  TubeTraversedBySegment tmp_effTube_noHit = TubeTraversedBySegment(hardware_name, ibin, false, idHash);
1939  it = store_effTubes.find(tmp_effTube_Hit);
1940  if (hit_flag || (it == store_effTubes.end()))
1941  store_effTubes.insert(tmp_effTube); // Insert if w/hit, but if w/o hit then only insert if no already stored w/ hit
1942  it = store_effTubes.find(tmp_effTube_noHit);
1943  if (hit_flag && (it != store_effTubes.end()))
1944  store_effTubes.erase(it); // If w/ hit, and the same tube is stored w/o hit, remove duplicate w/o hit
1945  }
1946  }
1947  // Done looping over traversed tubes
1948 
1949  } // m_doChamberHists
1950  }
1951 
1952  // Fill effentries/effcounts hists for efficiency calculation
1953  if (m_doChamberHists) { // Don't perform this block if not doing chamber by chamber hists
1954  for (const auto& store_effTube : store_effTubes) {
1955  // GET HISTS
1957  sc = getChamber(store_effTube.idHash, chamber);
1958  if (!sc.isSuccess()) {
1959  ATH_MSG_ERROR("Could Not Retrieve MDTChamber w/ ID " << store_effTube.idHash);
1960  return sc;
1961  }
1962  if (chamber->mdt_effEntries) chamber->mdt_effEntries->Fill(store_effTube.tubeBin);
1963  if (store_effTube.isHit && chamber->mdt_effCounts) { chamber->mdt_effCounts->Fill(store_effTube.tubeBin); }
1964  }
1965  }
1966 
1967  return sc;
1968 }

◆ HasTrigBARREL()

bool MdtRawDataValAlg::HasTrigBARREL ( )
inlineprivate

Definition at line 161 of file MdtRawDataValAlg.h.

161 { return m_trig_BARREL; }

◆ HasTrigENDCAP()

bool MdtRawDataValAlg::HasTrigENDCAP ( )
inlineprivate

Definition at line 162 of file MdtRawDataValAlg.h.

162 { return m_trig_ENDCAP; }

◆ initDeadChannels()

void MdtRawDataValAlg::initDeadChannels ( const MuonGM::MdtReadoutElement mydetEl)
private

Definition at line 1970 of file MdtRawDataValAlg.cxx.

1970  {
1971  PVConstLink cv = mydetEl->getMaterialGeom(); // it is "Multilayer"
1972  int nGrandchildren = cv->getNChildVols();
1973  if (nGrandchildren <= 0) return;
1974 
1975  std::vector<int> tubes;
1976  geoGetIds([&](int id) { tubes.push_back(id); }, &*cv);
1977  std::sort(tubes.begin(), tubes.end());
1978 
1979  Identifier detElId = mydetEl->identify();
1980 
1981  int name = m_idHelperSvc->mdtIdHelper().stationName(detElId);
1982  int eta = m_idHelperSvc->mdtIdHelper().stationEta(detElId);
1983  int phi = m_idHelperSvc->mdtIdHelper().stationPhi(detElId);
1984  int ml = m_idHelperSvc->mdtIdHelper().multilayer(detElId);
1985  std::vector<Identifier> deadTubes;
1986 
1987  std::vector<int>::iterator it = tubes.begin();
1988  for (int layer = 1; layer <= mydetEl->getNLayers(); layer++) {
1989  for (int tube = 1; tube <= mydetEl->getNtubesperlayer(); tube++) {
1990  int want_id = layer * maxNTubesPerLayer + tube;
1991  if (it != tubes.end() && *it == want_id) {
1992  ++it;
1993  } else {
1994  it = std::lower_bound(tubes.begin(), tubes.end(), want_id);
1995  if (it != tubes.end() && *it == want_id) {
1996  ++it;
1997  } else {
1998  Identifier deadTubeId = m_idHelperSvc->mdtIdHelper().channelID(name, eta, phi, ml, layer, tube);
1999  deadTubes.push_back(deadTubeId);
2000  ATH_MSG_VERBOSE("adding dead tube (" << tube << "), layer(" << layer << "), phi(" << phi << "), eta(" << eta
2001  << "), name(" << name << "), multilayerId(" << ml << ") and identifier "
2002  << deadTubeId << " .");
2003  }
2004  }
2005  }
2006  }
2007  std::sort(deadTubes.begin(), deadTubes.end());
2008  m_DeadChannels[detElId] = deadTubes;
2009 }

◆ initialize()

StatusCode MdtRawDataValAlg::initialize ( )
virtual

Reimplemented from ManagedMonitorToolBase.

Definition at line 121 of file MdtRawDataValAlg.cxx.

123 {
124  // initialize to stop coverity bugs
125  m_MdtNHitsvsRpcNHits = nullptr;
126  for (unsigned int i = 0; i < 4; i++) {
127  m_overalltdcadcPRLumi[i] = nullptr;
128  m_overalltdccut_segm_PR_Lumi[i] = nullptr;
129  m_overalladc_segm_PR_Lumi[i] = nullptr;
130  m_overalladcPRLumi[i] = nullptr;
131  m_overalladccutPRLumi[i] = nullptr;
132  m_overalltdccutPRLumi_RPCtrig[i] = nullptr;
133  m_overalltdccutPRLumi_TGCtrig[i] = nullptr;
134  m_overallPR_mdt_DRvsDT[i] = nullptr;
135  m_overallPR_mdt_DRvsSegD[i] = nullptr;
137  m_overalladcPR_HighOcc[i] = nullptr;
138  m_overalltdcPR_HighOcc[i] = nullptr;
139  m_overalltdcadcPR_HighOcc[i] = nullptr;
140  m_overalltdcPR_HighOcc_ADCCut[i] = nullptr;
141 
142  if (i == 3) continue;
143  m_mdtxydet[i] = nullptr;
144  m_mdtrzdet[i] = nullptr;
145  m_mdthitsperML_byLayer[i] = nullptr;
146  if (i == 2) continue;
150  }
151  for (auto& i : m_mdtchamberstatphislice) { i = nullptr; }
152 
153  // init message stream
154  ATH_MSG_INFO("initialize MdtRawDataValAlg");
155 
156  ATH_MSG_DEBUG("******************");
157  ATH_MSG_DEBUG("doMdtESD: " << m_doMdtESD);
158  ATH_MSG_DEBUG("******************");
159 
160  // If Online ensure that lowStat histograms are made at the runLevel and that _lowStat suffix is suppressed
161  if (m_isOnline)
162  m_mg = std::make_unique<MDTMonGroupStruct>(this, m_title, ManagedMonitorToolBase::run,
163  ManagedMonitorToolBase::MgmtAttr_t::ATTRIB_UNMANAGED, "");
164  else
165  m_mg = std::make_unique<MDTMonGroupStruct>(this, m_title, ManagedMonitorToolBase::lowStat,
166  ManagedMonitorToolBase::MgmtAttr_t::ATTRIB_UNMANAGED, "_lowStat");
167 
168  // If online monitoring turn off chamber by chamber hists
169  if (m_isOnline) m_doChamberHists = false;
170 
171  // MuonDetectorManager from the conditions store
173  ATH_CHECK(m_idHelperSvc.retrieve());
174  ATH_CHECK(m_MdtDQFilterTools.retrieve());
175  ATH_CHECK(m_muonSelectionTool.retrieve());
177 
178  // back to MDTS...
179  if (m_maskNoisyTubes)
180  m_masked_tubes = std::make_unique<MDTNoisyTubes>();
181  else
182  m_masked_tubes = std::make_unique<MDTNoisyTubes>(false);
183  mdtchamberId();
184 
185  ATH_CHECK(m_l1RoiKey.initialize());
186  ATH_CHECK(m_muonKey.initialize());
187  ATH_CHECK(m_segm_type.initialize());
188  ATH_CHECK(m_key_mdt.initialize());
189  ATH_CHECK(m_key_rpc.initialize());
191 
193 
194  // MuonDetectorManager from the Detector Store
195  std::string managerName = "Muon";
196  const MuonGM::MuonDetectorManager* MuonDetMgrDS = nullptr;
197  ATH_CHECK(detStore()->retrieve(MuonDetMgrDS));
198  ATH_MSG_DEBUG(" Found the MuonGeoModel Manager from the Detector Store");
199 
200  m_BMGpresent = m_idHelperSvc->mdtIdHelper().stationNameIndex("BMG") != -1;
201  if (m_BMGpresent) {
202  ATH_MSG_INFO("Processing configuration for layouts with BMG chambers.");
203  m_BMGid = m_idHelperSvc->mdtIdHelper().stationNameIndex("BMG");
204  for (int phi = 6; phi < 8; phi++) { // phi sectors
205  for (int eta = 1; eta < 4; eta++) { // eta sectors
206  for (int side = -1; side < 2; side += 2) { // side
207  if (!MuonDetMgrDS->getMuonStation("BMG", side * eta, phi)) continue;
208  for (int roe = 1; roe <= (MuonDetMgrDS->getMuonStation("BMG", side * eta, phi))->nMuonReadoutElements();
209  roe++) { // iterate on readout elemets
210  const MuonGM::MdtReadoutElement* mdtRE = dynamic_cast<const MuonGM::MdtReadoutElement*>(
211  (MuonDetMgrDS->getMuonStation("BMG", side * eta, phi))->getMuonReadoutElement(roe)); // has to be an MDT
212  if (mdtRE) initDeadChannels(mdtRE);
213  }
214  }
215  }
216  }
217  }
218 
219  return StatusCode::SUCCESS;
220 }

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

static const InterfaceID& IMonitorToolBase::interfaceID ( )
inlinestaticinherited

Definition at line 29 of file IMonitorToolBase.h.

29 { return IID_IMonitorToolBase; }

◆ intervalEnumToString()

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

Converts a LevelOfDetail_t to a string of the same name.

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

Definition at line 587 of file ManagedMonitorToolBase.cxx.

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

◆ intervalStringToEnum()

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

Converts a string to the corresponding Interval_t.

Definition at line 629 of file ManagedMonitorToolBase.cxx.

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

◆ isATLASReady()

bool MdtRawDataValAlg::isATLASReady ( ) const
inlineprivate

Definition at line 112 of file MdtRawDataValAlg.h.

112 { return m_atlas_ready; }

◆ lbAverageInteractionsPerCrossing()

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

Average mu, i.e.

<mu>

Definition at line 1923 of file ManagedMonitorToolBase.cxx.

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

◆ lbAverageLivefraction()

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

Average luminosity livefraction.

Definition at line 1992 of file ManagedMonitorToolBase.cxx.

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

◆ lbAverageLuminosity()

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

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

Definition at line 1959 of file ManagedMonitorToolBase.cxx.

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

◆ lbDuration()

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

Luminosity block time (in seconds)

Definition at line 2046 of file ManagedMonitorToolBase.cxx.

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

◆ lbInteractionsPerCrossing()

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

Instantaneous number of interactions, i.e.

mu

Definition at line 1939 of file ManagedMonitorToolBase.cxx.

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

◆ lbLuminosityPerBCID()

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

Instantaneous luminosity.

Definition at line 1975 of file ManagedMonitorToolBase.cxx.

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

◆ lbLumiWeight()

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

Average Integrated Luminosity Live Fraction.

Definition at line 2030 of file ManagedMonitorToolBase.cxx.

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

◆ livefractionPerBCID()

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

Livefraction per bunch crossing ID.

Definition at line 2011 of file ManagedMonitorToolBase.cxx.

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

◆ mdtchamberId()

void MdtRawDataValAlg::mdtchamberId ( )
private

Definition at line 1054 of file MDTRawDataUtils.cxx.

1054  {
1055  ATH_MSG_DEBUG("in MDT ChambersIDvector");
1056 
1057  std::vector<Identifier>::const_iterator idfirst = m_idHelperSvc->mdtIdHelper().module_begin();
1058  std::vector<Identifier>::const_iterator idlast = m_idHelperSvc->mdtIdHelper().module_end();
1059 
1060  IdContext mdtModuleContext = m_idHelperSvc->mdtIdHelper().module_context();
1061  Identifier Id;
1062  IdentifierHash Idhash;
1063  for (std::vector<Identifier>::const_iterator i = idfirst; i != idlast; ++i) {
1064  Id = *i;
1065  int gethash_code = m_idHelperSvc->mdtIdHelper().get_hash(Id, Idhash, &mdtModuleContext);
1066  m_chambersId.push_back(Id);
1067  m_chambersIdHash.push_back(Idhash);
1068 
1069  std::string extid = m_idHelperSvc->mdtIdHelper().show_to_string(Id);
1070  ATH_MSG_DEBUG("Adding the chamber Identifier: " << extid);
1071  if (gethash_code == 0) {
1072  ATH_MSG_DEBUG(" its hash Id is " << Idhash);
1073  } else {
1074  ATH_MSG_DEBUG(" hash Id NOT computed " << Idhash);
1075  }
1076  }
1077  m_hist_hash_list.resize(m_chambersIdHash.size());
1078 }

◆ mezzmdt()

int MdtRawDataValAlg::mezzmdt ( Identifier  digcoll_id)
private

Definition at line 1081 of file MDTRawDataUtils.cxx.

1081  { // int mezz_chamber, int mezz_eta, int mezz_ml, int mezz_tube, int max_tube) {
1082  int TotmezzTubes = 8;
1083  int tubeLayerMax = m_idHelperSvc->mdtIdHelper().tubeLayerMax(digcoll_id);
1084  int tubeMax = m_idHelperSvc->mdtIdHelper().tubeMax(digcoll_id);
1085  if (tubeLayerMax == 4) TotmezzTubes = 6;
1086  int Imezz = (int)((m_idHelperSvc->mdtIdHelper().tube(digcoll_id) - 1) / TotmezzTubes) +
1087  (int)((m_idHelperSvc->mdtIdHelper().multilayer(digcoll_id) - 1) *
1088  (tubeMax / TotmezzTubes));
1089 
1090  return Imezz;
1091 }

◆ MMTB_DEPRECATED() [1/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfEventsBlock  )
inherited

◆ MMTB_DEPRECATED() [2/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfLowStat  )
inherited

◆ MMTB_DEPRECATED() [3/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfLumiBlock  )
inherited

◆ MMTB_DEPRECATED() [4/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfRun  )
inherited

◆ MMTB_DEPRECATED() [5/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newEventsBlock  )
inherited

◆ MMTB_DEPRECATED() [6/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newHigStatInterval  )
inherited

◆ MMTB_DEPRECATED() [7/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newLowStat  )
inherited

◆ MMTB_DEPRECATED() [8/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newLowStatInterval  )
inherited

◆ MMTB_DEPRECATED() [9/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newLumiBlock  )
inherited

◆ MMTB_DEPRECATED() [10/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newMedStatInterval  )
inherited

◆ MMTB_DEPRECATED() [11/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newRun  )
inherited

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ newEventsBlockFlag()

bool ManagedMonitorToolBase::newEventsBlockFlag ( ) const
inlineprotectedinherited

Definition at line 855 of file ManagedMonitorToolBase.h.

855 { return m_newEventsBlock; }

◆ newHigStatIntervalFlag()

bool ManagedMonitorToolBase::newHigStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 851 of file ManagedMonitorToolBase.h.

851 { return m_newHigStatInterval; }

◆ newLowStatFlag()

bool ManagedMonitorToolBase::newLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 852 of file ManagedMonitorToolBase.h.

852 { return m_newLowStat; }

◆ newLowStatIntervalFlag()

bool ManagedMonitorToolBase::newLowStatIntervalFlag ( ) const
inlineprotectedinherited

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

Definition at line 849 of file ManagedMonitorToolBase.h.

849 { return m_newLowStatInterval; }

◆ newLumiBlockFlag()

bool ManagedMonitorToolBase::newLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 853 of file ManagedMonitorToolBase.h.

853 { return m_newLumiBlock; }

◆ newMedStatIntervalFlag()

bool ManagedMonitorToolBase::newMedStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 850 of file ManagedMonitorToolBase.h.

850 { return m_newMedStatInterval; }

◆ newRunFlag()

bool ManagedMonitorToolBase::newRunFlag ( ) const
inlineprotectedinherited

Definition at line 854 of file ManagedMonitorToolBase.h.

854 { return m_newRun; }

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ parseList()

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

Definition at line 2343 of file ManagedMonitorToolBase.cxx.

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

◆ preSelector()

bool ManagedMonitorToolBase::preSelector ( )
virtualinherited

Implements IMonitorToolBase.

Definition at line 1911 of file ManagedMonitorToolBase.cxx.

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

◆ procHistograms()

StatusCode MdtRawDataValAlg::procHistograms ( )
virtual

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

Fills counts per hardware chambers in phi slice plot

Reimplemented from ManagedMonitorToolBase.

Definition at line 540 of file MdtRawDataValAlg.cxx.

540  {
541  StatusCode sc = StatusCode::SUCCESS;
542  // if(isEndOfEventsBlock) {}
543  if (endOfLumiBlockFlag()) {}
544  // Replicate lowStat histograms to run directory if stable beam
545  if (endOfLumiBlockFlag() && isATLASReady() && !m_isOnline) {
546  // Book tdc adccut per region per lowStat
547  sc = regHist((TH1F*)m_overalltdccut_segm_PR_Lumi[enumBarrelA]->Clone(), m_mg->mongroup_brA_shift);
548  sc = regHist((TH1F*)m_overalltdccut_segm_PR_Lumi[enumBarrelC]->Clone(), m_mg->mongroup_brC_shift);
549  sc = regHist((TH1F*)m_overalltdccut_segm_PR_Lumi[enumEndCapA]->Clone(), m_mg->mongroup_ecA_shift);
550  sc = regHist((TH1F*)m_overalltdccut_segm_PR_Lumi[enumEndCapC]->Clone(), m_mg->mongroup_ecC_shift);
551  sc = regHist((TH1F*)m_overalltdccutPRLumi[enumBarrelA]->Clone(), m_mg->mongroup_brA_shift);
552  sc = regHist((TH1F*)m_overalltdccutPRLumi[enumBarrelC]->Clone(), m_mg->mongroup_brC_shift);
553  sc = regHist((TH1F*)m_overalltdccutPRLumi[enumEndCapA]->Clone(), m_mg->mongroup_ecA_shift);
554  sc = regHist((TH1F*)m_overalltdccutPRLumi[enumEndCapC]->Clone(), m_mg->mongroup_ecC_shift);
555 
556  // Book adc adccut per region on & off segment
557  sc = regHist((TH1F*)m_overalladc_segm_PR_Lumi[enumBarrelA]->Clone(), m_mg->mongroup_brA_shift);
558  sc = regHist((TH1F*)m_overalladc_segm_PR_Lumi[enumBarrelC]->Clone(), m_mg->mongroup_brC_shift);
559  sc = regHist((TH1F*)m_overalladc_segm_PR_Lumi[enumEndCapA]->Clone(), m_mg->mongroup_ecA_shift);
560  sc = regHist((TH1F*)m_overalladc_segm_PR_Lumi[enumEndCapC]->Clone(), m_mg->mongroup_ecC_shift);
561  sc = regHist((TH1F*)m_overalladcPRLumi[enumBarrelA]->Clone(), m_mg->mongroup_brA_shift);
562  sc = regHist((TH1F*)m_overalladcPRLumi[enumBarrelC]->Clone(), m_mg->mongroup_brC_shift);
563  sc = regHist((TH1F*)m_overalladcPRLumi[enumEndCapA]->Clone(), m_mg->mongroup_ecA_shift);
564  sc = regHist((TH1F*)m_overalladcPRLumi[enumEndCapC]->Clone(), m_mg->mongroup_ecC_shift);
565  sc = regHist((TH1F*)m_overalladccutPRLumi[enumBarrelA]->Clone(), m_mg->mongroup_brA_shift);
566  sc = regHist((TH1F*)m_overalladccutPRLumi[enumBarrelC]->Clone(), m_mg->mongroup_brC_shift);
567  sc = regHist((TH1F*)m_overalladccutPRLumi[enumEndCapA]->Clone(), m_mg->mongroup_ecA_shift);
568  sc = regHist((TH1F*)m_overalladccutPRLumi[enumEndCapC]->Clone(), m_mg->mongroup_ecC_shift);
569 
570  // TriggerAware TDC
571  sc = regHist((TH1F*)m_overalltdccutPRLumi_RPCtrig[enumBarrelA]->Clone(), m_mg->mongroup_brA_shift);
572  sc = regHist((TH1F*)m_overalltdccutPRLumi_RPCtrig[enumBarrelC]->Clone(), m_mg->mongroup_brC_shift);
573  sc = regHist((TH1F*)m_overalltdccutPRLumi_RPCtrig[enumEndCapA]->Clone(), m_mg->mongroup_ecA_shift);
574  sc = regHist((TH1F*)m_overalltdccutPRLumi_RPCtrig[enumEndCapC]->Clone(), m_mg->mongroup_ecC_shift);
575  sc = regHist((TH1F*)m_overalltdccutPRLumi_TGCtrig[enumBarrelA]->Clone(), m_mg->mongroup_brA_shift);
576  sc = regHist((TH1F*)m_overalltdccutPRLumi_TGCtrig[enumBarrelC]->Clone(), m_mg->mongroup_brC_shift);
577  sc = regHist((TH1F*)m_overalltdccutPRLumi_TGCtrig[enumEndCapA]->Clone(), m_mg->mongroup_ecA_shift);
578  sc = regHist((TH1F*)m_overalltdccutPRLumi_TGCtrig[enumEndCapC]->Clone(), m_mg->mongroup_ecC_shift);
579 
580  // Book tdcadc per region per lowStat
581  sc = regHist((TH2F*)m_overalltdcadcPRLumi[enumBarrelA]->Clone(), m_mg->mongroup_brA_shift);
582  sc = regHist((TH2F*)m_overalltdcadcPRLumi[enumBarrelC]->Clone(), m_mg->mongroup_brC_shift);
583  sc = regHist((TH2F*)m_overalltdcadcPRLumi[enumEndCapA]->Clone(), m_mg->mongroup_ecA_shift);
584  sc = regHist((TH2F*)m_overalltdcadcPRLumi[enumEndCapC]->Clone(), m_mg->mongroup_ecC_shift);
585 
586  // Book Global Hit Coverage/ML by Layer(Inner, Middle, Outer)
587  sc = regHist((TH2F*)m_mdthitsperML_byLayer[enumInner]->Clone(), m_mg->mongroup_overview_shift);
588  sc = regHist((TH2F*)m_mdthitsperML_byLayer[enumMiddle]->Clone(), m_mg->mongroup_overview_shift);
589  sc = regHist((TH2F*)m_mdthitsperML_byLayer[enumOuter]->Clone(), m_mg->mongroup_overview_shift);
590 
591  for (int iecap = 0; iecap < 4; iecap++) { // BA,BC,EA,EC
592  for (int ilayer = 0; ilayer < 4; ilayer++) { // inner, middle, outer, extra
594  // Number of hits/effs per Multilayer
596  if (iecap == enumBarrelA)
597  sc = regHist((TH2F*)m_mdthitspermultilayerLumi[iecap][ilayer]->Clone(), m_mg->mongroup_brA_shift);
598  else if (iecap == enumBarrelC)
599  sc = regHist((TH2F*)m_mdthitspermultilayerLumi[iecap][ilayer]->Clone(), m_mg->mongroup_brC_shift);
600  else if (iecap == enumEndCapA)
601  sc = regHist((TH2F*)m_mdthitspermultilayerLumi[iecap][ilayer]->Clone(), m_mg->mongroup_ecA_shift);
602  else
603  sc = regHist((TH2F*)m_mdthitspermultilayerLumi[iecap][ilayer]->Clone(), m_mg->mongroup_ecC_shift);
604 
605  if (sc.isFailure()) {
606  ATH_MSG_ERROR("mdthitspermultilayer Failed to register histogram");
607  return sc;
608  }
609  ATH_MSG_DEBUG("Inside LowStat Loop, iecap=" << iecap << ", ilayer=" << ilayer);
610 
612  // Number of hits per chamber (all sectors in one plot)
614  if (ilayer == 0 && ((iecap == 0 || iecap == 2))) {
615  ATH_MSG_DEBUG("Bookint mdthitsperchamber_InnerMiddleOuter");
616  sc = regHist((TH2F*)m_mdthitsperchamber_InnerMiddleOuterLumi[iecap / 2]->Clone(), m_mg->mongroup_overview_shift);
617  sc = regHist((TH2F*)m_mdthitsperchamber_InnerMiddleOuter_HighOcc[iecap / 2]->Clone(), m_mg->mongroup_overview_shift);
618 
619  ATH_MSG_DEBUG("Bookint m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi");
621  m_mg->mongroup_overview_recoMon);
622 
623  if (sc.isFailure()) {
624  ATH_MSG_ERROR("mdthitsperchamber_InnerMiddleOuter Failed to register histogram");
625  return sc;
626  }
627  } // end if(ilayer==0&&(iecap==0||iecap==2) )
628  } // layer
629  } // ecap
630 
632  // histo path for overall tdccut spectrum
633  sc = regHist((TH1F*)m_overalltdccutLumi->Clone(), m_mg->mongroup_overview_shift);
634 
636  // histo path for overall tdccut spectrum (along segms)
637  sc = regHist((TH1F*)m_overalltdccut_segm_Lumi->Clone(), m_mg->mongroup_overview_shift);
638 
640  // histo path for overall adc spectrum (along segms)
641  sc = regHist((TH1F*)m_overalladc_segm_Lumi->Clone(), m_mg->mongroup_overview_shift);
642 
644  // histo path for overall adc spectrum
645  sc = regHist((TH1F*)m_overalladc_Lumi->Clone(), m_mg->mongroup_overview_shift);
646 
648  // histo path for TotalNumber_of_MDT_hits_per_event with a cut on ADC
649  sc = regHist((TH1F*)m_mdteventscutLumi->Clone(), m_mg->mongroup_overview_shift);
651  // histo path for TotalNumber_of_MDT_hits_per_event with a cut on ADC (for high mult. events)
652  sc = regHist((TH1F*)m_mdteventscutLumi_big->Clone(), m_mg->mongroup_overview_shift);
654  // histo path for TotalNumber_of_MDT_hits_per_event without a cut on ADC
655  sc = regHist((TH1F*)m_mdteventsLumi->Clone(), m_mg->mongroup_overview_shift);
657  // histo path for TotalNumber_of_MDT_hits_per_event without a cut on ADC (for high mult. events)
658  sc = regHist((TH1F*)m_mdteventsLumi_big->Clone(), m_mg->mongroup_overview_shift);
659 
660  // histo path for overall tdc vs adc spectrum
661  sc = regHist((TH2F*)m_overalltdcadcLumi->Clone(), m_mg->mongroup_overview_shift);
662  }
663 
664  if (endOfRunFlag()) {
665  ATH_MSG_DEBUG("********Reached Last Event in MdtRawDataValAlg !!!");
666  ATH_MSG_DEBUG("MdtRawDataValAlg finalize()");
667 
668  if (m_mdtchamberstat) {
669  m_mdtchamberstat->SetStats(0);
670  m_mdtchamberstat->LabelsDeflate("X");
671  }
673  char c[3] = " ";
674  for (iterstat = m_hitsperchamber_map.begin(); iterstat != m_hitsperchamber_map.end(); ++iterstat) {
675  const char* chambername_char = iterstat->first.c_str();
676  float hits = iterstat->second;
677  if (m_mdtchamberstat) m_mdtchamberstat->Fill(chambername_char, hits);
678 
680  // Look for chamber names like XXXXXNMYYYYY where NM is a number in 01...16. And do it efficiently:
681  if (iterstat->first.length() < 7) continue;
682  c[0] = chambername_char[5];
683  c[1] = chambername_char[6];
684  if (!(c[0] == '0' || c[0] == '1') || c[1] < '0' || c[1] > '9') continue;
685  int i(atoi(c) - 1);
686  if (i < 0 || i > 15) continue;
687  // Now fill the histogram
689  if (h) h->Fill(chambername_char, hits);
690  } // for in m_hitsperchamber_map
691 
692  if (m_mdtchamberstat) m_mdtchamberstat->LabelsDeflate("X");
693 
694  // Deflate phislice m_mdtchamberstatphislice
695  for (int j = 0; j <= 15; ++j) {
696  if (m_mdtchamberstatphislice[j]) m_mdtchamberstatphislice[j]->LabelsDeflate("X");
697  }
698 
699  } // endOfRunFlag()
700 
701  return sc;
702 }

◆ putBox()

void MdtRawDataValAlg::putBox ( TH2 h,
float  x1,
float  y1,
float  x2,
float  y2 
)
staticprivate

Definition at line 1185 of file MDTRawDataUtils.cxx.

1185  {
1186  TBox* box = new TBox(x1, y1 * 0.5, x2, y2 * 0.5);
1187  // box->SetFillColor(kGray+1);
1188  // box->SetLineColor(kGray+1);
1189  // box->SetFillStyle(3013);
1190  // box->SetFillStyle(3004);
1191 
1192  box->SetFillColor(kGray);
1193  box->SetLineColor(kGray);
1194 
1195  // box->SetLineStyle(3);
1196 
1197  (h->GetListOfFunctions())->Add(box);
1198  // // delete box; // will cause crash or not save box // is deleted along with h
1199 }

◆ putLine()

void MdtRawDataValAlg::putLine ( TH2 h,
float  x1,
float  y1,
float  x2,
float  y2,
Color_t  c = kBlack 
)
staticprivate

Definition at line 1201 of file MDTRawDataUtils.cxx.

1201  {
1202  TLine* line = new TLine(x1, y1 * 0.5, x2, y2 * 0.5);
1203  line->SetLineColor(c);
1204 
1205  (h->GetListOfFunctions())->Add(line);
1206  // // delete line; // will cause crash or not save box // is deleted along with h
1207 }

◆ regEfficiency()

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

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

Definition at line 1648 of file ManagedMonitorToolBase.cxx.

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

◆ regGraph() [1/2]

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

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

Definition at line 1702 of file ManagedMonitorToolBase.cxx.

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

◆ regGraph() [2/2]

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

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

Definition at line 1692 of file ManagedMonitorToolBase.cxx.

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

◆ regHist() [1/4]

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

Definition at line 1522 of file ManagedMonitorToolBase.cxx.

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

◆ regHist() [2/4]

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

Support for lightweight histograms:

Definition at line 1515 of file ManagedMonitorToolBase.cxx.

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

◆ regHist() [3/4]

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

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

A histogram is passed via reference to a pointer.

Definition at line 1462 of file ManagedMonitorToolBase.cxx.

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

◆ regHist() [4/4]

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

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

Definition at line 1453 of file ManagedMonitorToolBase.cxx.

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

◆ registerMetadata()

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

Definition at line 1005 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedEfficiencies()

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

Definition at line 1200 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedGraphs()

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

Definition at line 1129 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedHistograms()

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

Definition at line 1032 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedLWHistograms()

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

Definition at line 1314 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedTrees()

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

Definition at line 1260 of file ManagedMonitorToolBase.cxx.

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

◆ regTree() [1/2]

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

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

Definition at line 1758 of file ManagedMonitorToolBase.cxx.

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

◆ regTree() [2/2]

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

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

Definition at line 1748 of file ManagedMonitorToolBase.cxx.

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

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

◆ returnInt()

static int MdtRawDataValAlg::returnInt ( const std::string &  s)
inlinestaticprivate

Definition at line 178 of file MdtRawDataValAlg.h.

178  {
179  std::stringstream ss(s);
180  int n;
181  ss >> n;
182  return n;
183  }

◆ runStat()

StatusCode ManagedMonitorToolBase::runStat ( )
virtualinherited

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

Implements IMonitorToolBase.

Definition at line 1893 of file ManagedMonitorToolBase.cxx.

1895 {
1896  return StatusCode::SUCCESS;
1897 }

◆ setIsATLASReady()

void MdtRawDataValAlg::setIsATLASReady ( )
private

Definition at line 1157 of file MDTRawDataUtils.cxx.

1157  {
1158  bool filterresult(true);
1159  if (!m_MdtDQFilterTools.empty()) {
1160  ToolHandleArray<IDQFilterTool>::const_iterator ifilter(m_MdtDQFilterTools.begin()), filterend(m_MdtDQFilterTools.end());
1161  for (; filterresult && (ifilter != filterend); ++ifilter) { filterresult = (filterresult && (*ifilter)->accept()); }
1162  }
1163  m_atlas_ready = filterresult;
1164 }

◆ setMonManager()

void ManagedMonitorToolBase::setMonManager ( AthenaMonManager manager)
virtualinherited

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

Definition at line 1435 of file ManagedMonitorToolBase.cxx.

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

◆ setupOutputStreams()

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

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

Consider using MonitorToolBase for user-managed streams.

Implements IMonitorToolBase.

Definition at line 1882 of file ManagedMonitorToolBase.cxx.

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

◆ StoreTriggerType() [1/2]

StatusCode MdtRawDataValAlg::StoreTriggerType ( )
private

◆ StoreTriggerType() [2/2]

void MdtRawDataValAlg::StoreTriggerType ( int  type)
private

Definition at line 1151 of file MDTRawDataUtils.cxx.

1151  {
1152  m_trigtype = type;
1153  if (m_trigtype == L1_BARREL) m_trig_BARREL = true;
1154  if (m_trigtype == L1_ENDCAP) m_trig_ENDCAP = true;
1155 }

◆ streamNameFunction()

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

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

Definition at line 502 of file ManagedMonitorToolBase.cxx.

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

◆ sysInitialize()

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

Perform system initialization for an algorithm.

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

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

◆ sysStart()

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

Handle START transition.

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

◆ THistSvc_deReg_fixTGraph()

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

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

Read more in source file about this bug.

Definition at line 1097 of file ManagedMonitorToolBase.cxx.

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

◆ trigChainsArePassed()

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

Definition at line 2324 of file ManagedMonitorToolBase.cxx.

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

◆ TubeID_to_ID_L_ML()

void MdtRawDataValAlg::TubeID_to_ID_L_ML ( int &  tubeID,
std::string_view  hardware_name,
int &  tube,
int &  layer,
int &  ML,
int  max 
)
staticprivate

Definition at line 880 of file MDTRawDataUtils.cxx.

881  {
882  derived_tube = 1;
883  derived_layer = 1;
884  derived_ML = 1;
885 
886  // Get Number of X
887  int derived_NumTubePerLayer = 1;
888  int derived_NumTubePerML = 1;
889  int derived_NumLayer = 1;
890  int derived_NumLayerPerML = 1;
891  int derived_NumML = 1;
892  if (hardware_name.substr(0, 4) == "BIS8" /*&& hardware_name.substr(5,2) == "12"*/) {
893  derived_NumLayerPerML = 3;
894  derived_NumML = 1;
895  } else if (/*hardware_name.substr(0,4) == "BIS8" ||*/ hardware_name.substr(0, 3) == "BEE") {
896  derived_NumLayerPerML = 4;
897  derived_NumML = 1;
898  } else if (hardware_name.substr(0, 2) == "BI" ||
899  hardware_name.substr(0, 2) == "EI" /*|| (hardware_name.substr(0,4) == "EEL1" && hardware_name.substr(5,2) == "05")*/) {
900  derived_NumLayerPerML = 4;
901  derived_NumML = 2;
902  } else {
903  derived_NumLayerPerML = 3;
904  derived_NumML = 2;
905  }
906 
907  derived_NumLayer = derived_NumLayerPerML * derived_NumML;
908  derived_NumTubePerML = totalTubes / derived_NumML;
909  derived_NumTubePerLayer = totalTubes / derived_NumLayer;
910 
911  // Corrections for derived_NumTubePerLayer
912  if (hardware_name.substr(0, 4) == "BMS4" || hardware_name.substr(0, 4) == "BMS6") derived_NumTubePerLayer = 48;
913  if ((hardware_name.substr(5, 2) == "11" || hardware_name.substr(5, 2) == "15")) {
914  if (hardware_name.substr(0, 4) == "BIR1") derived_NumTubePerLayer = 30;
915  if (hardware_name.substr(0, 4) == "BIR2") derived_NumTubePerLayer = 30;
916  if (hardware_name.substr(0, 4) == "BIR3") derived_NumTubePerLayer = 36;
917  if (hardware_name.substr(0, 4) == "BIR4") derived_NumTubePerLayer = 30;
918  if (hardware_name.substr(0, 4) == "BIR5") derived_NumTubePerLayer = 24;
919  }
920 
921  // Now get X
922  derived_ML = (tubeID - 1) / derived_NumTubePerML + 1;
923  derived_layer = (tubeID - 1) / derived_NumTubePerLayer + 1;
924  derived_tube = tubeID - (derived_layer - 1) * derived_NumTubePerLayer;
925  if (derived_ML == 2) derived_layer -= derived_NumLayerPerML;
926 }

◆ updateTriggersForGroups()

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

Definition at line 2362 of file ManagedMonitorToolBase.cxx.

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

◆ updateVHKA()

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

Definition at line 308 of file AthCommonDataStore.h.

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

◆ writeAndDelete()

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

Write out histogram and delete it.

Definition at line 1803 of file ManagedMonitorToolBase.cxx.

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

Member Data Documentation

◆ m_ADCCut

float MdtRawDataValAlg::m_ADCCut
private

Definition at line 215 of file MdtRawDataValAlg.h.

◆ m_ADCCut_Bkgrd

float MdtRawDataValAlg::m_ADCCut_Bkgrd
private

Definition at line 216 of file MdtRawDataValAlg.h.

◆ m_atlas_ready

bool MdtRawDataValAlg::m_atlas_ready {false}
private

Definition at line 111 of file MdtRawDataValAlg.h.

◆ m_BMGid

int MdtRawDataValAlg::m_BMGid {-1}
private

Definition at line 325 of file MdtRawDataValAlg.h.

◆ m_BMGpresent

bool MdtRawDataValAlg::m_BMGpresent {false}
private

Definition at line 324 of file MdtRawDataValAlg.h.

◆ m_bookHistogramsInitial

bool ManagedMonitorToolBase::m_bookHistogramsInitial
privateinherited

Definition at line 956 of file ManagedMonitorToolBase.h.

◆ m_chamber_2D

bool MdtRawDataValAlg::m_chamber_2D
private

Definition at line 199 of file MdtRawDataValAlg.h.

◆ m_chamberName

std::string MdtRawDataValAlg::m_chamberName
private

Definition at line 201 of file MdtRawDataValAlg.h.

◆ m_chambersId

std::vector<Identifier> MdtRawDataValAlg::m_chambersId
private

Definition at line 185 of file MdtRawDataValAlg.h.

◆ m_chambersIdHash

std::vector<IdentifierHash> MdtRawDataValAlg::m_chambersIdHash
private

Definition at line 186 of file MdtRawDataValAlg.h.

◆ m_chi2_cut

float MdtRawDataValAlg::m_chi2_cut
private

Definition at line 322 of file MdtRawDataValAlg.h.

◆ m_curTime

float MdtRawDataValAlg::m_curTime = 0.0F
private

Definition at line 217 of file MdtRawDataValAlg.h.

◆ m_d

Imp* ManagedMonitorToolBase::m_d
privateinherited

Definition at line 963 of file ManagedMonitorToolBase.h.

◆ m_dataType

AthenaMonManager::DataType_t ManagedMonitorToolBase::m_dataType
protectedinherited

Definition at line 901 of file ManagedMonitorToolBase.h.

◆ m_dataTypeStr

std::string ManagedMonitorToolBase::m_dataTypeStr
protectedinherited

Definition at line 897 of file ManagedMonitorToolBase.h.

◆ m_DeadChannels

std::map<Identifier, std::vector<Identifier> > MdtRawDataValAlg::m_DeadChannels
private

Definition at line 326 of file MdtRawDataValAlg.h.

◆ m_defaultLBDuration

float ManagedMonitorToolBase::m_defaultLBDuration
privateinherited

Definition at line 958 of file ManagedMonitorToolBase.h.

◆ m_detailLevel

unsigned int ManagedMonitorToolBase::m_detailLevel
protectedinherited

Definition at line 899 of file ManagedMonitorToolBase.h.

◆ m_DetectorManagerKey

SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> MdtRawDataValAlg::m_DetectorManagerKey
private
Initial value:
{this, "DetectorManagerKey", "MuonDetectorManager",
"Key of input MuonDetectorManager condition data"}

Definition at line 122 of file MdtRawDataValAlg.h.

◆ m_detMgr

const MuonGM::MuonDetectorManager* MdtRawDataValAlg::m_detMgr {nullptr}
private

Definition at line 330 of file MdtRawDataValAlg.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_do_mdt_DRvsDRerr

bool MdtRawDataValAlg::m_do_mdt_DRvsDRerr
private

Definition at line 315 of file MdtRawDataValAlg.h.

◆ m_do_mdt_DRvsDT

bool MdtRawDataValAlg::m_do_mdt_DRvsDT
private

Definition at line 314 of file MdtRawDataValAlg.h.

◆ m_do_mdt_DRvsSegD

bool MdtRawDataValAlg::m_do_mdt_DRvsSegD
private

Definition at line 316 of file MdtRawDataValAlg.h.

◆ m_do_mdt_effCounts

bool MdtRawDataValAlg::m_do_mdt_effCounts
private

Definition at line 312 of file MdtRawDataValAlg.h.

◆ m_do_mdt_effEntries

bool MdtRawDataValAlg::m_do_mdt_effEntries
private

Definition at line 311 of file MdtRawDataValAlg.h.

◆ m_do_mdt_effPerTube

bool MdtRawDataValAlg::m_do_mdt_effPerTube
private

Definition at line 313 of file MdtRawDataValAlg.h.

◆ m_do_mdtadc

bool MdtRawDataValAlg::m_do_mdtadc
private

Definition at line 302 of file MdtRawDataValAlg.h.

◆ m_do_mdtadc_onSegm_ML1

bool MdtRawDataValAlg::m_do_mdtadc_onSegm_ML1
private

Definition at line 296 of file MdtRawDataValAlg.h.

◆ m_do_mdtadc_onSegm_ML2

bool MdtRawDataValAlg::m_do_mdtadc_onSegm_ML2
private

Definition at line 297 of file MdtRawDataValAlg.h.

◆ m_do_mdtChamberHits

bool MdtRawDataValAlg::m_do_mdtChamberHits
private

Definition at line 291 of file MdtRawDataValAlg.h.

◆ m_do_mdtchamberstatphislice

bool MdtRawDataValAlg::m_do_mdtchamberstatphislice
private

Definition at line 290 of file MdtRawDataValAlg.h.

◆ m_do_mdtlayer

bool MdtRawDataValAlg::m_do_mdtlayer
private

Definition at line 305 of file MdtRawDataValAlg.h.

◆ m_do_mdtmezz

bool MdtRawDataValAlg::m_do_mdtmezz
private

Definition at line 310 of file MdtRawDataValAlg.h.

◆ m_do_mdtmultil

bool MdtRawDataValAlg::m_do_mdtmultil
private

Definition at line 304 of file MdtRawDataValAlg.h.

◆ m_do_mdttdc

bool MdtRawDataValAlg::m_do_mdttdc
private

Definition at line 293 of file MdtRawDataValAlg.h.

◆ m_do_mdttdcadc

bool MdtRawDataValAlg::m_do_mdttdcadc
private

Definition at line 303 of file MdtRawDataValAlg.h.

◆ m_do_mdttdccut_ML1

bool MdtRawDataValAlg::m_do_mdttdccut_ML1
private

Definition at line 294 of file MdtRawDataValAlg.h.

◆ m_do_mdttdccut_ML2

bool MdtRawDataValAlg::m_do_mdttdccut_ML2
private

Definition at line 295 of file MdtRawDataValAlg.h.

◆ m_do_mdttdccut_RPCtrig_ML1

bool MdtRawDataValAlg::m_do_mdttdccut_RPCtrig_ML1
private

Definition at line 298 of file MdtRawDataValAlg.h.

◆ m_do_mdttdccut_RPCtrig_ML2

bool MdtRawDataValAlg::m_do_mdttdccut_RPCtrig_ML2
private

Definition at line 300 of file MdtRawDataValAlg.h.

◆ m_do_mdttdccut_sector

bool MdtRawDataValAlg::m_do_mdttdccut_sector
private

Definition at line 292 of file MdtRawDataValAlg.h.

◆ m_do_mdttdccut_TGCtrig_ML1

bool MdtRawDataValAlg::m_do_mdttdccut_TGCtrig_ML1
private

Definition at line 299 of file MdtRawDataValAlg.h.

◆ m_do_mdttdccut_TGCtrig_ML2

bool MdtRawDataValAlg::m_do_mdttdccut_TGCtrig_ML2
private

Definition at line 301 of file MdtRawDataValAlg.h.

◆ m_do_mdttdctube

bool MdtRawDataValAlg::m_do_mdttdctube
private

Definition at line 318 of file MdtRawDataValAlg.h.

◆ m_do_mdttube

bool MdtRawDataValAlg::m_do_mdttube
private

Definition at line 306 of file MdtRawDataValAlg.h.

◆ m_do_mdttube_bkgrd

bool MdtRawDataValAlg::m_do_mdttube_bkgrd
private

Definition at line 307 of file MdtRawDataValAlg.h.

◆ m_do_mdttube_fornoise

bool MdtRawDataValAlg::m_do_mdttube_fornoise
private

Definition at line 308 of file MdtRawDataValAlg.h.

◆ m_do_mdttube_masked

bool MdtRawDataValAlg::m_do_mdttube_masked
private

Definition at line 309 of file MdtRawDataValAlg.h.

◆ m_do_mdttubenoise

bool MdtRawDataValAlg::m_do_mdttubenoise
private

Definition at line 317 of file MdtRawDataValAlg.h.

◆ m_doChamberHists

bool MdtRawDataValAlg::m_doChamberHists
private

Definition at line 196 of file MdtRawDataValAlg.h.

◆ m_doMdtESD

bool MdtRawDataValAlg::m_doMdtESD
private

Definition at line 193 of file MdtRawDataValAlg.h.

◆ m_DQFilterTools

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

Definition at line 912 of file ManagedMonitorToolBase.h.

◆ m_endOfEventsBlock

bool ManagedMonitorToolBase::m_endOfEventsBlock
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_endOfLowStat

bool ManagedMonitorToolBase::m_endOfLowStat
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_endOfLumiBlock

bool ManagedMonitorToolBase::m_endOfLumiBlock
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_endOfRun

bool ManagedMonitorToolBase::m_endOfRun
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_environment

AthenaMonManager::Environment_t ManagedMonitorToolBase::m_environment
protectedinherited

Definition at line 902 of file ManagedMonitorToolBase.h.

◆ m_environmentStr

std::string ManagedMonitorToolBase::m_environmentStr
protectedinherited

Definition at line 898 of file ManagedMonitorToolBase.h.

◆ m_eventInfo

SG::ReadHandleKey<xAOD::EventInfo> MdtRawDataValAlg::m_eventInfo {this, "EventInfo", "EventInfo", "event info"}
private

Definition at line 207 of file MdtRawDataValAlg.h.

◆ m_eventNum

int MdtRawDataValAlg::m_eventNum {0}
private

Definition at line 170 of file MdtRawDataValAlg.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_fileKey

std::string ManagedMonitorToolBase::m_fileKey
protectedinherited

Definition at line 896 of file ManagedMonitorToolBase.h.

◆ m_firstEvent

int MdtRawDataValAlg::m_firstEvent {0}
private

Definition at line 171 of file MdtRawDataValAlg.h.

◆ m_firstTime

uint32_t MdtRawDataValAlg::m_firstTime {0U}
private

Definition at line 173 of file MdtRawDataValAlg.h.

◆ m_hardware_name_list

std::set<std::string> MdtRawDataValAlg::m_hardware_name_list
private

Definition at line 187 of file MdtRawDataValAlg.h.

◆ m_hashId_list

std::set<int> MdtRawDataValAlg::m_hashId_list
private

Definition at line 188 of file MdtRawDataValAlg.h.

◆ m_haveClearedLastEventBlock

bool ManagedMonitorToolBase::m_haveClearedLastEventBlock
protectedinherited

Definition at line 929 of file ManagedMonitorToolBase.h.

◆ m_HighOccThreshold

float MdtRawDataValAlg::m_HighOccThreshold
private

Definition at line 323 of file MdtRawDataValAlg.h.

◆ m_hist_hash_list

std::vector<std::unique_ptr<MDTChamber> > MdtRawDataValAlg::m_hist_hash_list {}
private

Definition at line 283 of file MdtRawDataValAlg.h.

◆ m_hitsperchamber_map

std::map<std::string, float> MdtRawDataValAlg::m_hitsperchamber_map
private

Definition at line 189 of file MdtRawDataValAlg.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> MdtRawDataValAlg::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 118 of file MdtRawDataValAlg.h.

◆ m_isOnline

bool MdtRawDataValAlg::m_isOnline
private

Definition at line 197 of file MdtRawDataValAlg.h.

◆ m_key_mdt

SG::ReadHandleKey<Muon::MdtPrepDataContainer> MdtRawDataValAlg::m_key_mdt {this, "MdtPrepDataContainer", "MDT_DriftCircles", "MDT PRDs"}
private

Definition at line 203 of file MdtRawDataValAlg.h.

◆ m_key_rpc

SG::ReadHandleKey<Muon::RpcPrepDataContainer> MdtRawDataValAlg::m_key_rpc {this, "RpcPrepDataContainer", "RPC_Measurements", "RPC PRDs"}
private

Definition at line 204 of file MdtRawDataValAlg.h.

◆ m_l1RoiKey

SG::ReadHandleKey<xAOD::MuonRoIContainer> MdtRawDataValAlg::m_l1RoiKey {this, "L1RoiKey", "LVL1MuonRoIs", "L1 muon ROIs"}
private

Definition at line 205 of file MdtRawDataValAlg.h.

◆ m_lastHigStatInterval

int ManagedMonitorToolBase::m_lastHigStatInterval
protectedinherited

Definition at line 924 of file ManagedMonitorToolBase.h.

◆ m_lastLowStatInterval

int ManagedMonitorToolBase::m_lastLowStatInterval
protectedinherited

Definition at line 924 of file ManagedMonitorToolBase.h.

◆ m_lastLumiBlock

unsigned int ManagedMonitorToolBase::m_lastLumiBlock
protectedinherited

Definition at line 922 of file ManagedMonitorToolBase.h.

◆ m_lastMedStatInterval

int ManagedMonitorToolBase::m_lastMedStatInterval
protectedinherited

Definition at line 924 of file ManagedMonitorToolBase.h.

◆ m_lastRun

unsigned int ManagedMonitorToolBase::m_lastRun
protectedinherited

Definition at line 923 of file ManagedMonitorToolBase.h.

◆ m_lbDurationDataKey

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

Definition at line 951 of file ManagedMonitorToolBase.h.

◆ m_lumiblock

int MdtRawDataValAlg::m_lumiblock {0}
private

Definition at line 169 of file MdtRawDataValAlg.h.

◆ m_lumiDataKey

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

Definition at line 949 of file ManagedMonitorToolBase.h.

◆ m_lwhists

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

Definition at line 891 of file ManagedMonitorToolBase.h.

◆ m_manager

AthenaMonManager* ManagedMonitorToolBase::m_manager
protectedinherited

Definition at line 892 of file ManagedMonitorToolBase.h.

◆ m_managerNameProp

std::string ManagedMonitorToolBase::m_managerNameProp
protectedinherited

Definition at line 894 of file ManagedMonitorToolBase.h.

◆ m_masked_tubes

std::unique_ptr<MDTNoisyTubes> MdtRawDataValAlg::m_masked_tubes
private

Definition at line 116 of file MdtRawDataValAlg.h.

◆ m_maskNoisyTubes

bool MdtRawDataValAlg::m_maskNoisyTubes
private

Definition at line 198 of file MdtRawDataValAlg.h.

◆ m_mdtChamberHits

TH1* MdtRawDataValAlg::m_mdtChamberHits[4][4][16] {}
private

Definition at line 262 of file MdtRawDataValAlg.h.

◆ m_mdtchamberstat

TH1* MdtRawDataValAlg::m_mdtchamberstat {}
private

Definition at line 260 of file MdtRawDataValAlg.h.

◆ m_mdtchamberstatphislice

TH1* MdtRawDataValAlg::m_mdtchamberstatphislice[16] {}
private

Definition at line 261 of file MdtRawDataValAlg.h.

◆ m_MdtDQFilterTools

ToolHandleArray<IDQFilterTool> MdtRawDataValAlg::m_MdtDQFilterTools
private

Definition at line 168 of file MdtRawDataValAlg.h.

◆ m_mdteffperchamber_InnerMiddleOuter

TH2* MdtRawDataValAlg::m_mdteffperchamber_InnerMiddleOuter[4] {}
private

Definition at line 270 of file MdtRawDataValAlg.h.

◆ m_mdteffpermultilayer

TH2* MdtRawDataValAlg::m_mdteffpermultilayer[4][4] {}
private

Definition at line 266 of file MdtRawDataValAlg.h.

◆ m_mdteventscutLumi

TH1* MdtRawDataValAlg::m_mdteventscutLumi {}
private

Definition at line 249 of file MdtRawDataValAlg.h.

◆ m_mdteventscutLumi_big

TH1* MdtRawDataValAlg::m_mdteventscutLumi_big {}
private

Definition at line 250 of file MdtRawDataValAlg.h.

◆ m_mdteventsLumi

TH1* MdtRawDataValAlg::m_mdteventsLumi {}
private

Definition at line 251 of file MdtRawDataValAlg.h.

◆ m_mdteventsLumi_big

TH1* MdtRawDataValAlg::m_mdteventsLumi_big {}
private

Definition at line 252 of file MdtRawDataValAlg.h.

◆ m_mdtglobalhitstime

TH1* MdtRawDataValAlg::m_mdtglobalhitstime {}
private

Definition at line 254 of file MdtRawDataValAlg.h.

◆ m_mdthitsperchamber_InnerMiddleOuter_HighOcc

TH2* MdtRawDataValAlg::m_mdthitsperchamber_InnerMiddleOuter_HighOcc[2] {}
private

Definition at line 268 of file MdtRawDataValAlg.h.

◆ m_mdthitsperchamber_InnerMiddleOuterLumi

TH2* MdtRawDataValAlg::m_mdthitsperchamber_InnerMiddleOuterLumi[2] {}
private

Definition at line 267 of file MdtRawDataValAlg.h.

◆ m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi

TH2* MdtRawDataValAlg::m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi[2] {}
private

Definition at line 269 of file MdtRawDataValAlg.h.

◆ m_mdthitsperML_byLayer

TH2* MdtRawDataValAlg::m_mdthitsperML_byLayer[3] {}
private

Definition at line 271 of file MdtRawDataValAlg.h.

◆ m_mdthitspermultilayerLumi

TH2* MdtRawDataValAlg::m_mdthitspermultilayerLumi[4][4] {}
private

Definition at line 265 of file MdtRawDataValAlg.h.

◆ m_MdtNHitsvsRpcNHits

TH2* MdtRawDataValAlg::m_MdtNHitsvsRpcNHits {}
private

Definition at line 247 of file MdtRawDataValAlg.h.

◆ m_mdtoccvslb

TH2* MdtRawDataValAlg::m_mdtoccvslb[4][3] {}
private

Definition at line 272 of file MdtRawDataValAlg.h.

◆ m_mdtoccvslb_by_crate

TH2* MdtRawDataValAlg::m_mdtoccvslb_by_crate[4][4] {}
private

Definition at line 273 of file MdtRawDataValAlg.h.

◆ m_mdtoccvslb_ontrack_by_crate

TH2* MdtRawDataValAlg::m_mdtoccvslb_ontrack_by_crate[4][4] {}
private

Definition at line 274 of file MdtRawDataValAlg.h.

◆ m_mdtoccvslb_summaryPerSector

TH2* MdtRawDataValAlg::m_mdtoccvslb_summaryPerSector {}
private

Definition at line 275 of file MdtRawDataValAlg.h.

◆ m_mdtrzdet

TH2* MdtRawDataValAlg::m_mdtrzdet[3] {}
private

Definition at line 264 of file MdtRawDataValAlg.h.

◆ m_mdttdccut_sector

TH1* MdtRawDataValAlg::m_mdttdccut_sector[4][4][16] {}
private

Definition at line 280 of file MdtRawDataValAlg.h.

◆ m_mdtxydet

TH2* MdtRawDataValAlg::m_mdtxydet[3] {}
private

Definition at line 263 of file MdtRawDataValAlg.h.

◆ m_metadataMap

MDMap_t ManagedMonitorToolBase::m_metadataMap
protectedinherited

Definition at line 889 of file ManagedMonitorToolBase.h.

◆ m_mg

std::unique_ptr<MDTMonGroupStruct> MdtRawDataValAlg::m_mg
private

Definition at line 115 of file MdtRawDataValAlg.h.

◆ m_muonKey

SG::ReadHandleKey<xAOD::MuonContainer> MdtRawDataValAlg::m_muonKey {this, "MuonKey", "Muons", "muons"}
private

Definition at line 206 of file MdtRawDataValAlg.h.

◆ m_muonSelectionTool

ToolHandle<CP::IMuonSelectionTool> MdtRawDataValAlg::m_muonSelectionTool
private

Definition at line 119 of file MdtRawDataValAlg.h.

◆ m_nb_hits

float MdtRawDataValAlg::m_nb_hits
private

Definition at line 320 of file MdtRawDataValAlg.h.

◆ m_nEvents

unsigned int ManagedMonitorToolBase::m_nEvents
protectedinherited

Definition at line 926 of file ManagedMonitorToolBase.h.

◆ m_nEventsIgnoreTrigger

unsigned int ManagedMonitorToolBase::m_nEventsIgnoreTrigger
protectedinherited

Definition at line 927 of file ManagedMonitorToolBase.h.

◆ m_newEventsBlock

bool ManagedMonitorToolBase::m_newEventsBlock
privateinherited

Definition at line 884 of file ManagedMonitorToolBase.h.

◆ m_newHigStatInterval

bool ManagedMonitorToolBase::m_newHigStatInterval
privateinherited

Definition at line 882 of file ManagedMonitorToolBase.h.

◆ m_newLowStat

bool ManagedMonitorToolBase::m_newLowStat
privateinherited

Definition at line 883 of file ManagedMonitorToolBase.h.

◆ m_newLowStatInterval

bool ManagedMonitorToolBase::m_newLowStatInterval
privateinherited

Definition at line 882 of file ManagedMonitorToolBase.h.

◆ m_newLumiBlock

bool ManagedMonitorToolBase::m_newLumiBlock
privateinherited

Definition at line 883 of file ManagedMonitorToolBase.h.

◆ m_newMedStatInterval

bool ManagedMonitorToolBase::m_newMedStatInterval
privateinherited

Definition at line 882 of file ManagedMonitorToolBase.h.

◆ m_newRun

bool ManagedMonitorToolBase::m_newRun
privateinherited

Definition at line 883 of file ManagedMonitorToolBase.h.

◆ m_nLumiBlocks

unsigned int ManagedMonitorToolBase::m_nLumiBlocks
protectedinherited

Definition at line 928 of file ManagedMonitorToolBase.h.

◆ m_numberOfEvents

int MdtRawDataValAlg::m_numberOfEvents {0}
private

Definition at line 174 of file MdtRawDataValAlg.h.

◆ m_nummdtchamberswithHighOcc

TH1* MdtRawDataValAlg::m_nummdtchamberswithHighOcc {}
private

Definition at line 258 of file MdtRawDataValAlg.h.

◆ m_nummdtchamberswithhits

TH1* MdtRawDataValAlg::m_nummdtchamberswithhits {}
private

Definition at line 256 of file MdtRawDataValAlg.h.

◆ m_nummdtchamberswithhits_ADCCut

TH1* MdtRawDataValAlg::m_nummdtchamberswithhits_ADCCut {}
private

Definition at line 257 of file MdtRawDataValAlg.h.

◆ m_overall_mdt_DRvsDT

TH2* MdtRawDataValAlg::m_overall_mdt_DRvsDT {}
private

Definition at line 243 of file MdtRawDataValAlg.h.

◆ m_overall_mdt_DRvsSegD

TH2* MdtRawDataValAlg::m_overall_mdt_DRvsSegD {}
private

Definition at line 244 of file MdtRawDataValAlg.h.

◆ m_overalladc_HighOcc

TH1* MdtRawDataValAlg::m_overalladc_HighOcc {}
private

Definition at line 237 of file MdtRawDataValAlg.h.

◆ m_overalladc_Lumi

TH1* MdtRawDataValAlg::m_overalladc_Lumi {}
private

Definition at line 225 of file MdtRawDataValAlg.h.

◆ m_overalladc_segm_Lumi

TH1* MdtRawDataValAlg::m_overalladc_segm_Lumi {}
private

Definition at line 224 of file MdtRawDataValAlg.h.

◆ m_overalladc_segm_PR_Lumi

TH1* MdtRawDataValAlg::m_overalladc_segm_PR_Lumi[4] {}
private

Definition at line 228 of file MdtRawDataValAlg.h.

◆ m_overalladccutPRLumi

TH1* MdtRawDataValAlg::m_overalladccutPRLumi[4] {}
private

Definition at line 230 of file MdtRawDataValAlg.h.

◆ m_overalladcPR_HighOcc

TH1* MdtRawDataValAlg::m_overalladcPR_HighOcc[4] {}
private

Definition at line 241 of file MdtRawDataValAlg.h.

◆ m_overalladcPRLumi

TH1* MdtRawDataValAlg::m_overalladcPRLumi[4] {}
private

Definition at line 229 of file MdtRawDataValAlg.h.

◆ m_overallPR_mdt_DRvsDT

TH2* MdtRawDataValAlg::m_overallPR_mdt_DRvsDT[4] {}
private

Definition at line 245 of file MdtRawDataValAlg.h.

◆ m_overallPR_mdt_DRvsSegD

TH2* MdtRawDataValAlg::m_overallPR_mdt_DRvsSegD[4] {}
private

Definition at line 246 of file MdtRawDataValAlg.h.

◆ m_overalltdcadcHighOcc

TH2* MdtRawDataValAlg::m_overalltdcadcHighOcc {}
private

Definition at line 234 of file MdtRawDataValAlg.h.

◆ m_overalltdcadcLumi

TH2* MdtRawDataValAlg::m_overalltdcadcLumi {}
private

Definition at line 220 of file MdtRawDataValAlg.h.

◆ m_overalltdcadcPR_HighOcc

TH2* MdtRawDataValAlg::m_overalltdcadcPR_HighOcc[4] {}
private

Definition at line 238 of file MdtRawDataValAlg.h.

◆ m_overalltdcadcPRLumi

TH2* MdtRawDataValAlg::m_overalltdcadcPRLumi[4] {}
private

Definition at line 221 of file MdtRawDataValAlg.h.

◆ m_overalltdccut_segm_Lumi

TH1* MdtRawDataValAlg::m_overalltdccut_segm_Lumi {}
private

Definition at line 223 of file MdtRawDataValAlg.h.

◆ m_overalltdccut_segm_PR_Lumi

TH1* MdtRawDataValAlg::m_overalltdccut_segm_PR_Lumi[4] {}
private

Definition at line 226 of file MdtRawDataValAlg.h.

◆ m_overalltdccutLumi

TH1* MdtRawDataValAlg::m_overalltdccutLumi {}
private

Definition at line 222 of file MdtRawDataValAlg.h.

◆ m_overalltdccutPRLumi

TH1* MdtRawDataValAlg::m_overalltdccutPRLumi[4] {}
private

Definition at line 227 of file MdtRawDataValAlg.h.

◆ m_overalltdccutPRLumi_RPCtrig

TH1* MdtRawDataValAlg::m_overalltdccutPRLumi_RPCtrig[4] {}
private

Definition at line 231 of file MdtRawDataValAlg.h.

◆ m_overalltdccutPRLumi_TGCtrig

TH1* MdtRawDataValAlg::m_overalltdccutPRLumi_TGCtrig[4] {}
private

Definition at line 232 of file MdtRawDataValAlg.h.

◆ m_overalltdcHighOcc

TH1* MdtRawDataValAlg::m_overalltdcHighOcc {}
private

Definition at line 235 of file MdtRawDataValAlg.h.

◆ m_overalltdcHighOcc_ADCCut

TH1* MdtRawDataValAlg::m_overalltdcHighOcc_ADCCut {}
private

Definition at line 236 of file MdtRawDataValAlg.h.

◆ m_overalltdcPR_HighOcc

TH1* MdtRawDataValAlg::m_overalltdcPR_HighOcc[4] {}
private

Definition at line 239 of file MdtRawDataValAlg.h.

◆ m_overalltdcPR_HighOcc_ADCCut

TH1* MdtRawDataValAlg::m_overalltdcPR_HighOcc_ADCCut[4] {}
private

Definition at line 240 of file MdtRawDataValAlg.h.

◆ m_path

std::string ManagedMonitorToolBase::m_path
protectedinherited

Definition at line 915 of file ManagedMonitorToolBase.h.

◆ m_preScaleProp

long ManagedMonitorToolBase::m_preScaleProp
protectedinherited

Definition at line 916 of file ManagedMonitorToolBase.h.

◆ m_procNEventsProp

long ManagedMonitorToolBase::m_procNEventsProp
protectedinherited

Definition at line 914 of file ManagedMonitorToolBase.h.

◆ m_road_width

float MdtRawDataValAlg::m_road_width
private

Definition at line 321 of file MdtRawDataValAlg.h.

◆ m_segm_type

SG::ReadHandleKey<Trk::SegmentCollection> MdtRawDataValAlg::m_segm_type {this, "Eff_segm_type", "TrackMuonSegments", "muon segments"}
private

Definition at line 176 of file MdtRawDataValAlg.h.

◆ m_StationEta

int MdtRawDataValAlg::m_StationEta
private

Definition at line 208 of file MdtRawDataValAlg.h.

◆ m_StationPhi

int MdtRawDataValAlg::m_StationPhi
private

Definition at line 209 of file MdtRawDataValAlg.h.

◆ m_StationSize

std::string MdtRawDataValAlg::m_StationSize
private

Definition at line 202 of file MdtRawDataValAlg.h.

◆ m_streamNameFcn

StreamNameFcn* ManagedMonitorToolBase::m_streamNameFcn
protectedinherited

Definition at line 904 of file ManagedMonitorToolBase.h.

◆ m_supportedIntervalsForRebooking

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

Definition at line 959 of file ManagedMonitorToolBase.h.

◆ m_templateEfficiencies

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

Definition at line 738 of file ManagedMonitorToolBase.h.

◆ m_templateGraphs

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

Definition at line 726 of file ManagedMonitorToolBase.h.

◆ m_templateHistograms

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

Definition at line 722 of file ManagedMonitorToolBase.h.

◆ m_templateLWHistograms

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

Definition at line 734 of file ManagedMonitorToolBase.h.

◆ m_templateTrees

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

Definition at line 730 of file ManagedMonitorToolBase.h.

◆ m_THistSvc

ServiceHandle<ITHistSvc> ManagedMonitorToolBase::m_THistSvc
protectedinherited

Definition at line 906 of file ManagedMonitorToolBase.h.

◆ m_time

uint32_t MdtRawDataValAlg::m_time {0U}
private

Definition at line 172 of file MdtRawDataValAlg.h.

◆ m_title

std::string MdtRawDataValAlg::m_title
private

Definition at line 109 of file MdtRawDataValAlg.h.

◆ m_trig_BARREL

bool MdtRawDataValAlg::m_trig_BARREL {false}
private

Definition at line 212 of file MdtRawDataValAlg.h.

◆ m_trig_ENDCAP

bool MdtRawDataValAlg::m_trig_ENDCAP {false}
private

Definition at line 213 of file MdtRawDataValAlg.h.

◆ m_trigDecTool

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

Definition at line 908 of file ManagedMonitorToolBase.h.

◆ m_triggerChainProp

std::string ManagedMonitorToolBase::m_triggerChainProp
protectedinherited

Definition at line 917 of file ManagedMonitorToolBase.h.

◆ m_triggerGroupProp

std::string ManagedMonitorToolBase::m_triggerGroupProp
protectedinherited

Definition at line 918 of file ManagedMonitorToolBase.h.

◆ m_trigLiveFractionDataKey

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

Definition at line 953 of file ManagedMonitorToolBase.h.

◆ m_trigTranslator

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

Definition at line 910 of file ManagedMonitorToolBase.h.

◆ m_trigtype

int MdtRawDataValAlg::m_trigtype = 0
private

Definition at line 211 of file MdtRawDataValAlg.h.

◆ m_tubesperchamber_map

std::map<std::string, float> MdtRawDataValAlg::m_tubesperchamber_map
private

Definition at line 191 of file MdtRawDataValAlg.h.

◆ m_useLumi

bool ManagedMonitorToolBase::m_useLumi
privateinherited

Definition at line 957 of file ManagedMonitorToolBase.h.

◆ m_useTrigger

bool ManagedMonitorToolBase::m_useTrigger
protectedinherited

Definition at line 920 of file ManagedMonitorToolBase.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

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

Definition at line 742 of file ManagedMonitorToolBase.h.

◆ m_vTrigGroupNames

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

Definition at line 742 of file ManagedMonitorToolBase.h.


The documentation for this class was generated from the following files:
AthenaMonManager::ownedLWHistOfKey
virtual LWHist * ownedLWHistOfKey(const std::string &key) const
Definition: AthenaMonManager.cxx:726
ManagedMonitorToolBase::m_nEvents
unsigned int m_nEvents
Definition: ManagedMonitorToolBase.h:926
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
MdtRawDataValAlg::ChamberTubeNumberCorrection
static void ChamberTubeNumberCorrection(int &tubeNum, std::string_view hardware_name, int tubePos, int numLayers)
Definition: MDTRawDataUtils.cxx:929
MdtRawDataValAlg::m_chambersIdHash
std::vector< IdentifierHash > m_chambersIdHash
Definition: MdtRawDataValAlg.h:186
MdtRawDataValAlg::binMdtOccVsLB_Crate
virtual StatusCode binMdtOccVsLB_Crate(TH2 *&h, int region, int crate)
Definition: MDTRawDataUtils.cxx:1588
MdtRawDataValAlg::bookMDTHisto_chambers_2D
virtual StatusCode bookMDTHisto_chambers_2D(TH2F_LW *&h, TString, TString, TString, int, float, float, int, float, float, MonGroup &)
Definition: MDTRawDataUtils.cxx:996
LWHist
Definition: LWHist.h:26
MdtRawDataValAlg::m_mdttdccut_sector
TH1 * m_mdttdccut_sector[4][4][16]
Definition: MdtRawDataValAlg.h:280
MdtRawDataValAlg::m_overalltdcHighOcc
TH1 * m_overalltdcHighOcc
Definition: MdtRawDataValAlg.h:235
MdtRawDataValAlg::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: MdtRawDataValAlg.h:122
TH2::Fill
int Fill(double, double)
Definition: rootspy.cxx:382
MdtRawDataValAlg::m_eventNum
int m_eventNum
Definition: MdtRawDataValAlg.h:170
ManagedMonitorToolBase::THistSvc_deReg_fixTGraph
StatusCode THistSvc_deReg_fixTGraph(TFile *file, TGraph *theGraph, std::string &directoryName)
Fixes THistSvc->deReg(obj) when obj is TGraph instance.
Definition: ManagedMonitorToolBase.cxx:1098
MdtRawDataValAlg::m_nummdtchamberswithHighOcc
TH1 * m_nummdtchamberswithHighOcc
Definition: MdtRawDataValAlg.h:258
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
convertChamberName
std::string convertChamberName(int, int, int, const std::string &)
Definition: MuonDQA/MuonDQAUtils/src/MuonChamberNameConverter.cxx:10
ManagedMonitorToolBase::m_templateEfficiencies
std::map< Interval_t, std::vector< MgmtParams< TEfficiency > > > m_templateEfficiencies
Definition: ManagedMonitorToolBase.h:738
AthenaMonManager::writeAndDeleteLWHist
virtual LWHist * writeAndDeleteLWHist(const std::string &key, const std::string &streamName)
Definition: AthenaMonManager.cxx:743
MdtRawDataValAlg::m_chamber_2D
bool m_chamber_2D
Definition: MdtRawDataValAlg.h:199
ManagedMonitorToolBase::streamNameFunction
virtual StreamNameFcn * streamNameFunction()
Returns the function object that converts logical paramters into a physical stream name.
Definition: ManagedMonitorToolBase.cxx:503
ManagedMonitorToolBase::m_newRun
bool m_newRun
Definition: ManagedMonitorToolBase.h:883
Muon::nsw::STGTPSegments::moduleIDBits::stationPhi
constexpr uint8_t stationPhi
station Phi 1 to 8
Definition: NSWSTGTPDecodeBitmaps.h:129
MdtRawDataValAlg::m_HighOccThreshold
float m_HighOccThreshold
Definition: MdtRawDataValAlg.h:323
ManagedMonitorToolBase::m_supportedIntervalsForRebooking
std::set< Interval_t > m_supportedIntervalsForRebooking
Definition: ManagedMonitorToolBase.h:959
defineDB.smd
string smd
Definition: JetTagCalibration/share/defineDB.py:44
MdtRawDataValAlg::m_hist_hash_list
std::vector< std::unique_ptr< MDTChamber > > m_hist_hash_list
Definition: MdtRawDataValAlg.h:283
MuonGM::MdtReadoutElement::getNLayers
int getNLayers() const
Returns the number of tube layers inside the multilayer.
ManagedMonitorToolBase::bookHistograms
virtual StatusCode bookHistograms()
An inheriting class should either override this function or bookHists().
Definition: ManagedMonitorToolBase.cxx:1407
MdtRawDataValAlg::m_key_mdt
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_key_mdt
Definition: MdtRawDataValAlg.h:203
ManagedMonitorToolBase::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Definition: ManagedMonitorToolBase.h:912
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
MdtRawDataValAlg::m_do_mdttube_fornoise
bool m_do_mdttube_fornoise
Definition: MdtRawDataValAlg.h:308
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
checkFileSG.line
line
Definition: checkFileSG.py:75
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
ManagedMonitorToolBase::getHist
virtual StatusCode getHist(TH1 *&h, const std::string &hName, const std::string &system, Interval_t interval)
Returns a TH1 via the pointer passed as the first argument.
Definition: ManagedMonitorToolBase.cxx:1589
ManagedMonitorToolBase::m_newEventsBlock
bool m_newEventsBlock
Definition: ManagedMonitorToolBase.h:884
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
MdtRawDataValAlg::setIsATLASReady
void setIsATLASReady()
Definition: MDTRawDataUtils.cxx:1157
ManagedMonitorToolBase::Imp::benchPreProcHistograms
void benchPreProcHistograms()
Definition: ManagedMonitorToolBase.cxx:122
get_generator_info.result
result
Definition: get_generator_info.py:21
MdtRawDataValAlg::m_muonSelectionTool
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
Definition: MdtRawDataValAlg.h:119
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
DetType::Endcap
@ Endcap
Definition: DetType.h:14
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
max
#define max(a, b)
Definition: cfImp.cxx:41
MdtRawDataValAlg::m_do_mdt_DRvsSegD
bool m_do_mdt_DRvsSegD
Definition: MdtRawDataValAlg.h:316
MdtRawDataValAlg::m_do_mdttdccut_RPCtrig_ML2
bool m_do_mdttdccut_RPCtrig_ML2
Definition: MdtRawDataValAlg.h:300
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Muon::MdtDriftCircleOnTrack::prepRawData
virtual const MdtPrepData * prepRawData() const override final
Returns the PrepRawData used to create this corrected measurement.
Definition: MdtDriftCircleOnTrack.h:257
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
MdtRawDataValAlg::m_do_mdttdccut_RPCtrig_ML1
bool m_do_mdttdccut_RPCtrig_ML1
Definition: MdtRawDataValAlg.h:298
MdtRawDataValAlg::m_do_mdt_DRvsDRerr
bool m_do_mdt_DRvsDRerr
Definition: MdtRawDataValAlg.h:315
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
MdtRawDataValAlg::m_overalladcPRLumi
TH1 * m_overalladcPRLumi[4]
Definition: MdtRawDataValAlg.h:229
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
ManagedMonitorToolBase::higStat
@ higStat
Definition: ManagedMonitorToolBase.h:115
MuonGM::MdtReadoutElement::innerTubeRadius
double innerTubeRadius() const
Returns the inner tube radius excluding the aluminium walls.
MdtRawDataValAlg::m_StationEta
int m_StationEta
Definition: MdtRawDataValAlg.h:208
MdtRawDataValAlg::m_chambersId
std::vector< Identifier > m_chambersId
Definition: MdtRawDataValAlg.h:185
ManagedMonitorToolBase::lumiBlock
@ lumiBlock
Definition: ManagedMonitorToolBase.h:114
TH1F_LW::create
static TH1F_LW * create(const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup)
Definition: TH1F_LW.cxx:33
MdtRawDataValAlg::m_maskNoisyTubes
bool m_maskNoisyTubes
Definition: MdtRawDataValAlg.h:198
ManagedMonitorToolBase::m_endOfLumiBlock
bool m_endOfLumiBlock
Definition: ManagedMonitorToolBase.h:885
TH2F
Definition: rootspy.cxx:420
MdtRawDataValAlg::CorrectLayerMax
static void CorrectLayerMax(const std::string &hardware_name, int &numLayers)
Definition: MDTRawDataUtils.cxx:953
calibdata.chamber
chamber
Definition: calibdata.py:32
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
ManagedMonitorToolBase::m_THistSvc
ServiceHandle< ITHistSvc > m_THistSvc
Definition: ManagedMonitorToolBase.h:906
ManagedMonitorToolBase::m_procNEventsProp
long m_procNEventsProp
Definition: ManagedMonitorToolBase.h:914
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
MdtRawDataValAlg::m_mdteventsLumi_big
TH1 * m_mdteventsLumi_big
Definition: MdtRawDataValAlg.h:252
AthenaMonManager::writeAndResetLWHist
virtual LWHist * writeAndResetLWHist(const std::string &key, const std::string &streamName)
Definition: AthenaMonManager.cxx:802
ManagedMonitorToolBase::regTree
virtual StatusCode regTree(TTree *t, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TTree to be included in the output stream using logical parameters that describe it.
Definition: ManagedMonitorToolBase.cxx:1749
ManagedMonitorToolBase::endOfLumiBlockFlag
bool endOfLumiBlockFlag() const
Definition: ManagedMonitorToolBase.h:858
MdtRawDataValAlg::m_hitsperchamber_map
std::map< std::string, float > m_hitsperchamber_map
Definition: MdtRawDataValAlg.h:189
AthenaMonManager::runNumber
static unsigned int runNumber()
Definition: AthenaMonManager.cxx:364
MdtRawDataValAlg::m_mdtoccvslb_by_crate
TH2 * m_mdtoccvslb_by_crate[4][4]
Definition: MdtRawDataValAlg.h:273
MdtRawDataValAlg::m_mdtoccvslb_ontrack_by_crate
TH2 * m_mdtoccvslb_ontrack_by_crate[4][4]
Definition: MdtRawDataValAlg.h:274
AthenaMonManager::fileKey
virtual std::string fileKey() const
Definition: AthenaMonManager.cxx:699
plotBeamSpotCompare.x2
x2
Definition: plotBeamSpotCompare.py:218
MdtRawDataValAlg::m_overalltdcadcLumi
TH2 * m_overalltdcadcLumi
Definition: MdtRawDataValAlg.h:220
ManagedMonitorToolBase::Imp::benchPreFillHistograms
void benchPreFillHistograms()
Definition: ManagedMonitorToolBase.cxx:97
AthenaMonManager::AOD
@ AOD
Definition: AthenaMonManager.h:49
MdtRawDataValAlg::m_isOnline
bool m_isOnline
Definition: MdtRawDataValAlg.h:197
ManagedMonitorToolBase::regManagedGraphs
StatusCode regManagedGraphs(std::vector< MgmtParams< TGraph > > &templateGraphs)
Definition: ManagedMonitorToolBase.cxx:1130
AthenaMonManager::passOwnership
virtual void passOwnership(TObject *h, const std::string &key)
Pass ownership of a TObject/LWHist to this manager so that it will be deleted appropriately.
Definition: AthenaMonManager.cxx:707
ManagedMonitorToolBase::Imp::benchPostFillHistograms
void benchPostFillHistograms()
Definition: ManagedMonitorToolBase.cxx:106
MdtRawDataValAlg::m_masked_tubes
std::unique_ptr< MDTNoisyTubes > m_masked_tubes
Definition: MdtRawDataValAlg.h:116
MdtRawDataValAlg::bookMDTSummaryHistograms
virtual StatusCode bookMDTSummaryHistograms(bool newLumiBlock, bool newRun)
Definition: MdtRawDataValAlg.cxx:850
MuonGM::MuonReadoutElement::GlobalToAmdbLRSTransform
virtual Amg::Transform3D GlobalToAmdbLRSTransform() const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:153
ManagedMonitorToolBase::regManagedHistograms
StatusCode regManagedHistograms(std::vector< MgmtParams< TH1 > > &templateHistograms)
Definition: ManagedMonitorToolBase.cxx:1033
MdtRawDataValAlg::m_firstEvent
int m_firstEvent
Definition: MdtRawDataValAlg.h:171
MdtRawDataValAlg::m_overalltdcadcPR_HighOcc
TH2 * m_overalltdcadcPR_HighOcc[4]
Definition: MdtRawDataValAlg.h:238
ManagedMonitorToolBase::lbDuration
virtual double lbDuration(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Luminosity block time (in seconds)
Definition: ManagedMonitorToolBase.cxx:2047
ManagedMonitorToolBase::m_trigDecTool
PublicToolHandle< Trig::ITrigDecisionTool > m_trigDecTool
Definition: ManagedMonitorToolBase.h:908
MdtRawDataValAlg::get_bin_for_LB_hist
static int get_bin_for_LB_hist(int region, int layer, int phi, int eta, bool isBIM)
Definition: MDTRawDataUtils.cxx:1229
skel.it
it
Definition: skel.GENtoEVGEN.py:423
MdtRawDataValAlg::m_overalltdcHighOcc_ADCCut
TH1 * m_overalltdcHighOcc_ADCCut
Definition: MdtRawDataValAlg.h:236
MdtRawDataValAlg::mdtchamberId
void mdtchamberId()
Definition: MDTRawDataUtils.cxx:1054
MdtRawDataValAlg::m_atlas_ready
bool m_atlas_ready
Definition: MdtRawDataValAlg.h:111
L1_ENDCAP
@ L1_ENDCAP
Definition: MdtRawDataValAlg.h:62
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
MdtRawDataValAlg::getChamber
StatusCode getChamber(IdentifierHash id, MDTChamber *&chamber)
Definition: MDTRawDataUtils.cxx:1220
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
MdtRawDataValAlg::m_mdteventsLumi
TH1 * m_mdteventsLumi
Definition: MdtRawDataValAlg.h:251
ParticleTest.tp
tp
Definition: ParticleTest.py:25
ManagedMonitorToolBase::m_d
Imp * m_d
Definition: ManagedMonitorToolBase.h:962
ManagedMonitorToolBase::m_lastLowStatInterval
int m_lastLowStatInterval
Definition: ManagedMonitorToolBase.h:924
MdtRawDataValAlg::m_mdteventscutLumi_big
TH1 * m_mdteventscutLumi_big
Definition: MdtRawDataValAlg.h:250
AthCommonMsg< AlgTool >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
MdtRawDataValAlg::m_numberOfEvents
int m_numberOfEvents
Definition: MdtRawDataValAlg.h:174
MdtRawDataValAlg::CorrectTubeMax
static void CorrectTubeMax(const std::string &hardware_name, int &numTubes)
Definition: MDTRawDataUtils.cxx:948
MdtRawDataValAlg::m_segm_type
SG::ReadHandleKey< Trk::SegmentCollection > m_segm_type
Definition: MdtRawDataValAlg.h:176
ManagedMonitorToolBase::m_triggerGroupProp
std::string m_triggerGroupProp
Definition: ManagedMonitorToolBase.h:918
LWHistAthMonWrapper::setStreamName
static void setStreamName(LWHist *, const std::string &streamName)
ManagedMonitorToolBase::Imp::benchPostProcHistograms
void benchPostProcHistograms()
Definition: ManagedMonitorToolBase.cxx:130
MdtRawDataValAlg::m_nummdtchamberswithhits
TH1 * m_nummdtchamberswithhits
Definition: MdtRawDataValAlg.h:256
MdtRawDataValAlg::m_mdteffpermultilayer
TH2 * m_mdteffpermultilayer[4][4]
Definition: MdtRawDataValAlg.h:266
ManagedMonitorToolBase::m_dataType
AthenaMonManager::DataType_t m_dataType
Definition: ManagedMonitorToolBase.h:901
MdtRawDataValAlg::HasTrigENDCAP
bool HasTrigENDCAP()
Definition: MdtRawDataValAlg.h:162
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
Phi
@ Phi
Definition: RPCdef.h:8
ManagedMonitorToolBase::regGraph
virtual StatusCode regGraph(TGraph *g, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TGraph to be included in the output stream using logical parameters that describe the gra...
Definition: ManagedMonitorToolBase.cxx:1693
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
ManagedMonitorToolBase::m_newLowStatInterval
bool m_newLowStatInterval
Definition: ManagedMonitorToolBase.h:882
ManagedMonitorToolBase::fill
@ fill
Definition: ManagedMonitorToolBase.h:116
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.TrigTLAMonitorAlgorithm.triggers
triggers
Definition: TrigTLAMonitorAlgorithm.py:196
MuonIdHelper::stationName
int stationName(const Identifier &id) const
Definition: MuonIdHelper.cxx:804
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
ManagedMonitorToolBase::procHistograms
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
Definition: ManagedMonitorToolBase.cxx:1423
MdtRawDataValAlg::m_firstTime
uint32_t m_firstTime
Definition: MdtRawDataValAlg.h:173
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
MdtRawDataValAlg::m_StationSize
std::string m_StationSize
Definition: MdtRawDataValAlg.h:202
MdtRawDataValAlg::m_overalltdcadcHighOcc
TH2 * m_overalltdcadcHighOcc
Definition: MdtRawDataValAlg.h:234
MdtRawDataValAlg::m_do_mdtChamberHits
bool m_do_mdtChamberHits
Definition: MdtRawDataValAlg.h:291
MdtRawDataValAlg::m_MdtDQFilterTools
ToolHandleArray< IDQFilterTool > m_MdtDQFilterTools
Definition: MdtRawDataValAlg.h:168
Muon::MdtPrepData::adc
int adc() const
Returns the ADC (typically range is 0 to 250)
Definition: MdtPrepData.h:166
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
MdtRawDataValAlg::AinB
static bool AinB(int A, std::vector< int > &B)
Definition: MDTRawDataUtils.cxx:1132
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
MdtRawDataValAlg::m_nummdtchamberswithhits_ADCCut
TH1 * m_nummdtchamberswithhits_ADCCut
Definition: MdtRawDataValAlg.h:257
MdtRawDataValAlg::m_chamberName
std::string m_chamberName
Definition: MdtRawDataValAlg.h:201
MdtRawDataValAlg::getChamberName
std::string getChamberName(const Muon::MdtPrepData *)
Definition: MDTRawDataUtils.cxx:1209
MdtRawDataValAlg::m_do_mdttdccut_sector
bool m_do_mdttdccut_sector
Definition: MdtRawDataValAlg.h:292
MdtRawDataValAlg::m_road_width
float m_road_width
Definition: MdtRawDataValAlg.h:321
MdtRawDataValAlg::GetTubeMax
int GetTubeMax(const Identifier &digcoll_id, std::string_view hardware_name)
Definition: MDTRawDataUtils.cxx:1096
ManagedMonitorToolBase::regManagedTrees
StatusCode regManagedTrees(std::vector< MgmtParams< TTree > > &templateTrees)
Definition: ManagedMonitorToolBase.cxx:1261
ManagedMonitorToolBase::registerMetadata
StatusCode registerMetadata(const std::string &streamName, const std::string &hName, const MonGroup &group)
Definition: ManagedMonitorToolBase.cxx:1006
MdtRawDataValAlg::m_do_mdtlayer
bool m_do_mdtlayer
Definition: MdtRawDataValAlg.h:305
AthenaMonManager::getLBsLowStat
static unsigned int getLBsLowStat()
Definition: AthenaMonManager.cxx:326
MdtRawDataValAlg::m_do_mdttube_bkgrd
bool m_do_mdttube_bkgrd
Definition: MdtRawDataValAlg.h:307
ManagedMonitorToolBase::m_newHigStatInterval
bool m_newHigStatInterval
Definition: ManagedMonitorToolBase.h:882
MdtRawDataValAlg::m_hardware_name_list
std::set< std::string > m_hardware_name_list
Definition: MdtRawDataValAlg.h:187
makeTRTBarrelCans.y1
tuple y1
Definition: makeTRTBarrelCans.py:15
Muon::MdtDriftCircleOnTrack::driftTime
double driftTime() const
Returns the value of the drift time used to obtain the drift radius.
Definition: MdtDriftCircleOnTrack.h:280
ManagedMonitorToolBase::m_newMedStatInterval
bool m_newMedStatInterval
Definition: ManagedMonitorToolBase.h:882
MdtRawDataValAlg::m_do_mdttube
bool m_do_mdttube
Definition: MdtRawDataValAlg.h:306
TruthTest.itE
itE
Definition: TruthTest.py:25
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
DetType::Barrel
@ Barrel
Definition: DetType.h:14
MdtRawDataValAlg::bookMDTHisto_OccVsLB
virtual StatusCode bookMDTHisto_OccVsLB(TH2 *&h, TString, TString, TString, int, float, float, int, float, float, MonGroup &)
Definition: MDTRawDataUtils.cxx:1012
MdtRawDataValAlg::m_mdteffperchamber_InnerMiddleOuter
TH2 * m_mdteffperchamber_InnerMiddleOuter[4]
Definition: MdtRawDataValAlg.h:270
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
MdtRawDataValAlg::handleEvent_effCalc
StatusCode handleEvent_effCalc(const Trk::SegmentCollection *segms)
Definition: MdtRawDataValAlg.cxx:1711
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
MdtRawDataValAlg::m_overalltdccut_segm_PR_Lumi
TH1 * m_overalltdccut_segm_PR_Lumi[4]
Definition: MdtRawDataValAlg.h:226
MdtRawDataValAlg::m_overalltdccut_segm_Lumi
TH1 * m_overalltdccut_segm_Lumi
Definition: MdtRawDataValAlg.h:223
AthenaMonManager::environment
static Environment_t environment()
Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects ...
Definition: AthenaMonManager.cxx:321
MdtRawDataValAlg::m_trig_BARREL
bool m_trig_BARREL
Definition: MdtRawDataValAlg.h:212
LWHistAthMonWrapper::streamName
static const std::string & streamName(LWHist *)
MdtRawDataValAlg::bookMDTHisto_overview
virtual StatusCode bookMDTHisto_overview(TH1 *&, TString, TString, TString, int, float, float, MonGroup &)
Definition: MDTRawDataUtils.cxx:957
TRT::Hit::side
@ side
Definition: HitInfo.h:83
dqt_zlumi_alleff_HIST.A
A
Definition: dqt_zlumi_alleff_HIST.py:110
MdtRawDataValAlg::m_do_mdttubenoise
bool m_do_mdttubenoise
Definition: MdtRawDataValAlg.h:317
python.checkMetadata.metadata
metadata
Definition: checkMetadata.py:175
AthenaMonManager::getLBsMedStat
static unsigned int getLBsMedStat()
Definition: AthenaMonManager.cxx:329
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
ManagedMonitorToolBase::m_bookHistogramsInitial
bool m_bookHistogramsInitial
Definition: ManagedMonitorToolBase.h:956
ManagedMonitorToolBase::Imp::m_warnAboutMissingInitialize
bool m_warnAboutMissingInitialize
Definition: ManagedMonitorToolBase.cxx:51
LWHist::usingROOTBackend
bool usingROOTBackend() const
Definition: LWHist.h:73
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
ManagedMonitorToolBase::getNewStreamNameFcn
virtual StreamNameFcn * getNewStreamNameFcn() const
Definition: ManagedMonitorToolBase.cxx:2388
ManagedMonitorToolBase::m_preScaleProp
long m_preScaleProp
Definition: ManagedMonitorToolBase.h:916
LWHistAthMonWrapper::removeCustomData
static void removeCustomData(LWHist *)
ManagedMonitorToolBase::trigChainsArePassed
virtual bool trigChainsArePassed(std::vector< std::string > &)
Definition: ManagedMonitorToolBase.cxx:2325
tubeMax
double tubeMax
Definition: MDT_ResponseTest.cxx:31
MdtRawDataValAlg::m_do_mdtadc
bool m_do_mdtadc
Definition: MdtRawDataValAlg.h:302
ManagedMonitorToolBase::m_fileKey
std::string m_fileKey
Definition: ManagedMonitorToolBase.h:896
ManagedMonitorToolBase::m_lastLumiBlock
unsigned int m_lastLumiBlock
Definition: ManagedMonitorToolBase.h:922
ManagedMonitorToolBase::m_vTrigGroupNames
std::vector< std::string > m_vTrigGroupNames
Definition: ManagedMonitorToolBase.h:742
MdtRawDataValAlg::m_overalltdccutPRLumi
TH1 * m_overalltdccutPRLumi[4]
Definition: MdtRawDataValAlg.h:227
AthenaMonManager::tier0ESD
@ tier0ESD
Definition: AthenaMonManager.h:49
ManagedMonitorToolBase::lbAverageLivefraction
virtual float lbAverageLivefraction(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Average luminosity livefraction.
Definition: ManagedMonitorToolBase.cxx:1993
skel.l2
l2
Definition: skel.GENtoEVGEN.py:426
ManagedMonitorToolBase::m_templateGraphs
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > m_templateGraphs
Definition: ManagedMonitorToolBase.h:726
MdtRawDataValAlg::m_detMgr
const MuonGM::MuonDetectorManager * m_detMgr
Definition: MdtRawDataValAlg.h:330
MdtRawDataValAlg::m_overallPR_mdt_DRvsSegD
TH2 * m_overallPR_mdt_DRvsSegD[4]
Definition: MdtRawDataValAlg.h:246
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthenaMonManager::dataType
static DataType_t dataType()
Returns the data type that the monitoring application is running over to help ManagedMonitorToolBase ...
Definition: AthenaMonManager.cxx:338
MDTChamber
Definition: MDTChamber.h:22
MuonGM::MuonReadoutElement::GlobalToAmdbLRSCoords
virtual Amg::Vector3D GlobalToAmdbLRSCoords(const Amg::Vector3D &x) const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:149
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
MdtRawDataValAlg::m_StationPhi
int m_StationPhi
Definition: MdtRawDataValAlg.h:209
TubeTraversedBySegment
Definition: MdtRawDataValAlg.h:64
MuonGM::MuonDetectorManager::getMdtReadoutElement
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:204
xAOD::numberOfTriggerEtaLayers
@ numberOfTriggerEtaLayers
layers with trigger eta hits [unit8_t].
Definition: TrackingPrimitives.h:292
ManagedMonitorToolBase::m_manager
AthenaMonManager * m_manager
Definition: ManagedMonitorToolBase.h:892
MdtRawDataValAlg::m_overalladcPR_HighOcc
TH1 * m_overalladcPR_HighOcc[4]
Definition: MdtRawDataValAlg.h:241
MdtRawDataValAlg::GetEventNum
StatusCode GetEventNum()
Definition: MDTRawDataUtils.cxx:1175
MdtRawDataValAlg::m_overalltdcPR_HighOcc_ADCCut
TH1 * m_overalltdcPR_HighOcc_ADCCut[4]
Definition: MdtRawDataValAlg.h:240
ManagedMonitorToolBase::initialize
virtual StatusCode initialize()
Definition: ManagedMonitorToolBase.cxx:669
L1_BARREL
@ L1_BARREL
Definition: MdtRawDataValAlg.h:62
LWHistAthMonWrapper::key
static const std::string & key(LWHist *)
ManagedMonitorToolBase::m_lumiDataKey
SG::ReadCondHandleKey< LuminosityCondData > m_lumiDataKey
Definition: ManagedMonitorToolBase.h:950
ManagedMonitorToolBase::m_streamNameFcn
StreamNameFcn * m_streamNameFcn
Definition: ManagedMonitorToolBase.h:904
MuonGM::MdtReadoutElement
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MdtReadoutElement.h:50
lumiFormat.i
int i
Definition: lumiFormat.py:92
AthenaMonManager::tier0
@ tier0
Definition: AthenaMonManager.h:49
MdtRawDataValAlg::bookMDTOverviewHistograms
virtual StatusCode bookMDTOverviewHistograms(bool newLumiBlock, bool newRun)
Definition: MdtRawDataValAlg.cxx:1318
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
beamspotman.n
n
Definition: beamspotman.py:731
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
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthenaMonManager::online
@ online
Definition: AthenaMonManager.h:49
ManagedMonitorToolBase::file
@ file
Definition: ManagedMonitorToolBase.h:114
MdtRawDataValAlg::m_do_mdttube_masked
bool m_do_mdttube_masked
Definition: MdtRawDataValAlg.h:309
LArG4ShowerLibProcessing.hits
hits
Definition: LArG4ShowerLibProcessing.py:136
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
makeTRTBarrelCans.y2
tuple y2
Definition: makeTRTBarrelCans.py:18
Trk::driftRadius
@ driftRadius
trt, straws
Definition: ParamDefs.h:59
MdtRawDataValAlg::m_mdtChamberHits
TH1 * m_mdtChamberHits[4][4][16]
Definition: MdtRawDataValAlg.h:262
AthenaMonManager::writeAndDelete
virtual void writeAndDelete(const std::string &key)
If the TObject is owned by this manager, its Write() method is called and it is deleted.
Definition: AthenaMonManager.cxx:870
ManagedMonitorToolBase::newLowStatIntervalFlag
bool newLowStatIntervalFlag() const
Flag functions allowing clients to determine when to book new and process old histograms; values are ...
Definition: ManagedMonitorToolBase.h:849
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
getLatestRuns.interval
interval
Definition: getLatestRuns.py:24
MdtRawDataValAlg::m_do_mdt_effCounts
bool m_do_mdt_effCounts
Definition: MdtRawDataValAlg.h:312
xAOD::MuonRoI_v1
Class describing a LVL1 muon region of interest.
Definition: MuonRoI_v1.h:33
MdtRawDataValAlg::isATLASReady
bool isATLASReady() const
Definition: MdtRawDataValAlg.h:112
MdtRawDataValAlg::m_l1RoiKey
SG::ReadHandleKey< xAOD::MuonRoIContainer > m_l1RoiKey
Definition: MdtRawDataValAlg.h:205
MdtRawDataValAlg::get_bin_for_LB_crate_hist
int get_bin_for_LB_crate_hist(int region, int layer, int phi, int eta, std::string_view chamber)
Definition: MDTRawDataUtils.cxx:1886
ManagedMonitorToolBase::ATTRIB_UNMANAGED
@ ATTRIB_UNMANAGED
Definition: ManagedMonitorToolBase.h:131
MdtIdHelper
Definition: MdtIdHelper.h:61
ManagedMonitorToolBase::Imp::benchPostBookHistograms
void benchPostBookHistograms()
Definition: ManagedMonitorToolBase.cxx:87
test_pyathena.parent
parent
Definition: test_pyathena.py:15
MdtRawDataValAlg::m_overallPR_mdt_DRvsDT
TH2 * m_overallPR_mdt_DRvsDT[4]
Definition: MdtRawDataValAlg.h:245
AthenaMonManager::tier0Raw
@ tier0Raw
Definition: AthenaMonManager.h:49
MdtRawDataValAlg::m_do_mdttdcadc
bool m_do_mdttdcadc
Definition: MdtRawDataValAlg.h:303
ManagedMonitorToolBase::m_triggerChainProp
std::string m_triggerChainProp
Definition: ManagedMonitorToolBase.h:917
MdtRawDataValAlg::m_do_mdtadc_onSegm_ML2
bool m_do_mdtadc_onSegm_ML2
Definition: MdtRawDataValAlg.h:297
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthenaMonManager::user
@ user
Definition: AthenaMonManager.h:49
MdtRawDataValAlg::binMdtGlobal_byLayer
virtual StatusCode binMdtGlobal_byLayer(TH2 *, TH2 *, TH2 *)
Definition: MDTRawDataUtils.cxx:756
run
Definition: run.py:1
ManagedMonitorToolBase::ATTRIB_MANAGED
@ ATTRIB_MANAGED
Definition: ManagedMonitorToolBase.h:131
ManagedMonitorToolBase::StreamNameFcn::getStreamName
virtual std::string getStreamName(const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, bool usePreviousInterval=false)=0
A function that converts a MonGroup of logical parameters into a physical output stream name.
IdentifiableContainerMT::const_iterator
Definition: IdentifiableContainerMT.h:82
MdtRawDataValAlg::fillMDTHistograms
virtual StatusCode fillMDTHistograms(const Muon::MdtPrepData *)
Definition: MdtRawDataValAlg.cxx:1441
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
MdtRawDataValAlg::m_mg
std::unique_ptr< MDTMonGroupStruct > m_mg
Definition: MdtRawDataValAlg.h:115
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
ManagedMonitorToolBase::ManagedMonitorToolBase
ManagedMonitorToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition: ManagedMonitorToolBase.cxx:389
ManagedMonitorToolBase::medStat
@ medStat
Definition: ManagedMonitorToolBase.h:115
Muon::MdtDriftCircleOnTrack::driftRadius
double driftRadius() const
Returns the value of the drift radius.
Definition: MdtDriftCircleOnTrack.h:277
MdtRawDataValAlg::m_key_rpc
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_key_rpc
Definition: MdtRawDataValAlg.h:204
MdtRawDataValAlg::bookMDTHisto_chambers
virtual StatusCode bookMDTHisto_chambers(TH1F_LW *&, TString, TString, TString, int, float, float, MonGroup &)
Definition: MDTRawDataUtils.cxx:970
MdtRawDataValAlg::m_do_mdttdctube
bool m_do_mdttdctube
Definition: MdtRawDataValAlg.h:318
ManagedMonitorToolBase::m_templateTrees
std::map< Interval_t, std::vector< MgmtParams< TTree > > > m_templateTrees
Definition: ManagedMonitorToolBase.h:730
ManagedMonitorToolBase::m_metadataMap
MDMap_t m_metadataMap
Definition: ManagedMonitorToolBase.h:889
TH1::Fill
int Fill(double)
Definition: rootspy.cxx:285
MdtRawDataValAlg::m_mdthitsperML_byLayer
TH2 * m_mdthitsperML_byLayer[3]
Definition: MdtRawDataValAlg.h:271
MdtRawDataValAlg::m_do_mdtmultil
bool m_do_mdtmultil
Definition: MdtRawDataValAlg.h:304
ManagedMonitorToolBase::m_endOfEventsBlock
bool m_endOfEventsBlock
Definition: ManagedMonitorToolBase.h:885
MdtRawDataValAlg::m_lumiblock
int m_lumiblock
Definition: MdtRawDataValAlg.h:169
fcn
void fcn(int &, double *, double &result, double par[], int)
this is where we write out chi2
Definition: Chi2LJets.cxx:183
ManagedMonitorToolBase::m_trigLiveFractionDataKey
SG::ReadCondHandleKey< TrigLiveFractionCondData > m_trigLiveFractionDataKey
Definition: ManagedMonitorToolBase.h:954
MdtRawDataValAlg::m_overalladccutPRLumi
TH1 * m_overalladccutPRLumi[4]
Definition: MdtRawDataValAlg.h:230
ManagedMonitorToolBase::m_environment
AthenaMonManager::Environment_t m_environment
Definition: ManagedMonitorToolBase.h:902
MdtRawDataValAlg::fillMDTMaskedTubes
virtual StatusCode fillMDTMaskedTubes(IdentifierHash, const std::string &, TH1F_LW *&h)
Definition: MDTRawDataUtils.cxx:1027
Trk::MeasurementBase::localCovariance
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
Definition: MeasurementBase.h:138
Trk::Combined
@ Combined
Definition: TrackSummaryTool.h:32
beamspotman.dir
string dir
Definition: beamspotman.py:623
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
MuonIdHelper::stationPhi
int stationPhi(const Identifier &id) const
Definition: MuonIdHelper.cxx:814
MdtRawDataValAlg::m_mdtchamberstat
TH1 * m_mdtchamberstat
Definition: MdtRawDataValAlg.h:260
Trk::MeasurementBase
Definition: MeasurementBase.h:58
ManagedMonitorToolBase::m_lastRun
unsigned int m_lastRun
Definition: ManagedMonitorToolBase.h:923
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
MdtRawDataValAlg::m_do_mdt_effEntries
bool m_do_mdt_effEntries
Definition: MdtRawDataValAlg.h:311
ManagedMonitorToolBase::m_newLumiBlock
bool m_newLumiBlock
Definition: ManagedMonitorToolBase.h:883
ManagedMonitorToolBase::m_endOfLowStat
bool m_endOfLowStat
Definition: ManagedMonitorToolBase.h:885
MdtRawDataValAlg::binMdtOccVsLB
virtual StatusCode binMdtOccVsLB(TH2 *&h, int region, int layer)
Definition: MDTRawDataUtils.cxx:1324
MdtRawDataValAlg::binMdtRegional
virtual StatusCode binMdtRegional(TH2 *, std::string_view xAxis)
Definition: MDTRawDataUtils.cxx:379
python.grid.Add
def Add(name)
Definition: grid.py:41
ManagedMonitorToolBase::m_lbDurationDataKey
SG::ReadCondHandleKey< LBDurationCondData > m_lbDurationDataKey
Definition: ManagedMonitorToolBase.h:952
Muon::MdtPrepData::tdc
int tdc() const
Returns the TDC (typically range is 0 to 2500).
Definition: MdtPrepData.h:161
MdtRawDataValAlg::mezzmdt
int mezzmdt(Identifier)
Definition: MDTRawDataUtils.cxx:1081
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
ManagedMonitorToolBase::bookHistogramsRecurrent
virtual StatusCode bookHistogramsRecurrent()
An inheriting class should either override this function, bookHists() or bookHistograms().
Definition: ManagedMonitorToolBase.cxx:1395
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
MdtRawDataValAlg::m_overalladc_segm_PR_Lumi
TH1 * m_overalladc_segm_PR_Lumi[4]
Definition: MdtRawDataValAlg.h:228
MdtRawDataValAlg::m_overalltdccutPRLumi_TGCtrig
TH1 * m_overalltdccutPRLumi_TGCtrig[4]
Definition: MdtRawDataValAlg.h:232
MdtRawDataValAlg::m_do_mdttdccut_ML2
bool m_do_mdttdccut_ML2
Definition: MdtRawDataValAlg.h:295
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
MdtRawDataValAlg::m_do_mdttdc
bool m_do_mdttdc
Definition: MdtRawDataValAlg.h:293
TH2F_LW::create
static TH2F_LW * create(const char *name, const char *title, unsigned nbinsx, const double &xmin, const double &xmax, unsigned nbinsy, const double &ymin, const double &ymax)
Definition: TH2F_LW.cxx:33
AthenaMonManager::getLBsHigStat
static unsigned int getLBsHigStat()
Definition: AthenaMonManager.cxx:332
MdtRawDataValAlg::m_mdthitspermultilayerLumi
TH2 * m_mdthitspermultilayerLumi[4][4]
Definition: MdtRawDataValAlg.h:265
Muon::MdtDriftCircleOnTrack
This class represents the corrected MDT measurements, where the corrections include the effects of wi...
Definition: MdtDriftCircleOnTrack.h:37
LWHistAthMonWrapper::setKey
static void setKey(LWHist *, const std::string &key)
MuonCalib::MTStraightLine::signDistFrom
double signDistFrom(const MTStraightLine &h) const
get the signed distance of two lines (if both are parallel, dist>0)
Definition: MTStraightLine.cxx:89
MdtRawDataValAlg::putBox
static void putBox(TH2 *h, float x1, float y1, float x2, float y2)
Definition: MDTRawDataUtils.cxx:1185
MdtRawDataValAlg::m_overalltdcadcPRLumi
TH2 * m_overalltdcadcPRLumi[4]
Definition: MdtRawDataValAlg.h:221
ExtractEBRunDetails.endOfRun
endOfRun
Definition: ExtractEBRunDetails.py:245
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
dqt_zlumi_alleff_HIST.B
B
Definition: dqt_zlumi_alleff_HIST.py:110
HI::TowerBins::numLayers
constexpr unsigned int numLayers()
Definition: HIEventDefs.h:23
MuonIdHelper::stationEta
int stationEta(const Identifier &id) const
Definition: MuonIdHelper.cxx:809
item
Definition: ItemListSvc.h:43
MdtRawDataValAlg::m_overalladc_HighOcc
TH1 * m_overalladc_HighOcc
Definition: MdtRawDataValAlg.h:237
L1_UNKNOWN
@ L1_UNKNOWN
Definition: MdtRawDataValAlg.h:62
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
ManagedMonitorToolBase::lowStat
@ lowStat
Definition: ManagedMonitorToolBase.h:115
MdtRawDataValAlg::m_do_mdtmezz
bool m_do_mdtmezz
Definition: MdtRawDataValAlg.h:310
LWHist::setOwnsROOTHisto
void setOwnsROOTHisto(bool b)
Definition: LWHist.h:75
ManagedMonitorToolBase::m_lwhists
std::set< LWHist * > m_lwhists
Definition: ManagedMonitorToolBase.h:891
MdtRawDataValAlg::m_do_mdtadc_onSegm_ML1
bool m_do_mdtadc_onSegm_ML1
Definition: MdtRawDataValAlg.h:296
MdtRawDataValAlg::m_BMGid
int m_BMGid
Definition: MdtRawDataValAlg.h:325
MdtRawDataValAlg::bookMDTHisto_overview_2D
virtual StatusCode bookMDTHisto_overview_2D(TH2 *&h, TString, TString, TString, int, float, float, int, float, float, MonGroup &)
Definition: MDTRawDataUtils.cxx:981
MdtRawDataValAlg::StoreTriggerType
StatusCode StoreTriggerType()
ManagedMonitorToolBase::m_templateLWHistograms
std::map< Interval_t, std::vector< MgmtParams< LWHist > > > m_templateLWHistograms
Definition: ManagedMonitorToolBase.h:734
MdtRawDataValAlg::m_mdtxydet
TH2 * m_mdtxydet[3]
Definition: MdtRawDataValAlg.h:263
Trk::iPhi
@ iPhi
Definition: ParamDefs.h:53
MdtRawDataValAlg::m_do_mdttdccut_ML1
bool m_do_mdttdccut_ML1
Definition: MdtRawDataValAlg.h:294
ManagedMonitorToolBase::m_managerNameProp
std::string m_managerNameProp
Definition: ManagedMonitorToolBase.h:894
Trk::Track::measurementsOnTrack
const DataVector< const MeasurementBase > * measurementsOnTrack() const
return a pointer to a vector of MeasurementBase (NOT including any that come from outliers).
Definition: Tracking/TrkEvent/TrkTrack/src/Track.cxx:178
MdtRawDataValAlg::m_mdtoccvslb_summaryPerSector
TH2 * m_mdtoccvslb_summaryPerSector
Definition: MdtRawDataValAlg.h:275
ManagedMonitorToolBase::m_nEventsIgnoreTrigger
unsigned int m_nEventsIgnoreTrigger
Definition: ManagedMonitorToolBase.h:927
MdtRawDataValAlg::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Definition: MdtRawDataValAlg.h:207
ManagedMonitorToolBase::run
@ run
Definition: ManagedMonitorToolBase.h:116
MdtRawDataValAlg::m_doMdtESD
bool m_doMdtESD
Definition: MdtRawDataValAlg.h:193
ManagedMonitorToolBase::m_endOfRun
bool m_endOfRun
Definition: ManagedMonitorToolBase.h:885
MuonGM::MuonDetectorManager::getMuonStation
const MuonStation * getMuonStation(const std::string &stName, int eta, int phi) const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:137
geoGetIds
void geoGetIds(FUNCTION f, const GeoGraphNode *node, int depthLimit=1)
Template helper for running the visitor.
Definition: GeoGetIds.h:82
ManagedMonitorToolBase::m_newLowStat
bool m_newLowStat
Definition: ManagedMonitorToolBase.h:883
AthenaPoolExample_Copy.streamName
string streamName
Definition: AthenaPoolExample_Copy.py:39
MdtRawDataValAlg::m_mdtoccvslb
TH2 * m_mdtoccvslb[4][3]
Definition: MdtRawDataValAlg.h:272
MdtRawDataValAlg::m_mdtglobalhitstime
TH1 * m_mdtglobalhitstime
Definition: MdtRawDataValAlg.h:254
MdtRawDataValAlg::m_chi2_cut
float m_chi2_cut
Definition: MdtRawDataValAlg.h:322
lumiFormat.lumi
lumi
Definition: lumiFormat.py:113
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
MuonGM::MdtReadoutElement::tubePos
Amg::Vector3D tubePos(const Identifier &id) const
Returns the global position of the given tube.
a
TList * a
Definition: liststreamerinfos.cxx:10
MdtRawDataValAlg::m_muonKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonKey
Definition: MdtRawDataValAlg.h:206
MdtRawDataValAlg::m_do_mdt_DRvsDT
bool m_do_mdt_DRvsDT
Definition: MdtRawDataValAlg.h:314
MdtRawDataValAlg::m_MdtNHitsvsRpcNHits
TH2 * m_MdtNHitsvsRpcNHits
Definition: MdtRawDataValAlg.h:247
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
ManagedMonitorToolBase::regManagedLWHistograms
StatusCode regManagedLWHistograms(std::vector< MgmtParams< LWHist > > &templateLWHistograms)
Definition: ManagedMonitorToolBase.cxx:1315
MdtRawDataValAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MdtRawDataValAlg.h:118
h
TH1F
Definition: rootspy.cxx:320
AthenaMonManager::forkedProcess
bool forkedProcess()
Definition: AthenaMonManager.cxx:345
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
ManagedMonitorToolBase::m_lastHigStatInterval
int m_lastHigStatInterval
Definition: ManagedMonitorToolBase.h:924
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
MdtRawDataValAlg::m_trig_ENDCAP
bool m_trig_ENDCAP
Definition: MdtRawDataValAlg.h:213
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
LikeEnum::Medium
@ Medium
Definition: LikelihoodEnums.h:14
MdtRawDataValAlg::m_title
std::string m_title
Definition: MdtRawDataValAlg.h:109
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:49
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
MdtRawDataValAlg::fillLumiBlock
StatusCode fillLumiBlock()
Definition: MDTRawDataUtils.cxx:1166
MdtRawDataValAlg::m_tubesperchamber_map
std::map< std::string, float > m_tubesperchamber_map
Definition: MdtRawDataValAlg.h:191
ManagedMonitorToolBase::Imp::benchPreBookHistograms
void benchPreBookHistograms()
Definition: ManagedMonitorToolBase.cxx:78
ManagedMonitorToolBase::endOfRunFlag
bool endOfRunFlag() const
Definition: ManagedMonitorToolBase.h:859
ManagedMonitorToolBase::m_nLumiBlocks
unsigned int m_nLumiBlocks
Definition: ManagedMonitorToolBase.h:928
MdtRawDataValAlg::m_mdthitsperchamber_InnerMiddleOuterLumi
TH2 * m_mdthitsperchamber_InnerMiddleOuterLumi[2]
Definition: MdtRawDataValAlg.h:267
AthenaMonManager::altprod
@ altprod
Definition: AthenaMonManager.h:49
ManagedMonitorToolBase::eventsBlock
@ eventsBlock
Definition: ManagedMonitorToolBase.h:114
python.envutil.filelist
filelist
print ("Checking files %s..." % fullfile)
Definition: envutil.py:152
MdtRawDataValAlg::m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi
TH2 * m_mdthitsperchamber_onSegm_InnerMiddleOuterLumi[2]
Definition: MdtRawDataValAlg.h:269
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TH1
Definition: rootspy.cxx:268
DEBUG
#define DEBUG
Definition: page_access.h:11
MdtRawDataValAlg::m_overalltdccutPRLumi_RPCtrig
TH1 * m_overalltdccutPRLumi_RPCtrig[4]
Definition: MdtRawDataValAlg.h:231
generate::GetEntries
double GetEntries(TH1D *h, int ilow, int ihi)
Definition: rmsFrac.cxx:20
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
MdtRawDataValAlg::m_ADCCut
float m_ADCCut
Definition: MdtRawDataValAlg.h:215
MuonGM::MuonReadoutElement::identify
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:184
MdtRawDataValAlg::m_ADCCut_Bkgrd
float m_ADCCut_Bkgrd
Definition: MdtRawDataValAlg.h:216
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MdtRawDataValAlg::m_mdteventscutLumi
TH1 * m_mdteventscutLumi
Definition: MdtRawDataValAlg.h:249
Trk::RIO_OnTrack::identify
virtual Identifier identify() const final
return the identifier -extends MeasurementBase
Definition: RIO_OnTrack.h:155
MuonCalib::MTStraightLine
Definition: MTStraightLine.h:16
ManagedMonitorToolBase::all
@ all
Definition: ManagedMonitorToolBase.h:116
ManagedMonitorToolBase::deregObject
virtual StatusCode deregObject(const std::string &objName, const std::string &system, Interval_t interval)
De-registers a TObject from the THistSvc, but does NOT delete the object.
Definition: ManagedMonitorToolBase.cxx:1852
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
ManagedMonitorToolBase::StreamNameFcn::getDirectoryName
virtual std::string getDirectoryName(const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, const bool usePreviousInterval)=0
A function that returns TDirectory path in a file that corresponds to a given MonGroup and object nam...
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
MDTChamber::getName
const std::string & getName() const
Definition: MDTChamber.h:67
ManagedMonitorToolBase::fillHistograms
virtual StatusCode fillHistograms()
An inheriting class should either override this function or fillHists().
Definition: ManagedMonitorToolBase.cxx:1415
MdtRawDataValAlg::m_overalladc_Lumi
TH1 * m_overalladc_Lumi
Definition: MdtRawDataValAlg.h:225
CxxUtils::atoi
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Definition: Control/CxxUtils/Root/StringUtils.cxx:85
ManagedMonitorToolBase::lbAverageLuminosity
virtual float lbAverageLuminosity(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1)
Definition: ManagedMonitorToolBase.cxx:1960
MdtRawDataValAlg::m_overalltdccutLumi
TH1 * m_overalltdccutLumi
Definition: MdtRawDataValAlg.h:222
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
python.Logging.manager
manager
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py:92
MdtRawDataValAlg::m_overalltdcPR_HighOcc
TH1 * m_overalltdcPR_HighOcc[4]
Definition: MdtRawDataValAlg.h:239
MdtRawDataValAlg::m_trigtype
int m_trigtype
Definition: MdtRawDataValAlg.h:211
ManagedMonitorToolBase::m_useTrigger
bool m_useTrigger
Definition: ManagedMonitorToolBase.h:920
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
MdtRawDataValAlg::m_mdtchamberstatphislice
TH1 * m_mdtchamberstatphislice[16]
Definition: MdtRawDataValAlg.h:261
ManagedMonitorToolBase::m_haveClearedLastEventBlock
bool m_haveClearedLastEventBlock
Definition: ManagedMonitorToolBase.h:929
AthenaMonManager::lumiBlockNumber
static unsigned int lumiBlockNumber()
Definition: AthenaMonManager.cxx:352
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
skel.l1
l1
Definition: skel.GENtoEVGEN.py:425
MdtRawDataValAlg::binMdtGlobal
virtual StatusCode binMdtGlobal(TH2 *, char ecap)
Definition: MDTRawDataUtils.cxx:29
MdtIdHelper::get_module_hash
virtual int get_module_hash(const Identifier &id, IdentifierHash &hash_id) const override
Definition: MdtIdHelper.cxx:318
Muon::MuonSegment
Definition: MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h:45
MdtRawDataValAlg::m_time
uint32_t m_time
Definition: MdtRawDataValAlg.h:172
Muon::nsw::STGTPSegments::moduleIDBits::stationEta
constexpr uint8_t stationEta
1 to 3
Definition: NSWSTGTPDecodeBitmaps.h:127
ManagedMonitorToolBase::m_templateHistograms
std::map< Interval_t, std::vector< MgmtParams< TH1 > > > m_templateHistograms
Definition: ManagedMonitorToolBase.h:722
IdentifierHash
Definition: IdentifierHash.h:38
MdtRawDataValAlg::m_do_mdt_effPerTube
bool m_do_mdt_effPerTube
Definition: MdtRawDataValAlg.h:313
ManagedMonitorToolBase::newLumiBlockFlag
bool newLumiBlockFlag() const
Definition: ManagedMonitorToolBase.h:853
SG::ExcNoAuxStore
Exception — Aux data requested from object with no store.
Definition: Control/AthContainers/AthContainers/exceptions.h:34
ManagedMonitorToolBase::ATTRIB_X_VS_LB
@ ATTRIB_X_VS_LB
Definition: ManagedMonitorToolBase.h:131
ManagedMonitorToolBase::Imp::s_svcLocator
static std::atomic< ISvcLocator * > s_svcLocator
Definition: ManagedMonitorToolBase.cxx:41
MuonGM::MdtReadoutElement::getNtubesperlayer
int getNtubesperlayer() const
Returns the number of tubes in each tube layer.
test_pyathena.counter
counter
Definition: test_pyathena.py:15
python.PyAthena.obj
obj
Definition: PyAthena.py:135
ManagedMonitorToolBase::m_trigTranslator
PublicToolHandle< ITriggerTranslatorTool > m_trigTranslator
Definition: ManagedMonitorToolBase.h:910
MdtRawDataValAlg::m_mdthitsperchamber_InnerMiddleOuter_HighOcc
TH2 * m_mdthitsperchamber_InnerMiddleOuter_HighOcc[2]
Definition: MdtRawDataValAlg.h:268
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
xAOD::iEta
setScale setgFexType iEta
Definition: gFexJetRoI_v1.cxx:74
LWHist::getROOTHistBase
virtual TH1 * getROOTHistBase()=0
xAOD::numberOfPhiLayers
@ numberOfPhiLayers
layers with a trigger phi hit [unit8_t].
Definition: TrackingPrimitives.h:290
ManagedMonitorToolBase::m_lastMedStatInterval
int m_lastMedStatInterval
Definition: ManagedMonitorToolBase.h:924
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
ManagedMonitorToolBase::m_vTrigChainNames
std::vector< std::string > m_vTrigChainNames
Definition: ManagedMonitorToolBase.h:742
MdtRawDataValAlg::m_mdtrzdet
TH2 * m_mdtrzdet[3]
Definition: MdtRawDataValAlg.h:264
MdtRawDataValAlg::m_doChamberHists
bool m_doChamberHists
Definition: MdtRawDataValAlg.h:196
IdContext
class IdContext
Definition: IdContext.h:34
python.compressB64.c
def c
Definition: compressB64.py:93
MdtRawDataValAlg::fillMDTSummaryHistograms
virtual StatusCode fillMDTSummaryHistograms(const Muon::MdtPrepData *, std::set< std::string >, bool &isNoiseBurstCandidate)
Definition: MdtRawDataValAlg.cxx:1512
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
MdtRawDataValAlg::GetTimingInfo
StatusCode GetTimingInfo()
Definition: MDTRawDataUtils.cxx:1139
ManagedMonitorToolBase::regHist
virtual StatusCode regHist(TH1 *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical ...
Definition: ManagedMonitorToolBase.cxx:1454
MdtRawDataValAlg::HasTrigBARREL
bool HasTrigBARREL()
Definition: MdtRawDataValAlg.h:161
calibdata.tube
tube
Definition: calibdata.py:31
MdtRawDataValAlg::m_BMGpresent
bool m_BMGpresent
Definition: MdtRawDataValAlg.h:324
MdtRawDataValAlg::initDeadChannels
void initDeadChannels(const MuonGM::MdtReadoutElement *mydetEl)
Definition: MdtRawDataValAlg.cxx:1970
MdtRawDataValAlg::m_do_mdttdccut_TGCtrig_ML2
bool m_do_mdttdccut_TGCtrig_ML2
Definition: MdtRawDataValAlg.h:301
merge
Definition: merge.py:1
AthenaMonManager::noOutput
@ noOutput
Definition: AthenaMonManager.h:49
ManagedMonitorToolBase::intervalEnumToString
static std::string intervalEnumToString(Interval_t interval)
Converts a LevelOfDetail_t to a string of the same name.
Definition: ManagedMonitorToolBase.cxx:588
MdtRawDataValAlg::bookMDTHistograms
virtual StatusCode bookMDTHistograms(MDTChamber *chamber, Identifier digcoll_id)
Definition: MdtRawDataValAlg.cxx:706
MdtRawDataValAlg::m_DeadChannels
std::map< Identifier, std::vector< Identifier > > m_DeadChannels
Definition: MdtRawDataValAlg.h:326
MdtRawDataValAlg::m_nb_hits
float m_nb_hits
Definition: MdtRawDataValAlg.h:320
fitman.k
k
Definition: fitman.py:528
MdtRawDataValAlg::m_do_mdttdccut_TGCtrig_ML1
bool m_do_mdttdccut_TGCtrig_ML1
Definition: MdtRawDataValAlg.h:299
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5
ManagedMonitorToolBase::m_defaultLBDuration
float m_defaultLBDuration
Definition: ManagedMonitorToolBase.h:958
ManagedMonitorToolBase::newRunFlag
bool newRunFlag() const
Definition: ManagedMonitorToolBase.h:854
MdtRawDataValAlg::fillMDTOverviewHistograms
virtual StatusCode fillMDTOverviewHistograms(const Muon::MdtPrepData *, bool &isNoiseBurstCandidate)
Definition: MdtRawDataValAlg.cxx:1614
MdtRawDataValAlg::putLine
static void putLine(TH2 *h, float x1, float y1, float x2, float y2, Color_t c=kBlack)
Definition: MDTRawDataUtils.cxx:1201
MdtRawDataValAlg::m_overalladc_segm_Lumi
TH1 * m_overalladc_segm_Lumi
Definition: MdtRawDataValAlg.h:224
MdtRawDataValAlg::m_do_mdtchamberstatphislice
bool m_do_mdtchamberstatphislice
Definition: MdtRawDataValAlg.h:290