CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1GtTriggerMenuXmlProducer Class Reference

#include <L1GtTriggerMenuXmlProducer.h>

Inheritance diagram for L1GtTriggerMenuXmlProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 L1GtTriggerMenuXmlProducer (const edm::ParameterSet &)
 constructor More...
 
std::unique_ptr< L1GtTriggerMenuproduceGtTriggerMenu (const L1GtTriggerMenuRcd &)
 public methods More...
 
 ~L1GtTriggerMenuXmlProducer () override
 destructor More...
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Attributes

std::string m_defXmlFile
 XML file for Global Trigger menu (def.xml) More...
 
std::string m_vmeXmlFile
 XML file for Global Trigger VME configuration (vme.xml) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Description: ESProducer for the L1 Trigger Menu from an XML file .

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Description: ESProducer for the L1 Trigger Menu from an XML file .

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 35 of file L1GtTriggerMenuXmlProducer.h.

Constructor & Destructor Documentation

◆ L1GtTriggerMenuXmlProducer()

L1GtTriggerMenuXmlProducer::L1GtTriggerMenuXmlProducer ( const edm::ParameterSet parSet)

constructor

Definition at line 42 of file L1GtTriggerMenuXmlProducer.cc.

42  {
43  // tell the framework what data is being produced
45 
46  // now do what ever other initialization is needed
47 
48  // directory in /data/Luminosity for the trigger menu
49  std::string menuDir = parSet.getParameter<std::string>("TriggerMenuLuminosity");
50 
51  // def.xml file
52  std::string defXmlFileName = parSet.getParameter<std::string>("DefXmlFile");
53 
54  edm::FileInPath f1("L1TriggerConfig/L1GtConfigProducers/data/Luminosity/" + menuDir + "/" + defXmlFileName);
55 
56  m_defXmlFile = f1.fullPath();
57 
58  // vme.xml file
59  std::string vmeXmlFileName = parSet.getParameter<std::string>("VmeXmlFile");
60 
61  if (!vmeXmlFileName.empty()) {
62  edm::FileInPath f2("L1TriggerConfig/L1GtConfigProducers/data/Luminosity/" + menuDir + "/" + vmeXmlFileName);
63 
64  m_vmeXmlFile = f2.fullPath();
65  }
66 
67  edm::LogInfo("L1GtConfigProducers") << "\n\nL1 Trigger Menu: "
68  << "\n\n def.xml file: \n " << m_defXmlFile << "\n\n vme.xml file: \n "
69  << m_vmeXmlFile << "\n\n"
70  << std::endl;
71 }

References DeadROC_duringRun::f1, DeadROC_duringRun::f2, edm::ParameterSet::getParameter(), m_defXmlFile, m_vmeXmlFile, produceGtTriggerMenu(), edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~L1GtTriggerMenuXmlProducer()

L1GtTriggerMenuXmlProducer::~L1GtTriggerMenuXmlProducer ( )
override

destructor

Definition at line 74 of file L1GtTriggerMenuXmlProducer.cc.

74  {
75  // empty
76 }

Member Function Documentation

◆ produceGtTriggerMenu()

std::unique_ptr< L1GtTriggerMenu > L1GtTriggerMenuXmlProducer::produceGtTriggerMenu ( const L1GtTriggerMenuRcd l1MenuRecord)

public methods

L1 GT parameters

Definition at line 81 of file L1GtTriggerMenuXmlProducer.cc.

82  {
83  // get the parameters needed from other records
84  const L1GtStableParametersRcd& stableParametersRcd = l1MenuRecord.getRecord<L1GtStableParametersRcd>();
85 
86  edm::ESHandle<L1GtStableParameters> stableParameters;
87  stableParametersRcd.get(stableParameters);
88 
89  unsigned int numberConditionChips = stableParameters->gtNumberConditionChips();
90  unsigned int pinsOnConditionChip = stableParameters->gtPinsOnConditionChip();
91  std::vector<int> orderConditionChip = stableParameters->gtOrderConditionChip();
92  unsigned int numberPhysTriggers = stableParameters->gtNumberPhysTriggers();
93  unsigned int numberTechTriggers = stableParameters->gtNumberTechnicalTriggers();
94  unsigned int numberL1JetCounts = stableParameters->gtNumberL1JetCounts();
95 
97 
98  gtXmlParser.setGtNumberConditionChips(numberConditionChips);
99  gtXmlParser.setGtPinsOnConditionChip(pinsOnConditionChip);
100  gtXmlParser.setGtOrderConditionChip(orderConditionChip);
101  gtXmlParser.setGtNumberPhysTriggers(numberPhysTriggers);
102  gtXmlParser.setGtNumberTechTriggers(numberTechTriggers);
103  gtXmlParser.setGtNumberL1JetCounts(numberL1JetCounts);
104 
105  gtXmlParser.parseXmlFile(m_defXmlFile, m_vmeXmlFile);
106 
107  // transfer the condition map and algorithm map from parser to L1GtTriggerMenu
108 
109  auto pL1GtTriggerMenu = std::make_unique<L1GtTriggerMenu>(gtXmlParser.gtTriggerMenuName(),
110  numberConditionChips,
111  gtXmlParser.vecMuonTemplate(),
112  gtXmlParser.vecCaloTemplate(),
113  gtXmlParser.vecEnergySumTemplate(),
114  gtXmlParser.vecJetCountsTemplate(),
115  gtXmlParser.vecCastorTemplate(),
116  gtXmlParser.vecHfBitCountsTemplate(),
117  gtXmlParser.vecHfRingEtSumsTemplate(),
118  gtXmlParser.vecBptxTemplate(),
119  gtXmlParser.vecExternalTemplate(),
120  gtXmlParser.vecCorrelationTemplate(),
121  gtXmlParser.corMuonTemplate(),
122  gtXmlParser.corCaloTemplate(),
123  gtXmlParser.corEnergySumTemplate());
124 
125  pL1GtTriggerMenu->setGtTriggerMenuInterface(gtXmlParser.gtTriggerMenuInterface());
126  pL1GtTriggerMenu->setGtTriggerMenuImplementation(gtXmlParser.gtTriggerMenuImplementation());
127  pL1GtTriggerMenu->setGtScaleDbKey(gtXmlParser.gtScaleDbKey());
128 
129  pL1GtTriggerMenu->setGtAlgorithmMap(gtXmlParser.gtAlgorithmMap());
130  pL1GtTriggerMenu->setGtAlgorithmAliasMap(gtXmlParser.gtAlgorithmAliasMap());
131  pL1GtTriggerMenu->setGtTechnicalTriggerMap(gtXmlParser.gtTechnicalTriggerMap());
132 
133  //LogDebug("L1GtConfigProducers")
134  //<< "\n\nReturning L1 Trigger Menu!"
135  //<< "\n\n"
136  //<< std::endl;
137 
138  return pL1GtTriggerMenu;
139 }

References L1GtTriggerMenuXmlParser::corCaloTemplate(), L1GtTriggerMenuXmlParser::corEnergySumTemplate(), L1GtTriggerMenuXmlParser::corMuonTemplate(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), L1GtTriggerMenuXmlParser::gtAlgorithmAliasMap(), L1GtTriggerMenuXmlParser::gtAlgorithmMap(), L1GtTriggerMenuXmlParser::gtScaleDbKey(), L1GtTriggerMenuXmlParser::gtTechnicalTriggerMap(), L1GtTriggerMenuXmlParser::gtTriggerMenuImplementation(), L1GtTriggerMenuXmlParser::gtTriggerMenuInterface(), L1GtTriggerMenuXmlParser::gtTriggerMenuName(), m_defXmlFile, m_vmeXmlFile, L1GtTriggerMenuXmlParser::parseXmlFile(), L1GtTriggerMenuXmlParser::setGtNumberConditionChips(), L1GtTriggerMenuXmlParser::setGtNumberL1JetCounts(), L1GtTriggerMenuXmlParser::setGtNumberPhysTriggers(), L1GtTriggerMenuXmlParser::setGtNumberTechTriggers(), L1GtTriggerMenuXmlParser::setGtOrderConditionChip(), L1GtTriggerMenuXmlParser::setGtPinsOnConditionChip(), L1GtTriggerMenuXmlParser::vecBptxTemplate(), L1GtTriggerMenuXmlParser::vecCaloTemplate(), L1GtTriggerMenuXmlParser::vecCastorTemplate(), L1GtTriggerMenuXmlParser::vecCorrelationTemplate(), L1GtTriggerMenuXmlParser::vecEnergySumTemplate(), L1GtTriggerMenuXmlParser::vecExternalTemplate(), L1GtTriggerMenuXmlParser::vecHfBitCountsTemplate(), L1GtTriggerMenuXmlParser::vecHfRingEtSumsTemplate(), L1GtTriggerMenuXmlParser::vecJetCountsTemplate(), and L1GtTriggerMenuXmlParser::vecMuonTemplate().

Referenced by L1GtTriggerMenuXmlProducer().

Member Data Documentation

◆ m_defXmlFile

std::string L1GtTriggerMenuXmlProducer::m_defXmlFile
private

XML file for Global Trigger menu (def.xml)

Definition at line 50 of file L1GtTriggerMenuXmlProducer.h.

Referenced by L1GtTriggerMenuXmlProducer(), and produceGtTriggerMenu().

◆ m_vmeXmlFile

std::string L1GtTriggerMenuXmlProducer::m_vmeXmlFile
private

XML file for Global Trigger VME configuration (vme.xml)

Definition at line 53 of file L1GtTriggerMenuXmlProducer.h.

Referenced by L1GtTriggerMenuXmlProducer(), and produceGtTriggerMenu().

edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition: DependentRecordImplementation.h:50
L1GtTriggerMenuXmlParser::gtTriggerMenuName
const std::string & gtTriggerMenuName() const
Definition: L1GtTriggerMenuXmlParser.h:104
L1GtTriggerMenuXmlParser::parseXmlFile
void parseXmlFile(const std::string &defXmlFile, const std::string &vmeXmlFile)
parse def.xml and vme.xml files
Definition: L1GtTriggerMenuXmlParser.cc:179
L1GtTriggerMenuXmlProducer::m_defXmlFile
std::string m_defXmlFile
XML file for Global Trigger menu (def.xml)
Definition: L1GtTriggerMenuXmlProducer.h:50
L1GtTriggerMenuXmlParser::vecBptxTemplate
const std::vector< std::vector< L1GtBptxTemplate > > & vecBptxTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:161
L1GtTriggerMenuXmlParser::corCaloTemplate
const std::vector< std::vector< L1GtCaloTemplate > > & corCaloTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:186
L1GtTriggerMenuXmlParser
Definition: L1GtTriggerMenuXmlParser.h:51
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
L1GtTriggerMenuXmlParser::setGtOrderConditionChip
void setGtOrderConditionChip(const std::vector< int > &)
Definition: L1GtTriggerMenuXmlParser.cc:68
L1GtTriggerMenuXmlParser::corMuonTemplate
const std::vector< std::vector< L1GtMuonTemplate > > & corMuonTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:181
L1GtTriggerMenuXmlParser::setGtNumberConditionChips
void setGtNumberConditionChips(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:57
L1GtTriggerMenuXmlParser::gtAlgorithmMap
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
Definition: L1GtTriggerMenuXmlParser.h:198
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
L1GtTriggerMenuXmlParser::gtTriggerMenuImplementation
const std::string & gtTriggerMenuImplementation() const
Definition: L1GtTriggerMenuXmlParser.h:109
L1GtTriggerMenuXmlParser::vecHfRingEtSumsTemplate
const std::vector< std::vector< L1GtHfRingEtSumsTemplate > > & vecHfRingEtSumsTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:154
L1GtTriggerMenuXmlParser::gtAlgorithmAliasMap
const AlgorithmMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
Definition: L1GtTriggerMenuXmlParser.h:203
edm::FileInPath
Definition: FileInPath.h:61
L1GtTriggerMenuXmlParser::setGtNumberTechTriggers
void setGtNumberTechTriggers(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:78
edm::ESHandle
Definition: DTSurvey.h:22
L1GtTriggerMenuXmlParser::corEnergySumTemplate
const std::vector< std::vector< L1GtEnergySumTemplate > > & corEnergySumTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:191
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
L1GtTriggerMenuXmlParser::vecHfBitCountsTemplate
const std::vector< std::vector< L1GtHfBitCountsTemplate > > & vecHfBitCountsTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:147
DeadROC_duringRun.f2
f2
Definition: DeadROC_duringRun.py:220
L1GtTriggerMenuXmlParser::gtScaleDbKey
const std::string & gtScaleDbKey() const
menu associated scale key
Definition: L1GtTriggerMenuXmlParser.h:114
L1GtTriggerMenuXmlParser::setGtNumberL1JetCounts
void setGtNumberL1JetCounts(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:83
L1GtTriggerMenuXmlParser::setGtPinsOnConditionChip
void setGtPinsOnConditionChip(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:62
L1GtTriggerMenuXmlParser::vecEnergySumTemplate
const std::vector< std::vector< L1GtEnergySumTemplate > > & vecEnergySumTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:128
L1GtTriggerMenuXmlParser::vecMuonTemplate
const std::vector< std::vector< L1GtMuonTemplate > > & vecMuonTemplate() const
get / set the vectors containing the conditions
Definition: L1GtTriggerMenuXmlParser.h:119
L1GtStableParametersRcd
Definition: L1GtStableParametersRcd.h:39
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtTriggerMenuXmlProducer::produceGtTriggerMenu
std::unique_ptr< L1GtTriggerMenu > produceGtTriggerMenu(const L1GtTriggerMenuRcd &)
public methods
Definition: L1GtTriggerMenuXmlProducer.cc:81
L1GtTriggerMenuXmlParser::vecCaloTemplate
const std::vector< std::vector< L1GtCaloTemplate > > & vecCaloTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:123
L1GtTriggerMenuXmlParser::vecJetCountsTemplate
const std::vector< std::vector< L1GtJetCountsTemplate > > & vecJetCountsTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:135
L1GtTriggerMenuXmlProducer::m_vmeXmlFile
std::string m_vmeXmlFile
XML file for Global Trigger VME configuration (vme.xml)
Definition: L1GtTriggerMenuXmlProducer.h:53
L1GtTriggerMenuXmlParser::vecCastorTemplate
const std::vector< std::vector< L1GtCastorTemplate > > & vecCastorTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:142
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1GtTriggerMenuXmlParser::vecCorrelationTemplate
const std::vector< std::vector< L1GtCorrelationTemplate > > & vecCorrelationTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:173
L1GtTriggerMenuXmlParser::setGtNumberPhysTriggers
void setGtNumberPhysTriggers(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:73
L1GtTriggerMenuXmlParser::gtTriggerMenuInterface
const std::string & gtTriggerMenuInterface() const
get / set the trigger menu names
Definition: L1GtTriggerMenuXmlParser.h:99
L1GtTriggerMenuXmlParser::vecExternalTemplate
const std::vector< std::vector< L1GtExternalTemplate > > & vecExternalTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:166
DeadROC_duringRun.f1
f1
Definition: DeadROC_duringRun.py:219
L1GtTriggerMenuXmlParser::gtTechnicalTriggerMap
const AlgorithmMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
Definition: L1GtTriggerMenuXmlParser.h:208