File indexing completed on 2024-04-06 12:20:35
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #include "L1Trigger/L1TGlobal/interface/ExternalTemplate.h"
0019
0020
0021
0022 #include <iostream>
0023 #include <iomanip>
0024
0025
0026
0027
0028
0029
0030
0031
0032 ExternalTemplate::ExternalTemplate() : GlobalCondition() { m_condCategory = l1t::CondExternal; }
0033
0034 ExternalTemplate::ExternalTemplate(const std::string& cName) : GlobalCondition(cName) {
0035 m_condCategory = l1t::CondExternal;
0036 }
0037
0038 ExternalTemplate::ExternalTemplate(const std::string& cName, const l1t::GtConditionType& cType)
0039 : GlobalCondition(cName, l1t::CondExternal, cType) {
0040 m_condCategory = l1t::CondExternal;
0041 }
0042
0043
0044 ExternalTemplate::ExternalTemplate(const ExternalTemplate& cp) : GlobalCondition(cp.m_condName) { copy(cp); }
0045
0046
0047 ExternalTemplate::~ExternalTemplate() {
0048
0049 }
0050
0051
0052 ExternalTemplate& ExternalTemplate::operator=(const ExternalTemplate& cp) {
0053 copy(cp);
0054 return *this;
0055 }
0056
0057 void ExternalTemplate::print(std::ostream& myCout) const {
0058 myCout << "\n ExternalTemplate print..." << std::endl;
0059
0060 GlobalCondition::print(myCout);
0061
0062 myCout << " External Channel " << m_extChannel << std::endl;
0063
0064
0065 myCout << std::dec << std::endl;
0066 }
0067
0068 void ExternalTemplate::copy(const ExternalTemplate& cp) {
0069 m_condName = cp.condName();
0070 m_condCategory = cp.condCategory();
0071 m_condType = cp.condType();
0072 m_objectType = cp.objectType();
0073 m_condGEq = cp.condGEq();
0074 m_condChipNr = cp.condChipNr();
0075 m_condRelativeBx = cp.condRelativeBx();
0076 m_extChannel = cp.extChannel();
0077 }
0078
0079
0080 std::ostream& operator<<(std::ostream& os, const ExternalTemplate& result) {
0081 result.print(os);
0082 return os;
0083 }