Skip to content
Snippets Groups Projects
Commit 0716a1a4 authored by Tamara Vazquez Schroeder's avatar Tamara Vazquez Schroeder
Browse files

adding virtual dummy functions to TrigConfigSvc and TrigConfInterfaces

parent 274ba308
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!39495Creating metadata json output file and saving HLT chain Group and ID for RatesAnalysis
...@@ -16,8 +16,11 @@ extern "C" { ...@@ -16,8 +16,11 @@ extern "C" {
namespace TrigConf { namespace TrigConf {
// Forward declaration(s): // Forward declaration(s):
class EventContext;
class HLTChainList; class HLTChainList;
class HLTSequenceList; class HLTSequenceList;
class HLTMenu;
class HLTPrescalesSet;
/** /**
* Interface for all services/tools that provide HLT menu configuration * Interface for all services/tools that provide HLT menu configuration
...@@ -48,6 +51,13 @@ namespace TrigConf { ...@@ -48,6 +51,13 @@ namespace TrigConf {
/**@brief accessor to the configuration hlt prescale key*/ /**@brief accessor to the configuration hlt prescale key*/
virtual uint32_t hltPrescaleKey() const = 0; virtual uint32_t hltPrescaleKey() const = 0;
/// Returns the JSON configured HLTMenu ptree
virtual const HLTMenu& hltMenu(const EventContext& ctx) const = 0;
/// Returns the JSON configured HLT prescales ptree
virtual const HLTPrescalesSet& hltPrescalesSet(const EventContext& ctx) const = 0;
}; // class IIHLTConfigSvc }; // class IIHLTConfigSvc
} // namespace TrigConf } // namespace TrigConf
......
...@@ -18,8 +18,12 @@ namespace TrigConf { ...@@ -18,8 +18,12 @@ namespace TrigConf {
// Forward declaration(s): // Forward declaration(s):
class CTPConfig; class CTPConfig;
class EventContext;
class ThresholdConfig; class ThresholdConfig;
class BunchGroupSet; class BunchGroupSet;
class L1Menu;
class L1PrescalesSet;
class L1BunchGroupSet;
/** /**
* Interface for all services/tools that provide LVL1 menu configuration * Interface for all services/tools that provide LVL1 menu configuration
...@@ -46,6 +50,15 @@ namespace TrigConf { ...@@ -46,6 +50,15 @@ namespace TrigConf {
/**@brief accessor to the configuration lvl1 prescale key*/ /**@brief accessor to the configuration lvl1 prescale key*/
virtual uint32_t lvl1PrescaleKey() const = 0; virtual uint32_t lvl1PrescaleKey() const = 0;
/// Returns the JSON configured L1 ptree
virtual const L1Menu& l1Menu(const EventContext& ctx) const = 0;
/// Returns the JSON configured L1 prescales ptree
virtual const L1PrescalesSet& l1PrescalesSet(const EventContext& ctx) const = 0;
/// Returns the JSON configured bunchgroup ptree
virtual const L1BunchGroupSet& l1BunchGroupSet(const EventContext& ctx) const = 0;
}; // class IILVL1ConfigSvc }; // class IILVL1ConfigSvc
} // namespace TrigConf } // namespace TrigConf
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
#include "TrigConfInterfaces/IHLTConfigSvc.h" #include "TrigConfInterfaces/IHLTConfigSvc.h"
#include "TrigConfHLTData/HLTFrame.h" #include "TrigConfHLTData/HLTFrame.h"
#include "TrigConfData/HLTMenu.h"
#include "TrigConfData/HLTPrescalesSet.h"
class TH1F; class TH1F;
class TH2I; class TH2I;
...@@ -24,8 +27,11 @@ class TrigTimer; ...@@ -24,8 +27,11 @@ class TrigTimer;
namespace TrigConf { namespace TrigConf {
class CTPConfig; class CTPConfig;
class EventContext;
class HLTChainList; class HLTChainList;
class HLTSequenceList; class HLTSequenceList;
class HLTMenu;
class HLTPrescalesSet;
class HLTPrescaleSet; class HLTPrescaleSet;
class TrigDBConnectionConfig; class TrigDBConnectionConfig;
...@@ -45,6 +51,15 @@ namespace TrigConf { ...@@ -45,6 +51,15 @@ namespace TrigConf {
const HLTSequenceList* sequenceList() const __attribute__ ((deprecated)); const HLTSequenceList* sequenceList() const __attribute__ ((deprecated));
const HLTSequenceList& sequences() const; const HLTSequenceList& sequences() const;
const HLTMenu& hltMenu(const EventContext&) const {
const static TrigConf::HLTMenu dummy = TrigConf::HLTMenu();
return dummy;
}
const HLTPrescalesSet& hltPrescalesSet(const EventContext&) const {
const static TrigConf::HLTPrescalesSet dummy = TrigConf::HLTPrescalesSet();
return dummy;
}
/*@brief constructor*/ /*@brief constructor*/
HLTConfigSvc( const std::string& name, ISvcLocator* pSvcLocator ); HLTConfigSvc( const std::string& name, ISvcLocator* pSvcLocator );
virtual ~HLTConfigSvc(); virtual ~HLTConfigSvc();
......
...@@ -12,11 +12,19 @@ ...@@ -12,11 +12,19 @@
#include "TrigConfInterfaces/ILVL1ConfigSvc.h" #include "TrigConfInterfaces/ILVL1ConfigSvc.h"
#include "TrigConfData/L1Menu.h" #include "TrigConfData/L1Menu.h"
#include "TrigConfData/L1PrescalesSet.h"
#include "TrigConfData/L1BunchGroupSet.h"
class StoreGateSvc; class StoreGateSvc;
namespace TrigConf { namespace TrigConf {
class EventContext;
class L1Menu;
class L1PrescalesSet;
class L1BunchGroupSet;
/** /**
* $Date: 2009-02-04 09:12:03 $ * $Date: 2009-02-04 09:12:03 $
* @short Service providing the LVL1 trigger configuration * @short Service providing the LVL1 trigger configuration
...@@ -42,6 +50,18 @@ namespace TrigConf { ...@@ -42,6 +50,18 @@ namespace TrigConf {
const ThresholdConfig* thresholdConfig() const; const ThresholdConfig* thresholdConfig() const;
const BunchGroupSet* bunchGroupSet() const; const BunchGroupSet* bunchGroupSet() const;
uint32_t lvl1PrescaleKey() const { return static_cast<uint32_t>(m_prescaleSetID); } uint32_t lvl1PrescaleKey() const { return static_cast<uint32_t>(m_prescaleSetID); }
const L1Menu& l1Menu(const EventContext&) const {
const static TrigConf::L1Menu dummy = TrigConf::L1Menu();
return dummy;
}
const L1PrescalesSet& l1PrescalesSet(const EventContext&) const {
const static TrigConf::L1PrescalesSet dummy = TrigConf::L1PrescalesSet();
return dummy;
}
const L1BunchGroupSet& l1BunchGroupSet(const EventContext&) const {
const static TrigConf::L1BunchGroupSet dummy = TrigConf::L1BunchGroupSet();
return dummy;
}
private: private:
......
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