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.
int MCDigiOffset () const
 Digi-to-bti-input offset 500 (tdc units) --> wait to solve with Nicola Amapane.
int MCSetupTime () const
 Minicrate "fine" sincronization parameter [0,25] ns.
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
int m_digioffset
int m_setuptime

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; }
int DTConfigTrigUnit::MCDigiOffset ( ) const [inline]

Digi-to-bti-input offset 500 (tdc units) --> wait to solve with Nicola Amapane.

Definition at line 53 of file DTConfigTrigUnit.h.

References m_digioffset.

Referenced by DTFineDelayCorr::runClientDiagnostic().

{ return m_digioffset; }
int DTConfigTrigUnit::MCSetupTime ( ) const [inline]

Minicrate "fine" sincronization parameter [0,25] ns.

Definition at line 56 of file DTConfigTrigUnit.h.

References m_setuptime.

Referenced by DTBtiCard::setConfig().

{ return  m_setuptime; }
void DTConfigTrigUnit::print ( void  ) const

Print the setup.

Definition at line 61 of file DTConfigTrigUnit.cc.

References gather_cfg::cout, debug(), m_digioffset, and m_setuptime.

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 << "MiniCrate digi offset in tdc units : " << m_digioffset << std::endl;
  std::cout << "MiniCrate setup time : fine syncronization : " << m_setuptime << std::endl;
  std::cout << "******************************************************************************" << std::endl;

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

Set debug flag.

Definition at line 65 of file DTConfigTrigUnit.h.

References debug(), and m_debug.

Referenced by DTConfigDBProducer::readDTCCBConfig().

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::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_debug, m_digioffset, and m_setuptime.

Referenced by DTConfigTrigUnit().

                                                         {

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

  // MiniCrate digi offset in tdc units
  m_digioffset = m_ps.getParameter<int>("DIGIOFFSET");

  // MiniCrate setup time : fine syncronization
  m_setuptime = m_ps.getParameter<int>("SINCROTIME");

}

Member Data Documentation

bool DTConfigTrigUnit::m_debug [private]

Definition at line 74 of file DTConfigTrigUnit.h.

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

Definition at line 75 of file DTConfigTrigUnit.h.

Referenced by MCDigiOffset(), print(), and setDefaults().

Definition at line 76 of file DTConfigTrigUnit.h.

Referenced by MCSetupTime(), print(), and setDefaults().