CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
CommissioningAnalysis Class Referenceabstract

Abstract base for derived classes that provide analysis of commissioning histograms. More...

#include <CommissioningAnalysis.h>

Inheritance diagram for CommissioningAnalysis:
ApvLatencyAnalysis ApvTimingAnalysis CalibrationAnalysis CalibrationScanAnalysis DaqScopeModeAnalysis FastFedCablingAnalysis FedCablingAnalysis FedTimingAnalysis NoiseAnalysis OptoScanAnalysis PedestalsAnalysis PedsFullNoiseAnalysis PedsOnlyAnalysis SamplingAnalysis VpspScanAnalysis

Public Types

typedef std::vector< bool > VBool
 
typedef std::vector< float > VFloat
 
typedef std::vector< uint16_t > VInt
 
typedef std::vector< std::string > VString
 
typedef std::vector< VBoolVVBool
 
typedef std::vector< VFloatVVFloat
 
typedef std::vector< VIntVVInt
 

Public Member Functions

virtual void addErrorCode (const std::string &error)
 
 CommissioningAnalysis (const uint32_t &key, const std::string &my_name)
 
 CommissioningAnalysis (const std::string &my_name)
 
const uint32_t & dcuId () const
 
void dcuId (const uint32_t &)
 
const uint32_t & detId () const
 
void detId (const uint32_t &)
 
const uint32_t & fecKey () const
 
void fecKey (const uint32_t &)
 
const uint32_t & fedKey () const
 
void fedKey (const uint32_t &)
 
const VStringgetErrorCodes () const
 
virtual void header (std::stringstream &) const
 
virtual bool isValid () const
 
const std::string & myName () const
 
virtual void print (std::stringstream &, uint32_t not_used=0)=0
 
virtual void reset ()=0
 
void setErrorCodes (const VString &errors)
 
virtual void summary (std::stringstream &) const
 
virtual ~CommissioningAnalysis ()
 

Private Member Functions

 CommissioningAnalysis ()
 

Private Attributes

uint32_t dcuId_
 
uint32_t detId_
 
VString errors_
 
uint32_t fecKey_
 
uint32_t fedKey_
 
std::string myName_
 

Detailed Description

Abstract base for derived classes that provide analysis of commissioning histograms.

Author
M.Wingham, R.Bainbridge

Definition at line 18 of file CommissioningAnalysis.h.

Member Typedef Documentation

typedef std::vector<bool> CommissioningAnalysis::VBool

Definition at line 38 of file CommissioningAnalysis.h.

typedef std::vector<float> CommissioningAnalysis::VFloat

Definition at line 30 of file CommissioningAnalysis.h.

typedef std::vector<uint16_t> CommissioningAnalysis::VInt

Definition at line 34 of file CommissioningAnalysis.h.

typedef std::vector<std::string> CommissioningAnalysis::VString

Definition at line 42 of file CommissioningAnalysis.h.

typedef std::vector<VBool> CommissioningAnalysis::VVBool

Definition at line 40 of file CommissioningAnalysis.h.

typedef std::vector<VFloat> CommissioningAnalysis::VVFloat

Definition at line 32 of file CommissioningAnalysis.h.

typedef std::vector<VInt> CommissioningAnalysis::VVInt

Definition at line 36 of file CommissioningAnalysis.h.

Constructor & Destructor Documentation

CommissioningAnalysis::CommissioningAnalysis ( const uint32_t &  key,
const std::string &  my_name 
)

Definition at line 9 of file CommissioningAnalysis.cc.

10  : fecKey_(key),
14  myName_(my_name),
15  errors_(VString(0, "")) {
16  ;
17 }
static const uint32_t invalid32_
Definition: Constants.h:15
tuple key
prepare the HTCondor submission files and eventually submit them
std::vector< std::string > VString
CommissioningAnalysis::CommissioningAnalysis ( const std::string &  my_name)
virtual CommissioningAnalysis::~CommissioningAnalysis ( )
inlinevirtual

Definition at line 26 of file CommissioningAnalysis.h.

26 { ; }
CommissioningAnalysis::CommissioningAnalysis ( )
inlineprivate

Private default constructor.

Definition at line 105 of file CommissioningAnalysis.h.

105 { ; }

Member Function Documentation

void CommissioningAnalysis::addErrorCode ( const std::string &  error)
inlinevirtual
const uint32_t & CommissioningAnalysis::dcuId ( ) const
inline
void CommissioningAnalysis::dcuId ( const uint32_t &  dcu_id)
inline

Sets DCU id.

Definition at line 144 of file CommissioningAnalysis.h.

References dcuId_.

144 { dcuId_ = dcu_id; }
const uint32_t & CommissioningAnalysis::detId ( ) const
inline
void CommissioningAnalysis::detId ( const uint32_t &  det_id)
inline

Sets DetId.

Definition at line 145 of file CommissioningAnalysis.h.

References detId_.

145 { detId_ = det_id; }
const uint32_t & CommissioningAnalysis::fecKey ( ) const
inline
void CommissioningAnalysis::fecKey ( const uint32_t &  key)
inline

Sets FEC key (encodes control structure).

Definition at line 141 of file CommissioningAnalysis.h.

References fecKey_, and submitPVResolutionJobs::key.

141 { fecKey_ = key; }
tuple key
prepare the HTCondor submission files and eventually submit them
const uint32_t & CommissioningAnalysis::fedKey ( ) const
inline

Returns FED key object (encodes readout structure).

Definition at line 134 of file CommissioningAnalysis.h.

References fedKey_.

Referenced by CommissioningHistosUsingDb::addDcuDetIds(), FastFedCablingHistosUsingDb::connections(), DaqScopeModeHistosUsingDb::create(), NoiseHistosUsingDb::create(), OptoScanHistosUsingDb::create(), PedestalsHistosUsingDb::create(), PedsFullNoiseHistosUsingDb::create(), PedsOnlyHistosUsingDb::create(), VpspScanHistosUsingDb::create(), ApvTimingHistosUsingDb::create(), LatencyHistosUsingDb::create(), CalibrationHistosUsingDb::create(), FastFedCablingHistosUsingDb::create(), FineDelayHistosUsingDb::create(), CommissioningHistograms::data(), ApvLatencyAlgorithm::extract(), FedTimingAlgorithm::extract(), CalibrationAlgorithm::extract(), SamplingAlgorithm::extract(), VpspScanAlgorithm::extract(), NoiseAlgorithm::extract(), PedestalsAlgorithm::extract(), PedsOnlyAlgorithm::extract(), ApvTimingAlgorithm::extract(), FastFedCablingAlgorithm::extract(), DaqScopeModeAlgorithm::extract(), OptoScanAlgorithm::extract(), PedsFullNoiseAlgorithm::extract(), FedCablingAlgorithm::extract(), CalibrationScanAlgorithm::extract(), FastFedCablingAnalysis::FastFedCablingAnalysis(), FastFedCablingAnalysis::header(), PedsOnlyAnalysis::summary(), VpspScanAnalysis::summary(), PedestalsAnalysis::summary(), NoiseAnalysis::summary(), OptoScanAnalysis::summary(), DaqScopeModeAnalysis::summary(), FastFedCablingAnalysis::summary(), summary(), PedsFullNoiseAnalysis::summary(), PedsFullNoiseHistosUsingDb::update(), and FastFedCablingHistosUsingDb::update().

134 { return fedKey_; }
void CommissioningAnalysis::fedKey ( const uint32_t &  key)
inline

Sets FED key (encodes readout structure).

Definition at line 142 of file CommissioningAnalysis.h.

References fedKey_, and submitPVResolutionJobs::key.

142 { fedKey_ = key; }
tuple key
prepare the HTCondor submission files and eventually submit them
const CommissioningAnalysis::VString & CommissioningAnalysis::getErrorCodes ( ) const
inline

Returns error codes generated by analyses.

Definition at line 131 of file CommissioningAnalysis.h.

References errors_.

Referenced by DaqScopeModeHistosUsingDb::create(), NoiseHistosUsingDb::create(), OptoScanHistosUsingDb::create(), PedestalsHistosUsingDb::create(), PedsFullNoiseHistosUsingDb::create(), PedsOnlyHistosUsingDb::create(), VpspScanHistosUsingDb::create(), ApvTimingHistosUsingDb::create(), LatencyHistosUsingDb::create(), CalibrationHistosUsingDb::create(), FastFedCablingHistosUsingDb::create(), FineDelayHistosUsingDb::create(), DaqScopeModeAnalysis::foundTickMark(), ApvTimingAnalysis::foundTickMark(), DaqScopeModeAnalysis::frameFindingThreshold(), ApvTimingAnalysis::frameFindingThreshold(), PedsFullNoiseHistograms::histoAnalysis(), VpspScanHistograms::histoAnalysis(), PedsOnlyHistograms::histoAnalysis(), ApvTimingHistograms::histoAnalysis(), DaqScopeModeHistograms::histoAnalysis(), FastFedCablingHistograms::histoAnalysis(), NoiseHistograms::histoAnalysis(), OptoScanHistograms::histoAnalysis(), PedestalsHistograms::histoAnalysis(), DaqScopeModeAnalysis::isValid(), OptoScanAnalysis::isValid(), PedestalsAnalysis::isValid(), PedsOnlyAnalysis::isValid(), VpspScanAnalysis::isValid(), ApvTimingAnalysis::isValid(), NoiseAnalysis::isValid(), PedsFullNoiseAnalysis::isValid(), FedCablingAnalysis::isValid(), FastFedCablingAnalysis::isValid(), FedCablingAnalysis::print(), PedsOnlyAnalysis::print(), VpspScanAnalysis::print(), PedestalsAnalysis::print(), NoiseAnalysis::print(), OptoScanAnalysis::print(), DaqScopeModeAnalysis::print(), ApvTimingAnalysis::print(), FastFedCablingAnalysis::print(), and PedsFullNoiseAnalysis::print().

131 { return errors_; }
void CommissioningAnalysis::header ( std::stringstream &  ss) const
virtual

Header information for analysis print().

Reimplemented in FastFedCablingAnalysis.

Definition at line 33 of file CommissioningAnalysis.cc.

References SiStripFecKey::ccuAddr(), SiStripFecKey::ccuChan(), dcuId_, TauDecayModes::dec, detId_, SiStripFecKey::fecCrate(), SiStripFedKey::feChan(), fecKey_, SiStripFecKey::fecRing(), SiStripFecKey::fecSlot(), SiStripFedKey::fedChannel(), SiStripFedKey::fedId(), fedKey_, SiStripFedKey::feUnit(), SiStripFecKey::lldChan(), and myName().

Referenced by ApvLatencyAnalysis::print(), SamplingAnalysis::print(), FedTimingAnalysis::print(), FedCablingAnalysis::print(), PedsOnlyAnalysis::print(), VpspScanAnalysis::print(), NoiseAnalysis::print(), PedestalsAnalysis::print(), OptoScanAnalysis::print(), DaqScopeModeAnalysis::print(), ApvTimingAnalysis::print(), CalibrationScanAnalysis::print(), PedsFullNoiseAnalysis::print(), and CalibrationAnalysis::print().

33  {
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 }
A container class for generic run and event-related info, information required by the commissioning a...
Definition: SiStripFedKey.h:56
Utility class that identifies a position within the strip tracker control structure, down to the level of an APV25.
Definition: SiStripFecKey.h:45
const std::string & myName() const
virtual bool CommissioningAnalysis::isValid ( void  ) const
inlinevirtual
const std::string & CommissioningAnalysis::myName ( void  ) const
inline
virtual void CommissioningAnalysis::print ( std::stringstream &  ,
uint32_t  not_used = 0 
)
pure virtual
virtual void CommissioningAnalysis::reset ( )
pure virtual
void CommissioningAnalysis::setErrorCodes ( const VString errors)
inline

Sets error codes generated by analyses.

Definition at line 147 of file CommissioningAnalysis.h.

References errors_.

147 { errors_ = errors; }
void CommissioningAnalysis::summary ( std::stringstream &  ss) const
virtual

Navigate information for analysis print().

Reimplemented in PedsFullNoiseAnalysis, FastFedCablingAnalysis, DaqScopeModeAnalysis, OptoScanAnalysis, NoiseAnalysis, PedestalsAnalysis, VpspScanAnalysis, and PedsOnlyAnalysis.

Definition at line 73 of file CommissioningAnalysis.cc.

References SiStripFecKey::ccuAddr(), SiStripFecKey::ccuChan(), sistrip::controlView_, sistrip::dir_, sistrip::dqmRoot_, sistrip::EXPERT_HISTO, SiStripFecKey::fecCrate(), fecKey_, SiStripFecKey::fecRing(), SiStripFecKey::fecSlot(), sistrip::FED_KEY, fedKey(), isValid(), sistrip::LLD_CHAN, SiStripFecKey::lldChan(), myName(), fed_dqm_sourceclient-live_cfg::path, SiStripEnumsAndStrings::runType(), AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.

73  {
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
static const char dir_[]
Utility class that holds histogram title.
virtual bool isValid() 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_[]
const std::string & myName() const

Member Data Documentation

uint32_t CommissioningAnalysis::dcuId_
private

DCU Id.

Definition at line 117 of file CommissioningAnalysis.h.

Referenced by dcuId(), and header().

uint32_t CommissioningAnalysis::detId_
private

DetId.

Definition at line 120 of file CommissioningAnalysis.h.

Referenced by detId(), and header().

VString CommissioningAnalysis::errors_
private

Error codes.

Definition at line 126 of file CommissioningAnalysis.h.

Referenced by addErrorCode(), getErrorCodes(), and setErrorCodes().

uint32_t CommissioningAnalysis::fecKey_
private

FEC key object.

Definition at line 111 of file CommissioningAnalysis.h.

Referenced by fecKey(), header(), and summary().

uint32_t CommissioningAnalysis::fedKey_
private

FEC key object.

Definition at line 114 of file CommissioningAnalysis.h.

Referenced by fedKey(), and header().

std::string CommissioningAnalysis::myName_
private

Object name.

Definition at line 123 of file CommissioningAnalysis.h.

Referenced by myName().