CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

HcalUnpackerReport Class Reference

#include <HcalUnpackerReport.h>

List of all members.

Public Types

typedef std::vector< DetIdDetIdVector
typedef std::vector
< HcalElectronicsId
ElectronicsIdVector

Public Member Functions

void addError (int fed)
void addUnpacked (int fed)
bool anyValidHCAL () const
DetIdVector::const_iterator bad_quality_begin () const
DetIdVector::const_iterator bad_quality_end () const
int badQualityDigis () const
int busySpigots () const
void countBadQualityDigi ()
void countBadQualityDigi (const DetId &did)
void countBusySpigot ()
void countDigi ()
void countEmptyEventSpigot ()
void countOFWSpigot ()
void countSpigotFormatError ()
void countTPDigi (bool ho=false)
void countUnmappedDigi (const HcalElectronicsId &eid)
void countUnmappedDigi ()
void countUnmappedTPDigi ()
void countUnmappedTPDigi (const HcalElectronicsId &eid)
int emptyEventSpigots () const
bool errorFree () const
HcalCalibrationEventType fedCalibType (uint16_t fed) const
const std::vector< int > & getFedsError () const
const std::vector< int > & getFedsUnpacked () const
std::string getReportInfo (const std::string &name) const
std::vector< std::string > getReportKeys () const
bool hasFedWithCalib () const
bool hasReportInfo (const std::string &name) const
 HcalUnpackerReport ()
int OFWSpigots () const
void setFedCalibInfo (uint16_t fed, HcalCalibrationEventType ctype)
void setReportInfo (const std::string &name, const std::string &value)
void setUnsuppressed (bool isSup)
int spigotFormatErrors () const
int totalDigis () const
int totalHOTPDigis () const
int totalTPDigis () const
ElectronicsIdVector::const_iterator unmapped_begin () const
ElectronicsIdVector::const_iterator unmapped_end () const
int unmappedDigis () const
int unmappedTPDigis () const
bool unsuppressedChannels () const

Private Attributes

int badqualityDigis_
DetIdVector badqualityIds_
int busySpigots_
int emptyEventSpigots_
std::vector< uint16_t > fedInfo_
std::vector< int > FEDsError_
std::vector< int > FEDsUnpacked_
int ofwSpigots_
std::vector< std::string > reportInfo_
int spigotFormatErrors_
int totalDigis_
int totalHOTPDigis_
int totalTPDigis_
int unmappedDigis_
ElectronicsIdVector unmappedIds_
int unmappedTPDigis_
bool unsuppressed_

Detailed Description

Date:
2012/06/04 10:47:17
Revision:
1.6
Author:
J. Mans - Minnesota

Definition at line 16 of file HcalUnpackerReport.h.


Member Typedef Documentation

typedef std::vector<DetId> HcalUnpackerReport::DetIdVector

Definition at line 41 of file HcalUnpackerReport.h.

Definition at line 42 of file HcalUnpackerReport.h.


Constructor & Destructor Documentation

HcalUnpackerReport::HcalUnpackerReport ( )

Member Function Documentation

void HcalUnpackerReport::addError ( int  fed)

Definition at line 23 of file HcalUnpackerReport.cc.

References FEDsError_.

                                         {
  FEDsError_.push_back(fed);
}
void HcalUnpackerReport::addUnpacked ( int  fed)

Definition at line 19 of file HcalUnpackerReport.cc.

References FEDsUnpacked_.

                                            {
  FEDsUnpacked_.push_back(fed);
}
bool HcalUnpackerReport::anyValidHCAL ( ) const

Definition at line 15 of file HcalUnpackerReport.cc.

References FEDsUnpacked_.

                                            {
  return !FEDsUnpacked_.empty();
}
DetIdVector::const_iterator HcalUnpackerReport::bad_quality_begin ( ) const [inline]

Definition at line 44 of file HcalUnpackerReport.h.

References badqualityIds_.

Referenced by HcalDigiMonitor::processEvent().

{ return badqualityIds_.begin(); }
DetIdVector::const_iterator HcalUnpackerReport::bad_quality_end ( ) const [inline]

Definition at line 45 of file HcalUnpackerReport.h.

References badqualityIds_.

Referenced by HcalDigiMonitor::processEvent().

{ return badqualityIds_.end(); }
int HcalUnpackerReport::badQualityDigis ( ) const [inline]
int HcalUnpackerReport::busySpigots ( ) const [inline]

Definition at line 32 of file HcalUnpackerReport.h.

References busySpigots_.

{ return busySpigots_; }
void HcalUnpackerReport::countBadQualityDigi ( )
void HcalUnpackerReport::countBadQualityDigi ( const DetId did)

Definition at line 51 of file HcalUnpackerReport.cc.

References badqualityDigis_, and badqualityIds_.

                                                            {
  badqualityDigis_++;
  badqualityIds_.push_back(id);
}
void HcalUnpackerReport::countBusySpigot ( )

Definition at line 46 of file HcalUnpackerReport.cc.

References busySpigots_.

Referenced by HcalUnpacker::unpack().

{ busySpigots_++; }
void HcalUnpackerReport::countDigi ( )

Definition at line 27 of file HcalUnpackerReport.cc.

References totalDigis_.

                                   {
  totalDigis_++;
}
void HcalUnpackerReport::countEmptyEventSpigot ( )

Definition at line 44 of file HcalUnpackerReport.cc.

References emptyEventSpigots_.

Referenced by HcalUnpacker::unpack().

void HcalUnpackerReport::countOFWSpigot ( )

Definition at line 45 of file HcalUnpackerReport.cc.

References ofwSpigots_.

Referenced by HcalUnpacker::unpack().

{ ofwSpigots_++; }
void HcalUnpackerReport::countSpigotFormatError ( )
void HcalUnpackerReport::countTPDigi ( bool  ho = false)

Definition at line 30 of file HcalUnpackerReport.cc.

References totalHOTPDigis_, and totalTPDigis_.

                                            {
  if (ho) totalHOTPDigis_++;
  else totalTPDigis_++;
}
void HcalUnpackerReport::countUnmappedDigi ( const HcalElectronicsId eid)

Definition at line 55 of file HcalUnpackerReport.cc.

References unmappedDigis_, and unmappedIds_.

                                                                       {
  unmappedDigis_++;
  unmappedIds_.push_back(eid);
}
void HcalUnpackerReport::countUnmappedDigi ( )
void HcalUnpackerReport::countUnmappedTPDigi ( const HcalElectronicsId eid)

Definition at line 59 of file HcalUnpackerReport.cc.

References unmappedIds_, and unmappedTPDigis_.

                                                                         {
  unmappedTPDigis_++;
  unmappedIds_.push_back(eid);
}
void HcalUnpackerReport::countUnmappedTPDigi ( )

Definition at line 38 of file HcalUnpackerReport.cc.

References unmappedTPDigis_.

Referenced by HcalUnpacker::unpack().

int HcalUnpackerReport::emptyEventSpigots ( ) const [inline]

Definition at line 30 of file HcalUnpackerReport.h.

References emptyEventSpigots_.

{ return emptyEventSpigots_; }
bool HcalUnpackerReport::errorFree ( ) const

Definition at line 11 of file HcalUnpackerReport.cc.

References FEDsError_, and spigotFormatErrors_.

                                         {
  return FEDsError_.empty() && spigotFormatErrors_==0;
}
HcalCalibrationEventType HcalUnpackerReport::fedCalibType ( uint16_t  fed) const

Definition at line 64 of file HcalUnpackerReport.cc.

References fedInfo_, and i.

                                                                            {
  std::vector<uint16_t>::size_type i;
  uint16_t retval=0;
  for (i=0; i<fedInfo_.size(); i+=2)
    if (fedInfo_[i]==fed) {
      retval=fedInfo_[i+1];
      break;
    }
  return HcalCalibrationEventType(retval);
}
const std::vector<int>& HcalUnpackerReport::getFedsError ( ) const [inline]

Definition at line 20 of file HcalUnpackerReport.h.

References FEDsError_.

{ return FEDsError_; }
const std::vector<int>& HcalUnpackerReport::getFedsUnpacked ( ) const [inline]

Definition at line 19 of file HcalUnpackerReport.h.

References FEDsUnpacked_.

{ return FEDsUnpacked_; }
std::string HcalUnpackerReport::getReportInfo ( const std::string &  name) const

Definition at line 105 of file HcalUnpackerReport.cc.

References i, reportInfo_, ReportSeparator(), and AlCaHLTBitMon_QueryRunRegistry::string.

                                                                       {
  std::string searchFor=name+ReportSeparator;
  std::vector<std::string>::const_iterator i;
  for (i=reportInfo_.begin(); i!=reportInfo_.end(); i++)
    if (i->find(searchFor)==0) break;
  std::string retval;
  if (i!=reportInfo_.end()) {
    retval=i->substr(searchFor.length());
  }
  return retval;
}
std::vector< std::string > HcalUnpackerReport::getReportKeys ( ) const

Definition at line 117 of file HcalUnpackerReport.cc.

References i, reportInfo_, and ReportSeparator().

                                                             {
  std::vector<std::string> retval;
  std::vector<std::string>::const_iterator i;
  for (i=reportInfo_.begin(); i!=reportInfo_.end(); i++)
    retval.push_back(i->substr(0,i->find(ReportSeparator)));
  return retval;
}
bool HcalUnpackerReport::hasFedWithCalib ( ) const [inline]

Definition at line 36 of file HcalUnpackerReport.h.

References fedInfo_.

{ return !fedInfo_.empty(); }
bool HcalUnpackerReport::hasReportInfo ( const std::string &  name) const

Definition at line 98 of file HcalUnpackerReport.cc.

References i, reportInfo_, ReportSeparator(), and AlCaHLTBitMon_QueryRunRegistry::string.

                                                                  {
  std::string searchFor=name+ReportSeparator;
  std::vector<std::string>::const_iterator i;
  for (i=reportInfo_.begin(); i!=reportInfo_.end(); i++)
    if (i->find(searchFor)==0) break;
  return (i!=reportInfo_.end());
}
int HcalUnpackerReport::OFWSpigots ( ) const [inline]

Definition at line 31 of file HcalUnpackerReport.h.

References ofwSpigots_.

{ return ofwSpigots_; }
void HcalUnpackerReport::setFedCalibInfo ( uint16_t  fed,
HcalCalibrationEventType  ctype 
)

Definition at line 75 of file HcalUnpackerReport.cc.

References fedInfo_, and i.

                                                                                     {
  std::vector<uint16_t>::size_type i;
  for (i=0; i<fedInfo_.size(); i+=2)
    if (fedInfo_[i]==fed) {
      fedInfo_[i+1]=uint16_t(ctype);
      break;
    }
  if (i>=fedInfo_.size()) {
    fedInfo_.push_back(fed);
    fedInfo_.push_back(uint16_t(ctype));
  }
}
void HcalUnpackerReport::setReportInfo ( const std::string &  name,
const std::string &  value 
)

Definition at line 94 of file HcalUnpackerReport.cc.

References reportInfo_.

                                                                                    {
  reportInfo_.push_back(name+"==>"+value);
}
void HcalUnpackerReport::setUnsuppressed ( bool  isSup)

Definition at line 88 of file HcalUnpackerReport.cc.

References unsuppressed_.

                                                   {
  unsuppressed_=isSup;
}
int HcalUnpackerReport::spigotFormatErrors ( ) const [inline]

Definition at line 25 of file HcalUnpackerReport.h.

References spigotFormatErrors_.

{ return spigotFormatErrors_; }
int HcalUnpackerReport::totalDigis ( ) const [inline]

Definition at line 27 of file HcalUnpackerReport.h.

References totalDigis_.

{ return totalDigis_; }
int HcalUnpackerReport::totalHOTPDigis ( ) const [inline]

Definition at line 29 of file HcalUnpackerReport.h.

References totalHOTPDigis_.

{ return totalHOTPDigis_; }
int HcalUnpackerReport::totalTPDigis ( ) const [inline]

Definition at line 28 of file HcalUnpackerReport.h.

References totalTPDigis_.

{ return totalTPDigis_; }
ElectronicsIdVector::const_iterator HcalUnpackerReport::unmapped_begin ( ) const [inline]

Definition at line 46 of file HcalUnpackerReport.h.

References unmappedIds_.

{ return unmappedIds_.begin(); }
ElectronicsIdVector::const_iterator HcalUnpackerReport::unmapped_end ( ) const [inline]

Definition at line 47 of file HcalUnpackerReport.h.

References unmappedIds_.

{ return unmappedIds_.end(); }
int HcalUnpackerReport::unmappedDigis ( ) const [inline]

Definition at line 23 of file HcalUnpackerReport.h.

References unmappedDigis_.

{ return unmappedDigis_; }
int HcalUnpackerReport::unmappedTPDigis ( ) const [inline]

Definition at line 24 of file HcalUnpackerReport.h.

References unmappedTPDigis_.

{ return unmappedTPDigis_; }
bool HcalUnpackerReport::unsuppressedChannels ( ) const [inline]

Definition at line 34 of file HcalUnpackerReport.h.

References unsuppressed_.

{ return unsuppressed_; }

Member Data Documentation

Definition at line 74 of file HcalUnpackerReport.h.

Referenced by badQualityDigis(), and countBadQualityDigi().

Definition at line 76 of file HcalUnpackerReport.h.

Referenced by bad_quality_begin(), bad_quality_end(), and countBadQualityDigi().

Definition at line 83 of file HcalUnpackerReport.h.

Referenced by busySpigots(), and countBusySpigot().

Definition at line 83 of file HcalUnpackerReport.h.

Referenced by countEmptyEventSpigot(), and emptyEventSpigots().

std::vector<uint16_t> HcalUnpackerReport::fedInfo_ [private]

Definition at line 81 of file HcalUnpackerReport.h.

Referenced by fedCalibType(), hasFedWithCalib(), and setFedCalibInfo().

std::vector<int> HcalUnpackerReport::FEDsError_ [private]

Definition at line 72 of file HcalUnpackerReport.h.

Referenced by addError(), errorFree(), and getFedsError().

std::vector<int> HcalUnpackerReport::FEDsUnpacked_ [private]

Definition at line 71 of file HcalUnpackerReport.h.

Referenced by addUnpacked(), anyValidHCAL(), and getFedsUnpacked().

Definition at line 83 of file HcalUnpackerReport.h.

Referenced by countOFWSpigot(), and OFWSpigots().

std::vector<std::string> HcalUnpackerReport::reportInfo_ [private]

Definition at line 80 of file HcalUnpackerReport.h.

Referenced by getReportInfo(), getReportKeys(), hasReportInfo(), and setReportInfo().

Definition at line 74 of file HcalUnpackerReport.h.

Referenced by countSpigotFormatError(), errorFree(), and spigotFormatErrors().

Definition at line 75 of file HcalUnpackerReport.h.

Referenced by countDigi(), and totalDigis().

Definition at line 75 of file HcalUnpackerReport.h.

Referenced by countTPDigi(), and totalHOTPDigis().

Definition at line 75 of file HcalUnpackerReport.h.

Referenced by countTPDigi(), and totalTPDigis().

Definition at line 73 of file HcalUnpackerReport.h.

Referenced by countUnmappedDigi(), and unmappedDigis().

Definition at line 73 of file HcalUnpackerReport.h.

Referenced by countUnmappedTPDigi(), and unmappedTPDigis().

Definition at line 78 of file HcalUnpackerReport.h.

Referenced by setUnsuppressed(), and unsuppressedChannels().