Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
L1Trigger
TrackFindingTMTT
interface
PrintL1trk.h
Go to the documentation of this file.
1
#ifndef L1Trigger_TrackFindingTMTT_PrintL1trk
2
#define L1Trigger_TrackFindingTMTT_PrintL1trk
3
4
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
5
#include <iomanip>
6
7
// Use LogVerbatim with "L1track" category & floating point precision specified here.
8
// Example use: PrintL1trk() << "My message "<<x<<" more text".
9
10
namespace
tmtt {
11
12
class
PrintL1trk
{
13
public
:
14
PrintL1trk
(
unsigned
int
nDigits = 4) :
lv_
(
"L1track"
),
nDigits_
(nDigits){};
15
16
template
<
class
T>
17
edm::LogVerbatim
&
operator<<
(
const
T
&
t
) {
18
lv_
<< std::fixed << std::setprecision(
nDigits_
) <<
t
;
19
return
lv_
;
20
}
21
22
private
:
23
edm::LogVerbatim
lv_
;
24
const
unsigned
int
nDigits_
;
25
};
26
27
}
// namespace tmtt
28
29
#endif
tmtt::PrintL1trk::lv_
edm::LogVerbatim lv_
Definition:
PrintL1trk.h:23
MessageLogger.h
tmtt::PrintL1trk::PrintL1trk
PrintL1trk(unsigned int nDigits=4)
Definition:
PrintL1trk.h:14
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
tmtt::PrintL1trk
Definition:
PrintL1trk.h:12
tmtt::PrintL1trk::nDigits_
const unsigned int nDigits_
Definition:
PrintL1trk.h:24
tmtt::PrintL1trk::operator<<
edm::LogVerbatim & operator<<(const T &t)
Definition:
PrintL1trk.h:17
edm::Log
Definition:
MessageLogger.h:70
T
long double T
Definition:
Basic3DVectorLD.h:48
Generated for CMSSW Reference Manual by
1.8.5