CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

DTConfigTrigUnit Class Reference

#include <DTConfigTrigUnit.h>

Inheritance diagram for DTConfigTrigUnit:
DTConfig

List of all members.

Public Member Functions

bool debug () const
 Debug flag.
 DTConfigTrigUnit (const edm::ParameterSet &ps)
 Constructor.
 DTConfigTrigUnit ()
 Constructor.
void print () const
 Print the setup.
void setDebug (bool debug)
 Set debug flag.
 ~DTConfigTrigUnit ()
 Destructor.

Private Member Functions

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

Private Attributes

bool m_debug

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().

                                                            { 

  setDefaults(ps);
  if(debug()) print();

}
DTConfigTrigUnit::DTConfigTrigUnit ( ) [inline]

Constructor.

Definition at line 44 of file DTConfigTrigUnit.h.

{};
DTConfigTrigUnit::~DTConfigTrigUnit ( )

Destructor.

Definition at line 40 of file DTConfigTrigUnit.cc.

{}

Member Function Documentation

bool DTConfigTrigUnit::debug ( ) const [inline]

Debug flag.

Definition at line 50 of file DTConfigTrigUnit.h.

References m_debug.

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

{ 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 DTConfigTrigUnit().

                              {

  std::cout << "******************************************************************************" << std::endl;
  std::cout << "*              DTTrigger configuration : Trigger Unit parameters             *" << std::endl;
  std::cout << "******************************************************************************" << std::endl << std::endl;
  std::cout << "Debug flag : " <<  debug()     << std::endl;
  std::cout << "******************************************************************************" << std::endl;

}
void DTConfigTrigUnit::setDebug ( bool  debug) [inline]

Set debug flag.

Definition at line 56 of file DTConfigTrigUnit.h.

References debug(), and m_debug.

Referenced by DTConfigDBProducer::readDTCCBConfig().

{ m_debug = debug; }
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().

                                                         {

  // Debug flag 
  m_debug = m_ps.getUntrackedParameter<bool>("Debug");

}

Member Data Documentation

bool DTConfigTrigUnit::m_debug [private]

Definition at line 63 of file DTConfigTrigUnit.h.

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