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

#include <L2MuonSAIOMon.h>

Inheritance diagram for L2MuonSAIOMon:
Collaboration diagram for L2MuonSAIOMon:

Public Types

enum  Environment_t {
  Environment_t::user = 0, Environment_t::online, Environment_t::tier0, Environment_t::tier0Raw,
  Environment_t::tier0ESD, Environment_t::AOD, Environment_t::altprod
}
 Specifies the processing environment. More...
 
enum  DataType_t {
  DataType_t::userDefined = 0, DataType_t::monteCarlo, DataType_t::collisions, DataType_t::cosmics,
  DataType_t::heavyIonCollisions
}
 Specifies what type of input data is being monitored. More...
 

Public Member Functions

 L2MuonSAIOMon (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual StatusCode initialize () override
 initialize More...
 
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 Function that steers anlayses. More...
 
virtual StatusCode execute (const EventContext &ctx) const override
 Applies filters and trigger requirements. More...
 
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
 Fills a vector of variables to a group by reference. More...
 
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const
 Fills a vector of variables to a group by reference. More...
 
template<typename... T>
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, T &&... variables) const
 Fills a variadic list of variables to a group by reference. More...
 
void fill (const std::string &groupName, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
 Fills a vector of variables to a group by name. More...
 
void fill (const std::string &groupName, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const
 Fills a vector of variables to a group by name. More...
 
template<typename... T>
void fill (const std::string &groupName, T &&... variables) const
 Fills a variadic list of variables to a group by name. More...
 
Environment_t environment () const
 Accessor functions for the environment. More...
 
Environment_t envStringToEnum (const std::string &str) const
 Convert the environment string from the python configuration to an enum object. More...
 
DataType_t dataType () const
 Accessor functions for the data type. More...
 
DataType_t dataTypeStringToEnum (const std::string &str) const
 Convert the data type string from the python configuration to an enum object. More...
 
const ToolHandle< GenericMonitoringTool > & getGroup (const std::string &name) const
 Get a specific monitoring tool from the tool handle array. More...
 
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool () const
 Get the trigger decision tool member. More...
 
bool trigChainsArePassed (const std::vector< std::string > &vTrigNames) const
 Check whether triggers are passed. More...
 
SG::ReadHandle< xAOD::EventInfoGetEventInfo (const EventContext &) const
 Return a ReadHandle for an EventInfo object (get run/event numbers, etc.) More...
 
virtual float lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average mu, i.e. More...
 
virtual float lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate instantaneous number of interactions, i.e. More...
 
virtual float lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1). More...
 
virtual float lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the instantaneous luminosity per bunch crossing. More...
 
virtual double lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the duration of the luminosity block (in seconds) More...
 
virtual float lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average luminosity livefraction. More...
 
virtual float livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the live fraction per bunch crossing ID. More...
 
virtual double lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average integrated luminosity multiplied by the live fraction. More...
 
virtual StatusCode parseList (const std::string &line, std::vector< std::string > &result) const
 Parse a string into a vector. More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
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 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
 

Protected Member Functions

virtual StatusCode fillVariablesPerChain (const EventContext &ctx, const std::string &chain) const override
 Function that fills variables of trigger objects associated to specified trigger chains. More...
 
virtual StatusCode fillVariablesPerOfflineMuonPerChain (const EventContext &ctx, const xAOD::Muon *mu, const std::string &chain) const override
 Function that fills variables of trigger objects associated to specified trigger chains comparing offline muons. More...
 
virtual bool selectEvents () const
 Function that defines the event selection for anlayses User should reimlement in a subclass if needed. More...
 
virtual StatusCode selectMuons (SG::ReadHandle< xAOD::MuonContainer > &muons, std::vector< const xAOD::Muon * > &probes) const
 Function that defines the event selection for anlayses Users should reimlement in a subclass if needed. More...
 
virtual StatusCode fillVariables (const EventContext &ctx) const
 Function that fills variables by just retrieving containers of trigger objects. More...
 
virtual StatusCode fillVariablesPerOfflineMuon (const EventContext &ctx, const xAOD::Muon *mu) const
 Function that fills variables that are compared to offline muons but the trigger chains are not specified. More...
 
template<class T , class FUNCT >
StatusCode fillVariablesRatioPlots (const EventContext &ctx, const xAOD::Muon *mu, std::string &&trigstep, xAOD::Muon::TrackParticleType type, FUNCT matchFunc) const
 Function that fills variables of ratio plots. More...
 
template<class T >
StatusCode fillVariableEtaPhi (const EventContext &ctx, SG::ReadHandleKey< DataVector< T > > ReadHandleKey, std::string &&trigstep, std::tuple< bool, double, double >(*PosFunc)(const T *)=&TrigMuonMonitorAlgorithm::defaultPosFunc< T >) const
 Function that fills variables of etaphi2D plots. More...
 
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...
 

Static Protected Member Functions

template<class T >
static std::tuple< bool, double, double > defaultPosFunc (const T *trig)
 

Protected Attributes

ToolHandle< MuonMatchingToolm_matchTool {this, "MuonMatchingTool", "MuonMatchingTool", "Tool for matching offline and online objects"}
 
ToolHandle< CP::IMuonSelectionToolm_muonSelectionTool {this,"MuonSelectionTool","CP::MuonSelectionTool/MuonSelectionTool","MuonSelectionTool"}
 
SG::ReadHandleKey< xAOD::MuonContainerm_MuonContainerKey {this, "MuonContainerName", "Muons", "Offline muon container"}
 
Gaudi::Property< std::vector< std::string > > m_monitored_chains {this, "MonitoredChains", {}, "Trigger chains that are monitored"}
 List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPerChain. More...
 
Gaudi::Property< int > m_muontype {this, "MuonType", xAOD::Muon::MuonType::Combined, "MuonType used for monitoring"}
 Requirement for the offline muon type considered in analyses. More...
 
Gaudi::Property< std::string > m_group {this, "Group", "", "Histogram group"}
 Name of monitored group. More...
 
const float m_ratio_measurement_threshold = 4
 Threshold for ratio measurement. More...
 
ToolHandleArray< GenericMonitoringToolm_tools {this,"GMTools",{}}
 Array of Generic Monitoring Tools. More...
 
PublicToolHandle< Trig::TrigDecisionToolm_trigDecTool {this, "TrigDecisionTool",""}
 Tool to tell whether a specific trigger is passed. More...
 
ToolHandleArray< IDQFilterToolm_DQFilterTools {this,"FilterTools",{}}
 Array of Data Quality filter tools. More...
 
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"}
 
AthMonitorAlgorithm::Environment_t m_environment
 Instance of the Environment_t enum. More...
 
AthMonitorAlgorithm::DataType_t m_dataType
 Instance of the DataType_t enum. More...
 
Gaudi::Property< std::string > m_environmentStr {this,"Environment","user"}
 Environment string pulled from the job option and converted to enum. More...
 
Gaudi::Property< std::string > m_dataTypeStr {this,"DataType","userDefined"}
 DataType string pulled from the job option and converted to enum. More...
 
Gaudi::Property< std::string > m_triggerChainString {this,"TriggerChain",""}
 Trigger chain string pulled from the job option and parsed into a vector. More...
 
std::vector< std::string > m_vTrigChainNames
 Vector of trigger chain names parsed from trigger chain string. More...
 
Gaudi::Property< std::string > m_fileKey {this,"FileKey",""}
 Internal Athena name for file. More...
 
Gaudi::Property< bool > m_useLumi {this,"EnableLumi",false}
 Allows use of various luminosity functions. More...
 
Gaudi::Property< float > m_defaultLBDuration {this,"DefaultLBDuration",60.}
 Default duration of one lumi block. More...
 
Gaudi::Property< int > m_detailLevel {this,"DetailLevel",0}
 Sets the level of detail used in the monitoring. More...
 
SG::ReadHandleKey< xAOD::EventInfom_EventInfoKey {this,"EventInfoKey","EventInfo"}
 Key for retrieving EventInfo from StoreGate. More...
 

Private Types

typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

StatusCode matchL2IO_wContainer (const EventContext &ctx, const std::string &chain, std::vector< const xAOD::L2CombinedMuon * > &Trig_L2IOobjects) const
 
StatusCode L2OverlapRemover (const std::vector< const xAOD::L2CombinedMuon * > &matchSA_L2IOobjects, std::vector< bool > &isoverlap, std::vector< bool > &passOR) const
 
bool isOverlap (const xAOD::L2CombinedMuon *matchSA_L2IOobject1, const xAOD::L2CombinedMuon *matchSA_L2IOobject2) const
 
StatusCode chooseBestMuon (const std::vector< const xAOD::L2CombinedMuon * > &matchSA_L2IOobjects, std::vector< bool > &passOR, std::vector< unsigned int > &mucombResult) const
 
StatusCode muCombHypo_TDTworkaround (const std::string &chain, const std::vector< const xAOD::L2CombinedMuon * > &Trig_L2IOobjects, std::vector< bool > &pass_muCombHypo) const
 
StatusCode isPassedmuCombHypo (const std::string &chain, const xAOD::L2CombinedMuon *Trig_L2IOobjects, bool &pass_muCombHypo) const
 
StatusCode decision_ptthreshold (const std::string &chain, std::vector< float > &my_EtaBins, std::vector< float > &my_muCombThres, bool &my_pikCuts, float &my_maxPtToApplyPik, float &my_chi2MaxID) const
 
const xAOD::L2CombinedMuonsearchL2InsideOut (const EventContext &ctx, const xAOD::Muon *mu, const std::string &trigger) const
 
const xAOD::MuonsearchTagOfflineMuon (const EventContext &ctx, const xAOD::Muon *probe) 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 std::tuple< float, float, float > L2ORPosForMatchFunc (const xAOD::L2StandAloneMuon *trig)
 
static std::tuple< float, float, float > L2ORPosForMatchFunc (const xAOD::L2CombinedMuon *trig)
 

Private Attributes

Gaudi::Property< std::vector< float > > m_monitored_chains_plateau {this, "Plateaus", {}, "List of plateaus of measured trigger"}
 
std::map< std::string, double > m_plateaus {}
 
SG::ReadHandleKey< xAOD::L2CombinedMuonContainerm_L2MuonCBIOContainerKey {this, "L2CombinedMuonContainerName_IO", "HLT_MuonL2CBInfoIOmode", "L2MuonCBIO container"}
 
Gaudi::Property< std::vector< float > > m_etaBins {this, "EtaBins", {0, 0.9, 1.1, 1.9, 2.1, 9.9}, "eta bins of DR and mass thresholds"}
 
Gaudi::Property< std::vector< float > > m_dRCBThres {this, "DRThres", {0.002, 0.001, 0.002, 0.002, 0.002}, "DR threshold of L2CB"}
 
Gaudi::Property< std::vector< float > > m_dRbySAThres {this, "dRbySAThres", {0, 0, 0, 0, 0}, "mufast DR threshold of L2CB"}
 
Gaudi::Property< std::vector< float > > m_massCBThres {this, "MassThres", {0.004, 0.002, 0.006, 0.006, 0.006}, "mass threshold of L2CB"}
 
bool m_RequireDR = true
 
bool m_RequireDRbySA = false
 
bool m_RequireMass = true
 
bool m_RequireSameSign = true
 
std::string m_name
 
std::unordered_map< std::string, size_t > m_toolLookupMap
 
const ToolHandle< GenericMonitoringToolm_dummy
 
Gaudi::Property< bool > m_enforceExpressTriggers
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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 15 of file L2MuonSAIOMon.h.

Member Typedef Documentation

◆ MonVarVec_t

typedef std::vector<std::reference_wrapper<Monitored::IMonitoredVariable> > AthMonitorAlgorithm::MonVarVec_t
privateinherited

Definition at line 365 of file AthMonitorAlgorithm.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ DataType_t

enum AthMonitorAlgorithm::DataType_t
stronginherited

Specifies what type of input data is being monitored.

An enumeration of the different types of data the monitoring application may be running over. This can be used to select which histograms to produce, e.g. to prevent the production of colliding-beam histograms when running on cosmic-ray data. Strings of the same names may be given as jobOptions.

Enumerator
userDefined 
monteCarlo 
collisions 
cosmics 
heavyIonCollisions 

Definition at line 191 of file AthMonitorAlgorithm.h.

191  {
192  userDefined = 0,
193  monteCarlo,
194  collisions,
195  cosmics,
196  heavyIonCollisions,
197  };

◆ Environment_t

enum AthMonitorAlgorithm::Environment_t
stronginherited

Specifies the processing environment.

The running environment may be used to select which histograms are produced, and where they are located in the output. For example, the output paths of the histograms are different for the "user", "online" and the various offline flags. Strings of the same names may be given as jobOptions.

Enumerator
user 
online 
tier0 
tier0Raw 
tier0ESD 
AOD 
altprod 

Definition at line 172 of file AthMonitorAlgorithm.h.

172  {
173  user = 0,
174  online,
175  tier0,
176  tier0Raw,
177  tier0ESD,
178  AOD,
179  altprod,
180  };

Constructor & Destructor Documentation

◆ L2MuonSAIOMon()

L2MuonSAIOMon::L2MuonSAIOMon ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 11 of file L2MuonSAIOMon.cxx.

12  : TrigMuonMonitorAlgorithm(name, pSvcLocator)
13 {}

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ chooseBestMuon()

StatusCode L2MuonSAIOMon::chooseBestMuon ( const std::vector< const xAOD::L2CombinedMuon * > &  matchSA_L2IOobjects,
std::vector< bool > &  passOR,
std::vector< unsigned int > &  mucombResult 
) const
private

Definition at line 859 of file L2MuonSAIOMon.cxx.

859  {
860 
861  const double ZERO_LIMIT = 1e-4;
862  unsigned int i,j,k;
863 
864  ATH_MSG_DEBUG( "--- choose best among overlaps & disable EVs (muComb based) ---" );
865  for(i=0; i<matchSA_L2IOobjects.size(); i++) {
866  ATH_MSG_DEBUG( "++ i=" << i << ": result=" << mucombResult[i] );
867  if( mucombResult[i] != i ) {
868  ATH_MSG_DEBUG( " overlap to some one. skip." );
869  continue;
870  }
871  std::vector<unsigned int> others;
872  for(j=0; j<matchSA_L2IOobjects.size(); j++) {
873  if( mucombResult[j] == mucombResult[i] ) others.emplace_back(j);
874  }
875  if( others.size() == 1 ) {
876  ATH_MSG_DEBUG( " unique object. keep it active." );
877  continue;
878  }
879  else { // must choose one best
880  ATH_MSG_DEBUG( " overlapped objects among: " << others );
881  unsigned int bestMuon = 0;
882  float maxPtCombMf = 0.;
883  float mindRRoadRoI = 999.;
884  for(k=0; k<others.size(); k++) {
885  j=others[k];
886 
887  float ptCombMf = std::abs(matchSA_L2IOobjects.at(j)->pt()/1e3);
888 
889  const float roadPhiP = std::atan2(matchSA_L2IOobjects.at(j)->muSATrack()->dirPhiMS(),1.);
890  const float roadPhiM = std::atan2(-1*matchSA_L2IOobjects.at(j)->muSATrack()->dirPhiMS(),-1.);
891  const float roadPhi = (std::abs(xAOD::P4Helpers::deltaPhi(roadPhiP, matchSA_L2IOobjects.at(j)->muSATrack()->roiPhi()))
892  < std::abs(xAOD::P4Helpers::deltaPhi(roadPhiM, matchSA_L2IOobjects.at(j)->muSATrack()->roiPhi())))? roadPhiP : roadPhiM;
893  float roadAw = 0.;
894  if(std::abs(matchSA_L2IOobjects.at(j)->muSATrack()->roiEta()) < 1.05) { // barrel
895  if( std::abs(matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(1,0)) > ZERO_LIMIT ) roadAw = matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(1,0);
896  else if( std::abs(matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(2,0)) > ZERO_LIMIT ) roadAw = matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(2,0);
897  else if( std::abs(matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(0,0)) > ZERO_LIMIT ) roadAw = matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(0,0);
898  }
899  else { // endcap
900  if( std::abs(matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(4,0)) > ZERO_LIMIT ) roadAw = matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(4,0);
901  else if( std::abs(matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(5,0)) > ZERO_LIMIT ) roadAw = matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(5,0);
902  else if( std::abs(matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(3,0)) > ZERO_LIMIT ) roadAw = matchSA_L2IOobjects.at(j)->muSATrack()->roadAw(3,0);
903  }
904  float roadEta = 999.;
905  if(std::abs(roadAw) > ZERO_LIMIT) roadEta = -std::log(std::tan(0.5*std::atan(std::abs(roadAw))));
906  if(roadAw < 0) roadEta *= -1.;
907  float detaRoadRoI = roadEta - matchSA_L2IOobjects.at(j)->muSATrack()->roiEta();
908  float dphiRoadRoI = xAOD::P4Helpers::deltaPhi(roadPhi, matchSA_L2IOobjects.at(j)->muSATrack()->roiPhi());
909  float dRRoadRoI = std::sqrt(detaRoadRoI*detaRoadRoI + dphiRoadRoI*dphiRoadRoI);
910  ATH_MSG_DEBUG(" j="<< j << " , ptCombMf=" << ptCombMf << ", dRRoadRoI=" << dRRoadRoI);
911 
912 
913  if( (ptCombMf > maxPtCombMf) ||
914  (std::abs(ptCombMf - maxPtCombMf) < ZERO_LIMIT &&
915  dRRoadRoI < mindRRoadRoI) ) {
916  maxPtCombMf = ptCombMf;
917  mindRRoadRoI = dRRoadRoI;
918  bestMuon = j;
919  }
920  }
921  ATH_MSG_DEBUG( " best is: bestMuon/maxPtCombMf=" << bestMuon << " / " << maxPtCombMf );
922 
923  for(k=0; k<others.size(); k++) {
924  j=others[k];
925  if( j != bestMuon ) {
926  ATH_MSG_DEBUG( " EventView( j=" << j << " ) is not active" );
927 
928  passOR.at(j) = false;
929  }
930  else{
931  ATH_MSG_DEBUG( " EventView( j=" << j << " ) is best one" );
932  }
933  }
934  }
935  }
936 
937 
938  return StatusCode::SUCCESS;
939 }

◆ dataType()

DataType_t AthMonitorAlgorithm::dataType ( ) const
inlineinherited

Accessor functions for the data type.

Returns
the current value of the class's DataType_t instance.

Definition at line 221 of file AthMonitorAlgorithm.h.

221 { return m_dataType; }

◆ dataTypeStringToEnum()

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::dataTypeStringToEnum ( const std::string &  str) const
inherited

Convert the data type string from the python configuration to an enum object.

Returns
a value in the DataType_t enumeration which matches the input string.

Definition at line 140 of file AthMonitorAlgorithm.cxx.

140  {
141  // convert the string to all lowercase
142  std::string lowerCaseStr = str;
143  std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
144 
145  // check if it matches one of the enum choices
146  if( lowerCaseStr == "userdefined" ) {
148  } else if( lowerCaseStr == "montecarlo" ) {
149  return DataType_t::monteCarlo;
150  } else if( lowerCaseStr == "collisions" ) {
151  return DataType_t::collisions;
152  } else if( lowerCaseStr == "cosmics" ) {
153  return DataType_t::cosmics;
154  } else if( lowerCaseStr == "heavyioncollisions" ) {
156  } else { // otherwise, warn the user and return "userDefined"
157  ATH_MSG_WARNING("AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
158  <<str<<", returning userDefined.");
160  }
161 }

◆ decision_ptthreshold()

StatusCode L2MuonSAIOMon::decision_ptthreshold ( const std::string &  chain,
std::vector< float > &  my_EtaBins,
std::vector< float > &  my_muCombThres,
bool &  my_pikCuts,
float &  my_maxPtToApplyPik,
float &  my_chi2MaxID 
) const
private

Definition at line 1004 of file L2MuonSAIOMon.cxx.

1005  {
1006 
1007  my_maxPtToApplyPik = 25.;
1008  my_chi2MaxID = 3.5;
1009  ATH_MSG_DEBUG("this chain is" << chain);
1010  if(chain == "HLT_mu4_l2io_L1MU3V"){
1011  my_EtaBins = {0, 1.05, 1.5, 2.0, 9.9}; //4GeV_v15a
1012  my_muCombThres = {3.86, 3.77, 3.69, 3.70}; //4GeV_v15a
1013  my_pikCuts = false;
1014  }else if(chain == "HLT_mu24_ivarmedium_mu6_l2io_probe_L1MU14FCH"){
1015  my_EtaBins = {0, 1.05, 1.5, 2.0, 9.9}; //6GeV_v15a
1016  my_muCombThres = {5.87, 5.79, 5.70, 5.62}; //6GeV_v15a
1017  my_pikCuts = false;
1018  }else if(chain == "HLT_mu24_ivarmedium_mu6_l2io_probe_L1MU18VFCH"){
1019  my_EtaBins = {0, 1.05, 1.5, 2.0, 9.9}; //6GeV_v15a
1020  my_muCombThres = {5.87, 5.79, 5.70, 5.62}; //6GeV_v15a
1021  my_pikCuts = false;
1022  }else{
1023  ATH_MSG_ERROR("muCombHypo config is NOT defined in this package:chain = " << chain);
1024  }
1025  return StatusCode::SUCCESS;
1026 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

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

◆ defaultPosFunc()

template<class T >
static std::tuple<bool, double, double> TrigMuonMonitorAlgorithm::defaultPosFunc ( const T *  trig)
inlinestaticprotectedinherited

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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; }

◆ environment()

Environment_t AthMonitorAlgorithm::environment ( ) const
inlineinherited

Accessor functions for the environment.

Returns
the current value of the class's Environment_t instance.

Definition at line 205 of file AthMonitorAlgorithm.h.

205 { return m_environment; }

◆ envStringToEnum()

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::envStringToEnum ( const std::string &  str) const
inherited

Convert the environment string from the python configuration to an enum object.

Returns
a value in the Environment_t enumeration which matches the input string.

Definition at line 112 of file AthMonitorAlgorithm.cxx.

112  {
113  // convert the string to all lowercase
114  std::string lowerCaseStr = str;
115  std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
116 
117  // check if it matches one of the enum choices
118  if( lowerCaseStr == "user" ) {
119  return Environment_t::user;
120  } else if( lowerCaseStr == "online" ) {
121  return Environment_t::online;
122  } else if( lowerCaseStr == "tier0" ) {
123  return Environment_t::tier0;
124  } else if( lowerCaseStr == "tier0raw" ) {
126  } else if( lowerCaseStr == "tier0esd" ) {
128  } else if( lowerCaseStr == "aod" ) {
129  return Environment_t::AOD;
130  } else if( lowerCaseStr == "altprod" ) {
131  return Environment_t::altprod;
132  } else { // otherwise, warn the user and return "user"
133  ATH_MSG_WARNING("AthMonitorAlgorithm::envStringToEnum(): Unknown environment "
134  <<str<<", returning user.");
135  return Environment_t::user;
136  }
137 }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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; }

◆ execute()

StatusCode AthMonitorAlgorithm::execute ( const EventContext &  ctx) const
overridevirtualinherited

Applies filters and trigger requirements.

Then, calls fillHistograms().

Parameters
ctxevent context for reentrant Athena call
Returns
StatusCode

Definition at line 73 of file AthMonitorAlgorithm.cxx.

73  {
74 
75  // Checks that all of the DQ filters are passed. If any one of the filters
76  // fails, return SUCCESS code and do not fill the histograms with the event.
77  for ( const auto& filterItr : m_DQFilterTools ) {
78  if (!filterItr->accept()) {
79  ATH_MSG_DEBUG("Event rejected due to filter tool.");
80  return StatusCode::SUCCESS;
81  }
82  }
83 
84  // Trigger: If there is a decision tool and the chains fail, skip the event.
86  ATH_MSG_DEBUG("Event rejected due to trigger filter.");
87  return StatusCode::SUCCESS;
88  }
89 
90  ATH_MSG_DEBUG("Event accepted!");
91  return fillHistograms(ctx);
92 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ fillHistograms()

StatusCode TrigMuonMonitorAlgorithm::fillHistograms ( const EventContext &  ctx) const
overridevirtualinherited

Function that steers anlayses.

It currently calles four types of analyses, fillVariables, fillVariablesPerOfflineMuon, fillVariablesPerChain and fillVariablesPerOfflineMuonPerChain that can be overridden in subclasses to do specific analyses.

See also
fillVariables, fillVariablesPerOfflineMuon, fillVariablesPerChain and fillVariablesPerOfflineMuonPerChain
Parameters
ctxEventContext provided by athenaMT

Implements AthMonitorAlgorithm.

Definition at line 22 of file TrigMuonMonitorAlgorithm.cxx.

22  {
23 
24 
25  bool passToMonitor = selectEvents();
26 
27  if(passToMonitor){
28 
31 
33  for(const std::string& chain : m_monitored_chains){
35  }
36 
37 
40  if (! muons.isValid() ) {
41  ATH_MSG_ERROR("evtStore() does not contain muon Collection with name "<< m_MuonContainerKey);
42  return StatusCode::FAILURE;
43  }
44  std::vector<const xAOD::Muon*> probes;
45  ATH_CHECK(selectMuons(muons, probes));
46 
47  for(const xAOD::Muon* mu : probes){
49 
51  for(const std::string& chain : m_monitored_chains){
53  }
54  }
55 
56  }
57 
58 
59 
60  return StatusCode::SUCCESS;
61 }

◆ fillVariableEtaPhi()

template<class T >
StatusCode TrigMuonMonitorAlgorithm::fillVariableEtaPhi ( const EventContext &  ctx,
SG::ReadHandleKey< DataVector< T > >  ReadHandleKey,
std::string &&  trigstep,
std::tuple< bool, double, double >(*)(const T *)  PosFunc = &TrigMuonMonitorAlgorithm::defaultPosFunc< T > 
) const
protectedinherited

Function that fills variables of etaphi2D plots.

See also
TrigMuonMonitorAlgorithm.icc for the implementation
Parameters
ctxEventContext provided by athenaMT
ReadHandleKeySG::ReadHandleKey of online muon.
trigsteptrigger step
PosFuncFunction pointer that implements cuts for the online muon candidates.

◆ fillVariables()

StatusCode TrigMuonMonitorAlgorithm::fillVariables ( const EventContext &  ctx) const
protectedvirtualinherited

Function that fills variables by just retrieving containers of trigger objects.

Users should reimlement in a subclass if needed.

See also
fillHistograms
Parameters
ctxEventContext provided by athenaMT

Reimplemented in EFMuonMon, L2muCombMon, L2MuonSAMon, L1MuonMon, and MuonTriggerCount.

Definition at line 82 of file TrigMuonMonitorAlgorithm.cxx.

82  {
83  return StatusCode::SUCCESS;
84 }

◆ fillVariablesPerChain()

StatusCode L2MuonSAIOMon::fillVariablesPerChain ( const EventContext &  ctx,
const std::string &  chain 
) const
overrideprotectedvirtual

Function that fills variables of trigger objects associated to specified trigger chains.

This is called in the for loop of trigger chains in fillHistograms. Users should reimlement in a subclass if needed.

See also
fillHistograms
Parameters
ctxEventContext provided by athenaMT
chainTrigger chain provided in @cfillHistograms

Reimplemented from TrigMuonMonitorAlgorithm.

Definition at line 34 of file L2MuonSAIOMon.cxx.

34  {
35 
36  ATH_MSG_DEBUG ("Filling histograms for " << name() << "...");
37 
38  if( chain.find("probe") != std::string::npos ) return StatusCode::SUCCESS; // don't use TagAndProbe chains
39 
40 
41  const float ZERO_LIMIT = 0.00001;
42 
43 
44  //TDT workaround
45  std::vector< const xAOD::L2CombinedMuon* > Trig_L2IOobjects;
46  //std::vector< bool > pass_muCombHypo;
47  ATH_CHECK( matchL2IO_wContainer(ctx, chain, Trig_L2IOobjects) );
48  //bool pass_muCombHypo_evt = muCombHypo_TDTworkaround(chain, Trig_L2IOobjects, pass_muCombHypo);
49  ATH_MSG_DEBUG(" Trig_L2IOobjects.size(): " << Trig_L2IOobjects.size() );
50 
51  // check basic EDM variables using single muon chain
52  for(const auto& Trig_L2IOobject : Trig_L2IOobjects){
53  ATH_MSG_DEBUG(" Trig_L2IOobject->muSATrack()->roiWord()/Trig_L2IOobject->pt(): " << Trig_L2IOobject->muSATrack()->roiWord() << "/" << Trig_L2IOobject->pt() );
54  // basic EDM variables
55  bool mf_failure = false;
56  auto cbioPt = Monitored::Scalar<float>(chain+"_Pt",-999.);
57  auto cbioEta = Monitored::Scalar<float>(chain+"_Eta",-999.);
58  auto cbioPhi = Monitored::Scalar<float>(chain+"_Phi",-999.);
59  cbioPt = Trig_L2IOobject->pt()/1e3 * Trig_L2IOobject->charge(); // convert to GeV
60  cbioEta = Trig_L2IOobject->eta();
61  cbioPhi = Trig_L2IOobject->phi();
62  ATH_MSG_DEBUG("cbioPt = " << cbioPt << ", cbioEta =" << cbioEta << ", cbioPhi = " << cbioPhi);
63  if(std::abs(cbioPt) < ZERO_LIMIT || std::abs(Trig_L2IOobject->muSATrack()->pt()) < ZERO_LIMIT) mf_failure = true;
64 
65  if( mf_failure ) continue;
66 
67  // region variables
68  auto isBarrel = Monitored::Scalar<bool>(chain+"_isBarrel",false);
69  auto isEndcap = Monitored::Scalar<bool>(chain+"_isEndcap",false);
70 
71  // define regions
72  int saddr = Trig_L2IOobject->muSATrack()->sAddress();
73  if(saddr == -1) isEndcap = true;
74  else isBarrel = true;;
75 
76 
77  fill(m_group+"_"+chain, cbioPt, isBarrel, isEndcap);
78  fill(m_group+"_"+chain, cbioEta);
79  fill(m_group+"_"+chain, cbioPhi, isBarrel, isEndcap);
80 
81  }
82 
83  return StatusCode::SUCCESS;
84 }

◆ fillVariablesPerOfflineMuon()

StatusCode TrigMuonMonitorAlgorithm::fillVariablesPerOfflineMuon ( const EventContext &  ctx,
const xAOD::Muon mu 
) const
protectedvirtualinherited

Function that fills variables that are compared to offline muons but the trigger chains are not specified.

This is called in the for loop of offline muons in fillHistograms. Users should reimlement in a subclass if needed.

See also
fillHistograms
Parameters
ctxEventContext provided by athenaMT
muPointer to an offline muon provided in fillHistograms

Reimplemented in EFMuonMon, L2muCombMon, and L2MuonSAMon.

Definition at line 87 of file TrigMuonMonitorAlgorithm.cxx.

87  {
88  return StatusCode::SUCCESS;
89 }

◆ fillVariablesPerOfflineMuonPerChain()

StatusCode L2MuonSAIOMon::fillVariablesPerOfflineMuonPerChain ( const EventContext &  ctx,
const xAOD::Muon mu,
const std::string &  chain 
) const
overrideprotectedvirtual

Function that fills variables of trigger objects associated to specified trigger chains comparing offline muons.

This is called in the for loop of trigger chains and offline muons in fillHistograms. Users should reimlement in a subclass if needed.

See also
fillHistograms
Parameters
ctxEventContext provided by athenaMT
muPointer to an offline muon provided in fillHistograms
chainTrigger chain provided in fillHistograms

Reimplemented from TrigMuonMonitorAlgorithm.

Definition at line 87 of file L2MuonSAIOMon.cxx.

87  {
88 
89  ATH_MSG_DEBUG ("Filling histograms for " << name() << "...");
90 
91  const float ZERO_LIMIT = 0.00001;
92 
93  // get the best L2Inside-Out object matched to offline muon(dR between L2Inside-Out object and offline muon is minimum)
94  const xAOD::L2CombinedMuon* Trig_L2IOobject = searchL2InsideOut(ctx, mu, chain);
95 
96  // offline muon variables
97  auto offPt = Monitored::Scalar<float>(chain+"_offPt",-999.);
98  auto offEta = Monitored::Scalar<float>(chain+"_offEta",-999.);
99  auto offPhi = Monitored::Scalar<float>(chain+"_offPhi",-999.);
100  offPt = mu->pt()/1e3 * mu->charge(); // convert to GeV
101  offEta = mu->eta();
102  offPhi = mu->phi();
103  float offCharge = mu->charge();
104 
105 
106  if( chain.find("probe") != std::string::npos ){ // L2Inside-Out efficiency using Tag&Probe chain
107  if(chain.find("L1MU14FCH") != std::string::npos){
108  if ( !getTrigDecisionTool()->isPassed("HLT_mu24_ivarmedium_L1MU14FCH") ) return StatusCode::SUCCESS; // impose trigger pass in order to eliminate bias
109  }
110  else if(chain.find("L1MU18VFCH") != std::string::npos){
111  if ( !getTrigDecisionTool()->isPassed("HLT_mu24_ivarmedium_L1MU18VFCH") ) return StatusCode::SUCCESS; // impose trigger pass in order to eliminate bias
112  }
113  else
114  {
115  return StatusCode::SUCCESS;
116  }
117 
118  // search tag offline muon
119  const xAOD::Muon* tag = searchTagOfflineMuon( ctx, mu );
120  if( tag == nullptr ) return StatusCode::SUCCESS; // mu doesn't have no tag muons
121 
122 
123  // efficiency variables
124  auto passL2InsideOut = Monitored::Scalar<bool>(chain+"_passL2InsideOut",false);
125  auto passL2SA = Monitored::Scalar<bool>(chain+"_passL2SA",false);
126  auto offdR = Monitored::Scalar<float>(chain+"_offdR",1000.);
127  const ElementLink<xAOD::TrackParticleContainer> &tag_ms_track = tag->muonSpectrometerTrackParticleLink();
128  if( !tag_ms_track.isValid() ) return StatusCode::SUCCESS; // tag muon dosen't have ms track
129  const ElementLink<xAOD::TrackParticleContainer> &probe_ms_track = mu->muonSpectrometerTrackParticleLink();
130  if( !probe_ms_track.isValid() ) return StatusCode::SUCCESS; // probe muon dosen't have ms track
131  float tpext_deta = (*tag_ms_track)->eta() - (*probe_ms_track)->eta();
132  float tpext_dphi = xAOD::P4Helpers::deltaPhi((*tag_ms_track)->phi(), (*probe_ms_track)->phi());
133  offdR = std::sqrt(tpext_deta*tpext_deta + tpext_dphi*tpext_dphi);
134 
135  passL2InsideOut = false;
136  passL2SA = false;
137 
138  // retrieve probe l2SA objects
139  int legIndex_probe = 1; // probe
140  std::vector< TrigCompositeUtils::LinkInfo<xAOD::L2StandAloneMuonContainer> > featureCont = getTrigDecisionTool()->features<xAOD::L2StandAloneMuonContainer>( chain,
141  TrigDefs::includeFailedDecisions,
142  "HLT_MuonL2SAInfo",
143  TrigDefs::lastFeatureOfType,
145  legIndex_probe );
146 
147  for(const TrigCompositeUtils::LinkInfo<xAOD::L2StandAloneMuonContainer>& probe_L2SALinkInfo : featureCont){
148  ATH_CHECK( probe_L2SALinkInfo.isValid() );
149  const ElementLink<xAOD::L2StandAloneMuonContainer> probe_L2SAobject = probe_L2SALinkInfo.link;
150  if( m_matchTool->isMatchedL2SA( (*probe_L2SAobject), mu ) ){
151  if( probe_L2SALinkInfo.state == TrigCompositeUtils::ActiveState::ACTIVE ) passL2SA = true;
152  }
153  }
154 
155  if(passL2SA == true){
156  if(m_matchTool->isMatchedL2InsideOut( Trig_L2IOobject, mu ))
157  {
158  bool isPass = false;
159  ATH_CHECK(isPassedmuCombHypo( chain, Trig_L2IOobject ,isPass));
160  passL2InsideOut = isPass;
161  }
162  }
163  else{
164  return StatusCode::SUCCESS;
165  }
166 
167 
168  fill(m_group+"_"+chain, passL2InsideOut, passL2SA, offPt);
169 
170  if( mu->pt()/1e3 > m_plateaus.at(chain) ){
171  fill(m_group+"_"+chain, passL2InsideOut, passL2SA, offEta, offPhi, offdR);
172  }
173  }
174  else{ // make detail histograms using normal L2Inside-Out chain
175  if( Trig_L2IOobject == nullptr ) return StatusCode::SUCCESS; // no L2Inside-Out objects
176  if( ! m_matchTool->isMatchedL2InsideOut(Trig_L2IOobject, mu) ) return StatusCode::SUCCESS; // offline muons is not matched to any L2Inside-Out objects
177 
178 
179  //L2Muon chamberID index
180  enum chamberID {
181  Inn_Barrel = 0,
182  Mid_Barrel,
183  Out_Barrel,
184  Inn_Endcap,
185  Mid_Endcap,
186  Out_Endcap
187  };
188  std::vector< int > L2Muon_chamberID_index;
189  auto mon_L2Muon_chamberID_index = Monitored::Collection(chain+"_L2Muon_chamberID_index",L2Muon_chamberID_index);
190  for( int i = 0; i < 6; i++){
191  L2Muon_chamberID_index.push_back(i);
192  }
193 
194  // dR wrt offline
195  auto dRmin = Monitored::Scalar<float>(chain+"_dRmin",1000.);
196  dRmin = xAOD::P4Helpers::deltaR(mu, Trig_L2IOobject, false);
197 
198  // region variables
199  const float ETA_OF_BARREL = 1.05;
200  auto regionBE = Monitored::Scalar<int>(chain+"_regionBE",-999);
201  auto isBarrel = Monitored::Scalar<bool>(chain+"_isBarrel",false);
202  auto isBarrelA = Monitored::Scalar<bool>(chain+"_isBarrelA",false);
203  auto isBarrelC = Monitored::Scalar<bool>(chain+"_isBarrelC",false);
204  auto isEndcap = Monitored::Scalar<bool>(chain+"_isEndcap",false);
205  auto isEndcapA = Monitored::Scalar<bool>(chain+"_isEndcapA",false);
206  auto isEndcapC = Monitored::Scalar<bool>(chain+"_isEndcapC",false);
207 
208  // offline pt variables
209  auto pt4to6 = Monitored::Scalar<bool>(chain+"_pt4to6",false);
210  auto pt6to8 = Monitored::Scalar<bool>(chain+"_pt6to8",false);
211  auto ptover8 = Monitored::Scalar<bool>(chain+"_ptover8",false);
212 
213  // define region
214  if( std::abs(offEta) < ETA_OF_BARREL ) {
215  regionBE = 0;
216  isBarrel = true;
217  if( offEta > 0. ) isBarrelA = true;
218  else isBarrelC = true;
219  }
220  else{
221  regionBE = 1;
222  isEndcap = true;
223  if( offEta > 0. ) isEndcapA = true;
224  else isEndcapC = true;
225  }
226 
227  if( std::abs(offPt) > 4 ){
228  if( std::abs(offPt) < 6 ) pt4to6 = true;
229  else if( std::abs(offPt) < 8 ) pt6to8 = true;
230  else ptover8 = true;
231  }
232 
233  // basic variables
234  auto cbioPt = Monitored::Scalar<float>(chain+"_Pt_wrt_offline",-999.);
235  auto cbioEta = Monitored::Scalar<float>(chain+"_Eta_wrt_offline",-999.);
236  auto cbioPhi = Monitored::Scalar<float>(chain+"_Phi_wrt_offline",-999.);
237  cbioPt = Trig_L2IOobject->pt()/1e3 * Trig_L2IOobject->charge(); // convert to GeV
238  cbioEta = Trig_L2IOobject->eta();
239  cbioPhi = Trig_L2IOobject->phi();
240 
241  // L2Inside-Out track multiplicity per L2SA track
242  auto L2InsideOut_multiplicity = Monitored::Scalar<float>(chain+"_L2InsideOut_track_multiplicity",-999.);
243  L2InsideOut_multiplicity = 0;
244  std::vector< const xAOD::L2CombinedMuon* > Trig_L2IOobjects_tmp;
245  ATH_CHECK( matchL2IO_wContainer(ctx, chain, Trig_L2IOobjects_tmp) );
246  for(const auto& Trig_L2IOobject_tmp : Trig_L2IOobjects_tmp){
247  if( Trig_L2IOobject_tmp->muSATrack()->roiWord() == Trig_L2IOobject->muSATrack()->roiWord() ) L2InsideOut_multiplicity++;
248  }
249 
250  // pt resolution
251  auto ptresol = Monitored::Scalar<float>(chain+"_ptresol",-999.);
252  if ( std::abs(offPt) > ZERO_LIMIT && std::abs(cbioPt) > ZERO_LIMIT ){
253  ptresol = std::abs(cbioPt)/std::abs(offPt) - 1.;
254  }
255 
256  std::vector< float > ptresol_pos, ptresol_neg;
257  auto mon_ptresol_pos = Monitored::Collection(chain+"_ptresol_pos",ptresol_pos);
258  auto mon_ptresol_neg = Monitored::Collection(chain+"_ptresol_neg",ptresol_neg);
259  if( offCharge > 0. ) ptresol_pos.push_back(ptresol);
260  else ptresol_neg.push_back(ptresol);
261 
262  // distance bw FTFroad and offlinesegment
263  std::vector< float > distance_bw_FTFroad_and_offlinesegment_Inn_Barrel;
264  std::vector< float > distance_bw_FTFroad_and_offlinesegment_Mid_Barrel;
265  std::vector< float > distance_bw_FTFroad_and_offlinesegment_Out_Barrel;
266  std::vector< float > distance_bw_FTFroad_and_offlinesegment_Inn_Endcap;
267  std::vector< float > distance_bw_FTFroad_and_offlinesegment_Mid_Endcap;
268  std::vector< float > distance_bw_FTFroad_and_offlinesegment_Out_Endcap;
269  auto mon_distance_bw_FTFroad_and_offlinesegment_Inn_Barrel = Monitored::Collection(chain+"_distance_bw_FTFroad_and_offlinesegment_Inn_Barrel",distance_bw_FTFroad_and_offlinesegment_Inn_Barrel);
270  auto mon_distance_bw_FTFroad_and_offlinesegment_Mid_Barrel = Monitored::Collection(chain+"_distance_bw_FTFroad_and_offlinesegment_Mid_Barrel",distance_bw_FTFroad_and_offlinesegment_Mid_Barrel);
271  auto mon_distance_bw_FTFroad_and_offlinesegment_Out_Barrel = Monitored::Collection(chain+"_distance_bw_FTFroad_and_offlinesegment_Out_Barrel",distance_bw_FTFroad_and_offlinesegment_Out_Barrel);
272  auto mon_distance_bw_FTFroad_and_offlinesegment_Inn_Endcap = Monitored::Collection(chain+"_distance_bw_FTFroad_and_offlinesegment_Inn_Endcap",distance_bw_FTFroad_and_offlinesegment_Inn_Endcap);
273  auto mon_distance_bw_FTFroad_and_offlinesegment_Mid_Endcap = Monitored::Collection(chain+"_distance_bw_FTFroad_and_offlinesegment_Mid_Endcap",distance_bw_FTFroad_and_offlinesegment_Mid_Endcap);
274  auto mon_distance_bw_FTFroad_and_offlinesegment_Out_Endcap = Monitored::Collection(chain+"_distance_bw_FTFroad_and_offlinesegment_Out_Endcap",distance_bw_FTFroad_and_offlinesegment_Out_Endcap);
275 
276  std::vector< float > distance_bw_FTFroad_and_offlinesegment_vec;
277  std::vector< float > FTFroad_Aw;
278  std::vector< float > FTFroad_Bw;
279  std::vector< bool > FTFroad_fill;
280  for(int i=0; i<6; i++){
281  distance_bw_FTFroad_and_offlinesegment_vec.push_back(10000.);
282  FTFroad_Aw.push_back(Trig_L2IOobject->muSATrack()->roadAw(i, 0));
283  FTFroad_Bw.push_back(Trig_L2IOobject->muSATrack()->roadBw(i, 0));
284  FTFroad_fill.push_back(false);
285  }
286 
287  // MDT hits residual
288  std::vector<float> res_Inn_Barrel, res_Mid_Barrel, res_Out_Barrel, res_Inn_Endcap, res_Mid_Endcap, res_Out_Endcap;
289  auto mon_res_Inn_Barrel = Monitored::Collection(chain+"_MDT_residual_Inn_Barrel",res_Inn_Barrel);
290  auto mon_res_Mid_Barrel = Monitored::Collection(chain+"_MDT_residual_Mid_Barrel",res_Mid_Barrel);
291  auto mon_res_Out_Barrel = Monitored::Collection(chain+"_MDT_residual_Out_Barrel",res_Out_Barrel);
292  auto mon_res_Inn_Endcap = Monitored::Collection(chain+"_MDT_residual_Inn_Endcap",res_Inn_Endcap);
293  auto mon_res_Mid_Endcap = Monitored::Collection(chain+"_MDT_residual_Mid_Endcap",res_Mid_Endcap);
294  auto mon_res_Out_Endcap = Monitored::Collection(chain+"_MDT_residual_Out_Endcap",res_Out_Endcap);
295 
296  // distance bw MDT hits and offlinesegment
297  std::vector< float > distance_bw_MDT_and_offlinesegment_Inn_Barrel;
298  std::vector< float > distance_bw_MDT_and_offlinesegment_Mid_Barrel;
299  std::vector< float > distance_bw_MDT_and_offlinesegment_Out_Barrel;
300  std::vector< float > distance_bw_MDT_and_offlinesegment_Inn_Endcap;
301  std::vector< float > distance_bw_MDT_and_offlinesegment_Mid_Endcap;
302  std::vector< float > distance_bw_MDT_and_offlinesegment_Out_Endcap;
303  auto mon_distance_bw_MDT_and_offlinesegment_Inn_Barrel = Monitored::Collection(chain+"_distance_bw_MDT_and_offlinesegment_Inn_Barrel",distance_bw_MDT_and_offlinesegment_Inn_Barrel);
304  auto mon_distance_bw_MDT_and_offlinesegment_Mid_Barrel = Monitored::Collection(chain+"_distance_bw_MDT_and_offlinesegment_Mid_Barrel",distance_bw_MDT_and_offlinesegment_Mid_Barrel);
305  auto mon_distance_bw_MDT_and_offlinesegment_Out_Barrel = Monitored::Collection(chain+"_distance_bw_MDT_and_offlinesegment_Out_Barrel",distance_bw_MDT_and_offlinesegment_Out_Barrel);
306  auto mon_distance_bw_MDT_and_offlinesegment_Inn_Endcap = Monitored::Collection(chain+"_distance_bw_MDT_and_offlinesegment_Inn_Endcap",distance_bw_MDT_and_offlinesegment_Inn_Endcap);
307  auto mon_distance_bw_MDT_and_offlinesegment_Mid_Endcap = Monitored::Collection(chain+"_distance_bw_MDT_and_offlinesegment_Mid_Endcap",distance_bw_MDT_and_offlinesegment_Mid_Endcap);
308  auto mon_distance_bw_MDT_and_offlinesegment_Out_Endcap = Monitored::Collection(chain+"_distance_bw_MDT_and_offlinesegment_Out_Endcap",distance_bw_MDT_and_offlinesegment_Out_Endcap);
309  std::vector< float > distance_bw_MDT_and_offlinesegment_vec;
310  std::vector< int > MDTHitChamber_fill;
311  std::vector< int > MDTHitChamber;
312  std::vector< float > MDTHitR;
313  std::vector< float > MDTHitZ;
314 
315  // # of MDT hits
316  std::vector<int> MDT_N_Inn_Barrel, MDT_N_Mid_Barrel, MDT_N_Out_Barrel, MDT_N_Inn_Endcap, MDT_N_Mid_Endcap, MDT_N_Out_Endcap;
317  auto mon_MDT_N_Inn_Barrel = Monitored::Collection(chain+"_MDT_N_Inn_Barrel",MDT_N_Inn_Barrel);
318  auto mon_MDT_N_Mid_Barrel = Monitored::Collection(chain+"_MDT_N_Mid_Barrel",MDT_N_Mid_Barrel);
319  auto mon_MDT_N_Out_Barrel = Monitored::Collection(chain+"_MDT_N_Out_Barrel",MDT_N_Out_Barrel);
320  auto mon_MDT_N_Inn_Endcap = Monitored::Collection(chain+"_MDT_N_Inn_Endcap",MDT_N_Inn_Endcap);
321  auto mon_MDT_N_Mid_Endcap = Monitored::Collection(chain+"_MDT_N_Mid_Endcap",MDT_N_Mid_Endcap);
322  auto mon_MDT_N_Out_Endcap = Monitored::Collection(chain+"_MDT_N_Out_Endcap",MDT_N_Out_Endcap);
323  int n_mdthits_BI = 0;
324  int n_mdthits_BM = 0;
325  int n_mdthits_BO = 0;
326  int n_mdthits_EI = 0;
327  int n_mdthits_EM = 0;
328  int n_mdthits_EO = 0;
329 
330  int n_mdt_hits = Trig_L2IOobject->muSATrack()->nMdtHits();
331  for(int i_tube=0; i_tube<n_mdt_hits; i_tube++){
332  if( Trig_L2IOobject->muSATrack()->mdtHitIsOutlier(i_tube) != 0 ) continue;
333  float res = Trig_L2IOobject->muSATrack()->mdtHitResidual(i_tube);
334  int imr = Trig_L2IOobject->muSATrack()->mdtHitChamber(i_tube);
335  MDTHitChamber.push_back(imr);
336  MDTHitR.push_back(Trig_L2IOobject->muSATrack()->mdtHitR(i_tube));
337  MDTHitZ.push_back(Trig_L2IOobject->muSATrack()->mdtHitZ(i_tube));
338 
339  if( imr == Inn_Barrel ){
340  n_mdthits_BI++;
341  res_Inn_Barrel.push_back(res);
342  }
343  else if( imr == Mid_Barrel ){
344  n_mdthits_BM++;
345  res_Mid_Barrel.push_back(res);
346  }
347  else if( imr == Out_Barrel ){
348  n_mdthits_BO++;
349  res_Out_Barrel.push_back(res);
350  }
351  else if( imr == Inn_Endcap ){
352  n_mdthits_EI++;
353  res_Inn_Endcap.push_back(res);
354  }
355  else if( imr == Mid_Endcap ){
356  n_mdthits_EM++;
357  res_Mid_Endcap.push_back(res);
358  }
359  else if( imr == Out_Endcap ){
360  n_mdthits_EO++;
361  res_Out_Endcap.push_back(res);
362  }
363  }
364 
365  // reconstruction efficiency of superpoint
366  std::vector<bool> superpoint_exist_pt4to6, superpoint_exist_pt6to8, superpoint_exist_ptover8;
367  auto mon_superpoint_exist_pt4to6 = Monitored::Collection(chain+"_superpoint_pt4to6",superpoint_exist_pt4to6);
368  auto mon_superpoint_exist_pt6to8 = Monitored::Collection(chain+"_superpoint_pt6to8",superpoint_exist_pt6to8);
369  auto mon_superpoint_exist_ptover8 = Monitored::Collection(chain+"_superpoint_ptover8",superpoint_exist_ptover8);
370  std::vector<bool> segment_superpoint_exist(6, false);
371  std::vector<bool> offlinesegment_exist_pt4to6, offlinesegment_exist_pt6to8, offlinesegment_exist_ptover8;
372  auto mon_offlinesegment_exist_pt4to6 = Monitored::Collection(chain+"_offlinesegment_pt4to6",offlinesegment_exist_pt4to6);
373  auto mon_offlinesegment_exist_pt6to8 = Monitored::Collection(chain+"_offlinesegment_pt6to8",offlinesegment_exist_pt6to8);
374  auto mon_offlinesegment_exist_ptover8 = Monitored::Collection(chain+"_offlinesegment_ptover8",offlinesegment_exist_ptover8);
375 
376  // # of superpoint
377  auto superpoint_multiplicity = Monitored::Scalar<int>(chain+"_superpoint_multiplicity",0);
378  std::vector< bool > superpoint_exist;
379  std::vector< float > superpointR;
380  int Num_L2Muon_chamberID = 12;
381  for( int i_chamber = 0; i_chamber < Num_L2Muon_chamberID; i_chamber++){
382  if( Trig_L2IOobject->muSATrack()->superPointR(i_chamber) < ZERO_LIMIT ){
383  superpoint_exist.push_back(false);
384  }
385  else{
386  superpoint_exist.push_back(true);
387  superpoint_multiplicity++;
388  }
389  superpointR.push_back(Trig_L2IOobject->muSATrack()->superPointR(i_chamber));
390  }
391 
392 
393  std::vector< bool > segment_exist(6, false);
394  for(unsigned int i_seg = 0; i_seg < mu->nMuonSegments(); i_seg++){
395  const xAOD::MuonSegment* segment = mu->muonSegment(i_seg);
396  if(!segment) continue;
397  float segmentX = segment->x();
398  float segmentY = segment->y();
399  float segmentZ = segment->z();
400  float segmentR = std::sqrt( std::pow(segmentX, 2.0) + std::pow(segmentY, 2.0) );
401  float segmentPx = segment->px();
402  float segmentPy = segment->py();
403  float segmentPz = segment->pz();
404  float segmentSector = segment->sector();
405  int segmentChamberIndex = segment->chamberIndex();
406  float distance_bw_FTFroad_and_offlinesegment = 99999.;
407  float distance_bw_MDT_and_offlinesegment = 99999.;
408  int roadChamberIndex = -1;
409  int MDTChamberIndex = -1;
410  if( segmentChamberIndex == 0 || segmentChamberIndex == 1 ){ // Inner Barrel
411  segment_exist.at(Inn_Barrel) = true;
412  roadChamberIndex = Inn_Barrel;
413  MDTChamberIndex = Inn_Barrel;
414  }
415  else if( segmentChamberIndex == 2 || segmentChamberIndex == 3 ){ // Middle Barrel
416  segment_exist.at(Mid_Barrel) = true;
417  roadChamberIndex = Mid_Barrel;
418  MDTChamberIndex = Mid_Barrel;
419  }
420  else if( segmentChamberIndex == 4 || segmentChamberIndex == 5 ){ // Outer Barrel
421  segment_exist.at(Out_Barrel) = true;
422  roadChamberIndex = Out_Barrel;
423  MDTChamberIndex = Out_Barrel;
424  }
425  else if( segmentChamberIndex == 7 || segmentChamberIndex == 8 ){ // Inner Endcap
426  segment_exist.at(Inn_Endcap) = true;
427  roadChamberIndex = Inn_Endcap;
428  MDTChamberIndex = Inn_Endcap;
429  }
430  else if( segmentChamberIndex == 9 || segmentChamberIndex == 10 ){ // Middle Endcap
431  segment_exist.at(Mid_Endcap) = true;
432  roadChamberIndex = Mid_Endcap;
433  MDTChamberIndex = Mid_Endcap;
434  }
435  else if( segmentChamberIndex == 11 || segmentChamberIndex == 12 ){ // Outer Endcap
436  segment_exist.at(Out_Endcap) = true;
437  roadChamberIndex = Out_Endcap;
438  MDTChamberIndex = Out_Endcap;
439  }
440 
441  // Calc distance bw FTFroad and offlinesegment
442  if( roadChamberIndex != -1 ){
443  if( FTFroad_Aw.at(roadChamberIndex) > ZERO_LIMIT || FTFroad_Bw.at(roadChamberIndex) > ZERO_LIMIT ){
444  FTFroad_fill.at(roadChamberIndex) = true;
445  if( FTFroad_Aw.at(roadChamberIndex) < ZERO_LIMIT) distance_bw_FTFroad_and_offlinesegment = segmentR - FTFroad_Bw.at(roadChamberIndex);
446  else{
447  float ia = 1.0/FTFroad_Aw.at(roadChamberIndex);
448  float iaq = ia * ia;
449  distance_bw_FTFroad_and_offlinesegment = (segmentZ - ia * (segmentR - FTFroad_Bw.at(roadChamberIndex)))/std::sqrt(1.0 + iaq);
450  }
451  if( std::abs(distance_bw_FTFroad_and_offlinesegment) < std::abs(distance_bw_FTFroad_and_offlinesegment_vec.at(roadChamberIndex)) )
452  distance_bw_FTFroad_and_offlinesegment_vec.at(roadChamberIndex) = distance_bw_FTFroad_and_offlinesegment;
453  }
454  }
455 
456  // Calc distance bw MDT hits and offlinesegment
457  if( MDTChamberIndex != -1 ){
458  float sector_phi = M_PI*(segmentSector - 1.0)/8.0;
459  float segmentR_projection = segmentX * std::cos(sector_phi) + segmentY * std::sin(sector_phi);
460  float segmentPr_projection = segmentPx * std::cos(sector_phi) + segmentPy * std::sin(sector_phi);
461 
462  for(unsigned int i_tube=0; i_tube<MDTHitChamber.size(); i_tube++){
463  if( MDTHitChamber.at(i_tube) != MDTChamberIndex ) continue;
464  if( MDTChamberIndex < 3 ){ //Barrel
465  if( std::abs(segmentPz) < ZERO_LIMIT ) distance_bw_MDT_and_offlinesegment = MDTHitZ.at(i_tube) - segmentZ;
466  else{
467  float denominator = segmentPr_projection/segmentPz;
468  if( std::abs(denominator) < ZERO_LIMIT ) continue;
469  distance_bw_MDT_and_offlinesegment = MDTHitZ.at(i_tube) - ((MDTHitR.at(i_tube) - segmentR_projection)/denominator + segmentZ);
470  }
471  }
472  else{ //Endcap
473  if( std::abs(segmentPz) < ZERO_LIMIT ){
474  distance_bw_MDT_and_offlinesegment = MDTHitR.at(i_tube) - segmentR;
475  }
476  else{
477  float coeffi = (MDTHitZ.at(i_tube) - segmentZ)/segmentPz;
478  float segmentR_extrapolated = std::sqrt(std::pow(segmentX + coeffi * segmentPx, 2.0) + std::pow(segmentY + coeffi * segmentPy, 2.0));
479  distance_bw_MDT_and_offlinesegment = MDTHitR.at(i_tube) - segmentR_extrapolated;
480  }
481  }
482  distance_bw_MDT_and_offlinesegment_vec.push_back(distance_bw_MDT_and_offlinesegment);
483  MDTHitChamber_fill.push_back(MDTHitChamber.at(i_tube));
484  }
485  }
486  }
487 
488  if( FTFroad_fill.at(Inn_Barrel) ){
489  distance_bw_FTFroad_and_offlinesegment_Inn_Barrel.push_back(distance_bw_FTFroad_and_offlinesegment_vec.at(Inn_Barrel));
490  }
491  if( FTFroad_fill.at(Mid_Barrel) ){
492  distance_bw_FTFroad_and_offlinesegment_Mid_Barrel.push_back(distance_bw_FTFroad_and_offlinesegment_vec.at(Mid_Barrel));
493  }
494  if( FTFroad_fill.at(Out_Barrel) ){
495  distance_bw_FTFroad_and_offlinesegment_Out_Barrel.push_back(distance_bw_FTFroad_and_offlinesegment_vec.at(Out_Barrel));
496  }
497  if( FTFroad_fill.at(Inn_Endcap) ){
498  distance_bw_FTFroad_and_offlinesegment_Inn_Endcap.push_back(distance_bw_FTFroad_and_offlinesegment_vec.at(Inn_Endcap));
499  }
500  if( FTFroad_fill.at(Mid_Endcap) ){
501  distance_bw_FTFroad_and_offlinesegment_Mid_Endcap.push_back(distance_bw_FTFroad_and_offlinesegment_vec.at(Mid_Endcap));
502  }
503  if( FTFroad_fill.at(Out_Endcap) ){
504  distance_bw_FTFroad_and_offlinesegment_Out_Endcap.push_back(distance_bw_FTFroad_and_offlinesegment_vec.at(Out_Endcap));
505  }
506 
507  for( unsigned int i = 0; i < distance_bw_MDT_and_offlinesegment_vec.size(); i++ ){
508  if( MDTHitChamber_fill.at(i) == Inn_Barrel ){
509  distance_bw_MDT_and_offlinesegment_Inn_Barrel.push_back(distance_bw_MDT_and_offlinesegment_vec.at(i));
510  }
511  else if( MDTHitChamber_fill.at(i) == Mid_Barrel ){
512  distance_bw_MDT_and_offlinesegment_Mid_Barrel.push_back(distance_bw_MDT_and_offlinesegment_vec.at(i));
513  }
514  else if( MDTHitChamber_fill.at(i) == Out_Barrel ){
515  distance_bw_MDT_and_offlinesegment_Out_Barrel.push_back(distance_bw_MDT_and_offlinesegment_vec.at(i));
516  }
517  else if( MDTHitChamber_fill.at(i) == Inn_Endcap ){
518  distance_bw_MDT_and_offlinesegment_Inn_Endcap.push_back(distance_bw_MDT_and_offlinesegment_vec.at(i));
519  }
520  else if( MDTHitChamber_fill.at(i) == Mid_Endcap ){
521  distance_bw_MDT_and_offlinesegment_Mid_Endcap.push_back(distance_bw_MDT_and_offlinesegment_vec.at(i));
522  }
523  else if( MDTHitChamber_fill.at(i) == Out_Endcap ){
524  distance_bw_MDT_and_offlinesegment_Out_Endcap.push_back(distance_bw_MDT_and_offlinesegment_vec.at(i));
525  }
526  else{
527  ATH_MSG_WARNING( "undefined chamberID is pushed back into MDTHitChamber_fill" );
528  }
529  }
530 
531  if( segment_exist.at(Inn_Barrel) ){
532  MDT_N_Inn_Barrel.push_back(n_mdthits_BI);
533  segment_superpoint_exist.at(Inn_Barrel) = superpoint_exist.at(Inn_Barrel);
534  }
535  if( segment_exist.at(Mid_Barrel) ){
536  MDT_N_Mid_Barrel.push_back(n_mdthits_BM);
537  segment_superpoint_exist.at(Mid_Barrel) = superpoint_exist.at(Mid_Barrel);
538  }
539  if( segment_exist.at(Out_Barrel) ){
540  MDT_N_Out_Barrel.push_back(n_mdthits_BO);
541  segment_superpoint_exist.at(Out_Barrel) = superpoint_exist.at(Out_Barrel);
542  }
543  if( segment_exist.at(Inn_Endcap) ){
544  MDT_N_Inn_Endcap.push_back(n_mdthits_EI);
545  segment_superpoint_exist.at(Inn_Endcap) = superpoint_exist.at(Inn_Endcap);
546  }
547  if( segment_exist.at(Mid_Endcap) ){
548  MDT_N_Mid_Endcap.push_back(n_mdthits_EM);
549  segment_superpoint_exist.at(Mid_Endcap) = superpoint_exist.at(Mid_Endcap);
550  }
551  if( segment_exist.at(Out_Endcap) ){
552  MDT_N_Out_Endcap.push_back(n_mdthits_EO);
553  segment_superpoint_exist.at(Out_Endcap) = superpoint_exist.at(Out_Endcap);
554  }
555 
556  if( pt4to6 ){
557  offlinesegment_exist_pt4to6 = segment_exist;
558  superpoint_exist_pt4to6 = segment_superpoint_exist;
559  }
560  else if( pt6to8 ){
561  offlinesegment_exist_pt6to8 = segment_exist;
562  superpoint_exist_pt6to8 = segment_superpoint_exist;
563  }
564  else if( ptover8 ){
565  offlinesegment_exist_ptover8 = segment_exist;
566  superpoint_exist_ptover8 = segment_superpoint_exist;
567  }
568 
569  fill(m_group+"_"+chain, dRmin, isBarrel, isEndcap);
570  fill(m_group+"_"+chain, cbioPt, isBarrel, isEndcap);
571  fill(m_group+"_"+chain, cbioEta);
572  fill(m_group+"_"+chain, cbioPhi, isBarrel, isEndcap);
573  fill(m_group+"_"+chain, L2InsideOut_multiplicity, offPt, isBarrel, isEndcap);
574  fill(m_group+"_"+chain, ptresol, offEta, pt4to6, pt6to8, ptover8);
575  fill(m_group+"_"+chain, ptresol, offPt, isBarrelA, isBarrelC, isEndcapA, isEndcapC);
576  fill(m_group+"_"+chain, mon_ptresol_pos, mon_ptresol_neg, isBarrelA, isBarrelC, isEndcapA, isEndcapC);
577  fill(m_group+"_"+chain, mon_distance_bw_FTFroad_and_offlinesegment_Inn_Barrel, pt4to6, pt6to8, ptover8);
578  fill(m_group+"_"+chain, mon_distance_bw_FTFroad_and_offlinesegment_Mid_Barrel, pt4to6, pt6to8, ptover8);
579  fill(m_group+"_"+chain, mon_distance_bw_FTFroad_and_offlinesegment_Out_Barrel, pt4to6, pt6to8, ptover8);
580  fill(m_group+"_"+chain, mon_distance_bw_FTFroad_and_offlinesegment_Inn_Endcap, pt4to6, pt6to8, ptover8);
581  fill(m_group+"_"+chain, mon_distance_bw_FTFroad_and_offlinesegment_Mid_Endcap, pt4to6, pt6to8, ptover8);
582  fill(m_group+"_"+chain, mon_distance_bw_FTFroad_and_offlinesegment_Out_Endcap, pt4to6, pt6to8, ptover8);
583  fill(m_group+"_"+chain, mon_res_Inn_Barrel);
584  fill(m_group+"_"+chain, mon_res_Mid_Barrel);
585  fill(m_group+"_"+chain, mon_res_Out_Barrel);
586  fill(m_group+"_"+chain, mon_res_Inn_Endcap);
587  fill(m_group+"_"+chain, mon_res_Mid_Endcap);
588  fill(m_group+"_"+chain, mon_res_Out_Endcap);
589  fill(m_group+"_"+chain, mon_distance_bw_MDT_and_offlinesegment_Inn_Barrel);
590  fill(m_group+"_"+chain, mon_distance_bw_MDT_and_offlinesegment_Mid_Barrel);
591  fill(m_group+"_"+chain, mon_distance_bw_MDT_and_offlinesegment_Out_Barrel);
592  fill(m_group+"_"+chain, mon_distance_bw_MDT_and_offlinesegment_Inn_Endcap);
593  fill(m_group+"_"+chain, mon_distance_bw_MDT_and_offlinesegment_Mid_Endcap);
594  fill(m_group+"_"+chain, mon_distance_bw_MDT_and_offlinesegment_Out_Endcap);
595  fill(m_group+"_"+chain, mon_MDT_N_Inn_Barrel);
596  fill(m_group+"_"+chain, mon_MDT_N_Mid_Barrel);
597  fill(m_group+"_"+chain, mon_MDT_N_Out_Barrel);
598  fill(m_group+"_"+chain, mon_MDT_N_Inn_Endcap);
599  fill(m_group+"_"+chain, mon_MDT_N_Mid_Endcap);
600  fill(m_group+"_"+chain, mon_MDT_N_Out_Endcap);
601  fill(m_group+"_"+chain, superpoint_multiplicity, regionBE, pt4to6, pt6to8, ptover8);
602  fill(m_group+"_"+chain, mon_L2Muon_chamberID_index, mon_superpoint_exist_pt4to6, mon_offlinesegment_exist_pt4to6);
603  fill(m_group+"_"+chain, mon_L2Muon_chamberID_index, mon_superpoint_exist_pt6to8, mon_offlinesegment_exist_pt6to8);
604  fill(m_group+"_"+chain, mon_L2Muon_chamberID_index, mon_superpoint_exist_ptover8, mon_offlinesegment_exist_ptover8);
605  }
606 
607  return StatusCode::SUCCESS;
608 }

◆ fillVariablesRatioPlots()

template<class T , class FUNCT >
StatusCode TrigMuonMonitorAlgorithm::fillVariablesRatioPlots ( const EventContext &  ctx,
const xAOD::Muon mu,
std::string &&  trigstep,
xAOD::Muon::TrackParticleType  type,
FUNCT  matchFunc 
) const
protectedinherited

Function that fills variables of ratio plots.

See also
TrigMuonMonitorAlgorithm.icc for the implementation
Parameters
ctxEventContext provided by athenaMT
muPointer to an offline muon provided in fillHistograms
trigsteptrigger step
typexAOD::Muon::TrackParticleType of offline muon
matchFuncFunction pointer that implements cuts for the online muon candidates gotten by ReadHandle.

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ GetEventInfo()

SG::ReadHandle< xAOD::EventInfo > AthMonitorAlgorithm::GetEventInfo ( const EventContext &  ctx) const
inherited

Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)

Parameters
ctxEventContext for the event
Returns
a SG::ReadHandle<xAOD::EventInfo>

Definition at line 107 of file AthMonitorAlgorithm.cxx.

107  {
109 }

◆ getGroup()

const ToolHandle< GenericMonitoringTool > & AthMonitorAlgorithm::getGroup ( const std::string &  name) const
inherited

Get a specific monitoring tool from the tool handle array.

Finds a specific GenericMonitoringTool instance from the list of monitoring tools (a ToolHandleArray). Throws a FATAL warning if the object found is empty.

Parameters
namestring name of the desired tool
Returns
reference to the desired monitoring tool

Definition at line 164 of file AthMonitorAlgorithm.cxx.

164  {
165  // get the pointer to the tool, and check that it exists
166  auto idx = m_toolLookupMap.find(name);
167  if (ATH_LIKELY(idx != m_toolLookupMap.end())) {
168  return m_tools[idx->second];
169  }
170  else {
171  if (!isInitialized()) {
173  "It seems that the AthMonitorAlgorithm::initialize was not called "
174  "in derived class initialize method");
175  } else {
176  std::string available = std::accumulate(
177  m_toolLookupMap.begin(), m_toolLookupMap.end(), std::string(""),
178  [](const std::string& s, auto h) { return s + "," + h.first; });
179  ATH_MSG_FATAL("The tool " << name << " could not be found in the tool array of the "
180  << "monitoring algorithm " << m_name << ". This probably reflects a discrepancy between "
181  << "your python configuration and c++ filling code. Note: your available groups are {"
182  << available << "}.");
183  }
184  }
185  return m_dummy;
186 }

◆ getTrigDecisionTool()

const ToolHandle< Trig::TrigDecisionTool > & AthMonitorAlgorithm::getTrigDecisionTool ( ) const
inherited

Get the trigger decision tool member.

The trigger decision tool is used to check whether a specific trigger is passed by an event.

Returns
m_trigDecTool

Definition at line 189 of file AthMonitorAlgorithm.cxx.

189  {
190  return m_trigDecTool;
191 }

◆ initialize()

StatusCode L2MuonSAIOMon::initialize ( )
overridevirtual

initialize

Returns
StatusCode

Reimplemented from TrigMuonMonitorAlgorithm.

Definition at line 15 of file L2MuonSAIOMon.cxx.

15  {
16 
18  ATH_CHECK( m_L2MuonCBIOContainerKey.initialize() );
19 
20  unsigned int nchains = m_monitored_chains.size();
21  if(nchains!=m_monitored_chains_plateau.size()){
22  ATH_MSG_ERROR("Configuration seems to be wrong. The size of \"Plateaus\" should be same as \"MonitoredChainds\".");
23  return StatusCode::FAILURE;
24  } else {
25  for(unsigned int ichain=0; ichain<nchains; ++ichain){
27  }
28  }
29  return StatusCode::SUCCESS;
30 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ isOverlap()

bool L2MuonSAIOMon::isOverlap ( const xAOD::L2CombinedMuon matchSA_L2IOobject1,
const xAOD::L2CombinedMuon matchSA_L2IOobject2 
) const
private

Definition at line 754 of file L2MuonSAIOMon.cxx.

754  {
755 
756  ATH_MSG_DEBUG( " ...matchSA_L2IOobject1: pt/eta/phi=" << matchSA_L2IOobject1->pt()/Gaudi::Units::GeV << " / " << matchSA_L2IOobject1->eta() << " / " << matchSA_L2IOobject1->phi() );
757  ATH_MSG_DEBUG( " ...matchSA_L2IOobject2: pt/eta/phi=" << matchSA_L2IOobject2->pt()/Gaudi::Units::GeV << " / " << matchSA_L2IOobject2->eta() << " / " << matchSA_L2IOobject2->phi() );
758 
759  const auto [mu1Pt, mu1Eta, mu1Phi] = L2ORPosForMatchFunc(matchSA_L2IOobject1);
760  const auto [mu2Pt, mu2Eta, mu2Phi] = L2ORPosForMatchFunc(matchSA_L2IOobject2);
761 
762  // if dR or invMass is necessary but (eta,phi) info is not avaiable
763  // (i.e. eta,phi=0,0; rec failed)
764  const double ZERO_LIMIT_FOR_ETAPHI = 1e-4;
765  if( (std::abs(matchSA_L2IOobject1->eta()) <ZERO_LIMIT_FOR_ETAPHI && std::abs(matchSA_L2IOobject1->phi()) < ZERO_LIMIT_FOR_ETAPHI) ||
766  (std::abs(matchSA_L2IOobject2->eta()) <ZERO_LIMIT_FOR_ETAPHI && std::abs(matchSA_L2IOobject2->phi()) < ZERO_LIMIT_FOR_ETAPHI) ) {
767  ATH_MSG_DEBUG( " ...-> (eta,phi) info not available (rec at (eta,phi)=(0,0))" );
768  if( m_RequireDR || m_RequireMass ) {
769  ATH_MSG_DEBUG( " ...-> but dR of invMass check is required. cannot judge overlap -> return with false" );
770  return false;
771  }
772  }
773 
774  // if charge or invMass is necessary but charge(=pT) info is not avaiable
775  const double ZERO_LIMIT_FOR_PT = 1e-4;
776  if( (std::abs(matchSA_L2IOobject1->pt()) <ZERO_LIMIT_FOR_PT) || (std::abs(matchSA_L2IOobject2->pt()) < ZERO_LIMIT_FOR_PT) ) {
777  ATH_MSG_DEBUG( " ...-> pT info not available (rec at pT=0)" );
779  ATH_MSG_DEBUG( " ...-> but same sign or invMass check is required. cannot judge overlap -> return with false" );
780  return false;
781  }
782  }
783 
784 
785  double absEta = (std::abs(mu1Pt) > std::abs(mu2Pt)) ? std::abs(mu1Eta) : std::abs(mu2Eta);
786  unsigned int iThres=0;
787  for(unsigned int i=0; i<(m_etaBins.size()-1); i++) {
788  if ( m_etaBins[i] <= absEta && absEta < m_etaBins[i+1] ) iThres = i;
789  }
790  float dRThres = m_dRCBThres[iThres];
791  float dRbySAThres = m_dRbySAThres[iThres];
792  float massThres = m_massCBThres[iThres];
793  ATH_MSG_DEBUG( " ...iThres=" << iThres );
794  if(m_RequireDR) ATH_MSG_DEBUG( " ...dR threshold=" << dRThres );
795  if(m_RequireDRbySA) ATH_MSG_DEBUG( " ...dR(byMF) threshold=" << dRbySAThres );
796  if(m_RequireMass) ATH_MSG_DEBUG( " ...mass threshold=" << massThres );
797 
798 
799 
800  // same sign cut
801  bool sameSign = false;
802  if( m_RequireSameSign ) {
803  sameSign = ((mu1Pt*mu2Pt) > 0);
804  ATH_MSG_DEBUG( " ...-> sameSign=" << sameSign );
805  }
806 
807  // dR cut
808  bool dRisClose = false;
809  float deta = mu1Eta - mu2Eta;
810  float dphi = xAOD::P4Helpers::deltaPhi(mu1Phi, mu2Phi);
811  float dR = std::sqrt(deta*deta + dphi*dphi);
812  if( m_RequireDR ) {
813  if( dR < dRThres ) dRisClose = true;
814  ATH_MSG_DEBUG( " ...-> dR=" << dR << " : dRisClose=" << dRisClose );
815  }
816 
817  // dR(by L2SA) cut
818  bool dRbySAisClose = false;
819  const xAOD::L2StandAloneMuon* muSA1 = matchSA_L2IOobject1->muSATrack();
820  const xAOD::L2StandAloneMuon* muSA2 = matchSA_L2IOobject2->muSATrack();
821  if( m_RequireDRbySA ) {
822  // here, we do not check (eta,phi) of mF is not (0,0)
823  // (i.e. we apply muComb based cut even if muFast rec is failed)
824  float deta = muSA1->etaMS() - muSA2->etaMS();
825  float dphi = xAOD::P4Helpers::deltaPhi(muSA1->phiMS(), muSA2->phiMS());
826  float dRBySA = std::sqrt(deta*deta + dphi*dphi);
827  if( dRBySA < dRbySAThres ) dRbySAisClose = true;
828  ATH_MSG_DEBUG( " ...-> dR(by MF)=" << dRBySA << " : dRbySAisClose=" << dRbySAisClose );
829  }
830 
831  // mass cut
832  const double TRACK_MASS = 0.; // just assume zero mass
833  bool massIsClose = false;
834  TLorentzVector lvioobj1, lvioobj2;
835  lvioobj1.SetPtEtaPhiM(std::abs(mu1Pt), mu1Eta, mu1Phi, TRACK_MASS);
836  lvioobj2.SetPtEtaPhiM(std::abs(mu2Pt), mu2Eta, mu2Phi, TRACK_MASS);
837  TLorentzVector lvsum = lvioobj1 + lvioobj2;
838  float invMass = lvsum.M();
839  if( m_RequireMass ) {
840  if( invMass < massThres ) massIsClose = true;
841  ATH_MSG_DEBUG( " ...-> invMass=" << invMass << " : massIsClose=" << massIsClose );
842  }
843 
844 
845  // total judge
846  bool overlap = false;
847  if( ((m_RequireSameSign && sameSign) || (! m_RequireSameSign)) &&
848  ((m_RequireDR && dRisClose) || (! m_RequireDR)) &&
849  ((m_RequireDRbySA && dRbySAisClose) || (! m_RequireDRbySA)) &&
850  ((m_RequireMass && massIsClose) || (! m_RequireMass)) ) {
851  overlap = true;
852  }
853  ATH_MSG_DEBUG( " ...=> isOverlap=" << overlap );
854 
855  return overlap;
856 }

◆ isPassedmuCombHypo()

StatusCode L2MuonSAIOMon::isPassedmuCombHypo ( const std::string &  chain,
const xAOD::L2CombinedMuon Trig_L2IOobjects,
bool &  pass_muCombHypo 
) const
private

Definition at line 963 of file L2MuonSAIOMon.cxx.

963  {
964  pass_muCombHypo = false;
965 
966  // config
967  std::vector< float > my_EtaBins = {0, 1.05, 1.5, 2.0, 9.9};
968  std::vector< float > my_muCombThres = {0., 0., 0., 0.};
969  bool my_pikCuts = true;
970  float my_maxPtToApplyPik = 25.;
971  float my_chi2MaxID = 3.5;
972  ATH_CHECK( decision_ptthreshold( chain, my_EtaBins, my_muCombThres, my_pikCuts, my_maxPtToApplyPik, my_chi2MaxID ) );
973  bool pikCut = true;
974  bool stdCut = true;
975 
976  auto ptValue = Trig_L2IOobject->pt() * Trig_L2IOobject->charge()/1e3;
977  float fexPt = ptValue;
978  if(my_pikCuts && (std::abs(fexPt) < my_maxPtToApplyPik)){
979  if(Trig_L2IOobject->idTrack()->chiSquared() > my_chi2MaxID){
980  ATH_MSG_DEBUG("this obj failed at Kpi rejection:idTrack_chiSquared = " << Trig_L2IOobject->idTrack()->chiSquared() );
981  pikCut = false;
982  }
983  }
984 
985  float absEta = std::abs(Trig_L2IOobject->eta());
986  unsigned int iThres = 0;
987  for(unsigned int i=0; i<(my_EtaBins.size()-1); i++) {
988  if ( my_EtaBins[i] <= absEta && absEta < my_EtaBins[i+1] ) iThres = i;
989  }
990  const float muCombThres = my_muCombThres[iThres];
991  if(Trig_L2IOobject->pt()/1e3 < muCombThres){
992  ATH_MSG_DEBUG("this obj failed at std Pt cut:muCombThres = " << muCombThres);
993  stdCut = false;
994  }
995 
996  if(stdCut && pikCut){
997  ATH_MSG_DEBUG("this obj passed muCombhypo");
998  pass_muCombHypo = true;
999  }
1000  return StatusCode::SUCCESS;
1001 }

◆ L2ORPosForMatchFunc() [1/2]

std::tuple< float, float, float > L2MuonSAIOMon::L2ORPosForMatchFunc ( const xAOD::L2CombinedMuon trig)
inlinestaticprivate

Definition at line 1034 of file L2MuonSAIOMon.cxx.

1034  {
1035  return std::forward_as_tuple( (trig->pt()/1e3 * trig->charge() ), trig->eta(), trig->phi());
1036 }

◆ L2ORPosForMatchFunc() [2/2]

std::tuple< float, float, float > L2MuonSAIOMon::L2ORPosForMatchFunc ( const xAOD::L2StandAloneMuon trig)
inlinestaticprivate

Definition at line 1029 of file L2MuonSAIOMon.cxx.

1029  {
1030  return std::forward_as_tuple(trig->pt(), trig->etaMS(), trig->phiMS());
1031 }

◆ L2OverlapRemover()

StatusCode L2MuonSAIOMon::L2OverlapRemover ( const std::vector< const xAOD::L2CombinedMuon * > &  matchSA_L2IOobjects,
std::vector< bool > &  isoverlap,
std::vector< bool > &  passOR 
) const
private

Definition at line 677 of file L2MuonSAIOMon.cxx.

677  {
678 
679  ATH_MSG_DEBUG ("L2OverlapRemover ..." );
680 
681  const size_t numMuon = matchSA_L2IOobjects.size();
682  bool errorWhenIdentifyingOverlap = false;
683 
684  if(numMuon > 1){
685  std::vector<unsigned int> mucombResult;
686  //unsigned int i,j;
687  for(unsigned int i=0; i<numMuon; i++) {mucombResult.emplace_back(i); }
688  for(unsigned int i=0; i<numMuon-1; i++){
689  for(unsigned int j=i+1; j<numMuon; j++){
690  ATH_MSG_DEBUG("++ i=" << i << " vs j=" << j);
691  bool overlapped = isOverlap(matchSA_L2IOobjects.at(i), matchSA_L2IOobjects.at(j));
692  ATH_MSG_DEBUG("matchSA_L2IOobjects: i/j/Overlap = " << i << "/" << j << "/" << overlapped );
693  if( ! overlapped ){ // judged as different
694  ATH_MSG_DEBUG(" judged as: differenr objects");
695  if( mucombResult[i] == mucombResult[j] ) { // but marked as same by someone
696  ATH_MSG_DEBUG( "inconsistentency in muComb overlap removal for more than two objects" );
697  ATH_MSG_DEBUG( "two objects are judged as different but both were already marked as identical by someone else as: " );
698  ATH_MSG_DEBUG( "i/j/result[i]/result[j]=" << i << " / " << j << " / " << mucombResult[i] << " / " << mucombResult[j] );
699  errorWhenIdentifyingOverlap = true;
700  }
701  }
702  else{ // judged as overlap
703  if( (mucombResult[j] != j && mucombResult[i] != mucombResult[j]) || (mucombResult[j] == j && mucombResult[i] != i) ){
704  ATH_MSG_DEBUG( "inconsistentency in muComb based overlap removal for more than two objects" );
705  ATH_MSG_DEBUG( "two objects are judged as overlap but only either was already marked as overlap to someone else: " );
706  ATH_MSG_DEBUG( "i/j/result[i]/result[j]=" << i << " / " << j << " / " << mucombResult[i] << " / " << mucombResult[j] );
707  errorWhenIdentifyingOverlap = true;
708  }
709  ATH_MSG_DEBUG(" judged as: overlapped objects");
710  if( mucombResult[i] == i ) {
711  ATH_MSG_DEBUG( " i is not yet marked as overlap. so, it is a newly found overlap" );
712  ATH_MSG_DEBUG( " -> marking mucombResult[j] as i..." );
713  mucombResult[j] = i;
714  isoverlap[i] = true;
715  isoverlap[j] = true;
716  } else {
717  ATH_MSG_DEBUG( " both i/j already marked as overlap by: mucombResult[i]=" << mucombResult[i] );
718  ATH_MSG_DEBUG( " -> do nothing..." );
719  }
720  }
721  }
722  }
723 
724 
725  if( errorWhenIdentifyingOverlap ) {
726  ATH_MSG_WARNING( "error when resolving overlap. exitting with all EVs active..." );
727  } else {
728 
729  unsigned int n_uniqueMuon = 0;
730  for(unsigned int i=0; i<numMuon; i++) {
731  ATH_MSG_DEBUG( "muComb based results: i=" << i << ": ");
732  if( mucombResult[i] != i ) {
733  ATH_MSG_DEBUG( " overlap to j=" << mucombResult[i] );
734  } else {
735  n_uniqueMuon++;
736  ATH_MSG_DEBUG( " unique" );
737  }
738  }
739 
740  ATH_MSG_DEBUG( "nr of unique Muons after muComb-based removal=" << n_uniqueMuon );
741 
742  if( numMuon != n_uniqueMuon ){
743  ATH_CHECK( chooseBestMuon(matchSA_L2IOobjects, passOR, mucombResult) );
744  } else {
745  ATH_MSG_DEBUG( "no overlap identified. exitting with all EventViews active" );
746  }
747  }
748  }
749 
750  return StatusCode::SUCCESS;
751 }

◆ matchL2IO_wContainer()

StatusCode L2MuonSAIOMon::matchL2IO_wContainer ( const EventContext &  ctx,
const std::string &  chain,
std::vector< const xAOD::L2CombinedMuon * > &  Trig_L2IOobjects 
) const
private

Definition at line 611 of file L2MuonSAIOMon.cxx.

611  {
612 
613  ATH_MSG_DEBUG ("matchL2IO_wContainer ..." );
614 
615  // retrieve l2io objects
617 
618  // retrieve l2SA objects
619  std::vector< TrigCompositeUtils::LinkInfo<xAOD::L2StandAloneMuonContainer> > featureCont;
620  if( chain.find("probe") != std::string::npos ){ // if tag & probe chain, retrieve probe L2SA objects
621  int legIndex_probe = 1; // probe
622  featureCont = getTrigDecisionTool()->features<xAOD::L2StandAloneMuonContainer>( chain,
623  TrigDefs::includeFailedDecisions,
624  "HLT_MuonL2SAInfo",
625  TrigDefs::lastFeatureOfType,
627  legIndex_probe );
628  }
629  else{
630  featureCont = getTrigDecisionTool()->features<xAOD::L2StandAloneMuonContainer>( chain,
631  TrigDefs::includeFailedDecisions,
632  "HLT_MuonL2SAInfo" );
633  }
634 
635  // match l2io objects to l2sa objects using roiWord
636  std::vector< const xAOD::L2CombinedMuon* > matchSA_L2IOobjects;
637  for(const auto L2IOobject : *L2IOobjects){
638  ATH_MSG_DEBUG(" L2IOobject->muSATrack()->roiWord()/L2IOobject->pt(): " << L2IOobject->muSATrack()->roiWord() << "/" << L2IOobject->pt() );
639  for(const TrigCompositeUtils::LinkInfo<xAOD::L2StandAloneMuonContainer>& L2SALinkInfo : featureCont){
640  ATH_CHECK( L2SALinkInfo.isValid() );
641  const ElementLink<xAOD::L2StandAloneMuonContainer> L2SAobject = L2SALinkInfo.link;
642  if( !L2SAobject.isValid() ) continue;
643  ATH_MSG_DEBUG(" L2SAobject->roiWord()/L2SALinkInfo.state: " << (*L2SAobject)->roiWord() << "/" << L2SALinkInfo.state );
644 
645  if( L2IOobject->muSATrack()->roiWord() != (*L2SAobject)->roiWord() ) continue;
646  if( L2SALinkInfo.state != TrigCompositeUtils::ActiveState::ACTIVE ){
647  break;
648  }else{
649  matchSA_L2IOobjects.push_back(L2IOobject);
650  ATH_MSG_DEBUG(" matchSA_L2IOobject->muSATrack()->roiWord()/matchSA_L2IOobject->pt(): " << L2IOobject->muSATrack()->roiWord() << "/" << L2IOobject->pt() );
651  break;
652  }
653  }
654  }
655  ATH_MSG_DEBUG(" matchSA_L2IOobjects.size(): " << matchSA_L2IOobjects.size() );
656 
657  const size_t num_matchSAMuon = matchSA_L2IOobjects.size();
658  if( num_matchSAMuon == 0 ){
659  ATH_MSG_DEBUG(" NO matchSA_L2IOobjects ");
660  return StatusCode::SUCCESS;
661  }
662 
663  std::vector< bool > isoverlap( num_matchSAMuon, false );
664  std::vector< bool > passOR( num_matchSAMuon, true );
665 
666  // L2CBOverlapRemover
667  ATH_CHECK( L2OverlapRemover( matchSA_L2IOobjects, isoverlap, passOR ) );
668  for(unsigned int i=0; i<num_matchSAMuon; i++) { // push back trig Inside-Out objects passing L2CBOverlapRemover
669  if( isoverlap[i] && !passOR[i] ) continue;
670  Trig_L2IOobjects.push_back(matchSA_L2IOobjects.at(i));
671  }
672 
673  return StatusCode::SUCCESS;
674 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

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

◆ muCombHypo_TDTworkaround()

StatusCode L2MuonSAIOMon::muCombHypo_TDTworkaround ( const std::string &  chain,
const std::vector< const xAOD::L2CombinedMuon * > &  Trig_L2IOobjects,
std::vector< bool > &  pass_muCombHypo 
) const
private

Definition at line 942 of file L2MuonSAIOMon.cxx.

942  {
943 
944 
945  int requireMuonNum = 1;
946 
947  int passHypo_MuonNum = 0;
948  for(auto &Trig_L2IOobject : Trig_L2IOobjects){
949  bool isPass_muCombHypo = false;
950  ATH_CHECK(isPassedmuCombHypo( chain, Trig_L2IOobject ,isPass_muCombHypo));
951  bool pass_muCombHypo_obj = isPass_muCombHypo;
952  pass_muCombHypo.push_back(pass_muCombHypo_obj);
953  if( pass_muCombHypo_obj ) passHypo_MuonNum++;
954  }
955 
956  if( passHypo_MuonNum >= requireMuonNum ){
957  ATH_MSG_DEBUG("this evt passed muCombhypo");
958  }
959  return StatusCode::SUCCESS;
960 }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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 AthMonitorAlgorithm::parseList ( const std::string &  line,
std::vector< std::string > &  result 
) const
virtualinherited

Parse a string into a vector.

The input string is a single long string of all of the trigger names. It parses this string and turns it into a vector, where each element is one trigger or trigger category.

Parameters
lineThe input string.
resultThe parsed output vector of strings.
Returns
StatusCode

Definition at line 336 of file AthMonitorAlgorithm.cxx.

336  {
337  std::string item;
338  std::stringstream ss(line);
339 
340  ATH_MSG_DEBUG( "AthMonitorAlgorithm::parseList()" );
341 
342  while ( std::getline(ss, item, ',') ) {
343  std::stringstream iss(item); // remove whitespace
344  iss >> item;
345  result.push_back(item);
346  }
347 
348  return StatusCode::SUCCESS;
349 }

◆ 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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

◆ searchL2InsideOut()

const xAOD::L2CombinedMuon * L2MuonSAIOMon::searchL2InsideOut ( const EventContext &  ctx,
const xAOD::Muon mu,
const std::string &  trigger 
) const
private

Definition at line 1039 of file L2MuonSAIOMon.cxx.

1039  {
1040  ATH_MSG_DEBUG("MuonMonitoring::searchL2InsideOut()");
1041 
1042  const xAOD::L2CombinedMuon* offlinematched_L2IOobject = nullptr;
1043 
1044  //TDT workaround
1045  std::vector< const xAOD::L2CombinedMuon* > Trig_L2IOobjects;
1046  if( !matchL2IO_wContainer(ctx, trig, Trig_L2IOobjects).isSuccess() ) {
1047  ATH_MSG_WARNING("matchL2IO_wContainer failed, returning nullptr");
1048  return offlinematched_L2IOobject;
1049  }
1050  if( Trig_L2IOobjects.empty() ) {
1051  return offlinematched_L2IOobject;
1052  }
1053 
1054  float reqdR = 1000.;
1055 
1056  double offlEta = mu->eta();
1057  double offlPhi = mu->phi();
1058 
1059  int loop_counter = 0;
1060  int match_index = 0;
1061  for(auto Trig_L2IOobject : Trig_L2IOobjects){
1062  double trigEta = Trig_L2IOobject->eta();
1063  double trigPhi = Trig_L2IOobject->phi();
1064  double deta = offlEta - trigEta;
1065  double dphi = xAOD::P4Helpers::deltaPhi(offlPhi, trigPhi);
1066  double dR = std::sqrt(deta*deta + dphi*dphi);
1067 
1068  ATH_MSG_VERBOSE("Trigger muon candidate eta=" << trigEta << " phi=" << trigPhi << " pt=" << Trig_L2IOobject->pt() << " dR=" << dR);
1069  if( dR<reqdR ){
1070  reqdR = dR;
1071  match_index = loop_counter;
1072  ATH_MSG_DEBUG("* Trigger muon eta=" << trigEta << " phi=" << trigPhi << " pt=" << Trig_L2IOobject->pt() << " dR=" << dR );
1073  }
1074  loop_counter++;
1075  }
1076 
1077  offlinematched_L2IOobject = Trig_L2IOobjects.at(match_index);
1078  return offlinematched_L2IOobject;
1079 }

◆ searchTagOfflineMuon()

const xAOD::Muon * L2MuonSAIOMon::searchTagOfflineMuon ( const EventContext &  ctx,
const xAOD::Muon probe 
) const
private

Definition at line 1082 of file L2MuonSAIOMon.cxx.

1082  {
1083  ATH_MSG_DEBUG("MuonMonitoring::searchTagOfflineMuon()");
1084 
1085  const double ZERO_LIMIT = 0.00001;
1086 
1087  double Jpsimass = 3.0969;
1088  double Zmass = 91.1876;
1089  double my_Jpsimass_lowlim = 81.;
1090  double my_Jpsimass_highlim = 101.;
1091  double my_Zmass_lowlim = 2.7;
1092  double my_Zmass_highlim = 3.5;
1093 
1094  const xAOD::Muon *tag = nullptr;
1095 
1097  if (! muons.isValid() ) {
1098  ATH_MSG_ERROR("evtStore() does not contain muon Collection with name "<< m_MuonContainerKey);
1099  return tag;
1100  }
1101 
1102  double mass_diff_min = 999.;
1103  double tpdR_min = 999.;
1104  bool tpfromZ = false;
1105  for( const xAOD::Muon* mu : *muons ){
1106  if( mu->muonType()>m_muontype ) continue;
1107  if( mu->quality() != xAOD::Muon::Medium && mu->quality() != xAOD::Muon::Tight ) continue;
1108  if( mu->charge()*probe->charge() > 0 ) continue;
1109  const ElementLink<xAOD::TrackParticleContainer> &tag_ms_track = mu->muonSpectrometerTrackParticleLink();
1110  if( !tag_ms_track.isValid() ) continue; // tag muon dosen't have ms track
1111  TLorentzVector lvmu = mu->p4();
1112  TLorentzVector lvprobe = probe->p4();
1113  double dimu_mass = (lvmu+lvprobe).M()/1.e3;
1114  double tpdR = lvmu.DeltaR(lvprobe);
1115  if( dimu_mass > my_Jpsimass_lowlim && dimu_mass < my_Jpsimass_highlim ){
1116  if( tpfromZ ) continue; // Z has higher priority than Jpsi
1117  double mass_diff = std::abs(dimu_mass - Jpsimass);
1118  if( mass_diff - mass_diff_min < -1.*ZERO_LIMIT ){
1119  mass_diff_min = mass_diff;
1120  tpdR_min =tpdR;
1121  tag = mu;
1122  }
1123  else if( std::abs(mass_diff - mass_diff_min) < ZERO_LIMIT){
1124  if( tpdR - tpdR_min < 0. ){
1125  mass_diff_min = mass_diff;
1126  tpdR_min = tpdR;
1127  tag = mu;
1128  }
1129  }
1130  }
1131  else if( dimu_mass > my_Zmass_lowlim && dimu_mass < my_Zmass_highlim ){
1132  tpfromZ = true;
1133  double mass_diff = std::abs(dimu_mass - Zmass);
1134  if( mass_diff - mass_diff_min < -1.*ZERO_LIMIT ){
1135  mass_diff_min = mass_diff;
1136  tpdR_min =tpdR;
1137  tag = mu;
1138  }
1139  else if( std::abs(mass_diff - mass_diff_min) < ZERO_LIMIT){
1140  if( tpdR - tpdR_min < 0. ){
1141  mass_diff_min = mass_diff;
1142  tpdR_min =tpdR;
1143  tag = mu;
1144  }
1145  }
1146  }
1147  }
1148 
1149  return tag;
1150 }

◆ selectEvents()

bool TrigMuonMonitorAlgorithm::selectEvents ( ) const
protectedvirtualinherited

Function that defines the event selection for anlayses User should reimlement in a subclass if needed.

Returns
True if the event is used for an analysis.

Reimplemented in TrigMuonEfficiencyMon.

Definition at line 65 of file TrigMuonMonitorAlgorithm.cxx.

65  {
66  return true;
67 }

◆ selectMuons()

StatusCode TrigMuonMonitorAlgorithm::selectMuons ( SG::ReadHandle< xAOD::MuonContainer > &  muons,
std::vector< const xAOD::Muon * > &  probes 
) const
protectedvirtualinherited

Function that defines the event selection for anlayses Users should reimlement in a subclass if needed.

Parameters
muonsOffline muons in the MuonContainer
probesList of offline muons that are used in analyses

Reimplemented in TrigMuonEfficiencyMon.

Definition at line 70 of file TrigMuonMonitorAlgorithm.cxx.

70  {
71  for (const xAOD::Muon* mu : *muons) {
72  if(mu->muonType()<=m_muontype &&
73  (mu->author()==xAOD::Muon::Author::MuidCo || mu->author()==xAOD::Muon::Author::STACO) &&
74  m_muonSelectionTool->getQuality(*mu)<=xAOD::Muon::Medium ){
75  probes.push_back(mu);
76  }
77  }
78  return StatusCode::SUCCESS;
79 }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ trigChainsArePassed()

bool AthMonitorAlgorithm::trigChainsArePassed ( const std::vector< std::string > &  vTrigNames) const
inherited

Check whether triggers are passed.

For the event, use the trigger decision tool to check that at least one of the triggers listed in the supplied vector is passed.

Parameters
vTrigNamesList of trigger names.
Returns
If empty input, default to true. If at least one trigger is specified, returns whether at least one trigger was passed.

Definition at line 194 of file AthMonitorAlgorithm.cxx.

194  {
195 
196 
197  // If no triggers were given, return true.
198  if (vTrigNames.empty()) return true;
199 
200 
201  // Trigger: Check if this Algorithm is being run as an Express Stream job.
202  // Events are entering the express stream are chosen randomly, and by chain,
203  // Hence an additional check should be aplied to see if the chain(s)
204  // monitored here are responsible for the event being selected for
205  // the express stream.
206 
207  const auto group = m_trigDecTool->getChainGroup(vTrigNames);
209  const auto passedBits = m_trigDecTool->isPassedBits(group);
210  bool expressPass = passedBits & TrigDefs::Express_passed; //bitwise AND
211  if(!expressPass) {
212  return false;
213  }
214  }
215 
216  // monitor the event if any of the chains in the chain group passes the event.
217  return group->isPassed();
218 
219 }

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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  }

Member Data Documentation

◆ m_dataType

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::m_dataType
protectedinherited

Instance of the DataType_t enum.

Definition at line 351 of file AthMonitorAlgorithm.h.

◆ m_dataTypeStr

Gaudi::Property<std::string> AthMonitorAlgorithm::m_dataTypeStr {this,"DataType","userDefined"}
protectedinherited

DataType string pulled from the job option and converted to enum.

Definition at line 353 of file AthMonitorAlgorithm.h.

◆ m_defaultLBDuration

Gaudi::Property<float> AthMonitorAlgorithm::m_defaultLBDuration {this,"DefaultLBDuration",60.}
protectedinherited

Default duration of one lumi block.

Definition at line 360 of file AthMonitorAlgorithm.h.

◆ m_detailLevel

Gaudi::Property<int> AthMonitorAlgorithm::m_detailLevel {this,"DetailLevel",0}
protectedinherited

Sets the level of detail used in the monitoring.

Definition at line 361 of file AthMonitorAlgorithm.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_DQFilterTools

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

Array of Data Quality filter tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

◆ m_dRbySAThres

Gaudi::Property< std::vector<float> > L2MuonSAIOMon::m_dRbySAThres {this, "dRbySAThres", {0, 0, 0, 0, 0}, "mufast DR threshold of L2CB"}
private

Definition at line 48 of file L2MuonSAIOMon.h.

◆ m_dRCBThres

Gaudi::Property< std::vector<float> > L2MuonSAIOMon::m_dRCBThres {this, "DRThres", {0.002, 0.001, 0.002, 0.002, 0.002}, "DR threshold of L2CB"}
private

Definition at line 47 of file L2MuonSAIOMon.h.

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 369 of file AthMonitorAlgorithm.h.

◆ m_enforceExpressTriggers

Gaudi::Property<bool> AthMonitorAlgorithm::m_enforceExpressTriggers
privateinherited
Initial value:
{this,
"EnforceExpressTriggers", false,
"Requires that matched triggers made the event enter the express stream"}

Definition at line 372 of file AthMonitorAlgorithm.h.

◆ m_environment

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::m_environment
protectedinherited

Instance of the Environment_t enum.

Definition at line 350 of file AthMonitorAlgorithm.h.

◆ m_environmentStr

Gaudi::Property<std::string> AthMonitorAlgorithm::m_environmentStr {this,"Environment","user"}
protectedinherited

Environment string pulled from the job option and converted to enum.

Definition at line 352 of file AthMonitorAlgorithm.h.

◆ m_etaBins

Gaudi::Property< std::vector<float> > L2MuonSAIOMon::m_etaBins {this, "EtaBins", {0, 0.9, 1.1, 1.9, 2.1, 9.9}, "eta bins of DR and mass thresholds"}
private

Definition at line 46 of file L2MuonSAIOMon.h.

◆ m_EventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> AthMonitorAlgorithm::m_EventInfoKey {this,"EventInfoKey","EventInfo"}
protectedinherited

Key for retrieving EventInfo from StoreGate.

Definition at line 362 of file AthMonitorAlgorithm.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_fileKey

Gaudi::Property<std::string> AthMonitorAlgorithm::m_fileKey {this,"FileKey",""}
protectedinherited

Internal Athena name for file.

Definition at line 358 of file AthMonitorAlgorithm.h.

◆ m_group

Gaudi::Property<std::string> TrigMuonMonitorAlgorithm::m_group {this, "Group", "", "Histogram group"}
protectedinherited

Name of monitored group.

Definition at line 141 of file TrigMuonMonitorAlgorithm.h.

◆ m_L2MuonCBIOContainerKey

SG::ReadHandleKey<xAOD::L2CombinedMuonContainer> L2MuonSAIOMon::m_L2MuonCBIOContainerKey {this, "L2CombinedMuonContainerName_IO", "HLT_MuonL2CBInfoIOmode", "L2MuonCBIO container"}
private

Definition at line 29 of file L2MuonSAIOMon.h.

◆ m_lbDurationDataKey

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

Definition at line 345 of file AthMonitorAlgorithm.h.

◆ m_lumiDataKey

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

Definition at line 343 of file AthMonitorAlgorithm.h.

◆ m_massCBThres

Gaudi::Property< std::vector<float> > L2MuonSAIOMon::m_massCBThres {this, "MassThres", {0.004, 0.002, 0.006, 0.006, 0.006}, "mass threshold of L2CB"}
private

Definition at line 49 of file L2MuonSAIOMon.h.

◆ m_matchTool

ToolHandle<MuonMatchingTool> TrigMuonMonitorAlgorithm::m_matchTool {this, "MuonMatchingTool", "MuonMatchingTool", "Tool for matching offline and online objects"}
protectedinherited

Definition at line 129 of file TrigMuonMonitorAlgorithm.h.

◆ m_monitored_chains

Gaudi::Property<std::vector<std::string> > TrigMuonMonitorAlgorithm::m_monitored_chains {this, "MonitoredChains", {}, "Trigger chains that are monitored"}
protectedinherited

List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPerChain.

Definition at line 137 of file TrigMuonMonitorAlgorithm.h.

◆ m_monitored_chains_plateau

Gaudi::Property<std::vector<float> > L2MuonSAIOMon::m_monitored_chains_plateau {this, "Plateaus", {}, "List of plateaus of measured trigger"}
private

Definition at line 27 of file L2MuonSAIOMon.h.

◆ m_MuonContainerKey

SG::ReadHandleKey<xAOD::MuonContainer> TrigMuonMonitorAlgorithm::m_MuonContainerKey {this, "MuonContainerName", "Muons", "Offline muon container"}
protectedinherited

Definition at line 133 of file TrigMuonMonitorAlgorithm.h.

◆ m_muonSelectionTool

ToolHandle<CP::IMuonSelectionTool> TrigMuonMonitorAlgorithm::m_muonSelectionTool {this,"MuonSelectionTool","CP::MuonSelectionTool/MuonSelectionTool","MuonSelectionTool"}
protectedinherited

Definition at line 130 of file TrigMuonMonitorAlgorithm.h.

◆ m_muontype

Gaudi::Property<int> TrigMuonMonitorAlgorithm::m_muontype {this, "MuonType", xAOD::Muon::MuonType::Combined, "MuonType used for monitoring"}
protectedinherited

Requirement for the offline muon type considered in analyses.

Definition at line 139 of file TrigMuonMonitorAlgorithm.h.

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 366 of file AthMonitorAlgorithm.h.

◆ m_plateaus

std::map<std::string, double> L2MuonSAIOMon::m_plateaus {}
private

Definition at line 28 of file L2MuonSAIOMon.h.

◆ m_ratio_measurement_threshold

const float TrigMuonMonitorAlgorithm::m_ratio_measurement_threshold = 4
protectedinherited

Threshold for ratio measurement.

Definition at line 144 of file TrigMuonMonitorAlgorithm.h.

◆ m_RequireDR

bool L2MuonSAIOMon::m_RequireDR = true
private

Definition at line 52 of file L2MuonSAIOMon.h.

◆ m_RequireDRbySA

bool L2MuonSAIOMon::m_RequireDRbySA = false
private

Definition at line 53 of file L2MuonSAIOMon.h.

◆ m_RequireMass

bool L2MuonSAIOMon::m_RequireMass = true
private

Definition at line 54 of file L2MuonSAIOMon.h.

◆ m_RequireSameSign

bool L2MuonSAIOMon::m_RequireSameSign = true
private

Definition at line 55 of file L2MuonSAIOMon.h.

◆ m_toolLookupMap

std::unordered_map<std::string, size_t> AthMonitorAlgorithm::m_toolLookupMap
privateinherited

Definition at line 367 of file AthMonitorAlgorithm.h.

◆ m_tools

ToolHandleArray<GenericMonitoringTool> AthMonitorAlgorithm::m_tools {this,"GMTools",{}}
protectedinherited

Array of Generic Monitoring Tools.

Definition at line 338 of file AthMonitorAlgorithm.h.

◆ m_trigDecTool

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

Tool to tell whether a specific trigger is passed.

Definition at line 340 of file AthMonitorAlgorithm.h.

◆ m_triggerChainString

Gaudi::Property<std::string> AthMonitorAlgorithm::m_triggerChainString {this,"TriggerChain",""}
protectedinherited

Trigger chain string pulled from the job option and parsed into a vector.

Definition at line 355 of file AthMonitorAlgorithm.h.

◆ m_trigLiveFractionDataKey

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

Definition at line 347 of file AthMonitorAlgorithm.h.

◆ m_useLumi

Gaudi::Property<bool> AthMonitorAlgorithm::m_useLumi {this,"EnableLumi",false}
protectedinherited

Allows use of various luminosity functions.

Definition at line 359 of file AthMonitorAlgorithm.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

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

Vector of trigger chain names parsed from trigger chain string.

Definition at line 356 of file AthMonitorAlgorithm.h.


The documentation for this class was generated from the following files:
xAOD::L2CombinedMuon_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
TrigMuonMonitorAlgorithm::selectEvents
virtual bool selectEvents() const
Function that defines the event selection for anlayses User should reimlement in a subclass if needed...
Definition: TrigMuonMonitorAlgorithm.cxx:65
L2MuonSAIOMon::m_massCBThres
Gaudi::Property< std::vector< float > > m_massCBThres
Definition: L2MuonSAIOMon.h:49
L2MuonSAIOMon::L2OverlapRemover
StatusCode L2OverlapRemover(const std::vector< const xAOD::L2CombinedMuon * > &matchSA_L2IOobjects, std::vector< bool > &isoverlap, std::vector< bool > &passOR) const
Definition: L2MuonSAIOMon.cxx:677
AthMonitorAlgorithm::Environment_t::tier0Raw
@ tier0Raw
TrigMuonMonitorAlgorithm::m_MuonContainerKey
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonContainerKey
Definition: TrigMuonMonitorAlgorithm.h:133
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
checkFileSG.line
line
Definition: checkFileSG.py:75
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
get_generator_info.result
result
Definition: get_generator_info.py:21
TrigMuonMonitorAlgorithm::m_group
Gaudi::Property< std::string > m_group
Name of monitored group.
Definition: TrigMuonMonitorAlgorithm.h:141
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
L2MuonSAIOMon::m_RequireDR
bool m_RequireDR
Definition: L2MuonSAIOMon.h:52
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
P4Helpers::invMass
double invMass(const I4Momentum &pA, const I4Momentum &pB)
invariant mass from two I4momentum references
Definition: P4Helpers.h:239
xAOD::L2StandAloneMuon_v2::etaMS
float etaMS() const
Get the eta at muon spectrometer.
AthMonitorAlgorithm::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
Definition: AthMonitorAlgorithm.h:340
TrigMuonMonitorAlgorithm::m_matchTool
ToolHandle< MuonMatchingTool > m_matchTool
Definition: TrigMuonMonitorAlgorithm.h:129
AthMonitorAlgorithm::Environment_t::tier0
@ tier0
AthMonitorAlgorithm::Environment_t::AOD
@ AOD
xAOD::Muon_v1::p4
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Definition: Muon_v1.cxx:79
xAOD::L2StandAloneMuon_v2
Class describing standalone muons reconstructed in the LVL2 trigger.
Definition: L2StandAloneMuon_v2.h:36
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
xAOD::L2StandAloneMuon_v2::mdtHitR
float mdtHitR(unsigned int tube) const
Definition: L2StandAloneMuon_v2.cxx:1436
L2MuonSAIOMon::m_L2MuonCBIOContainerKey
SG::ReadHandleKey< xAOD::L2CombinedMuonContainer > m_L2MuonCBIOContainerKey
Definition: L2MuonSAIOMon.h:29
accumulate
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
Definition: FPGATrackSimMatrixAccumulator.cxx:22
AthMonitorAlgorithm::m_vTrigChainNames
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
Definition: AthMonitorAlgorithm.h:356
xAOD::L2StandAloneMuon_v2::roadAw
float roadAw(int station, int sector) const
Slope.
Definition: L2StandAloneMuon_v2.cxx:480
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
L2MuonSAIOMon::chooseBestMuon
StatusCode chooseBestMuon(const std::vector< const xAOD::L2CombinedMuon * > &matchSA_L2IOobjects, std::vector< bool > &passOR, std::vector< unsigned int > &mucombResult) const
Definition: L2MuonSAIOMon.cxx:859
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
AthMonitorAlgorithm::m_EventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
Definition: AthMonitorAlgorithm.h:362
xAOD::L2CombinedMuon_v1::charge
float charge() const
get seeding muon charge
AthMonitorAlgorithm::getTrigDecisionTool
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
Definition: AthMonitorAlgorithm.cxx:189
M_PI
#define M_PI
Definition: ActiveFraction.h:11
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
xAOD::MuonSegment_v1
Class describing a MuonSegment.
Definition: MuonSegment_v1.h:33
AthMonitorAlgorithm::m_toolLookupMap
std::unordered_map< std::string, size_t > m_toolLookupMap
Definition: AthMonitorAlgorithm.h:367
xAOD::P4Helpers::deltaPhi
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
Definition: xAODP4Helpers.h:69
AthMonitorAlgorithm::m_environment
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
Definition: AthMonitorAlgorithm.h:350
xAOD::L2StandAloneMuon_v2::phiMS
float phiMS() const
Get the phi at muon spectrometer.
cosmics
Definition: cosmics.py:1
L2MuonSAIOMon::isOverlap
bool isOverlap(const xAOD::L2CombinedMuon *matchSA_L2IOobject1, const xAOD::L2CombinedMuon *matchSA_L2IOobject2) const
Definition: L2MuonSAIOMon.cxx:754
L2MuonSAIOMon::searchL2InsideOut
const xAOD::L2CombinedMuon * searchL2InsideOut(const EventContext &ctx, const xAOD::Muon *mu, const std::string &trigger) const
Definition: L2MuonSAIOMon.cxx:1039
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
L2MuonSAIOMon::m_plateaus
std::map< std::string, double > m_plateaus
Definition: L2MuonSAIOMon.h:28
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
L2MuonSAIOMon::m_RequireSameSign
bool m_RequireSameSign
Definition: L2MuonSAIOMon.h:55
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
AthMonitorAlgorithm::trigChainsArePassed
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
Definition: AthMonitorAlgorithm.cxx:194
AthMonitorAlgorithm::Environment_t::user
@ user
drawFromPickle.atan
atan
Definition: drawFromPickle.py:36
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthMonitorAlgorithm::m_dummy
const ToolHandle< GenericMonitoringTool > m_dummy
Definition: AthMonitorAlgorithm.h:369
xAOD::L2CombinedMuon_v1
Class describing combined muon reconstructed in the LVL2 trigger.
Definition: L2CombinedMuon_v1.h:41
xAOD::Muon_v1::charge
float charge() const
xAOD::L2CombinedMuon_v1::muSATrack
const xAOD::L2StandAloneMuon * muSATrack() const
Get the SA muon as a bare pointer.
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
TileSynchronizeBch.online
online
Definition: TileSynchronizeBch.py:88
xAOD::L2StandAloneMuon_v2::superPointR
float superPointR(int chamber) const
Get the measured radious of the muon in one particular super point.
Definition: L2StandAloneMuon_v2.cxx:179
xAOD::L2CombinedMuon_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
TrigMuonMonitorAlgorithm::TrigMuonMonitorAlgorithm
TrigMuonMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigMuonMonitorAlgorithm.cxx:8
L2MuonSAIOMon::m_RequireMass
bool m_RequireMass
Definition: L2MuonSAIOMon.h:54
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthMonitorAlgorithm::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
Definition: AthMonitorAlgorithm.h:341
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
sim_rttUpdate.user
def user
Definition: sim_rttUpdate.py:662
lumiFormat.i
int i
Definition: lumiFormat.py:92
xAOD::P4Helpers::deltaR
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
Definition: xAODP4Helpers.h:150
AthMonitorAlgorithm::DataType_t::heavyIonCollisions
@ heavyIonCollisions
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
tolower
void tolower(std::string &s)
Definition: AthenaSummarySvc.cxx:113
AthMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
xAOD::L2CombinedMuon_v1::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
xAOD::L2StandAloneMuon_v2::mdtHitChamber
int mdtHitChamber(unsigned int tube) const
Definition: L2StandAloneMuon_v2.cxx:1428
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
drawFromPickle.tan
tan
Definition: drawFromPickle.py:36
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AthMonitorAlgorithm::fill
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
ReadTripsProbsFromCool.denominator
denominator
Definition: ReadTripsProbsFromCool.py:96
L2MuonSAIOMon::m_RequireDRbySA
bool m_RequireDRbySA
Definition: L2MuonSAIOMon.h:53
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
TrigMuonMonitorAlgorithm::fillVariables
virtual StatusCode fillVariables(const EventContext &ctx) const
Function that fills variables by just retrieving containers of trigger objects.
Definition: TrigMuonMonitorAlgorithm.cxx:82
TrigMuonMonitorAlgorithm::m_monitored_chains
Gaudi::Property< std::vector< std::string > > m_monitored_chains
List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPer...
Definition: TrigMuonMonitorAlgorithm.h:137
AthMonitorAlgorithm::m_dataType
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
Definition: AthMonitorAlgorithm.h:351
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
ZERO_LIMIT
const float ZERO_LIMIT
Definition: VP1TriggerHandleL2.cxx:37
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
AthMonitorAlgorithm::DataType_t::cosmics
@ cosmics
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
LikeEnum::Tight
@ Tight
Definition: LikelihoodEnums.h:15
TrigCompositeUtils::featureString
const std::string & featureString()
Definition: TrigCompositeUtilsRoot.cxx:886
AthMonitorAlgorithm::m_tools
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
Definition: AthMonitorAlgorithm.h:338
xAOD::L2StandAloneMuon_v2::mdtHitIsOutlier
int mdtHitIsOutlier(unsigned int tube) const
Definition: L2StandAloneMuon_v2.cxx:1420
AthMonitorAlgorithm::Environment_t::online
@ online
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AthMonitorAlgorithm::Environment_t::tier0ESD
@ tier0ESD
AthMonitorAlgorithm::Environment_t::altprod
@ altprod
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
L2MuonSAIOMon::m_etaBins
Gaudi::Property< std::vector< float > > m_etaBins
Definition: L2MuonSAIOMon.h:46
L2MuonSAIOMon::m_dRCBThres
Gaudi::Property< std::vector< float > > m_dRCBThres
Definition: L2MuonSAIOMon.h:47
AthMonitorAlgorithm::m_enforceExpressTriggers
Gaudi::Property< bool > m_enforceExpressTriggers
Definition: AthMonitorAlgorithm.h:372
item
Definition: ItemListSvc.h:43
TrigMuonMonitorAlgorithm::selectMuons
virtual StatusCode selectMuons(SG::ReadHandle< xAOD::MuonContainer > &muons, std::vector< const xAOD::Muon * > &probes) const
Function that defines the event selection for anlayses Users should reimlement in a subclass if neede...
Definition: TrigMuonMonitorAlgorithm.cxx:70
TrigMuonMonitorAlgorithm::m_muontype
Gaudi::Property< int > m_muontype
Requirement for the offline muon type considered in analyses.
Definition: TrigMuonMonitorAlgorithm.h:139
MuonParameters::MuidCo
@ MuidCo
Definition: MuonParamDefs.h:60
ATH_LIKELY
#define ATH_LIKELY(x)
Definition: AthUnlikelyMacros.h:16
L2MuonSAIOMon::isPassedmuCombHypo
StatusCode isPassedmuCombHypo(const std::string &chain, const xAOD::L2CombinedMuon *Trig_L2IOobjects, bool &pass_muCombHypo) const
Definition: L2MuonSAIOMon.cxx:963
TrigCompositeUtils::LinkInfo
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...
Definition: LinkInfo.h:28
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
xAOD::L2StandAloneMuon_v2::nMdtHits
uint32_t nMdtHits() const
Get the online ID, offline ID, R, Z, redidual, time, space and sigma of each MDT tube.
Definition: L2StandAloneMuon_v2.cxx:1400
h
xAOD::L2StandAloneMuon_v2::mdtHitResidual
float mdtHitResidual(unsigned int tube) const
Definition: L2StandAloneMuon_v2.cxx:1460
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
LikeEnum::Medium
@ Medium
Definition: LikelihoodEnums.h:14
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMonitorAlgorithm::DataType_t::collisions
@ collisions
AthMonitorAlgorithm::m_name
std::string m_name
Definition: AthMonitorAlgorithm.h:366
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigMuonMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: TrigMuonMonitorAlgorithm.cxx:13
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
python.LArCondContChannels.isBarrel
isBarrel
Definition: LArCondContChannels.py:659
TauGNNUtils::Variables::absEta
bool absEta(const xAOD::TauJet &tau, double &out)
Definition: TauGNNUtils.cxx:232
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
xAOD::L2StandAloneMuon_v2::roadBw
float roadBw(int station, int sector) const
Intercept.
Definition: L2StandAloneMuon_v2.cxx:507
TrigMuonMonitorAlgorithm::fillVariablesPerOfflineMuonPerChain
virtual StatusCode fillVariablesPerOfflineMuonPerChain(const EventContext &ctx, const xAOD::Muon *mu, const std::string &chain) const
Function that fills variables of trigger objects associated to specified trigger chains comparing off...
Definition: TrigMuonMonitorAlgorithm.cxx:95
xAOD::L2StandAloneMuon_v2::pt
virtual double pt() const
The transverse momentum ( ) of the particle.
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
ACTIVE
@ ACTIVE
Definition: ZdcID.h:21
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
xAOD::STACO
@ STACO
Tracks produced by STACO.
Definition: TrackingPrimitives.h:99
L2MuonSAIOMon::L2ORPosForMatchFunc
static std::tuple< float, float, float > L2ORPosForMatchFunc(const xAOD::L2StandAloneMuon *trig)
Definition: L2MuonSAIOMon.cxx:1029
xAOD::L2StandAloneMuon_v2::roiWord
uint32_t roiWord() const
Get the RoI ID of the seeding LVL1 muon.
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
L2MuonSAIOMon::searchTagOfflineMuon
const xAOD::Muon * searchTagOfflineMuon(const EventContext &ctx, const xAOD::Muon *probe) const
Definition: L2MuonSAIOMon.cxx:1082
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
TrigMuonMonitorAlgorithm::fillVariablesPerOfflineMuon
virtual StatusCode fillVariablesPerOfflineMuon(const EventContext &ctx, const xAOD::Muon *mu) const
Function that fills variables that are compared to offline muons but the trigger chains are not speci...
Definition: TrigMuonMonitorAlgorithm.cxx:87
AthMonitorAlgorithm::DataType_t::userDefined
@ userDefined
L2MuonSAIOMon::m_monitored_chains_plateau
Gaudi::Property< std::vector< float > > m_monitored_chains_plateau
Definition: L2MuonSAIOMon.h:27
CaloNoise_fillDB.mu
mu
Definition: CaloNoise_fillDB.py:53
xAOD::L2StandAloneMuon_v2::mdtHitZ
float mdtHitZ(unsigned int tube) const
Definition: L2StandAloneMuon_v2.cxx:1444
passOR
@ passOR
Definition: SUSYToolsTester.cxx:100
TrigMuonMonitorAlgorithm::m_muonSelectionTool
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
Definition: TrigMuonMonitorAlgorithm.h:130
GeV
#define GeV
Definition: CaloTransverseBalanceVecMon.cxx:30
TrigMuonMonitorAlgorithm::fillVariablesPerChain
virtual StatusCode fillVariablesPerChain(const EventContext &ctx, const std::string &chain) const
Function that fills variables of trigger objects associated to specified trigger chains.
Definition: TrigMuonMonitorAlgorithm.cxx:91
L2MuonSAIOMon::decision_ptthreshold
StatusCode decision_ptthreshold(const std::string &chain, std::vector< float > &my_EtaBins, std::vector< float > &my_muCombThres, bool &my_pikCuts, float &my_maxPtToApplyPik, float &my_chi2MaxID) const
Definition: L2MuonSAIOMon.cxx:1004
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
AthMonitorAlgorithm::DataType_t::monteCarlo
@ monteCarlo
fitman.k
k
Definition: fitman.py:528
L2MuonSAIOMon::m_dRbySAThres
Gaudi::Property< std::vector< float > > m_dRbySAThres
Definition: L2MuonSAIOMon.h:48
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5
ServiceHandle< ICondSvc >
collisions
Definition: collisions.py:1
L2MuonSAIOMon::matchL2IO_wContainer
StatusCode matchL2IO_wContainer(const EventContext &ctx, const std::string &chain, std::vector< const xAOD::L2CombinedMuon * > &Trig_L2IOobjects) const
Definition: L2MuonSAIOMon.cxx:611