CMS 3D CMS Logo

CommissioningAnalysis.cc
Go to the documentation of this file.
5 #include <iomanip>
6 
7 // ----------------------------------------------------------------------------
8 //
10  : fecKey_(key),
12  dcuId_(sistrip::invalid32_),
13  detId_(sistrip::invalid32_),
14  myName_(my_name),
15  errors_(VString(0, "")) {
16  ;
17 }
18 
19 // ----------------------------------------------------------------------------
20 //
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 }
SiStripEnumsAndStrings::runType
static std::string runType(const sistrip::RunType &)
Definition: SiStripEnumsAndStrings.cc:39
sistrip::invalid32_
static const uint32_t invalid32_
Definition: Constants.h:15
CommissioningAnalysis.h
SiStripFecKey::lldChan
const uint16_t & lldChan() const
Definition: SiStripFecKey.h:203
CommissioningAnalysis::fedKey
const uint32_t & fedKey() const
Definition: CommissioningAnalysis.h:134
sistrip::fedKey_
static const char fedKey_[]
Definition: ConstantsForKeyType.h:21
sistrip::dir_
static const char dir_[]
Definition: ConstantsForDqm.h:17
CommissioningAnalysis::summary
virtual void summary(std::stringstream &) const
Definition: CommissioningAnalysis.cc:73
SiStripFecKey::fecCrate
const uint16_t & fecCrate() const
Definition: SiStripFecKey.h:198
sistrip::RunType
RunType
Definition: ConstantsForRunType.h:70
SiStripFedKey
A container class for generic run and event-related info, information required by the commissioning a...
Definition: SiStripFedKey.h:56
CommissioningAnalysis::dcuId_
uint32_t dcuId_
Definition: CommissioningAnalysis.h:117
CommissioningAnalysis::isValid
virtual bool isValid() const
Definition: CommissioningAnalysis.h:47
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
sistrip::fecKey_
static const char fecKey_[]
Definition: ConstantsForKeyType.h:22
CommissioningAnalysis::header
virtual void header(std::stringstream &) const
Definition: CommissioningAnalysis.cc:33
CommissioningAnalysis::detId_
uint32_t detId_
Definition: CommissioningAnalysis.h:120
SiStripFecKey::fecRing
const uint16_t & fecRing() const
Definition: SiStripFecKey.h:200
sistrip::EXPERT_HISTO
Definition: ConstantsForHistoType.h:29
SiStripFecKey
Utility class that identifies a position within the strip tracker control structure,...
Definition: SiStripFecKey.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripFecKey::ccuChan
const uint16_t & ccuChan() const
Definition: SiStripFecKey.h:202
CommissioningAnalysis::CommissioningAnalysis
CommissioningAnalysis()
Definition: CommissioningAnalysis.h:105
SiStripConstants.h
sistrip::controlView_
static const char controlView_[]
Definition: ConstantsForView.h:21
SiStripFedKey::feUnit
const uint16_t & feUnit() const
Definition: SiStripFedKey.h:189
sistrip::dqmRoot_
static const char dqmRoot_[]
Definition: ConstantsForDqm.h:28
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
type
type
Definition: HCALResponse.h:21
SiStripFedKey::fedChannel
uint16_t fedChannel() const
Definition: SiStripFedKey.h:192
SiStripEnumsAndStrings.h
SiStripFecKey::ccuAddr
const uint16_t & ccuAddr() const
Definition: SiStripFecKey.h:201
SiStripHistoTitle.h
CommissioningAnalysis::fedKey_
uint32_t fedKey_
Definition: CommissioningAnalysis.h:114
CommissioningAnalysis::myName
const std::string & myName() const
Definition: CommissioningAnalysis.h:139
SiStripHistoTitle
Utility class that holds histogram title.
Definition: SiStripHistoTitle.h:20
CommissioningAnalysis::fecKey_
uint32_t fecKey_
Definition: CommissioningAnalysis.h:111
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
CommissioningAnalysis::VString
std::vector< std::string > VString
Definition: CommissioningAnalysis.h:42
sistrip::FED_KEY
Definition: ConstantsForKeyType.h:30
sistrip
sistrip classes
Definition: SiStripQualityHelpers.h:14
SiStripFecKey::fecSlot
const uint16_t & fecSlot() const
Definition: SiStripFecKey.h:199
crabWrapper.key
key
Definition: crabWrapper.py:19
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
sistrip::LLD_CHAN
Definition: ConstantsForGranularity.h:78
SiStripFedKey::fedId
const uint16_t & fedId() const
Definition: SiStripFedKey.h:188
SiStripFedKey::feChan
const uint16_t & feChan() const
Definition: SiStripFedKey.h:190