CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CommissioningAnalysis.cc
Go to the documentation of this file.
5 #include <iomanip>
6 
7 // ----------------------------------------------------------------------------
8 //
10  : fecKey_(key),
11  fedKey_(sistrip::invalid32_),
12  dcuId_(sistrip::invalid32_),
13  detId_(sistrip::invalid32_),
14  myName_(my_name),
15  errors_(VString(0, "")) {
16  ;
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 //
33 void CommissioningAnalysis::header(std::stringstream& ss) const {
34  ss << "[" << myName() << "] Monitorables (65535 means \"invalid\"):" << std::endl;
35 
36  //summary(ss);
37 
38  SiStripFecKey fec_key(fecKey_);
39  ss << " Crate/FEC/Ring/CCU/Mod/LLD : " << fec_key.fecCrate() << "/" << fec_key.fecSlot() << "/"
40  << fec_key.fecRing() << "/" << fec_key.ccuAddr() << "/" << fec_key.ccuChan() << "/" << fec_key.lldChan()
41  << std::endl;
42 
43  SiStripFedKey fed_key(fedKey_);
44  ss << " FedId/FeUnit/FeChan/FedChannel : " << fed_key.fedId() << "/" << fed_key.feUnit() << "/" << fed_key.feChan()
45  << "/" << fed_key.fedChannel() << std::endl;
46  // if ( fed_key.fedChannel() != sistrip::invalid_ ) { ss << fed_key.fedChannel(); }
47  // else { ss << "(invalid)"; }
48  // ss << std::endl;
49 
50  // ss << " FecKey/Fedkey (hex) : 0x"
51  // << std::hex
52  // << std::setw(8) << std::setfill('0') << fecKey_
53  // << " / 0x"
54  // << std::setw(8) << std::setfill('0') << fedKey_
55  // << std::dec
56  // << std::endl;
57 
58  ss << " FecKey (hex/dec) : 0x" << std::hex << std::setw(8) << std::setfill('0') << fecKey_ << " / "
59  << std::dec << std::setw(10) << std::setfill(' ') << fecKey_ << std::endl;
60 
61  ss << " FedKey (hex/dec) : 0x" << std::hex << std::setw(8) << std::setfill('0') << fedKey_ << " / "
62  << std::dec << std::setw(10) << std::setfill(' ') << fedKey_ << std::endl;
63 
64  ss << " DcuId (hex/dec) : 0x" << std::hex << std::setw(8) << std::setfill('0') << dcuId_ << " / "
65  << std::dec << std::setw(10) << std::setfill(' ') << dcuId_ << std::endl;
66 
67  ss << " DetId (hex/dec) : 0x" << std::hex << std::setw(8) << std::setfill('0') << detId_ << " / "
68  << std::dec << std::setw(10) << std::setfill(' ') << detId_ << std::endl;
69 }
70 
71 // ----------------------------------------------------------------------------
72 //
73 void CommissioningAnalysis::summary(std::stringstream& ss) const {
74  SiStripFecKey fec_key(fecKey_);
75 
79  .title();
80 
81  ss << " Summary"
82  << ":" << (isValid() ? "Valid" : "Invalid") << ":" << sistrip::controlView_ << ":" << fec_key.fecCrate() << "/"
83  << fec_key.fecSlot() << "/" << fec_key.fecRing() << "/" << fec_key.ccuAddr() << "/" << fec_key.ccuChan() << ":"
84  << sistrip::dqmRoot_ << sistrip::dir_ << "Collate" << sistrip::dir_
85  << SiStripFecKey(fec_key.fecCrate(), fec_key.fecSlot(), fec_key.fecRing(), fec_key.ccuAddr(), fec_key.ccuChan())
86  .path()
87  << ":" << title << std::endl;
88 }
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_[]
tuple key
prepare the HTCondor submission files and eventually submit them
static const char dqmRoot_[]
static const char fecKey_[]
uint16_t fedChannel() const
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