4
4
#include < map>
5
5
#include < vector>
6
6
#include < string>
7
- #include < iostream >
7
+ #include < ostream >
8
8
9
9
#include " DataFormats/CSCDigi/interface/CSCDCCFormatStatusDigi.h"
10
10
@@ -30,34 +30,6 @@ class CSCDCCExaminer {
30
30
std::map<DDUIdType,ExaminerStatusType> bDDU_ERR; // ddu <-> errors in bits
31
31
std::map<DDUIdType,ExaminerStatusType> bDDU_WRN; // ddu <-> errors in bits
32
32
33
- class OStream : public std ::ostream {
34
- private:
35
- class buffer : public std ::streambuf{};
36
- buffer buff;
37
- std::streambuf *stream;
38
- std::streambuf *null;
39
- std::string name;
40
-
41
- public:
42
- void show (void ){ rdbuf (stream); }
43
- void hide (void ){ rdbuf (null); }
44
- void sign (std::string nm) { name=nm; }
45
- void sign (const char *nm){ name=nm; }
46
-
47
- void redirect (std::ostream &str){
48
- stream = str.rdbuf (); tie (&str);
49
- if ( rdbuf () != null ) rdbuf (stream);
50
- }
51
-
52
- template <class T > std::ostream& operator <<(const T& val){
53
- return (*(std::ostream*)this )<<name<<val;
54
- }
55
-
56
- OStream (void ):std::ostream(std::cout.rdbuf()),buff(),stream(std::cout.rdbuf()),null(&buff),name(" " ){}
57
- OStream (std::ostream &str):std::ostream(str.rdbuf()),buff(),stream(str.rdbuf()),null(&buff),name(" " ){}
58
- };
59
-
60
- OStream cout, cerr;
61
33
62
34
CSCIdType currentChamber; // ( (CrateNumber<<4) + DMBslot ) specifies chamber
63
35
@@ -145,8 +117,6 @@ class CSCDCCExaminer {
145
117
const uint16_t *buffer_start;
146
118
147
119
public:
148
- OStream& output1 (void ){ return cout; }
149
- OStream& output2 (void ){ return cerr; }
150
120
151
121
int32_t check (const uint16_t * &buffer, int32_t length);
152
122
0 commit comments