Skip to content
Snippets Groups Projects
Commit ecc9574b authored by Kristin Dona's avatar Kristin Dona Committed by Adam Edward Barton
Browse files

Change offline large radius jet container

Change offline large radius jet container
parent a88489f8
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,11 @@ def JetEfficiencyMonitoringConfig(flags):
# get the component factory - used for getting the algorithms
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
from AthenaConfiguration.Enums import Format
from AthenaConfiguration.ComponentFactory import CompFactory
result = ComponentAccumulator()
from AthenaConfiguration.Enums import Format
###########################################################################
# Jet and particle flow config required for data POOL files except if is already an AOD
if flags.Input.Format is Format.POOL and not flags.Input.isMC and not any(["AOD" in a for a in flags.Input.ProcessingTags]):
......@@ -32,8 +34,8 @@ def JetEfficiencyMonitoringConfig(flags):
metCA.addEventAlgo(getMETMakerAlg('AntiKt4EMPFlow'))
result.merge(metCA)
###########################################################################
# make the athena monitoring helper
from AthenaConfiguration.ComponentFactory import CompFactory
from TrigT1CaloMonitoring.LVL1CaloMonitoringConfig import L1CaloMonitorCfgHelper
helper = L1CaloMonitorCfgHelper(flags,CompFactory.JetEfficiencyMonitorAlgorithm,'JetEfficiencyMonAlg')
groupName = 'JetEfficiencyMonitor' # the monitoring group name is also used for the package name
......@@ -189,7 +191,7 @@ def JetEfficiencyMonitoringConfig(flags):
acc = helper.result()
result.merge(acc)
print("flags.DQ.Environment = " +flags.DQ.Environment )
print("flags.DQ.Environment = " + flags.DQ.Environment )
return result
......
......@@ -39,7 +39,7 @@ StatusCode JetEfficiencyMonitorAlgorithm::initialize() {
StatusCode JetEfficiencyMonitorAlgorithm::fillHistograms( const EventContext& ctx ) const {
ATH_MSG_DEBUG("JetEfficiencyMonitorAlgorithm::fillHistograms");
std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>> variables;
// Retrieve Offline Jets from SG
SG::ReadHandle<xAOD::JetContainer> jets(m_jetKey,ctx);
if(!jets.isValid()){
......@@ -65,6 +65,7 @@ StatusCode JetEfficiencyMonitorAlgorithm::fillHistograms( const EventContext& ct
return StatusCode::SUCCESS;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//DEFINITIONS and extracting variables from the python config file!
......
......@@ -6,16 +6,18 @@
#include "AthenaMonitoring/AthMonitorAlgorithm.h"
#include "AthenaMonitoringKernel/Monitored.h"
#include "StoreGate/ReadHandleKey.h"
#include "AthenaKernel/Units.h"
#include "FourMomUtils/P4Helpers.h"
#include "StoreGate/ReadHandleKey.h"
#include "xAODJet/JetContainer.h"
#include "xAODTrigger/gFexJetRoI.h"
#include "xAODTrigger/gFexJetRoIContainer.h"
#include "xAODTrigger/gFexGlobalRoI.h"
#include "xAODTrigger/gFexGlobalRoIContainer.h"
// #include "TrigDecisionTool/TrigDecisionTool.h"
//#include "TrigT1Interfaces/TrigT1CaloDefs.h"
......@@ -41,9 +43,8 @@ private:
// container keys including steering parameter and description
SG::ReadHandleKey<xAOD::JetContainer> m_jetKey{ this, "JetKey" , "AntiKt4EMPFlowJets", ""}; //offline jets
SG::ReadHandleKey<xAOD::JetContainer> m_LRjetKey{ this, "LRJetKey" , "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets", ""}; //offline LR jets
SG::ReadHandleKey<xAOD::JetContainer> m_LRjetKey{ this, "LRJetKey" , "HLT_AntiKt10EMPFlowJets_nojcalib_ftf", ""}; //offline LR jets
SG::ReadHandleKey<xAOD::gFexJetRoIContainer> m_gFexSRJetContainerKey{ this, "mygFexSRJetRoIContainer" , "L1_gFexSRJetRoI" , ""}; //gfex SR jets
SG::ReadHandleKey<xAOD::gFexJetRoIContainer> m_gFexLRJetContainerKey{ this, "mygFexLRJetRoIContainer" , "L1_gFexLRJetRoI" , ""}; //gfex LR jets
};
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment