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

Constructor.

Definition at line 30 of file DTConfigTrigUnit.cc.

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

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

Constructor.

Definition at line 44 of file DTConfigTrigUnit.h.

References ~DTConfigTrigUnit().

44 {};
DTConfigTrigUnit::~DTConfigTrigUnit ( )

Destructor.

Definition at line 40 of file DTConfigTrigUnit.cc.

Referenced by DTConfigTrigUnit().

40 {}

Member Function Documentation

bool DTConfigTrigUnit::debug ( ) const
inline

Debug flag.

Definition at line 50 of file DTConfigTrigUnit.h.

References m_debug, and print().

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

50 { return m_debug; }
void DTConfigTrigUnit::print ( void  ) const

Print the setup.

Definition at line 55 of file DTConfigTrigUnit.cc.

References gather_cfg::cout, and debug().

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

55  {
56 
57  std::cout << "******************************************************************************" << std::endl;
58  std::cout << "* DTTrigger configuration : Trigger Unit parameters *" << std::endl;
59  std::cout << "******************************************************************************" << std::endl << std::endl;
60  std::cout << "Debug flag : " << debug() << std::endl;
61  std::cout << "******************************************************************************" << std::endl;
62 
63 }
bool debug() const
Debug flag.
void DTConfigTrigUnit::setDebug ( bool  debug)
inline

Set debug flag.

Definition at line 56 of file DTConfigTrigUnit.h.

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

Referenced by DTConfigDBProducer::readDTCCBConfig().

56 { m_debug = debug; }
bool debug() const
Debug flag.
void DTConfigTrigUnit::setDefaults ( const edm::ParameterSet m_ps)
private

Load pset values into class variables.

Definition at line 47 of file DTConfigTrigUnit.cc.

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

Referenced by DTConfigTrigUnit(), and setDebug().

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

Member Data Documentation

bool DTConfigTrigUnit::m_debug
private

Definition at line 63 of file DTConfigTrigUnit.h.

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