![]() |
![]() |
#include <L1TriggerConfig/DTTPGConfig/interface/DTConfigSectColl.h>
Public Member Functions | |
int | CoarseSync (int istat) const |
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station). | |
bool | debug () const |
Return the debug flag. | |
DTConfigSectColl () | |
Constructor. | |
DTConfigSectColl (const edm::ParameterSet &ps) | |
Constructor. | |
void | print () const |
Print the setup. | |
bool | SCGetCarryFlag (int istat) const |
Return carry in Sector Collector for station istat (1 means enabled, 0 disabled). | |
~DTConfigSectColl () | |
Destructor. | |
Static Public Attributes | |
static const int | default_csp = 0 |
Constant: Default Coarse Sync parameter. | |
static const int | NDTSC = 4 |
Constant: maximum number of Sector Collector sorting Chip in input to Sector Collector. | |
static const int | NTSPSC = 5 |
static const int | NTSTSC = 3 |
Constants: number of TSTheta/TSPhi in input to Sector Collector. | |
Private Member Functions | |
void | setDefaults (const edm::ParameterSet &ps) |
Load pset values into class variables. | |
Private Attributes | |
bool | m_debug |
int | m_sccsp [5] |
bool | m_scecf [4] |
Definition at line 37 of file DTConfigSectColl.h.
DTConfigSectColl::DTConfigSectColl | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 30 of file DTConfigSectColl.cc.
References debug(), print(), and setDefaults().
00030 { 00031 00032 setDefaults(ps); 00033 if(debug()) print(); 00034 00035 }
DTConfigSectColl::DTConfigSectColl | ( | ) | [inline] |
DTConfigSectColl::~DTConfigSectColl | ( | ) |
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station).
Definition at line 72 of file DTConfigSectColl.h.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and m_sccsp.
Referenced by DTSectCollThCand::CoarseSync(), DTSectCollPhCand::CoarseSync(), DTConfigManager::getBXOffset(), and print().
00072 { 00073 00074 if (istat<1 || istat>5){ 00075 std::cout << "DTConfigSectColl::CoarseSync: station number out of range: istat=" 00076 << istat << std::endl; 00077 return 0; 00078 } 00079 return m_sccsp[istat-1]; 00080 00081 }
bool DTConfigSectColl::debug | ( | ) | const [inline] |
Return the debug flag.
Definition at line 60 of file DTConfigSectColl.h.
References m_debug.
Referenced by DTConfigSectColl(), and print().
00060 { return m_debug; }
Print the setup.
Definition at line 106 of file DTConfigSectColl.cc.
References CoarseSync(), GenMuonPlsPt100GeV_cfg::cout, debug(), lat::endl(), and SCGetCarryFlag().
Referenced by DTConfigSectColl().
00106 { 00107 00108 std::cout << "******************************************************************************" << std::endl; 00109 std::cout << "* DTTrigger configuration : SectorCollector chips *" << std::endl; 00110 std::cout << "******************************************************************************" << std::endl << std::endl; 00111 std::cout << "Debug flag : " << debug() << std::endl; 00112 std::cout << "SCECF1 :" << SCGetCarryFlag(1) << std::endl; 00113 std::cout << "SCECF2 :" << SCGetCarryFlag(2) << std::endl; 00114 std::cout << "SCECF3 :" << SCGetCarryFlag(3) << std::endl; 00115 std::cout << "SCECF4 :" << SCGetCarryFlag(4) << std::endl; 00116 std::cout << "SCCSP1 :" << CoarseSync(1) << std::endl; 00117 std::cout << "SCCSP2 :" << CoarseSync(2) << std::endl; 00118 std::cout << "SCCSP3 :" << CoarseSync(3) << std::endl; 00119 std::cout << "SCCSP4 :" << CoarseSync(4) << std::endl; 00120 std::cout << "SCCSP5 :" << CoarseSync(5) << std::endl; 00121 std::cout << "******************************************************************************" << std::endl; 00122 00123 }
Return carry in Sector Collector for station istat (1 means enabled, 0 disabled).
Definition at line 63 of file DTConfigSectColl.h.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and m_scecf.
Referenced by print().
00063 { 00064 if (istat<1 || istat>4){ 00065 std::cout << "DTConfigSectColl::SCGetCarryFlag: station number out of range: istat=" << istat << std::endl; 00066 return 0; 00067 } 00068 return m_scecf[istat-1]; 00069 }
void DTConfigSectColl::setDefaults | ( | const edm::ParameterSet & | ps | ) | [private] |
Load pset values into class variables.
Definition at line 47 of file DTConfigSectColl.cc.
References GenMuonPlsPt100GeV_cfg::cout, default_csp, lat::endl(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_debug, m_sccsp, and m_scecf.
Referenced by DTConfigSectColl().
00047 { 00048 00049 // Debug flag 00050 m_debug = ps.getUntrackedParameter<bool>("Debug"); 00051 00052 // Enabling Carry in Sector Collector for MB1 (1 means enabled, 0 disabled) 00053 m_scecf[0] = ps.getParameter<bool>("SCECF1"); 00054 00055 // Enabling Carry in Sector Collector for MB2 (1 means enabled, 0 disabled) 00056 m_scecf[1] = ps.getParameter<bool>("SCECF2"); 00057 00058 // Enabling Carry in Sector Collector for MB3 (1 means enabled, 0 disabled) 00059 m_scecf[2] = ps.getParameter<bool>("SCECF3"); 00060 00061 // Enabling Carry in Sector Collector for MB4 (1 means enabled, 0 disabled) 00062 m_scecf[3] = ps.getParameter<bool>("SCECF4"); 00063 00064 // Progammable Coars Sync parameter in Sector Collector for MB1 (possible values [0-7]) 00065 int mycsp = ps.getParameter<int>("SCCSP1"); 00066 if (mycsp<0 || mycsp>7){ 00067 std::cout << "DTConfigSectColl::setDefaults: wrong SCCSP1 value! Using Default" << std::endl; 00068 mycsp = default_csp; 00069 } 00070 m_sccsp[0] = mycsp; 00071 00072 // Progammable Coars Sync parameter in Sector Collector for MB2 (possible values [0-7]) 00073 mycsp = ps.getParameter<int>("SCCSP2"); 00074 if (mycsp<0 || mycsp>7){ 00075 std::cout << "DTConfigSectColl::setDefaults: wrong SCCSP2 value! Using Default" << std::endl; 00076 mycsp = default_csp; 00077 } 00078 m_sccsp[1] = mycsp; 00079 00080 // Progammable Coars Sync parameter in Sector Collector for MB3 (possible values [0-7]) 00081 mycsp = ps.getParameter<int>("SCCSP3"); 00082 if (mycsp<0 || mycsp>7){ 00083 std::cout << "DTConfigSectColl::setDefaults: wrong SCCSP3 value! Using Default" << std::endl; 00084 mycsp = default_csp; 00085 } 00086 m_sccsp[2] = mycsp; 00087 00088 // Progammable Coars Sync parameter in Sector Collector for firts MB4 station (possible values [0-7]) 00089 mycsp = ps.getParameter<int>("SCCSP4"); 00090 if (mycsp<0 || mycsp>7){ 00091 std::cout << "DTConfigSectColl::setDefaults: wrong SCCSP4 value! Using Default" << std::endl; 00092 mycsp = default_csp; 00093 } 00094 m_sccsp[3] = mycsp; 00095 00096 // Progammable Coars Sync parameter in Sector Collector for second MB4 station (sectors 4 & 10) (possible values [0-7]) 00097 mycsp = ps.getParameter<int>("SCCSP5"); 00098 if (mycsp<0 || mycsp>7){ 00099 std::cout << "DTConfigSectColl::setDefaults: wrong SCCSP5 value! Using Default" << std::endl; 00100 mycsp = default_csp; 00101 } 00102 m_sccsp[4] = mycsp; 00103 }
const int DTConfigSectColl::default_csp = 0 [static] |
Constant: Default Coarse Sync parameter.
Definition at line 48 of file DTConfigSectColl.h.
Referenced by setDefaults().
bool DTConfigSectColl::m_debug [private] |
int DTConfigSectColl::m_sccsp[5] [private] |
bool DTConfigSectColl::m_scecf[4] [private] |
Definition at line 92 of file DTConfigSectColl.h.
Referenced by SCGetCarryFlag(), and setDefaults().
const int DTConfigSectColl::NDTSC = 4 [static] |
Constant: maximum number of Sector Collector sorting Chip in input to Sector Collector.
Definition at line 45 of file DTConfigSectColl.h.
const int DTConfigSectColl::NTSPSC = 5 [static] |
Definition at line 42 of file DTConfigSectColl.h.
const int DTConfigSectColl::NTSTSC = 3 [static] |
Constants: number of TSTheta/TSPhi in input to Sector Collector.
Definition at line 42 of file DTConfigSectColl.h.