 |
ATLAS Offline Software
|
#include <DiMuMon.h>
|
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...
|
|
|
| DiMuMon (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~DiMuMon () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | bookHistograms () |
| An inheriting class should either override this function or bookHists(). 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...
|
|
template<class T > |
void | RegisterHisto (MonGroup &mon, T *histo) |
|
double | getInvmass (const xAOD::TrackParticle *track1, const xAOD::TrackParticle *track2, double Mass) const |
|
double | getCrtDiff (const xAOD::TrackParticle *id1, const xAOD::TrackParticle *id2) const |
|
double | getEta (const xAOD::TrackParticle *id1, const xAOD::TrackParticle *id2) const |
|
double | getPhi (const xAOD::TrackParticle *id1, const xAOD::TrackParticle *id2) const |
|
double | getPt (const xAOD::TrackParticle *id1, const xAOD::TrackParticle *id2) const |
|
void | iterativeGausFit (TH2F *hin, const std::vector< TH1F * > &hout, int mode) |
|
bool | trackQuality (const xAOD::TrackParticle *idTrk) |
|
virtual StreamNameFcn * | streamNameFunction () |
| 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 | bookHistogramsRecurrent () |
| An inheriting class should either override this function, bookHists() or bookHistograms(). 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 | getHist (TH1 *&h, const std::string &hName, const std::string &system, Interval_t interval) |
| Returns a TH1 via the pointer passed as the first argument. More...
|
|
virtual StatusCode | getHist (TH1 *&h, const std::string &hName, const MonGroup &group) |
| Returns a TH1 via the pointer passed as the first argument. More...
|
|
virtual StatusCode | getHist (TH2 *&h, const std::string &hName, const std::string &system, Interval_t interval) |
| Returns a TH2 via the pointer passed as the first argument. More...
|
|
virtual StatusCode | getHist (TH2 *&h, const std::string &hName, const MonGroup &group) |
| Returns a TH2 via the pointer passed as the first argument. More...
|
|
virtual StatusCode | regEfficiency (TEfficiency *e, const MonGroup &group) |
| Registers a TEfficiency to be included in the output stream using logical parameters that describe the plot. More...
|
|
virtual StatusCode | 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 | writeAndDelete (TH1 *h, const MonGroup &group) |
| Write out histogram and delete it. More...
|
|
virtual StatusCode | deregHist (TH1 *h) |
| De-registers a TH1 from the THistSvc, but does NOT delete the object. More...
|
|
virtual StatusCode | deregGraph (TGraph *g) |
| De-registers a TGraph from the THistSvc, but does NOT delete the object. More...
|
|
virtual StatusCode | deregObject (const std::string &objName, const std::string &system, Interval_t interval) |
| De-registers a TObject from the THistSvc, but does NOT delete the object. More...
|
|
virtual StatusCode | deregObject (const std::string &objName, const MonGroup &group) |
| De-registers a TObject from the THistSvc, but does NOT delete the object. More...
|
|
virtual StatusCode | setupOutputStreams (std::vector< std::string > Mapping=std::vector< std::string >()) |
| This implementation does nothing—streams in this class should be managed by the AthenaMonManager. More...
|
|
virtual StatusCode | runStat () |
| This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ). More...
|
|
virtual 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, V, H > &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 |
|
|
StatusCode | regManagedHistograms (std::vector< MgmtParams< TH1 > > &templateHistograms) |
|
StatusCode | regManagedGraphs (std::vector< MgmtParams< TGraph > > &templateGraphs) |
|
StatusCode | regManagedTrees (std::vector< MgmtParams< TTree > > &templateTrees) |
|
StatusCode | regManagedEfficiencies (std::vector< MgmtParams< TEfficiency > > &templateEfficiencies) |
|
StatusCode | parseList (const std::string &, std::vector< std::string > &) |
|
void | updateTriggersForGroups (std::vector< std::string > &) |
|
StatusCode | registerMetadata (const std::string &streamName, const std::string &hName, const MonGroup &group) |
|
StatusCode | THistSvc_deReg_fixTGraph (TFile *file, TGraph *theGraph, std::string &directoryName) |
| Fixes THistSvc->deReg(obj) when obj is TGraph instance. More...
|
|
unsigned int | get_nEvents () const |
|
long | get_procNEventsProp () const |
|
virtual bool | trigChainsArePassed (std::vector< std::string > &) |
|
virtual StreamNameFcn * | getNewStreamNameFcn () 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...
|
|
|
int | m_lumiBlockNum {} |
|
int | m_nMassBins {} |
|
int | m_nVarBins {} |
|
int | m_nPtBins {} |
|
int | m_nEtaBins {} |
|
int | m_nPhiBins {} |
|
double | m_coneSize {} |
|
double | m_isolationCut {} |
|
double | m_minInvmass {} |
|
double | m_maxInvmass {} |
|
double | m_ptCut {} |
|
double | m_etaCut {} |
|
std::string | m_resonName {} |
|
std::string | m_triggerChainName {} |
|
SG::ReadHandleKey< xAOD::MuonContainer > | m_muonCollection {this, "muonCollection", "Muons"} |
|
bool | m_doFits {} |
|
bool | m_doSaveFits {} |
|
bool | m_setDebug {} |
|
std::vector< std::string > | m_regions |
|
std::vector< std::string > | m_varsVSmean |
|
std::vector< std::string > | m_varsVSwidth |
|
std::vector< std::string > | m_varsDistr |
|
std::map< std::string, std::pair< double, double > > | m_varRanges |
|
std::map< std::string, double > | m_varValues |
|
std::map< std::string, std::string > | m_varLabels |
|
TH1F * | m_chi2 {} |
|
TH1F * | m_stat {} |
|
std::map< std::string, TH1F * > | m_invmass |
|
std::map< std::string, std::map< std::string, TH2F * > > | m_2DinvmassVSx |
|
std::map< std::string, std::map< std::string, TH1F * > > | m_invmassVSx |
|
std::map< std::string, std::map< std::string, TH1F * > > | m_widthVSx |
|
std::map< std::string, std::map< std::string, TH1F * > > | m_xDistr |
|
std::map< Interval_t, std::vector< MgmtParams< TH1 > > > | m_templateHistograms |
|
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > | m_templateGraphs |
|
std::map< Interval_t, std::vector< MgmtParams< TTree > > > | m_templateTrees |
|
std::map< Interval_t, std::vector< MgmtParams< TEfficiency > > > | m_templateEfficiencies |
|
std::vector< std::string > | m_vTrigChainNames |
|
std::vector< std::string > | m_vTrigGroupNames |
|
MDMap_t | m_metadataMap |
|
AthenaMonManager * | m_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 |
|
StreamNameFcn * | m_streamNameFcn |
|
ServiceHandle< ITHistSvc > | m_THistSvc |
|
PublicToolHandle< Trig::ITrigDecisionTool > | m_trigDecTool {this, "TrigDecisionTool",""} |
|
PublicToolHandle< ITriggerTranslatorTool > | m_trigTranslator {this,"TriggerTranslatorTool",""} |
|
ToolHandleArray< IDQFilterTool > | m_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 |
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
Definition at line 22 of file DiMuMon.h.
◆ MDMap_t
◆ StoreGateSvc_t
◆ Interval_t
An enumeration describing how detailed a particular monitoring object is.
summary: used to summarize the state of the system
runstat: same as summary
shift: used to flag potential problems
expert: essential for diagnosing problems identified by shift-level objects
debug: useful for standalone debugging, but not for routine monitoring; not essential for diagnosing problems during normal running
transient: too detailed to ever be written; always summarized by the user by means of another object An enumeration describing the interval over which a particular monitoring object is filled (i.e., interval over which the method Fill(...) is called). This information may be stored with the monitoring object if an application is only able to partially fill the object (i.e., a job sees only part of a run or fill). This information may be ignored in some running Environments. The 'fill' interval corresponds to a fill of the LHC. The 'all' interval corresponds to all available data. The 'lumiBlock' and 'fill' intervals are only valid for the 'collisions' DataType_t.
Enumerator |
---|
file | |
eventsBlock | |
lumiBlock | |
lowStat | |
medStat | |
higStat | |
run | |
fill | |
all | |
Definition at line 113 of file ManagedMonitorToolBase.h.
◆ MgmtAttr_t
An enumeration describing how the class handles the histogram.
attrib_unmanaged: histograms with this attribute will not be rebooked automatically and must be managed by the user code.
attrib_x_is_lb: indicates that the x-axis of the histogram is the luminosity block number and that the histogram should be rebooked as necessary if the current LB exceeds the range.
Enumerator |
---|
ATTRIB_MANAGED | |
ATTRIB_UNMANAGED | |
ATTRIB_X_VS_LB | |
Definition at line 130 of file ManagedMonitorToolBase.h.
◆ DiMuMon()
DiMuMon::DiMuMon |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~DiMuMon()
◆ bookHistograms()
StatusCode DiMuMon::bookHistograms |
( |
| ) |
|
|
virtual |
An inheriting class should either override this function or bookHists().
Reimplemented from ManagedMonitorToolBase.
Definition at line 133 of file DiMuMon.cxx.
158 m_stat =
new TH1F(
"statistics",
"Statistics",nCuts, 0.,
double(nCuts));
159 TString binLabels[] ={
"MuonIdTrk",
"TrkIsoPt40/Pt<.2",
"CombMuon",
"MCPgoodTrk",
"MuPtOK",
"eta<2.5",
"OppChargePair",
"InvMassOK"};
160 for(
int ilabel=0;ilabel<nCuts;ilabel++){
161 m_stat->GetXaxis()->SetBinLabel(ilabel+1,binLabels[ilabel]);
166 for (
const std::string& reg :
m_regions) {
170 m_varRanges[
"etaAll"] = std::make_pair(-1.05,1.05);
171 m_varRanges[
"etaPos"] = std::make_pair(-1.05,1.05);
172 m_varRanges[
"etaNeg"] = std::make_pair(-1.05,1.05);
173 }
else if (reg ==
"EAEA") {
177 }
else if (reg ==
"ECEC") {
178 m_varRanges[
"etaAll"] = std::make_pair(-2.5,-1.05);
179 m_varRanges[
"etaPos"] = std::make_pair(-2.5,-1.05);
180 m_varRanges[
"etaNeg"] = std::make_pair(-2.5,-1.05);
189 TString htitle =
hname +
"; Invmass[GeV/c^{2}]";
227 if (varD ==
"eta" || varD ==
"etaAll" || varD ==
"etaPos" || varD ==
"etaNeg" ){
229 }
else if (varD ==
"pt" || varD ==
"ptAll" || varD ==
"ptPos" || varD ==
"ptNeg" ){
231 }
else if (varD ==
"phi" || varD ==
"phiAll" || varD ==
"phiPos" || varD ==
"phiNeg" ){
241 return StatusCode::SUCCESS;
◆ bookHistogramsRecurrent()
StatusCode ManagedMonitorToolBase::bookHistogramsRecurrent |
( |
| ) |
|
|
virtualinherited |
◆ bookHists()
StatusCode ManagedMonitorToolBase::bookHists |
( |
| ) |
|
|
virtualinherited |
◆ checkHists()
StatusCode ManagedMonitorToolBase::checkHists |
( |
bool |
calledFromFinalize | ) |
|
|
virtualinherited |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ deregGraph()
StatusCode ManagedMonitorToolBase::deregGraph |
( |
TGraph * |
g | ) |
|
|
virtualinherited |
◆ deregHist()
StatusCode ManagedMonitorToolBase::deregHist |
( |
TH1 * |
h | ) |
|
|
virtualinherited |
◆ deregObject() [1/2]
StatusCode ManagedMonitorToolBase::deregObject |
( |
const std::string & |
objName, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
De-registers a TObject from the THistSvc, but does NOT delete the object.
(NB: LightWeight histograms are not even registered until readout).
Definition at line 1641 of file ManagedMonitorToolBase.cxx.
◆ deregObject() [2/2]
StatusCode ManagedMonitorToolBase::deregObject |
( |
const std::string & |
objName, |
|
|
const std::string & |
system, |
|
|
Interval_t |
interval |
|
) |
| |
|
virtualinherited |
De-registers a TObject from the THistSvc, but does NOT delete the object.
(NB: LightWeight histograms are not even registered until readout).
Definition at line 1631 of file ManagedMonitorToolBase.cxx.
◆ detStore()
◆ endOfEventsBlockFlag()
bool ManagedMonitorToolBase::endOfEventsBlockFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ endOfLowStatFlag()
bool ManagedMonitorToolBase::endOfLowStatFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ endOfLumiBlockFlag()
bool ManagedMonitorToolBase::endOfLumiBlockFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ endOfRunFlag()
bool ManagedMonitorToolBase::endOfRunFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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 DiMuMon::fillHistograms |
( |
| ) |
|
|
virtual |
An inheriting class should either override this function or fillHists().
Reimplemented from ManagedMonitorToolBase.
Definition at line 245 of file DiMuMon.cxx.
251 if(!muons.isValid()){
253 return StatusCode::FAILURE;
254 }
else ATH_MSG_DEBUG(
"Muon container successfully retrieved.");
260 for(
const auto*
muon : *muons ) {
263 if (!idTrk)
continue;
264 m_stat->Fill(
"MuonIdTrk",1);
265 double idTrkPt(0),ptSum(0);
268 return StatusCode::FAILURE;
271 idTrkPt = idTrk->
pt();
275 m_stat->Fill(
"TrkIsoPt40/Pt<.2",1);
276 if (!
muon->trackParticle(xAOD::Muon::CombinedTrackParticle))
continue;
277 m_stat->Fill(
"CombMuon",1);
280 m_stat->Fill(
"MCPgoodTrk",1);
282 if (idTrkPt <
m_ptCut*1000)
continue;
285 double idTrkEta = idTrk->
eta();
286 if (std::abs(idTrkEta)>2.5)
continue;
287 m_stat->Fill(
"eta<2.5",1);
289 goodMuons.push_back(
muon);
293 int nMuons = goodMuons.size();
298 for (; mu1!=muEnd;++mu1){
299 const xAOD::TrackParticle *id1 = (*mu1)->trackParticle(xAOD::Muon::InnerDetectorTrackParticle);
301 for (; mu2!=muEnd; ++mu2){
304 double q1 = id1->
charge();
305 double q2 =
id2->charge();
306 if (q1*q2>0)
continue;
307 m_stat->Fill(
"OppChargePair",1);
317 if (invmass<m_minInvmass || invmass>
m_maxInvmass)
continue;
318 m_stat->Fill(
"InvMassOK",1);
322 double etaPos = idPos->
eta();
324 double etaNeg = idNeg->
eta();
327 double phiPos = idPos->
phi();
329 double phiNeg = idNeg->
phi();
339 double phiDiff = std::abs(phiPos - phiNeg);
346 std::string region =
"";
347 if ((std::abs(etaPos)<1.05 || std::abs(etaPos)==1.05) && (std::abs(etaNeg)<1.05 || std::abs(etaNeg)==1.05)) region=
"BB";
348 else if ((etaPos>1.05 && etaPos<2.5) && (etaNeg>1.05 && etaNeg<2.5)) region=
"EAEA";
349 else if ((etaPos<-1.05 && etaPos>-2.5) && (etaNeg<-1.05 && etaNeg>-2.5)) region=
"ECEC";
353 bool fillReg =
false;
357 if (!fillAll && !fillReg)
continue;
361 if (fillAll)
m_invmass[
"All"]->Fill(invmass);
362 if (fillReg)
m_invmass[region]->Fill(invmass);
366 std::map<std::string, TH2F*>* allVars =
nullptr;
373 for (
const std::pair<const std::string, TH2F*>&
p : *allVars) {
374 if (
p.first!=
"etaAll" &&
p.first!=
"phiAll" &&
p.first!=
"ptAll"){
377 }
else if (
p.first==
"etaAll"){
386 }
else if (
p.first==
"phiAll"){
395 }
else if (
p.first==
"ptAll"){
410 if (varD!=
"etaAll" && varD!=
"phiAll" && varD!=
"ptAll"){
413 }
else if (varD==
"etaAll"){
415 m_xDistr[
"All"][
"etaAll"]->Fill(etaPos);
416 m_xDistr[
"All"][
"etaAll"]->Fill(etaNeg);
419 m_xDistr[region][
"etaAll"]->Fill(etaPos);
420 m_xDistr[region][
"etaAll"]->Fill(etaNeg);
422 }
else if (varD==
"phiAll"){
424 m_xDistr[
"All"][
"phiAll"]->Fill(phiPos);
425 m_xDistr[
"All"][
"phiAll"]->Fill(phiNeg);
428 m_xDistr[region][
"phiAll"]->Fill(phiPos);
429 m_xDistr[region][
"phiAll"]->Fill(phiNeg);
431 }
else if (varD==
"ptAll"){
433 m_xDistr[
"All"][
"ptAll"]->Fill(ptPos);
434 m_xDistr[
"All"][
"ptAll"]->Fill(ptNeg);
437 m_xDistr[region][
"ptAll"]->Fill(ptPos);
438 m_xDistr[region][
"ptAll"]->Fill(ptNeg);
447 return StatusCode::SUCCESS;
◆ 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 739 of file ManagedMonitorToolBase.cxx.
745 msg(MSG::WARNING) <<
"ManagedMonitorToolBase::initialize() never called from reimplementation!" <<
endmsg;
756 newLumiBlock =
false;
762 newLowStatInterval =
false;
763 newMedStatInterval =
false;
764 newHigStatInterval =
false;
777 isNewEventsBlock =
true;
792 if( LBsLowStat*LBsMedStat*LBsHigStat == 0) {
793 msg(MSG::WARNING) <<
"zero LBs requested for interval" <<
endmsg;
845 std::vector<Interval_t> intervals_to_process;
850 for (
const auto interval: intervals_to_process) {
862 it.m_templateHist->LabelsInflate(
"X");
869 TH1* passedHist =
it.m_templateHist->GetCopyPassedHisto();
870 TH1* totalHist =
it.m_templateHist->GetCopyTotalHisto();
873 passedHist->LabelsInflate(
"X");
874 totalHist->LabelsInflate(
"X");
879 it.m_templateHist->SetPassedHistogram(*passedHist,
"f");
880 it.m_templateHist->SetTotalHistogram(*totalHist,
" ");
888 streamname->updateRunLB();
898 bool filterresult(
true);
901 for (; filterresult && (ifilter != filterend);
903 filterresult = (filterresult && (*ifilter)->accept());
933 if( LBsLowStat*LBsMedStat*LBsHigStat > 0) {
941 return StatusCode::SUCCESS;
◆ finalHists()
StatusCode ManagedMonitorToolBase::finalHists |
( |
| ) |
|
|
virtualinherited |
◆ get_nEvents()
unsigned int ManagedMonitorToolBase::get_nEvents |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ get_procNEventsProp()
long ManagedMonitorToolBase::get_procNEventsProp |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ getCrtDiff()
Definition at line 664 of file DiMuMon.cxx.
665 double qoverpt1=id1->
charge()/id1->
pt();
666 double qoverpt2=
id2->charge()/
id2->pt();
668 asym=std::abs(qoverpt1)-std::abs(qoverpt2);
◆ getEta()
Definition at line 645 of file DiMuMon.cxx.
647 double px=id1->
p4().Px()+
id2->p4().Px();
648 double py = id1->
p4().Py()+
id2->p4().Py();
649 double pz = id1->
p4().Pz()+
id2->p4().Pz();
◆ getHist() [1/4]
StatusCode ManagedMonitorToolBase::getHist |
( |
TH1 *& |
h, |
|
|
const std::string & |
hName, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Returns a TH1 via the pointer passed as the first argument.
The histogram name, without the leading path or stream name, must be given as the second argument.
Definition at line 1417 of file ManagedMonitorToolBase.cxx.
◆ getHist() [2/4]
StatusCode ManagedMonitorToolBase::getHist |
( |
TH1 *& |
h, |
|
|
const std::string & |
hName, |
|
|
const std::string & |
system, |
|
|
Interval_t |
interval |
|
) |
| |
|
virtualinherited |
Returns a TH1 via the pointer passed as the first argument.
The histogram name, without the leading path or stream name, must be given as the second argument.
Definition at line 1407 of file ManagedMonitorToolBase.cxx.
◆ getHist() [3/4]
StatusCode ManagedMonitorToolBase::getHist |
( |
TH2 *& |
h, |
|
|
const std::string & |
hName, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Returns a TH2 via the pointer passed as the first argument.
The histogram name, without the leading path or stream name, must be given as the second argument.
Definition at line 1436 of file ManagedMonitorToolBase.cxx.
◆ getHist() [4/4]
StatusCode ManagedMonitorToolBase::getHist |
( |
TH2 *& |
h, |
|
|
const std::string & |
hName, |
|
|
const std::string & |
system, |
|
|
Interval_t |
interval |
|
) |
| |
|
virtualinherited |
Returns a TH2 via the pointer passed as the first argument.
The histogram name, without the leading path or stream name, must be given as the second argument.
Definition at line 1426 of file ManagedMonitorToolBase.cxx.
◆ getInvmass()
Definition at line 628 of file DiMuMon.cxx.
629 TLorentzVector particle1,particle2,
v;
630 particle1.SetPtEtaPhiE(id1->pt(),id1->eta(),id1->phi(),sqrt(
pow(
Mass,2)+
pow(id1->p4().Px(),2)+
pow(id1->p4().Py(),2)+
pow(id1->p4().Pz(),2)));
632 v=particle1+particle2;
◆ getNewStreamNameFcn()
|
protectedvirtualinherited |
Definition at line 2155 of file ManagedMonitorToolBase.cxx.
2158 StreamNameFcn* fcn(0);
2162 fcn =
new NoOutputStream();
2165 fcn =
new OnlineStream();
◆ getPhi()
◆ getPt()
◆ initialize()
StatusCode DiMuMon::initialize |
( |
| ) |
|
|
virtual |
◆ inputHandles()
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 |
◆ intervalEnumToString()
std::string ManagedMonitorToolBase::intervalEnumToString |
( |
Interval_t |
interval | ) |
|
|
staticinherited |
Converts a LevelOfDetail_t to a string of the same name.
Converts a string to the corresponding LevelOfDetail_t. Converts a Interval_t to a string of the same name.
Definition at line 535 of file ManagedMonitorToolBase.cxx.
538 std::string
str(
"file");
◆ intervalStringToEnum()
Converts a string to the corresponding Interval_t.
Definition at line 577 of file ManagedMonitorToolBase.cxx.
580 std::string lcstr( strToLower(
str) );
584 else if( lcstr ==
"fill" )
586 else if( lcstr ==
"run" )
588 else if( lcstr ==
"lowStat" )
590 else if( lcstr ==
"medStat" )
592 else if( lcstr ==
"higStat" )
594 else if( lcstr ==
"lumiBlock" )
596 else if( lcstr ==
"eventsBlock" )
598 else if( lcstr ==
"file" )
604 MsgStream
log(
ms,
"ManagedMonitorToolBase::intervalStringToEnum()" );
605 log << MSG::WARNING <<
"Unknown ManagedMonitorToolBase::Interval_t \""
606 <<
str <<
"\", returning \"file\"" <<
endmsg;
◆ iterativeGausFit()
void DiMuMon::iterativeGausFit |
( |
TH2F * |
hin, |
|
|
const std::vector< TH1F * > & |
hout, |
|
|
int |
mode |
|
) |
| |
Definition at line 481 of file DiMuMon.cxx.
483 TString
hname = hin->GetName();
485 TCanvas* ctemp =
new TCanvas(
"ctemp",
"ctemp",500,500);
487 hin->SetMarkerSize(1.2);
490 int nbins=hin->GetNbinsX();
492 std::ostringstream o; o<<
i;
493 TString projName =
hname + o.str();
494 TH1D* htemp = (TH1D*) (hin->ProjectionY(projName,
i+1,
i+1)->Clone());
495 htemp->SetTitle(projName);
497 if (htemp->GetEntries()>50){
498 double mean = 999., meanErr = 999.,
sigma = 999., sigmaErr = 999.,
chi2=0;
500 mean = htemp->GetMean();
501 sigma= htemp->GetRMS();
503 fn->SetParameters(
float(htemp->GetEntries())/10.,
mean,
sigma);
504 htemp->Fit(
"fn",
"RMLQN");
505 mean =
fn->GetParameter(1);
508 fn->SetParameters(
float(htemp->GetEntries())/10.,
mean,
sigma);
511 htemp->Fit(
"fn",
"RML");
512 ctemp->Print(psName);
513 }
else htemp->Fit(
"fn",
"RMLQN");
514 double frange = 2.4*
sigma;
515 double hrange = htemp->GetXaxis()->GetXmax()-htemp->GetXaxis()->GetXmin();
516 double ndf = frange/hrange*(htemp->GetNbinsX()) - 3;
519 mean =
fn->GetParameter(1);
520 meanErr =
fn->GetParError(1);
522 sigmaErr =
fn->GetParError(2);
527 RooRealVar
m(
"mass",
"dimuon invariant mass", 91.2, 71., 111.,
"GeV");
528 RooDataHist *
data =
nullptr;
529 data =
new RooDataHist(
"data",
"data",
m, htemp);
530 RooRealVar bwm0(
"bw_#mu",
"bw_#mu", 91.2, 85.2, 97.2) ;
531 RooRealVar bwsg(
"bw_#sigma",
"bw_#sigma", 2.4952) ;
532 RooBreitWigner bw(
"bw",
"bw",
m, bwm0, bwsg);
534 RooRealVar cbm0(
"cb_#mu",
"cb_#mu", 0 ) ;
535 RooRealVar cbsg(
"cb_#sigma",
"cb_#sigma", 3., 1., 10.) ;
536 RooRealVar cbal(
"cb_#alpha",
"cb_#alpha", 2.0) ;
537 RooRealVar cbn(
"cb_n",
"cb_n", 1., 0.05, 3.) ;
538 RooCBShape cb(
"cb",
"cb",
m, cbm0, cbsg, cbal, cbn);
541 RooFFTConvPdf bxc(
"bxc",
"BW (X) CB",
m, bw, cb) ;
542 bxc.fitTo(*
data, RooFit::PrintLevel(-1), RooFit::PrintEvalErrors(-1));
543 RooPlot* frame =
m.frame();
544 data->plotOn(frame, RooFit::MarkerSize(0.9));
546 bxc.plotOn (frame, RooFit::LineColor(kBlue));
549 ctemp->Print(psName);
551 mean = bwm0.getVal();
552 meanErr = bwm0.getError();
553 sigma = cbsg.getVal();
554 sigmaErr = cbsg.getError();
555 chi2 = frame->chiSquare();
561 hout.at(0)->SetBinContent(
i+1,
mean);
562 hout.at(0)->SetBinError(
i+1,meanErr);
563 hout.at(1)->SetBinContent(
i+1,
sigma);
564 hout.at(1)->SetBinError(
i+1,sigmaErr);
566 hout.at(0)->SetBinContent(
i+1,
mean);
567 hout.at(0)->SetBinError(
i+1,meanErr);
569 hout.at(0)->SetBinContent(
i+1,
sigma);
570 hout.at(0)->SetBinError(
i+1,sigmaErr);
578 if (hout.size()==2) hout.at(1)->Sumw2();
◆ lbAverageInteractionsPerCrossing()
float ManagedMonitorToolBase::lbAverageInteractionsPerCrossing |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Average mu, i.e.
<mu>
Definition at line 1691 of file ManagedMonitorToolBase.cxx.
1696 return lumi->lbAverageInteractionsPerCrossing();
1699 ATH_MSG_DEBUG(
"Warning: lbAverageInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbAverageLivefraction()
float ManagedMonitorToolBase::lbAverageLivefraction |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Average luminosity livefraction.
Definition at line 1760 of file ManagedMonitorToolBase.cxx.
1768 return live->lbAverageLiveFraction();
1771 ATH_MSG_DEBUG(
"Warning: lbAverageLivefraction() - luminosity not availble (i.e. EnableLumi = False)");
◆ lbAverageLuminosity()
float ManagedMonitorToolBase::lbAverageLuminosity |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1)
Definition at line 1727 of file ManagedMonitorToolBase.cxx.
1732 return lumi->lbAverageLuminosity();
1735 ATH_MSG_DEBUG(
"Warning: lbAverageLuminosity() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbDuration()
double ManagedMonitorToolBase::lbDuration |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Luminosity block time (in seconds)
Definition at line 1814 of file ManagedMonitorToolBase.cxx.
1822 return dur->lbDuration();
1825 ATH_MSG_DEBUG(
"Warning: lbDuration() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbInteractionsPerCrossing()
float ManagedMonitorToolBase::lbInteractionsPerCrossing |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Instantaneous number of interactions, i.e.
mu
Definition at line 1707 of file ManagedMonitorToolBase.cxx.
1712 float muToLumi =
lumi->muToLumi();
1714 return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id()) / muToLumi;
1719 ATH_MSG_DEBUG(
"Warning: lbInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbLuminosityPerBCID()
float ManagedMonitorToolBase::lbLuminosityPerBCID |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Instantaneous luminosity.
Definition at line 1743 of file ManagedMonitorToolBase.cxx.
1748 return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id());
1751 ATH_MSG_DEBUG(
"Warning: lbLuminosityPerBCID() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ lbLumiWeight()
double ManagedMonitorToolBase::lbLumiWeight |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Average Integrated Luminosity Live Fraction.
Definition at line 1798 of file ManagedMonitorToolBase.cxx.
1805 ATH_MSG_DEBUG(
"Warning: lbLumiWeight() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
◆ livefractionPerBCID()
float ManagedMonitorToolBase::livefractionPerBCID |
( |
const EventContext & |
ctx = Gaudi::Hive::currentContext() | ) |
const |
|
virtualinherited |
Livefraction per bunch crossing ID.
Definition at line 1779 of file ManagedMonitorToolBase.cxx.
1787 return live->l1LiveFractionVector().at (ctx.eventID().bunch_crossing_id());
1790 ATH_MSG_DEBUG(
"Warning: livefractionPerBCID() - luminosity retrieved available (i.e. EnableLumi = False)");
◆ 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]
◆ msg() [2/2]
◆ msgLvl()
◆ newEventsBlockFlag()
bool ManagedMonitorToolBase::newEventsBlockFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newHigStatIntervalFlag()
bool ManagedMonitorToolBase::newHigStatIntervalFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newLowStatFlag()
bool ManagedMonitorToolBase::newLowStatFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newLowStatIntervalFlag()
bool ManagedMonitorToolBase::newLowStatIntervalFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newLumiBlockFlag()
bool ManagedMonitorToolBase::newLumiBlockFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newMedStatIntervalFlag()
bool ManagedMonitorToolBase::newMedStatIntervalFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ newRunFlag()
bool ManagedMonitorToolBase::newRunFlag |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ outputHandles()
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 |
◆ preSelector()
bool ManagedMonitorToolBase::preSelector |
( |
| ) |
|
|
virtualinherited |
◆ procHistograms()
StatusCode DiMuMon::procHistograms |
( |
| ) |
|
|
virtual |
◆ regEfficiency()
StatusCode ManagedMonitorToolBase::regEfficiency |
( |
TEfficiency * |
e, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Registers a TEfficiency to be included in the output stream using logical parameters that describe the plot.
Definition at line 1444 of file ManagedMonitorToolBase.cxx.
1446 return StatusCode::FAILURE;
1448 TGraph*
g =
reinterpret_cast<TGraph*
>(
e);
1449 std::string
name =
e->GetName();
1455 ATH_MSG_WARNING(
"HEY! Attempting to register "<<
name<<
" as a per-LB histogram, but not setting the merge algorithm! Use \"merge\", at least.");
1462 return StatusCode::FAILURE;
1472 std::string genericName = NoOutputStream().getStreamName(
this,
group,
name );
1479 if (
smd != StatusCode::SUCCESS)
1480 return StatusCode::FAILURE;
◆ 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 1498 of file ManagedMonitorToolBase.cxx.
1502 return StatusCode::FAILURE;
1515 return StatusCode::FAILURE;
1518 std::string
name =
g->GetName();
1526 std::string gName =
g->GetName();
1529 std::string genericName = NoOutputStream().getStreamName(
this,
group, gName );
1537 if (
smd != StatusCode::SUCCESS)
return StatusCode::FAILURE;
◆ regGraph() [2/2]
Registers a TGraph to be included in the output stream using logical parameters that describe the graph.
Definition at line 1488 of file ManagedMonitorToolBase.cxx.
◆ regHist() [1/2]
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 1352 of file ManagedMonitorToolBase.cxx.
1358 return StatusCode::FAILURE;
1371 ATH_MSG_WARNING(
"HEY! You're attempting to register " <<
h->GetName() <<
" as a per-LB histogram, but you're not setting the merge algorithm! This is a SUPER-BAD idea! Use \"merge\", at least.");
1378 return StatusCode::FAILURE;
1381 std::string hName =
h->GetName();
1389 std::string hName =
h->GetName();
1392 std::string genericName = NoOutputStream().getStreamName(
this,
group, hName );
1400 if (
smd != StatusCode::SUCCESS)
return StatusCode::FAILURE;
◆ regHist() [2/2]
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 1343 of file ManagedMonitorToolBase.cxx.
◆ RegisterHisto()
template<class T >
void DiMuMon::RegisterHisto |
( |
MonGroup & |
mon, |
|
|
T * |
histo |
|
) |
| |
◆ registerMetadata()
StatusCode ManagedMonitorToolBase::registerMetadata |
( |
const std::string & |
streamName, |
|
|
const std::string & |
hName, |
|
|
const MonGroup & |
group |
|
) |
| |
|
protectedinherited |
Definition at line 945 of file ManagedMonitorToolBase.cxx.
951 size_t found=mdStreamName.rfind(
'/');
953 if (
found != std::string::npos )
954 mdStreamName.replace(
found, mdStreamName.length(),
"/metadata" );
958 metadata =
new TTree(
"metadata",
"Monitoring Metadata" );
959 if (!
metadata)
return StatusCode::FAILURE;
961 if (scmd == StatusCode::FAILURE)
return StatusCode::FAILURE;
967 return StatusCode::SUCCESS;
◆ regManagedEfficiencies()
StatusCode ManagedMonitorToolBase::regManagedEfficiencies |
( |
std::vector< MgmtParams< TEfficiency > > & |
templateEfficiencies | ) |
|
|
protectedinherited |
Definition at line 1139 of file ManagedMonitorToolBase.cxx.
1140 bool allIsOk =
true;
1141 for(
auto&
it : templateEfficiencies ) {
1144 TEfficiency* theEfficiency =
it.m_templateHist;
1145 TEfficiency*
e =
static_cast<TEfficiency*
>(theEfficiency->Clone());
1146 int nbins = theEfficiency->GetTotalHistogram()->GetNbinsX();
1147 int xlow = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmin();
1148 int xhigh = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmax();
1149 e->SetBins(
nbins,xlow,xhigh);
1150 std::string
name =
e->GetName();
1153 TGraph* theGraph =
reinterpret_cast<TGraph*
>(theEfficiency);
1154 TGraph*
g =
reinterpret_cast<TGraph*
>(
e);
1162 if (sc1 == StatusCode::FAILURE) allIsOk =
false;
1164 bool doneCleaning =
false;
1166 TSeqCollection *
filelist=gROOT->GetListOfFiles();
1171 if (sc2 == StatusCode::SUCCESS) doneCleaning =
true;
1174 if (!doneCleaning) {
1175 ATH_MSG_ERROR(
"THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1180 if (sc3 == StatusCode::FAILURE)
1187 if (
smd != StatusCode::SUCCESS) allIsOk =
false;
1190 if (sc4 == StatusCode::FAILURE) allIsOk =
false;
1193 if (!allIsOk)
return StatusCode::FAILURE;
1194 return StatusCode::SUCCESS;
◆ regManagedGraphs()
StatusCode ManagedMonitorToolBase::regManagedGraphs |
( |
std::vector< MgmtParams< TGraph > > & |
templateGraphs | ) |
|
|
protectedinherited |
Definition at line 1068 of file ManagedMonitorToolBase.cxx.
1072 bool allIsOk =
true;
1074 for( std::vector< MgmtParams<TGraph> >::
iterator it = templateGraphs.begin();
it != templateGraphs.end(); ++
it ) {
1075 MonGroup
group = (*it).m_group;
1078 TGraph* theGraph = (*it).m_templateHist;
1081 TGraph*
g =
static_cast<TGraph*
>(theGraph->Clone());
1085 std::string gName =
g->GetName();
1092 if (sc1 == StatusCode::FAILURE)
1097 bool doneCleaning =
false;
1099 TSeqCollection *
filelist=gROOT->GetListOfFiles();
1104 if (sc2 == StatusCode::SUCCESS)
1105 doneCleaning =
true;
1109 if (!doneCleaning) {
1110 ATH_MSG_ERROR(
"THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1117 if (sc3 == StatusCode::FAILURE)
1124 if (
smd != StatusCode::SUCCESS)
1129 if (sc4 == StatusCode::FAILURE)
1134 if (!allIsOk)
return StatusCode::FAILURE;
1136 return StatusCode::SUCCESS;
◆ regManagedHistograms()
StatusCode ManagedMonitorToolBase::regManagedHistograms |
( |
std::vector< MgmtParams< TH1 > > & |
templateHistograms | ) |
|
|
protectedinherited |
Definition at line 971 of file ManagedMonitorToolBase.cxx.
988 for( std::vector< MgmtParams<TH1> >::
iterator it = templateHistograms.begin();
it != templateHistograms.end(); ++
it ) {
989 MonGroup&
group = (*it).m_group;
992 TH1* theHist = (*it).m_templateHist;
995 TH1*
h =
static_cast<TH1*
>(theHist->Clone());
999 std::string hName =
h->GetName();
1006 if (sc1 == StatusCode::FAILURE) allIsOk =
false;
1010 if (sc2 == StatusCode::FAILURE) allIsOk =
false;
1013 std::string genericName = NoOutputStream().getStreamName(
this,
group, hName );
1022 if (
smd != StatusCode::SUCCESS) allIsOk =
false;
1026 if (sc3 == StatusCode::FAILURE) allIsOk =
false;
1030 if (!allIsOk)
return StatusCode::FAILURE;
1032 return StatusCode::SUCCESS;
◆ regManagedTrees()
StatusCode ManagedMonitorToolBase::regManagedTrees |
( |
std::vector< MgmtParams< TTree > > & |
templateTrees | ) |
|
|
protectedinherited |
Definition at line 1199 of file ManagedMonitorToolBase.cxx.
1203 bool allIsOk =
true;
1205 for( std::vector< MgmtParams<TTree> >::
iterator it = templateTrees.begin();
it != templateTrees.end(); ++
it ) {
1206 MonGroup
group = (*it).m_group;
1209 TTree* theTree = (*it).m_templateHist;
1212 TTree*
t =
static_cast<TTree*
>(theTree->Clone());
1216 std::string
name =
t->GetName();
1223 if (sc1 == StatusCode::FAILURE) allIsOk =
false;
1227 if (sc2 == StatusCode::FAILURE) allIsOk =
false;
1230 std::string genericName = NoOutputStream().getStreamName(
this,
group,
name );
1239 if (
smd != StatusCode::SUCCESS) allIsOk =
false;
1243 if (sc3 == StatusCode::FAILURE) allIsOk =
false;
1247 if (!allIsOk)
return StatusCode::FAILURE;
1249 return StatusCode::SUCCESS;
◆ regTree() [1/2]
StatusCode ManagedMonitorToolBase::regTree |
( |
TTree * |
t, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Registers a TTree to be included in the output stream using logical parameters that describe it.
Definition at line 1554 of file ManagedMonitorToolBase.cxx.
1569 return StatusCode::FAILURE;
1572 std::string
name =
t->GetName();
1573 std::string genericName = NoOutputStream().getStreamName(
this, group_unmanaged,
name );
1581 std::string tName =
t->GetName();
1584 std::string genericName = NoOutputStream().getStreamName(
this,
group, tName );
1592 if (
smd != StatusCode::SUCCESS)
return StatusCode::FAILURE;
◆ regTree() [2/2]
Registers a TTree to be included in the output stream using logical parameters that describe it.
Definition at line 1544 of file ManagedMonitorToolBase.cxx.
◆ renounce()
◆ renounceArray()
◆ runStat()
StatusCode ManagedMonitorToolBase::runStat |
( |
| ) |
|
|
virtualinherited |
This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ).
Implements IMonitorToolBase.
Definition at line 1661 of file ManagedMonitorToolBase.cxx.
1664 return StatusCode::SUCCESS;
◆ setMonManager()
◆ setupOutputStreams()
StatusCode ManagedMonitorToolBase::setupOutputStreams |
( |
std::vector< std::string > |
Mapping = std::vector<std::string>() | ) |
|
|
virtualinherited |
◆ streamNameFunction()
Returns the function object that converts logical paramters into a physical stream name.
Definition at line 450 of file ManagedMonitorToolBase.cxx.
454 msg(MSG::ERROR) <<
"!! streamNameFunction() has not been initialized !!" <<
endmsg;
455 msg(MSG::ERROR) <<
" --> neither ManagedMonitorToolBase::initialize() nor" <<
endmsg;
456 msg(MSG::ERROR) <<
" --> ManagedMonitorToolBase::setMonManager() has been called." <<
endmsg;
457 msg(MSG::ERROR) <<
" --> Correct configuration cannot be guaranteed from this point." <<
endmsg;
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ THistSvc_deReg_fixTGraph()
StatusCode ManagedMonitorToolBase::THistSvc_deReg_fixTGraph |
( |
TFile * |
file, |
|
|
TGraph * |
theGraph, |
|
|
std::string & |
directoryName |
|
) |
| |
|
protectedinherited |
Fixes THistSvc->deReg(obj) when obj is TGraph instance.
Read more in source file about this bug.
Definition at line 1036 of file ManagedMonitorToolBase.cxx.
1046 GlobalDirectoryRestore restore;
1049 bool graphRemoved =
false;
1052 TDirectory*
dir =
file->GetDirectory(directoryName.c_str());
1055 TObject*
obj =
dir->Remove(theGraph);
1057 graphRemoved =
true;
1060 if (!graphRemoved) {
1061 return StatusCode::FAILURE;
1064 return StatusCode::SUCCESS;
◆ trackQuality()
Definition at line 592 of file DiMuMon.cxx.
606 if (nBLhits>0 || !(eBLhits)) countPass+=1;
607 if ((nhitsPIX+nPIXDS)>1) countPass+=1;
608 if ((nhitsSCT+nSCTDS)>5) countPass+=1;
609 if ((nPIXH+nSCTH)<3) countPass+=1;
612 int n = nTRTout + nTRThits;
613 if (std::abs(idTrk->
eta())<1.9){
614 if (
n>5 && nTRTout<(0.9*
n)) countPass+=1;
617 if (nTRTout<(0.9*
n)) countPass+=1;
622 ATH_MSG_WARNING(
"Trying to check trackquality but no xAOD::TrackParticle available!");
◆ trigChainsArePassed()
bool ManagedMonitorToolBase::trigChainsArePassed |
( |
std::vector< std::string > & |
vTrigNames | ) |
|
|
protectedvirtualinherited |
◆ updateTriggersForGroups()
void ManagedMonitorToolBase::updateTriggersForGroups |
( |
std::vector< std::string > & |
vTrigChainNames | ) |
|
|
protectedinherited |
Definition at line 2130 of file ManagedMonitorToolBase.cxx.
2132 for (
size_t i = 0;
i < vTrigChainNames.size(); ++
i) {
2133 std::string& thisName = vTrigChainNames[
i];
2134 if (thisName.compare(0, 9,
"CATEGORY_") ==0) {
2135 ATH_MSG_DEBUG(
"Found a trigger category: " << thisName <<
". We will unpack it.");
2137 std::ostringstream oss;
2139 for (
size_t itrig = 0; itrig <
triggers.size(); ++itrig) {
2147 std::string newval = oss.str();
2149 vTrigChainNames[
i] = std::move(newval);
◆ updateVHKA()
◆ writeAndDelete()
StatusCode ManagedMonitorToolBase::writeAndDelete |
( |
TH1 * |
h, |
|
|
const MonGroup & |
group |
|
) |
| |
|
virtualinherited |
Write out histogram and delete it.
Definition at line 1599 of file ManagedMonitorToolBase.cxx.
1602 return StatusCode::FAILURE;
1604 std::string hName =
h->GetName();
1607 std::string genericName = NoOutputStream().getStreamName(
this,
group, hName );
1610 return StatusCode::SUCCESS;
◆ m_2DinvmassVSx
std::map< std::string, std::map< std::string, TH2F*> > DiMuMon::m_2DinvmassVSx |
|
protected |
◆ m_bookHistogramsInitial
bool ManagedMonitorToolBase::m_bookHistogramsInitial |
|
privateinherited |
◆ m_chi2
◆ m_coneSize
double DiMuMon::m_coneSize {} |
|
protected |
◆ m_d
Imp* ManagedMonitorToolBase::m_d |
|
privateinherited |
◆ m_dataType
◆ m_dataTypeStr
std::string ManagedMonitorToolBase::m_dataTypeStr |
|
protectedinherited |
◆ m_defaultLBDuration
float ManagedMonitorToolBase::m_defaultLBDuration |
|
privateinherited |
◆ m_detailLevel
unsigned int ManagedMonitorToolBase::m_detailLevel |
|
protectedinherited |
◆ m_detStore
◆ m_doFits
bool DiMuMon::m_doFits {} |
|
protected |
◆ m_doSaveFits
bool DiMuMon::m_doSaveFits {} |
|
protected |
◆ m_DQFilterTools
ToolHandleArray<IDQFilterTool> ManagedMonitorToolBase::m_DQFilterTools {this,"FilterTools",{}} |
|
protectedinherited |
◆ m_endOfEventsBlock
bool ManagedMonitorToolBase::m_endOfEventsBlock |
|
privateinherited |
◆ m_endOfLowStat
bool ManagedMonitorToolBase::m_endOfLowStat |
|
privateinherited |
◆ m_endOfLumiBlock
bool ManagedMonitorToolBase::m_endOfLumiBlock |
|
privateinherited |
◆ m_endOfRun
bool ManagedMonitorToolBase::m_endOfRun |
|
privateinherited |
◆ m_environment
◆ m_environmentStr
std::string ManagedMonitorToolBase::m_environmentStr |
|
protectedinherited |
◆ m_etaCut
double DiMuMon::m_etaCut {} |
|
protected |
◆ m_evtStore
◆ m_fileKey
std::string ManagedMonitorToolBase::m_fileKey |
|
protectedinherited |
◆ m_haveClearedLastEventBlock
bool ManagedMonitorToolBase::m_haveClearedLastEventBlock |
|
protectedinherited |
◆ m_invmass
std::map< std::string, TH1F* > DiMuMon::m_invmass |
|
protected |
◆ m_invmassVSx
std::map< std::string, std::map< std::string, TH1F*> > DiMuMon::m_invmassVSx |
|
protected |
◆ m_isolationCut
double DiMuMon::m_isolationCut {} |
|
protected |
◆ m_lastHigStatInterval
int ManagedMonitorToolBase::m_lastHigStatInterval |
|
protectedinherited |
◆ m_lastLowStatInterval
int ManagedMonitorToolBase::m_lastLowStatInterval |
|
protectedinherited |
◆ m_lastLumiBlock
unsigned int ManagedMonitorToolBase::m_lastLumiBlock |
|
protectedinherited |
◆ m_lastMedStatInterval
int ManagedMonitorToolBase::m_lastMedStatInterval |
|
protectedinherited |
◆ m_lastRun
unsigned int ManagedMonitorToolBase::m_lastRun |
|
protectedinherited |
◆ m_lbDurationDataKey
◆ m_lumiBlockNum
int DiMuMon::m_lumiBlockNum {} |
|
protected |
◆ m_lumiDataKey
◆ m_manager
◆ m_managerNameProp
std::string ManagedMonitorToolBase::m_managerNameProp |
|
protectedinherited |
◆ m_maxInvmass
double DiMuMon::m_maxInvmass {} |
|
protected |
◆ m_metadataMap
MDMap_t ManagedMonitorToolBase::m_metadataMap |
|
protectedinherited |
◆ m_minInvmass
double DiMuMon::m_minInvmass {} |
|
protected |
◆ m_muonCollection
◆ m_nEtaBins
int DiMuMon::m_nEtaBins {} |
|
protected |
◆ m_nEvents
unsigned int ManagedMonitorToolBase::m_nEvents |
|
protectedinherited |
◆ m_nEventsIgnoreTrigger
unsigned int ManagedMonitorToolBase::m_nEventsIgnoreTrigger |
|
protectedinherited |
◆ m_newEventsBlock
bool ManagedMonitorToolBase::m_newEventsBlock |
|
privateinherited |
◆ m_newHigStatInterval
bool ManagedMonitorToolBase::m_newHigStatInterval |
|
privateinherited |
◆ m_newLowStat
bool ManagedMonitorToolBase::m_newLowStat |
|
privateinherited |
◆ m_newLowStatInterval
bool ManagedMonitorToolBase::m_newLowStatInterval |
|
privateinherited |
◆ m_newLumiBlock
bool ManagedMonitorToolBase::m_newLumiBlock |
|
privateinherited |
◆ m_newMedStatInterval
bool ManagedMonitorToolBase::m_newMedStatInterval |
|
privateinherited |
◆ m_newRun
bool ManagedMonitorToolBase::m_newRun |
|
privateinherited |
◆ m_nLumiBlocks
unsigned int ManagedMonitorToolBase::m_nLumiBlocks |
|
protectedinherited |
◆ m_nMassBins
int DiMuMon::m_nMassBins {} |
|
protected |
◆ m_nPhiBins
int DiMuMon::m_nPhiBins {} |
|
protected |
◆ m_nPtBins
int DiMuMon::m_nPtBins {} |
|
protected |
◆ m_nVarBins
int DiMuMon::m_nVarBins {} |
|
protected |
◆ m_path
std::string ManagedMonitorToolBase::m_path |
|
protectedinherited |
◆ m_preScaleProp
long ManagedMonitorToolBase::m_preScaleProp |
|
protectedinherited |
◆ m_procNEventsProp
long ManagedMonitorToolBase::m_procNEventsProp |
|
protectedinherited |
◆ m_ptCut
double DiMuMon::m_ptCut {} |
|
protected |
◆ m_regions
std::vector< std::string > DiMuMon::m_regions |
|
protected |
◆ m_resonName
std::string DiMuMon::m_resonName {} |
|
protected |
◆ m_setDebug
bool DiMuMon::m_setDebug {} |
|
protected |
◆ m_stat
◆ m_streamNameFcn
◆ m_supportedIntervalsForRebooking
std::set<Interval_t> ManagedMonitorToolBase::m_supportedIntervalsForRebooking |
|
privateinherited |
◆ m_templateEfficiencies
std::map< Interval_t, std::vector< MgmtParams<TEfficiency> > > ManagedMonitorToolBase::m_templateEfficiencies |
|
protectedinherited |
◆ m_templateGraphs
◆ m_templateHistograms
◆ m_templateTrees
◆ m_THistSvc
◆ m_trigDecTool
◆ m_triggerChainName
std::string DiMuMon::m_triggerChainName {} |
|
protected |
◆ m_triggerChainProp
std::string ManagedMonitorToolBase::m_triggerChainProp |
|
protectedinherited |
◆ m_triggerGroupProp
std::string ManagedMonitorToolBase::m_triggerGroupProp |
|
protectedinherited |
◆ m_trigLiveFractionDataKey
◆ m_trigTranslator
PublicToolHandle<ITriggerTranslatorTool> ManagedMonitorToolBase::m_trigTranslator {this,"TriggerTranslatorTool",""} |
|
protectedinherited |
◆ m_useLumi
bool ManagedMonitorToolBase::m_useLumi |
|
privateinherited |
◆ m_useTrigger
bool ManagedMonitorToolBase::m_useTrigger |
|
protectedinherited |
◆ m_varHandleArraysDeclared
◆ m_varLabels
std::map< std::string, std::string > DiMuMon::m_varLabels |
|
protected |
◆ m_varRanges
std::map< std::string, std::pair <double, double> > DiMuMon::m_varRanges |
|
protected |
◆ m_varsDistr
std::vector< std::string > DiMuMon::m_varsDistr |
|
protected |
◆ m_varsVSmean
std::vector< std::string > DiMuMon::m_varsVSmean |
|
protected |
◆ m_varsVSwidth
std::vector< std::string > DiMuMon::m_varsVSwidth |
|
protected |
◆ m_varValues
std::map< std::string, double > DiMuMon::m_varValues |
|
protected |
◆ m_vhka
◆ m_vTrigChainNames
std::vector<std::string> ManagedMonitorToolBase::m_vTrigChainNames |
|
protectedinherited |
◆ m_vTrigGroupNames
std::vector<std::string> ManagedMonitorToolBase::m_vTrigGroupNames |
|
protectedinherited |
◆ m_widthVSx
std::map< std::string, std::map< std::string, TH1F*> > DiMuMon::m_widthVSx |
|
protected |
◆ m_xDistr
std::map< std::string, std::map< std::string, TH1F*> > DiMuMon::m_xDistr |
|
protected |
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
virtual double pt() const override final
The transverse momentum ( ) of the particle.
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
char data[hepevt_bytes_allocation_ATLAS]
std::map< std::string, std::pair< double, double > > m_varRanges
Const iterator class for DataVector/DataList.
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
Scalar phi() const
phi method
double getEta(const xAOD::TrackParticle *id1, const xAOD::TrackParticle *id2) const
std::string find(const std::string &s)
return a remapped string
std::vector< std::string > m_varsVSmean
std::vector< std::string > m_varsVSwidth
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
float charge() const
Returns the charge.
Scalar eta() const
pseudorapidity method
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
static unsigned int runNumber()
virtual std::string fileKey() const
constexpr double muonMassInMeV
the mass of the muon (in MeV)
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.
virtual void passOwnership(TObject *h, const std::string &key)
Pass ownership of a TObject to this manager so that it will be deleted appropriately.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
double getPt(const xAOD::TrackParticle *id1, const xAOD::TrackParticle *id2) const
bool msgLvl(const MSG::Level lvl) const
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ expectInnermostPixelLayerHit
Do we expect a 0th-layer barrel hit for this track?
@ numberOfTRTHits
number of TRT hits [unit8_t].
bool empty() const
Test if the key is blank.
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
static unsigned int getLBsLowStat()
std::map< std::string, std::map< std::string, TH1F * > > m_xDistr
virtual void setOwner(IDataHandleHolder *o)=0
static Environment_t environment()
Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects ...
std::map< std::string, TH1F * > m_invmass
static unsigned int getLBsMedStat()
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
static DataType_t dataType()
Returns the data type that the monitoring application is running over to help ManagedMonitorToolBase ...
std::map< std::string, std::map< std::string, TH2F * > > m_2DinvmassVSx
std::map< std::string, std::map< std::string, TH1F * > > m_invmassVSx
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual void writeAndDelete(const std::string &key)
If the TObject is owned by this manager, its Write() method is called and it is deleted.
double chi2(TH1 *h0, TH1 *h1)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
@ numberOfSCTHoles
number of SCT holes [unit8_t].
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::ReadHandleKey< xAOD::MuonContainer > m_muonCollection
std::map< std::string, std::map< std::string, TH1F * > > m_widthVSx
std::string m_triggerChainName
static unsigned int getLBsHigStat()
double getPhi(const xAOD::TrackParticle *id1, const xAOD::TrackParticle *id2) const
std::map< std::string, double > m_varValues
double getCrtDiff(const xAOD::TrackParticle *id1, const xAOD::TrackParticle *id2) const
@ numberOfTRTOutliers
number of TRT outliers [unit8_t].
bool trackQuality(const xAOD::TrackParticle *idTrk)
std::vector< std::string > m_regions
void iterativeGausFit(TH2F *hin, const std::vector< TH1F * > &hout, int mode)
#define ATH_MSG_WARNING(x)
@ numberOfSCTDeadSensors
number of dead SCT sensors crossed [unit8_t].
DataVector adapter that acts like it holds const pointers.
filelist
print ("Checking files %s..." % fullfile)
void RegisterHisto(MonGroup &mon, T *histo)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfPixelDeadSensors
number of dead pixel sensors crossed [unit8_t].
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
std::vector< std::string > m_varsDistr
static unsigned int lumiBlockNumber()
Class describing a TrackParticle.
constexpr int pow(int base, int exp) noexcept
double getInvmass(const xAOD::TrackParticle *track1, const xAOD::TrackParticle *track2, double Mass) const
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
std::map< std::string, std::string > m_varLabels