CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
DTConfigTrigUnit Class Reference

#include <DTConfigTrigUnit.h>

Inheritance diagram for DTConfigTrigUnit:
DTConfig

Public Member Functions

bool debug () const
 Debug flag. More...
 
 DTConfigTrigUnit (const edm::ParameterSet &ps)
 Constructor. More...
 
 DTConfigTrigUnit ()
 Constructor. More...
 
void print () const
 Print the setup. More...
 
void setDebug (bool debug)
 Set debug flag. More...
 
 ~DTConfigTrigUnit () override
 Destructor. More...
 
- Public Member Functions inherited from DTConfig
 DTConfig ()
 Constructor. More...
 
virtual ~DTConfig ()
 Destructor. More...
 

Private Member Functions

void setDefaults (const edm::ParameterSet &m_ps)
 Load pset values into class variables. More...
 

Private Attributes

bool m_debug
 

Additional Inherited Members

- Static Public Attributes inherited from DTConfig
static const int NBTITC = 4
 
static const int NSTEPF = 9
 
static const int NSTEPL = 24
 Constants: first and last step to start trigger finding. More...
 
static const int NTCTSS = 4
 Constant: number of TRACOs in input to a TSS. More...
 

Detailed Description

Configurable parameters and constants for Level-1 Muon DT Trigger - Trigger Unit

Author
S. Vanini

Definition at line 36 of file DTConfigTrigUnit.h.

Constructor & Destructor Documentation

◆ DTConfigTrigUnit() [1/2]

DTConfigTrigUnit::DTConfigTrigUnit ( const edm::ParameterSet ps)

Constructor.

Definition at line 30 of file DTConfigTrigUnit.cc.

References debug(), print(), and setDefaults().

30  {
31  setDefaults(ps);
32  if (debug())
33  print();
34 }
void setDefaults(const edm::ParameterSet &m_ps)
Load pset values into class variables.
bool debug() const
Debug flag.
void print() const
Print the setup.

◆ DTConfigTrigUnit() [2/2]

DTConfigTrigUnit::DTConfigTrigUnit ( )
inline

Constructor.

Definition at line 42 of file DTConfigTrigUnit.h.

42 {};

◆ ~DTConfigTrigUnit()

DTConfigTrigUnit::~DTConfigTrigUnit ( )
override

Destructor.

Definition at line 39 of file DTConfigTrigUnit.cc.

39 {}

Member Function Documentation

◆ debug()

bool DTConfigTrigUnit::debug ( ) const
inline

Debug flag.

Definition at line 48 of file DTConfigTrigUnit.h.

References m_debug.

Referenced by DTConfigTrigUnit(), print(), and setDebug().

48 { return m_debug; }

◆ print()

void DTConfigTrigUnit::print ( void  ) const

Print the setup.

Definition at line 50 of file DTConfigTrigUnit.cc.

References gather_cfg::cout, and debug().

Referenced by DTConfigTester::analyze(), and DTConfigTrigUnit().

50  {
51  std::cout << "******************************************************************************" << std::endl;
52  std::cout << "* DTTrigger configuration : Trigger Unit parameters *" << std::endl;
53  std::cout << "******************************************************************************" << std::endl
54  << std::endl;
55  std::cout << "Debug flag : " << debug() << std::endl;
56  std::cout << "******************************************************************************" << std::endl;
57 }
bool debug() const
Debug flag.

◆ setDebug()

void DTConfigTrigUnit::setDebug ( bool  debug)
inline

Set debug flag.

Definition at line 54 of file DTConfigTrigUnit.h.

References debug(), and m_debug.

Referenced by DTConfigDBProducer::readDTCCBConfig().

54 { m_debug = debug; }
bool debug() const
Debug flag.

◆ setDefaults()

void DTConfigTrigUnit::setDefaults ( const edm::ParameterSet m_ps)
private

Load pset values into class variables.

Definition at line 45 of file DTConfigTrigUnit.cc.

References edm::ParameterSet::getUntrackedParameter(), and m_debug.

Referenced by DTConfigTrigUnit().

45  {
46  // Debug flag
47  m_debug = m_ps.getUntrackedParameter<bool>("Debug");
48 }
T getUntrackedParameter(std::string const &, T const &) const

Member Data Documentation

◆ m_debug

bool DTConfigTrigUnit::m_debug
private

Definition at line 60 of file DTConfigTrigUnit.h.

Referenced by debug(), setDebug(), and setDefaults().