Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1TriggerConfig
DTTPGConfig
src
DTConfigTrigUnit.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Class: DTConfigTrigUnit
4
//
5
// Description: Configurable parameters and constants
6
// for Level1 Mu DT Trigger - Trigger Unit (DT chamber MiniCrate)
7
//
8
//
9
// Author List:
10
// S. Vanini
11
//
12
//-----------------------------------------------------------------------
13
14
//-----------------------
15
// This Class's Header --
16
//-----------------------
17
#include "
L1TriggerConfig/DTTPGConfig/interface/DTConfigTrigUnit.h
"
18
19
//---------------
20
// C++ Headers --
21
//---------------
22
23
//-------------------------------
24
// Collaborating Class Headers --
25
//-------------------------------
26
27
//----------------
28
// Constructors --
29
//----------------
30
DTConfigTrigUnit::DTConfigTrigUnit
(
const
edm::ParameterSet
& ps) {
31
32
setDefaults
(ps);
33
if
(
debug
())
print
();
34
35
}
36
37
//--------------
38
// Destructor --
39
//--------------
40
DTConfigTrigUnit::~DTConfigTrigUnit
() {}
41
42
//--------------
43
// Operations --
44
//--------------
45
46
void
47
DTConfigTrigUnit::setDefaults
(
const
edm::ParameterSet
& m_ps) {
48
49
// Debug flag
50
m_debug
= m_ps.
getUntrackedParameter
<
bool
>(
"Debug"
);
51
52
}
53
54
void
55
DTConfigTrigUnit::print
()
const
{
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
}
64
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:47
DTConfigTrigUnit::~DTConfigTrigUnit
~DTConfigTrigUnit()
Destructor.
Definition:
DTConfigTrigUnit.cc:40
DTConfigTrigUnit::print
void print() const
Print the setup.
Definition:
DTConfigTrigUnit.cc:55
DTConfigTrigUnit::debug
bool debug() const
Debug flag.
Definition:
DTConfigTrigUnit.h:50
DTConfigTrigUnit.h
DTConfigTrigUnit::m_debug
bool m_debug
Definition:
DTConfigTrigUnit.h:63
DTConfigTrigUnit::DTConfigTrigUnit
DTConfigTrigUnit()
Constructor.
Definition:
DTConfigTrigUnit.h:44
edm::ParameterSet
Definition:
ParameterSet.h:35
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
Generated for CMSSW Reference Manual by
1.8.5