-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 #42634 from cfmcginn/l1tZDCEmulator_CMSSW13_3_X
L1T ZDC and uGT Emulator to CMSSW_13_3_X
- Loading branch information
Showing
39 changed files
with
1,871 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,8 @@ namespace l1t { | |
gtCentrality6, | ||
gtCentrality7, | ||
gtExternal, | ||
gtZDCP, | ||
gtZDCM, | ||
ObjNull | ||
}; | ||
|
||
|
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 |
---|---|---|
|
@@ -52,6 +52,8 @@ namespace l1t { | |
kAsymHt, | ||
kAsymEtHF, | ||
kAsymHtHF, | ||
kZDCP, | ||
kZDCM, | ||
kUninitialized | ||
}; | ||
|
||
|
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,86 @@ | ||
#ifndef L1Trigger_L1TGlobal_EnergySumZdcCondition_h | ||
#define L1Trigger_L1TGlobal_EnergySumZdcCondition_h | ||
|
||
/** | ||
* \class EnergySumZdcCondition | ||
* | ||
* | ||
* Description: evaluation of a CondEnergySumZdc condition. | ||
* | ||
* Implementation: | ||
* <TODO: enter implementation details> | ||
* | ||
* \author: Vasile Mihai Ghete - HEPHY Vienna | ||
* | ||
* | ||
*/ | ||
|
||
// system include files | ||
#include <iosfwd> | ||
#include <string> | ||
|
||
// user include files | ||
// base classes | ||
#include "L1Trigger/L1TGlobal/interface/ConditionEvaluation.h" | ||
|
||
// forward declarations | ||
class GlobalCondition; | ||
class EnergySumZdcTemplate; | ||
|
||
namespace l1t { | ||
|
||
class L1Candidate; | ||
|
||
class GlobalBoard; | ||
|
||
// class declaration | ||
class EnergySumZdcCondition : public ConditionEvaluation { | ||
public: | ||
/// constructors | ||
/// default | ||
EnergySumZdcCondition(); | ||
|
||
/// from base template condition (from event setup usually) | ||
EnergySumZdcCondition(const GlobalCondition*, const GlobalBoard*); | ||
|
||
// copy constructor | ||
EnergySumZdcCondition(const EnergySumZdcCondition&); | ||
|
||
// destructor | ||
~EnergySumZdcCondition() override; | ||
|
||
// assign operator | ||
EnergySumZdcCondition& operator=(const EnergySumZdcCondition&); | ||
|
||
public: | ||
/// the core function to check if the condition matches | ||
const bool evaluateCondition(const int bxEval) const override; | ||
|
||
/// print condition | ||
void print(std::ostream& myCout) const override; | ||
|
||
public: | ||
/// get / set the pointer to a L1GtCondition | ||
inline const EnergySumZdcTemplate* gtEnergySumZdcTemplate() const { return m_gtEnergySumZdcTemplate; } | ||
|
||
void setGtEnergySumZdcTemplate(const EnergySumZdcTemplate*); | ||
|
||
/// get / set the pointer to uGt GlobalBoard | ||
inline const GlobalBoard* getuGtB() const { return m_uGtB; } | ||
|
||
void setuGtB(const GlobalBoard*); | ||
|
||
private: | ||
/// copy function for copy constructor and operator= | ||
void copy(const EnergySumZdcCondition& cp); | ||
|
||
private: | ||
/// pointer to a EnergySumZdcTemplate | ||
const EnergySumZdcTemplate* m_gtEnergySumZdcTemplate; | ||
|
||
/// pointer to uGt GlobalBoard, to be able to get the trigger objects | ||
const GlobalBoard* m_uGtB; | ||
}; | ||
|
||
} // namespace l1t | ||
#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,79 @@ | ||
#ifndef L1Trigger_L1TGlobal_EnergySumZdcTemplate_h | ||
#define L1Trigger_L1TGlobal_EnergySumZdcTemplate_h | ||
|
||
/** | ||
* \class EnergySumZdcTemplate | ||
* | ||
* | ||
* Description: L1 Global Trigger energy-sum template. | ||
* | ||
* Implementation: | ||
* <TODO: enter implementation details> | ||
* | ||
* \author: Vasile Mihai Ghete - HEPHY Vienna | ||
* | ||
* $Date$ | ||
* $Revision$ | ||
* | ||
*/ | ||
|
||
// system include files | ||
#include <string> | ||
#include <iosfwd> | ||
|
||
// user include files | ||
|
||
// base class | ||
#include "L1Trigger/L1TGlobal/interface/GlobalCondition.h" | ||
|
||
// forward declarations | ||
|
||
// class declaration | ||
class EnergySumZdcTemplate : public GlobalCondition { | ||
public: | ||
// constructor | ||
EnergySumZdcTemplate(); | ||
|
||
// constructor | ||
EnergySumZdcTemplate(const std::string&); | ||
|
||
// constructor | ||
EnergySumZdcTemplate(const std::string&, const l1t::GtConditionType&); | ||
|
||
// copy constructor | ||
EnergySumZdcTemplate(const EnergySumZdcTemplate&); | ||
|
||
// destructor | ||
~EnergySumZdcTemplate() override; | ||
|
||
// assign operator | ||
EnergySumZdcTemplate& operator=(const EnergySumZdcTemplate&); | ||
|
||
public: | ||
struct ObjectParameter { | ||
unsigned int etLowThreshold; | ||
unsigned int etHighThreshold; | ||
}; | ||
|
||
public: | ||
inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; } | ||
|
||
/// set functions | ||
void setConditionParameter(const std::vector<ObjectParameter>&); | ||
|
||
/// print the condition | ||
void print(std::ostream& myCout) const override; | ||
|
||
/// output stream operator | ||
friend std::ostream& operator<<(std::ostream&, const EnergySumZdcTemplate&); | ||
|
||
private: | ||
/// copy function for copy constructor and operator= | ||
void copy(const EnergySumZdcTemplate& cp); | ||
|
||
private: | ||
/// variables containing the parameters | ||
std::vector<ObjectParameter> m_objectParameter; | ||
}; | ||
|
||
#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
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
Oops, something went wrong.