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 ()
 Constructor. More...
 
 DTConfigTrigUnit (const edm::ParameterSet &ps)
 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.

30  {
31  setDefaults(ps);
32  if (debug())
33  print();
34 }

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

◆ 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.

48 { return m_debug; }

References m_debug.

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

◆ print()

void DTConfigTrigUnit::print ( void  ) const

Print the setup.

Definition at line 50 of file DTConfigTrigUnit.cc.

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 }

References gather_cfg::cout, and debug().

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

◆ setDebug()

void DTConfigTrigUnit::setDebug ( bool  debug)
inline

Set debug flag.

Definition at line 54 of file DTConfigTrigUnit.h.

54 { m_debug = debug; }

References debug(), and m_debug.

Referenced by DTConfigDBProducer::readDTCCBConfig().

◆ setDefaults()

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

Load pset values into class variables.

Definition at line 45 of file DTConfigTrigUnit.cc.

45  {
46  // Debug flag
47  m_debug = m_ps.getUntrackedParameter<bool>("Debug");
48 }

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

Referenced by DTConfigTrigUnit().

Member Data Documentation

◆ m_debug

bool DTConfigTrigUnit::m_debug
private

Definition at line 60 of file DTConfigTrigUnit.h.

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

gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTConfigTrigUnit::print
void print() const
Print the setup.
Definition: DTConfigTrigUnit.cc:50
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
DTConfigTrigUnit::setDefaults
void setDefaults(const edm::ParameterSet &m_ps)
Load pset values into class variables.
Definition: DTConfigTrigUnit.cc:45
DTConfigTrigUnit::debug
bool debug() const
Debug flag.
Definition: DTConfigTrigUnit.h:48
DTConfigTrigUnit::m_debug
bool m_debug
Definition: DTConfigTrigUnit.h:60