Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add condition formats corresponding to L1T global UTM library #13202

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions CondCore/L1TPlugins/src/plugin.cc
Expand Up @@ -220,3 +220,35 @@ REGISTER_PLUGIN(L1TCaloConfigRcd, CaloConfig);
REGISTER_PLUGIN(L1TMuonOverlapParamsRcd, L1TMuonOverlapParams);
REGISTER_PLUGIN(L1TMuonBarrelParamsRcd, L1TMuonBarrelParams);
REGISTER_PLUGIN(L1TMuonGlobalParamsRcd, L1TMuonGlobalParams);

#include "CondFormats/L1TObjects/interface/L1TUtmAlgorithm.h"
#include "CondFormats/DataRecord/interface/L1TUtmAlgorithmRcd.h"
REGISTER_PLUGIN(L1TUtmAlgorithmRcd, L1TUtmAlgorithm);

#include "CondFormats/L1TObjects/interface/L1TUtmBin.h"
#include "CondFormats/DataRecord/interface/L1TUtmBinRcd.h"
REGISTER_PLUGIN(L1TUtmBinRcd, L1TUtmBin);

#include "CondFormats/L1TObjects/interface/L1TUtmCondition.h"
#include "CondFormats/DataRecord/interface/L1TUtmConditionRcd.h"
REGISTER_PLUGIN(L1TUtmConditionRcd, L1TUtmCondition);

#include "CondFormats/L1TObjects/interface/L1TUtmCut.h"
#include "CondFormats/DataRecord/interface/L1TUtmCutRcd.h"
REGISTER_PLUGIN(L1TUtmCutRcd, L1TUtmCut);

#include "CondFormats/L1TObjects/interface/L1TUtmCutValue.h"
#include "CondFormats/DataRecord/interface/L1TUtmCutValueRcd.h"
REGISTER_PLUGIN(L1TUtmCutValueRcd, L1TUtmCutValue);

#include "CondFormats/L1TObjects/interface/L1TUtmObject.h"
#include "CondFormats/DataRecord/interface/L1TUtmObjectRcd.h"
REGISTER_PLUGIN(L1TUtmObjectRcd, L1TUtmObject);

#include "CondFormats/L1TObjects/interface/L1TUtmScale.h"
#include "CondFormats/DataRecord/interface/L1TUtmScaleRcd.h"
REGISTER_PLUGIN(L1TUtmScaleRcd, L1TUtmScale);

#include "CondFormats/L1TObjects/interface/L1TUtmTriggerMenu.h"
#include "CondFormats/DataRecord/interface/L1TUtmTriggerMenuRcd.h"
REGISTER_PLUGIN(L1TUtmTriggerMenuRcd, L1TUtmTriggerMenu);
8 changes: 8 additions & 0 deletions CondCore/Utilities/src/CondDBFetch.cc
Expand Up @@ -205,6 +205,14 @@ namespace cond {
FETCH_PAYLOAD_CASE( L1TMuonBarrelParams )
FETCH_PAYLOAD_CASE( L1TMuonGlobalParams )
FETCH_PAYLOAD_CASE( L1TMuonOverlapParams )
FETCH_PAYLOAD_CASE( L1TUtmAlgorithm )
FETCH_PAYLOAD_CASE( L1TUtmBin )
FETCH_PAYLOAD_CASE( L1TUtmCondition )
FETCH_PAYLOAD_CASE( L1TUtmCut )
FETCH_PAYLOAD_CASE( L1TUtmCutValue )
FETCH_PAYLOAD_CASE( L1TUtmObject )
FETCH_PAYLOAD_CASE( L1TUtmScale )
FETCH_PAYLOAD_CASE( L1TUtmTriggerMenu )
FETCH_PAYLOAD_CASE( L1TriggerKey )
FETCH_PAYLOAD_CASE( L1TriggerKeyList )
FETCH_PAYLOAD_CASE( lumi::LumiSectionData )
Expand Down
8 changes: 8 additions & 0 deletions CondCore/Utilities/src/CondDBImport.cc
Expand Up @@ -217,6 +217,14 @@ namespace cond {
IMPORT_PAYLOAD_CASE( L1TMuonBarrelParams )
IMPORT_PAYLOAD_CASE( L1TMuonGlobalParams )
IMPORT_PAYLOAD_CASE( L1TMuonOverlapParams )
IMPORT_PAYLOAD_CASE( L1TUtmAlgorithm )
IMPORT_PAYLOAD_CASE( L1TUtmBin )
IMPORT_PAYLOAD_CASE( L1TUtmCondition )
IMPORT_PAYLOAD_CASE( L1TUtmCut )
IMPORT_PAYLOAD_CASE( L1TUtmCutValue )
IMPORT_PAYLOAD_CASE( L1TUtmObject )
IMPORT_PAYLOAD_CASE( L1TUtmScale )
IMPORT_PAYLOAD_CASE( L1TUtmTriggerMenu )
IMPORT_PAYLOAD_CASE( L1TriggerKey )
IMPORT_PAYLOAD_CASE( MagFieldConfig )
if( inputTypeName == "L1TriggerKeyList" ){
Expand Down
8 changes: 8 additions & 0 deletions CondCore/Utilities/src/CondFormats.h
Expand Up @@ -217,6 +217,14 @@
#include "CondFormats/L1TObjects/interface/L1TMuonBarrelParams.h"
#include "CondFormats/L1TObjects/interface/L1TMuonGlobalParams.h"
#include "CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h"
#include "CondFormats/L1TObjects/interface/L1TUtmAlgorithm.h"
#include "CondFormats/L1TObjects/interface/L1TUtmBin.h"
#include "CondFormats/L1TObjects/interface/L1TUtmCondition.h"
#include "CondFormats/L1TObjects/interface/L1TUtmCut.h"
#include "CondFormats/L1TObjects/interface/L1TUtmCutValue.h"
#include "CondFormats/L1TObjects/interface/L1TUtmObject.h"
#include "CondFormats/L1TObjects/interface/L1TUtmScale.h"
#include "CondFormats/L1TObjects/interface/L1TUtmTriggerMenu.h"
#include "CondFormats/L1TObjects/interface/L1TriggerKey.h"
#include "CondFormats/L1TObjects/interface/L1TriggerKeyList.h"
#include "CondFormats/PhysicsToolsObjects/interface/Histogram3D.h"
Expand Down
19 changes: 19 additions & 0 deletions CondFormats/DataRecord/interface/L1TUtmAlgorithmRcd.h
@@ -0,0 +1,19 @@
// L1TUtmAlgorithmRcd
// Description: Record for L1TUtmAlgorithm
//
// automatically generate by make_records.pl
//
#ifndef CondFormatsDataRecord_L1TUtmAlgorithm_h
#define CondFormatsDataRecord_L1TUtmAlgorithm_h

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class L1TUtmAlgorithmRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TUtmAlgorithmRcd> {};

// Dependent record implmentation:
//#include "FWCore/Framework/interface/DependentRecordImplementation.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
//class L1TUtmAlgorithmRcd : public edm::eventsetup::DependentRecordImplementation<L1TUtmAlgorithmRcd, boost::mpl::vector<L1TriggerKeyListRcd,L1TriggerKeyRcd> > {};

#endif
19 changes: 19 additions & 0 deletions CondFormats/DataRecord/interface/L1TUtmBinRcd.h
@@ -0,0 +1,19 @@
// L1TUtmBinRcd
// Description: Record for L1TUtmBin
//
// automatically generate by make_records.pl
//
#ifndef CondFormatsDataRecord_L1TUtmBin_h
#define CondFormatsDataRecord_L1TUtmBin_h

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class L1TUtmBinRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TUtmBinRcd> {};

// Dependent record implmentation:
//#include "FWCore/Framework/interface/DependentRecordImplementation.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
//class L1TUtmBinRcd : public edm::eventsetup::DependentRecordImplementation<L1TUtmBinRcd, boost::mpl::vector<L1TriggerKeyListRcd,L1TriggerKeyRcd> > {};

#endif
19 changes: 19 additions & 0 deletions CondFormats/DataRecord/interface/L1TUtmConditionRcd.h
@@ -0,0 +1,19 @@
// L1TUtmConditionRcd
// Description: Record for L1TUtmCondition
//
// automatically generate by make_records.pl
//
#ifndef CondFormatsDataRecord_L1TUtmCondition_h
#define CondFormatsDataRecord_L1TUtmCondition_h

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class L1TUtmConditionRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TUtmConditionRcd> {};

// Dependent record implmentation:
//#include "FWCore/Framework/interface/DependentRecordImplementation.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
//class L1TUtmConditionRcd : public edm::eventsetup::DependentRecordImplementation<L1TUtmConditionRcd, boost::mpl::vector<L1TriggerKeyListRcd,L1TriggerKeyRcd> > {};

#endif
19 changes: 19 additions & 0 deletions CondFormats/DataRecord/interface/L1TUtmCutRcd.h
@@ -0,0 +1,19 @@
// L1TUtmCutRcd
// Description: Record for L1TUtmCut
//
// automatically generate by make_records.pl
//
#ifndef CondFormatsDataRecord_L1TUtmCut_h
#define CondFormatsDataRecord_L1TUtmCut_h

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class L1TUtmCutRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TUtmCutRcd> {};

// Dependent record implmentation:
//#include "FWCore/Framework/interface/DependentRecordImplementation.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
//class L1TUtmCutRcd : public edm::eventsetup::DependentRecordImplementation<L1TUtmCutRcd, boost::mpl::vector<L1TriggerKeyListRcd,L1TriggerKeyRcd> > {};

#endif
19 changes: 19 additions & 0 deletions CondFormats/DataRecord/interface/L1TUtmCutValueRcd.h
@@ -0,0 +1,19 @@
// L1TUtmCutValueRcd
// Description: Record for L1TUtmCutValue
//
// automatically generate by make_records.pl
//
#ifndef CondFormatsDataRecord_L1TUtmCutValue_h
#define CondFormatsDataRecord_L1TUtmCutValue_h

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class L1TUtmCutValueRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TUtmCutValueRcd> {};

// Dependent record implmentation:
//#include "FWCore/Framework/interface/DependentRecordImplementation.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
//class L1TUtmCutValueRcd : public edm::eventsetup::DependentRecordImplementation<L1TUtmCutValueRcd, boost::mpl::vector<L1TriggerKeyListRcd,L1TriggerKeyRcd> > {};

#endif
19 changes: 19 additions & 0 deletions CondFormats/DataRecord/interface/L1TUtmObjectRcd.h
@@ -0,0 +1,19 @@
// L1TUtmObjectRcd
// Description: Record for L1TUtmObject
//
// automatically generate by make_records.pl
//
#ifndef CondFormatsDataRecord_L1TUtmObject_h
#define CondFormatsDataRecord_L1TUtmObject_h

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class L1TUtmObjectRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TUtmObjectRcd> {};

// Dependent record implmentation:
//#include "FWCore/Framework/interface/DependentRecordImplementation.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
//class L1TUtmObjectRcd : public edm::eventsetup::DependentRecordImplementation<L1TUtmObjectRcd, boost::mpl::vector<L1TriggerKeyListRcd,L1TriggerKeyRcd> > {};

#endif
19 changes: 19 additions & 0 deletions CondFormats/DataRecord/interface/L1TUtmScaleRcd.h
@@ -0,0 +1,19 @@
// L1TUtmScaleRcd
// Description: Record for L1TUtmScale
//
// automatically generate by make_records.pl
//
#ifndef CondFormatsDataRecord_L1TUtmScale_h
#define CondFormatsDataRecord_L1TUtmScale_h

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class L1TUtmScaleRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TUtmScaleRcd> {};

// Dependent record implmentation:
//#include "FWCore/Framework/interface/DependentRecordImplementation.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
//class L1TUtmScaleRcd : public edm::eventsetup::DependentRecordImplementation<L1TUtmScaleRcd, boost::mpl::vector<L1TriggerKeyListRcd,L1TriggerKeyRcd> > {};

#endif
19 changes: 19 additions & 0 deletions CondFormats/DataRecord/interface/L1TUtmTriggerMenuRcd.h
@@ -0,0 +1,19 @@
// L1TUtmTriggerMenuRcd
// Description: Record for L1TUtmTriggerMenu
//
// automatically generate by make_records.pl
//
#ifndef CondFormatsDataRecord_L1TUtmTriggerMenu_h
#define CondFormatsDataRecord_L1TUtmTriggerMenu_h

#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"

class L1TUtmTriggerMenuRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TUtmTriggerMenuRcd> {};

// Dependent record implmentation:
//#include "FWCore/Framework/interface/DependentRecordImplementation.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h"
//#include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h"
//class L1TUtmTriggerMenuRcd : public edm::eventsetup::DependentRecordImplementation<L1TUtmTriggerMenuRcd, boost::mpl::vector<L1TriggerKeyListRcd,L1TriggerKeyRcd> > {};

#endif
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/src/L1TUtmAlgorithmRcd.cc
@@ -0,0 +1,8 @@
// L1TUtmAlgorithmRcd implementation

// automatically generated by make_records.pl

#include "CondFormats/DataRecord/interface/L1TUtmAlgorithmRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(L1TUtmAlgorithmRcd);
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/src/L1TUtmBinRcd.cc
@@ -0,0 +1,8 @@
// L1TUtmBinRcd implementation

// automatically generated by make_records.pl

#include "CondFormats/DataRecord/interface/L1TUtmBinRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(L1TUtmBinRcd);
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/src/L1TUtmConditionRcd.cc
@@ -0,0 +1,8 @@
// L1TUtmConditionRcd implementation

// automatically generated by make_records.pl

#include "CondFormats/DataRecord/interface/L1TUtmConditionRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(L1TUtmConditionRcd);
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/src/L1TUtmCutRcd.cc
@@ -0,0 +1,8 @@
// L1TUtmCutRcd implementation

// automatically generated by make_records.pl

#include "CondFormats/DataRecord/interface/L1TUtmCutRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(L1TUtmCutRcd);
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/src/L1TUtmCutValueRcd.cc
@@ -0,0 +1,8 @@
// L1TUtmCutValueRcd implementation

// automatically generated by make_records.pl

#include "CondFormats/DataRecord/interface/L1TUtmCutValueRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(L1TUtmCutValueRcd);
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/src/L1TUtmObjectRcd.cc
@@ -0,0 +1,8 @@
// L1TUtmObjectRcd implementation

// automatically generated by make_records.pl

#include "CondFormats/DataRecord/interface/L1TUtmObjectRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(L1TUtmObjectRcd);
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/src/L1TUtmScaleRcd.cc
@@ -0,0 +1,8 @@
// L1TUtmScaleRcd implementation

// automatically generated by make_records.pl

#include "CondFormats/DataRecord/interface/L1TUtmScaleRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(L1TUtmScaleRcd);
8 changes: 8 additions & 0 deletions CondFormats/DataRecord/src/L1TUtmTriggerMenuRcd.cc
@@ -0,0 +1,8 @@
// L1TUtmTriggerMenuRcd implementation

// automatically generated by make_records.pl

#include "CondFormats/DataRecord/interface/L1TUtmTriggerMenuRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"

EVENTSETUP_RECORD_REG(L1TUtmTriggerMenuRcd);
84 changes: 84 additions & 0 deletions CondFormats/L1TObjects/interface/L1TUtmAlgorithm.h
@@ -0,0 +1,84 @@
//
// NOTE: This file was automatically generated from UTM library via import_utm.pl
// DIRECT EDITS MIGHT BE LOST.
//
/**
* @author Takashi Matsushita
* Created: 12 Mar 2015
*/

/** @todo nope */

#ifndef tmEventSetup_L1TUtmAlgorithm_hh
#define tmEventSetup_L1TUtmAlgorithm_hh

/*====================================================================*
* declarations
*====================================================================*/
/*-----------------------------------------------------------------*
* headers
*-----------------------------------------------------------------*/
#include <string>
#include <vector>
#include "CondFormats/Serialization/interface/Serializable.h"


/*-----------------------------------------------------------------*
* constants
*-----------------------------------------------------------------*/
/* nope */



/**
* This class implements data structure for Algorithm
*/
class L1TUtmAlgorithm
{
public:
// ctor
L1TUtmAlgorithm()
: name_(), expression_(), expression_in_condition_(), rpn_vector_(),
index_(), module_id_(), module_index_() { };

// dtor
virtual ~L1TUtmAlgorithm() { };

/** set rpn_vector_ */
void setRpnVector(const std::vector<std::string>& x) { rpn_vector_ = x; };

/** get algorithm name */
const std::string& getName() const { return name_; };

/** get algorithm expression in grammar */
const std::string& getExpression() const { return expression_; };

/** get algorithm expression in condition */
const std::string& getExpressionInCondition() const { return expression_in_condition_; };

/** get reverse polish notion of algorithm expression in condition */
const std::vector<std::string>& getRpnVector() const { return rpn_vector_; };

/** get algorithm index */
unsigned int getIndex() const { return index_; };

/** get module id */
unsigned int getModuleId() const { return module_id_; };

/** get module index */
unsigned int getModuleIndex() const { return module_index_; };

protected:
std::string name_; /**< name of algorithm */
std::string expression_; /**< algorithm expression in grammar */
std::string expression_in_condition_; /**< algorithm expression in condition */
std::vector<std::string> rpn_vector_; /**< reverse polish notation of algorithm expression in condition */
unsigned int index_; /**< index of algorithm (global) */
unsigned int module_id_; /**< module id */
unsigned int module_index_; /**< index of algorithm in module (local to module id) */
unsigned int version;
COND_SERIALIZABLE;
};

#endif // tmEventSetup_L1TUtmAlgorithm_hh
/* eof */