-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32137 from trtomei/PR-112X-HLTL1T
Adding infra. for L1T object scaling constants from DB
- Loading branch information
Showing
8 changed files
with
82 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef L1TObjScalingRcd_L1TObjScalingRcd_h | ||
#define L1TObjScalingRcd_L1TObjScalingRcd_h | ||
// -*- C++ -*- | ||
// | ||
// Package: HLTrigger/HLTcore | ||
// Class : L1TObjScalingRcd | ||
// | ||
/**\class L1TObjScalingRcd L1TObjScalingRcd.h HLTrigger/HLTcore/interface/L1TObjScalingRcd.h | ||
Description: Holds scaling constants for L1T objects. | ||
Usage: | ||
Holds constants {A,B,C} such that the pt or Et of a L1T object | ||
can be scaled by ptScaled = A + B*pt + C*pt^2. | ||
A cut can then be applied on ptScaled. | ||
Initial use case is the implementation of the "offline thresholds" | ||
in L1T Phase2 in CMS-TDR-021 described in CMS-TDR-021. | ||
*/ | ||
// | ||
// Author: Thiago Tomei | ||
// Created: Fri, 04 Sep 2020 17:04:33 GMT | ||
// | ||
|
||
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h" | ||
|
||
class L1TObjScalingRcd : public edm::eventsetup::EventSetupRecordImplementation<L1TObjScalingRcd> {}; | ||
|
||
#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,15 @@ | ||
// -*- C++ -*- | ||
// | ||
// Package: HLTrigger/HLTcore | ||
// Class : L1TObjScalingRcd | ||
// | ||
// Implementation: | ||
// [Notes on implementation] | ||
// | ||
// Author: Thiago Tomei | ||
// Created: Fri, 04 Sep 2020 17:04:33 GMT | ||
|
||
#include "CondFormats/DataRecord/interface/L1TObjScalingRcd.h" | ||
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" | ||
|
||
EVENTSETUP_RECORD_REG(L1TObjScalingRcd); |
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,21 @@ | ||
#ifndef HLTObjects_L1TObjScalingConstants_h | ||
#define HLTObjects_L1TObjScalingConstants_h | ||
|
||
#include "CondFormats/Serialization/interface/Serializable.h" | ||
|
||
#include <vector> | ||
|
||
class L1TObjScalingConstants { | ||
public: | ||
struct Scaling { | ||
float m_constant; | ||
float m_linear; | ||
float m_quadratic; | ||
COND_SERIALIZABLE; | ||
}; | ||
|
||
std::vector<Scaling> m_constants; | ||
COND_SERIALIZABLE; | ||
}; | ||
|
||
#endif // HLTObjects_L1TObjScalingConstants_h |
6 changes: 6 additions & 0 deletions
6
CondFormats/HLTObjects/src/T_EventSetup_L1TObjScalingConstants.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,6 @@ | ||
// T_EventSetup_L1TObjScalingConstants.cc | ||
|
||
#include "CondFormats/HLTObjects/interface/L1TObjScalingConstants.h" | ||
#include "FWCore/Utilities/interface/typelookup.h" | ||
|
||
TYPELOOKUP_DATA_REG(L1TObjScalingConstants); |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#include "CondFormats/HLTObjects/interface/AlCaRecoTriggerBits.h" | ||
#include "CondFormats/HLTObjects/interface/HLTPrescaleTableCond.h" | ||
#include "CondFormats/HLTObjects/interface/L1TObjScalingConstants.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
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