-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New CondFormats to replace Legacy versions for Stable Params, Prescal…
…es, and Vetos.
- Loading branch information
Showing
16 changed files
with
190 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#ifndef CondFormatsDataRecord_L1TGlobalParametersRcd_h | ||
#define CondFormatsDataRecord_L1TGlobalParametersRcd_h | ||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
class L1TGlobalParametersRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TGlobalParametersRcd> {}; | ||
#endif |
19 changes: 19 additions & 0 deletions
19
CondFormats/DataRecord/interface/L1TGlobalPrescalesVetosRcd.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// L1TGlobalPrescalesVetosRcd | ||
// Description: Record for L1TGlobalPrescalesVetos | ||
// | ||
// automatically generate by make_records.pl | ||
// | ||
#ifndef CondFormatsDataRecord_L1TGlobalPrescalesVetos_h | ||
#define CondFormatsDataRecord_L1TGlobalPrescalesVetos_h | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class L1TGlobalPrescalesVetosRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TGlobalPrescalesVetosRcd> {}; | ||
|
||
// Dependent record implmentation: | ||
//#include "FWCore/Framework/interface/DependentRecordImplementation.h" | ||
//#include "CondFormats/DataRecord/interface/L1TriggerKeyListRcd.h" | ||
//#include "CondFormats/DataRecord/interface/L1TriggerKeyRcd.h" | ||
//class L1TGlobalPrescalesVetosRcd : public edm::eventsetup::DependentRecordImplementation<L1TGlobalPrescalesVetosRcd, boost::mpl::vector<L1TriggerKeyListRcd,L1TriggerKeyRcd> > {}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* \class L1TGlobalParametersRcd | ||
* | ||
* | ||
* Description: record for L1 GT stable parameters. | ||
* | ||
* Implementation: | ||
* <TODO: enter implementation details> | ||
* | ||
* \author: Vasile Mihai Ghete - HEPHY Vienna | ||
* | ||
* $Date$ | ||
* $Revision$ | ||
* | ||
*/ | ||
|
||
// this class header | ||
#include "CondFormats/DataRecord/interface/L1TGlobalParametersRcd.h" | ||
|
||
// system include files | ||
|
||
// user include files | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
// | ||
|
||
EVENTSETUP_RECORD_REG(L1TGlobalParametersRcd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// L1TGlobalPrescalesVetosRcd implementation | ||
|
||
// automatically generated by make_records.pl | ||
|
||
#include "CondFormats/DataRecord/interface/L1TGlobalPrescalesVetosRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
EVENTSETUP_RECORD_REG(L1TGlobalPrescalesVetosRcd); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#ifndef CondFormats_L1TObjects_L1TGlobalParameters_h | ||
#define CondFormats_L1TObjects_L1TGlobalParameters_h | ||
|
||
#include <vector> | ||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
class L1TGlobalParameters{ | ||
|
||
public: | ||
|
||
L1TGlobalParameters(){} | ||
|
||
~L1TGlobalParameters(){} | ||
|
||
public: | ||
|
||
/// bx in event | ||
int m_totalBxInEvent; | ||
|
||
/// trigger decision | ||
|
||
/// number of physics trigger algorithms | ||
unsigned int m_numberPhysTriggers; | ||
|
||
/// trigger objects | ||
|
||
/// muons | ||
unsigned int m_numberL1Mu; | ||
|
||
/// e/gamma objects | ||
unsigned int m_numberL1EG; | ||
|
||
|
||
/// jets | ||
unsigned int m_numberL1Jet; | ||
|
||
/// taus | ||
unsigned int m_numberL1Tau; | ||
|
||
/// hardware | ||
|
||
/// number of condition chips | ||
unsigned int m_numberChips; | ||
|
||
/// number of pins on the GTL condition chips | ||
unsigned int m_pinsOnChip; | ||
|
||
/// correspondence "condition chip - GTL algorithm word" in the hardware | ||
std::vector<int> m_orderOfChip; | ||
|
||
int m_version; | ||
std::vector<int> m_exp_ints; | ||
std::vector<double> m_exp_doubles; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
#endif |
28 changes: 28 additions & 0 deletions
28
CondFormats/L1TObjects/interface/L1TGlobalPrescalesVetos.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// L1TGlobalPrescalesVetos | ||
// | ||
// Table containing the entire set of prescales and masks for each L1T algorithm bit | ||
// | ||
|
||
#ifndef L1TGlobalPrescalesVetos_h | ||
#define L1TGlobalPrescalesVetos_h | ||
|
||
#include <vector> | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
class L1TGlobalPrescalesVetos { | ||
public: | ||
L1TGlobalPrescalesVetos(){ version_ = 0; bxmask_default_=0; } | ||
|
||
unsigned int version_; | ||
std::vector<std::vector<int> > prescale_table_; | ||
int bxmask_default_; | ||
std::map<int, std::vector<int> > bxmask_map_; | ||
std::vector<int> veto_; | ||
std::vector<int> exp_ints_; | ||
std::vector<double> exp_doubles_; | ||
|
||
COND_SERIALIZABLE; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "CondFormats/L1TObjects/interface/L1TGlobalParameters.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "CondFormats/L1TObjects/interface/L1TGlobalPrescalesVetos.h" |
5 changes: 5 additions & 0 deletions
5
CondFormats/L1TObjects/src/T_EventSetup_L1TGlobalParameters.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
#include "CondFormats/L1TObjects/interface/L1TGlobalParameters.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(L1TGlobalParameters); |
5 changes: 5 additions & 0 deletions
5
CondFormats/L1TObjects/src/T_EventSetup_L1TGlobalPrescalesVetos.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
#include "CondFormats/L1TObjects/interface/L1TGlobalPrescalesVetos.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(L1TGlobalPrescalesVetos); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters