CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PrintL1trk.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTMTT_PrintL1trk
2 #define L1Trigger_TrackFindingTMTT_PrintL1trk
3 
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>
18  lv_ << std::fixed << std::setprecision(nDigits_) << t;
19  return lv_;
20  }
21 
22  private:
24  const unsigned int nDigits_;
25  };
26 
27 } // namespace tmtt
28 
29 #endif
edm::LogVerbatim lv_
Definition: PrintL1trk.h:23
PrintL1trk(unsigned int nDigits=4)
Definition: PrintL1trk.h:14
const unsigned int nDigits_
Definition: PrintL1trk.h:24
edm::LogVerbatim & operator<<(const T &t)
Definition: PrintL1trk.h:17
long double T