test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CommissioningAnalysis.cc
Go to the documentation of this file.
5 #include <iomanip>
6 
7 // ----------------------------------------------------------------------------
8 //
10  const std::string& my_name )
11  : fecKey_( key ),
12  fedKey_(sistrip::invalid32_),
13  dcuId_(sistrip::invalid32_),
14  detId_(sistrip::invalid32_),
15  myName_(my_name),
16  errors_(VString(0,""))
17 {;}
18 
19 // ----------------------------------------------------------------------------
20 //
22  : fecKey_(sistrip::invalid32_),
23  fedKey_(sistrip::invalid32_),
24  dcuId_(sistrip::invalid32_),
25  detId_(sistrip::invalid32_),
26  myName_(my_name),
27  errors_(VString(0,""))
28 {;}
29 
30 // ----------------------------------------------------------------------------
31 //
32 void CommissioningAnalysis::header( std::stringstream& ss ) const {
33  ss << "[" << myName() << "] Monitorables (65535 means \"invalid\"):" << std::endl;
34 
35  //summary(ss);
36 
37  SiStripFecKey fec_key( fecKey_ );
38  ss << " Crate/FEC/Ring/CCU/Mod/LLD : "
39  << fec_key.fecCrate() << "/"
40  << fec_key.fecSlot() << "/"
41  << fec_key.fecRing() << "/"
42  << fec_key.ccuAddr() << "/"
43  << fec_key.ccuChan() << "/"
44  << fec_key.lldChan()
45  << std::endl;
46 
47  SiStripFedKey fed_key( fedKey_ );
48  ss << " FedId/FeUnit/FeChan/FedChannel : "
49  << fed_key.fedId() << "/"
50  << fed_key.feUnit() << "/"
51  << fed_key.feChan() << "/"
52  << fed_key.fedChannel()
53  << std::endl;
54  // if ( fed_key.fedChannel() != sistrip::invalid_ ) { ss << fed_key.fedChannel(); }
55  // else { ss << "(invalid)"; }
56  // ss << std::endl;
57 
58 // ss << " FecKey/Fedkey (hex) : 0x"
59 // << std::hex
60 // << std::setw(8) << std::setfill('0') << fecKey_
61 // << " / 0x"
62 // << std::setw(8) << std::setfill('0') << fedKey_
63 // << std::dec
64 // << std::endl;
65 
66  ss << " FecKey (hex/dec) : 0x"
67  << std::hex
68  << std::setw(8) << std::setfill('0') << fecKey_
69  << " / "
70  << std::dec
71  << std::setw(10) << std::setfill(' ') << fecKey_
72  << std::endl;
73 
74  ss << " FedKey (hex/dec) : 0x"
75  << std::hex
76  << std::setw(8) << std::setfill('0') << fedKey_
77  << " / "
78  << std::dec
79  << std::setw(10) << std::setfill(' ') << fedKey_
80  << std::endl;
81 
82  ss << " DcuId (hex/dec) : 0x"
83  << std::hex
84  << std::setw(8) << std::setfill('0') << dcuId_
85  << " / "
86  << std::dec
87  << std::setw(10) << std::setfill(' ') << dcuId_
88  << std::endl;
89 
90  ss << " DetId (hex/dec) : 0x"
91  << std::hex
92  << std::setw(8) << std::setfill('0') << detId_
93  << " / "
94  << std::dec
95  << std::setw(10) << std::setfill(' ') << detId_
96  << std::endl;
97 
98 }
99 
100 // ----------------------------------------------------------------------------
101 //
102 void CommissioningAnalysis::summary( std::stringstream& ss ) const {
103 
104  SiStripFecKey fec_key( fecKey_ );
105 
108  type,
110  fedKey(),
112  fec_key.lldChan() ).title();
113 
114  ss << " Summary"
115  << ":"
116  << ( isValid() ? "Valid" : "Invalid" )
117  << ":"
118  << sistrip::controlView_ << ":"
119  << fec_key.fecCrate() << "/"
120  << fec_key.fecSlot() << "/"
121  << fec_key.fecRing() << "/"
122  << fec_key.ccuAddr() << "/"
123  << fec_key.ccuChan()
124  << ":"
126  << "Collate" << sistrip::dir_
127  << SiStripFecKey( fec_key.fecCrate(),
128  fec_key.fecSlot(),
129  fec_key.fecRing(),
130  fec_key.ccuAddr(),
131  fec_key.ccuChan() ).path()
132  << ":"
133  << title
134  << std::endl;
135 
136 }
type
Definition: HCALResponse.h:21
const uint32_t & fedKey() const
virtual void summary(std::stringstream &) const
const uint16_t & fecRing() const
static const char dir_[]
Utility class that holds histogram title.
A container class for generic run and event-related info, information required by the commissioning a...
Definition: SiStripFedKey.h:56
virtual bool isValid() const
static const uint32_t invalid32_
Definition: Constants.h:15
static const char fedKey_[]
const uint16_t & lldChan() const
const uint16_t & fecSlot() const
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:45
static std::string runType(const sistrip::RunType &)
static const char controlView_[]
static const char dqmRoot_[]
static const char fecKey_[]
uint16_t fedChannel() const
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const uint16_t & fecCrate() const
const uint16_t & feUnit() const
virtual void header(std::stringstream &) const
const uint16_t & ccuAddr() const
std::vector< std::string > VString
const uint16_t & feChan() const
const uint16_t & ccuChan() const
const uint16_t & fedId() const
const std::string & myName() const