CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 //-----------------------
18 
19 //---------------
20 // C++ Headers --
21 //---------------
22 
23 //-------------------------------
24 // Collaborating Class Headers --
25 //-------------------------------
26 
27 //----------------
28 // Constructors --
29 //----------------
31 
32  setDefaults(ps);
33  if(debug()) print();
34 
35 }
36 
37 //--------------
38 // Destructor --
39 //--------------
41 
42 //--------------
43 // Operations --
44 //--------------
45 
46 void
48 
49  // Debug flag
50  m_debug = m_ps.getUntrackedParameter<bool>("Debug");
51 
52  // MiniCrate digi offset in tdc units
53  m_digioffset = m_ps.getParameter<int>("DIGIOFFSET");
54 
55  // MiniCrate setup time : fine syncronization
56  m_setuptime = m_ps.getParameter<int>("SINCROTIME");
57 
58 }
59 
60 void
62 
63  std::cout << "******************************************************************************" << std::endl;
64  std::cout << "* DTTrigger configuration : Trigger Unit parameters *" << std::endl;
65  std::cout << "******************************************************************************" << std::endl << std::endl;
66  std::cout << "Debug flag : " << debug() << std::endl;
67  std::cout << "MiniCrate digi offset in tdc units : " << m_digioffset << std::endl;
68  std::cout << "MiniCrate setup time : fine syncronization : " << m_setuptime << std::endl;
69  std::cout << "******************************************************************************" << std::endl;
70 
71 }
72 
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void setDefaults(const edm::ParameterSet &m_ps)
Load pset values into class variables.
~DTConfigTrigUnit()
Destructor.
void print() const
Print the setup.
bool debug() const
Debug flag.
DTConfigTrigUnit()
Constructor.
tuple cout
Definition: gather_cfg.py:41