CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
StripClusterizerAlgorithm::InvalidChargeException Struct Reference

#include <StripClusterizerAlgorithm.h>

Inheritance diagram for StripClusterizerAlgorithm::InvalidChargeException:
cms::Exception

Public Member Functions

 InvalidChargeException (const SiStripDigi &)
 
- Public Member Functions inherited from cms::Exception
void append (Exception const &another)
 
void append (std::string const &more_information)
 
void append (char const *more_information)
 
std::string category () const
 
 Exception (Category const &category)
 
 Exception (Category const &category, std::string const &message)
 
 Exception (Category const &category, std::string const &message, Exception const &another)
 
 Exception (Exception const &other)
 
virtual std::string explainSelf () const
 
CategoryList const & history () const
 
void raise ()
 
std::string rootCause () const
 
virtual char const * what () const throw ()
 
virtual ~Exception () throw ()
 

Additional Inherited Members

- Public Types inherited from cms::Exception
typedef std::string Category
 
typedef std::list< CategoryCategoryList
 

Detailed Description

Definition at line 33 of file StripClusterizerAlgorithm.h.

Constructor & Destructor Documentation

StripClusterizerAlgorithm::InvalidChargeException::InvalidChargeException ( const SiStripDigi digi)

Definition at line 55 of file StripClusterizerAlgorithm.cc.

References SiStripDigi::adc(), cms::Exception::append(), asciidump::s, and SiStripDigi::strip().

56  : cms::Exception("Invalid Charge") {
57  std::stringstream s;
58  s << "Digi charge of " << digi.adc() << " ADC "
59  << "is out of range on strip " << digi.strip() << ". ";
60  this->append(s.str());
61 }
void append(Exception const &another)
Definition: Exception.cc:82
const uint16_t & strip() const
Definition: SiStripDigi.h:40
string s
Definition: asciidump.py:422
const uint16_t & adc() const
Definition: SiStripDigi.h:41