CMS 3D CMS Logo

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 addAdditionalInfo (char const *info)
 
void addAdditionalInfo (std::string const &info)
 
void addContext (char const *context)
 
void addContext (std::string const &context)
 
std::list< std::string > const & additionalInfo () const
 
bool alreadyPrinted () const
 
void append (char const *more_information)
 
void append (Exception const &another)
 
void append (std::string const &more_information)
 
std::string const & category () const
 
void clearAdditionalInfo ()
 
void clearContext ()
 
void clearMessage ()
 
virtual Exceptionclone () const
 
std::list< std::string > const & context () const
 
 Exception (char const *aCategory)
 
 Exception (char const *aCategory, char const *message)
 
 Exception (char const *aCategory, std::string const &message)
 
 Exception (Exception const &other)
 
 Exception (std::string const &aCategory)
 
 Exception (std::string const &aCategory, char const *message)
 
 Exception (std::string const &aCategory, std::string const &message)
 
 Exception (std::string const &aCategory, std::string const &message, Exception const &another)
 
virtual std::string explainSelf () const
 
std::list< std::string > history () const
 
std::string message () const
 
Exceptionoperator= (Exception const &other)
 
void raise ()
 
int returnCode () const
 
void setAdditionalInfo (std::list< std::string > const &info)
 
void setAlreadyPrinted (bool value)
 
void setContext (std::list< std::string > const &context)
 
void swap (Exception &other)
 
char const * what () const noexcept override
 
 ~Exception () noexcept override
 

Detailed Description

Definition at line 54 of file StripClusterizerAlgorithm.h.

Constructor & Destructor Documentation

◆ InvalidChargeException()

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

Definition at line 19 of file StripClusterizerAlgorithm.cc.

20  : cms::Exception("Invalid Charge") {
21  std::stringstream s;
22  s << "Digi charge of " << digi.adc() << " ADC "
23  << "is out of range on strip " << digi.strip() << ". ";
24  this->append(s.str());
25 }

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

alignCSCRings.s
s
Definition: alignCSCRings.py:92
SiStripDigi::adc
const uint16_t & adc() const
Definition: SiStripDigi.h:34
cms::Exception::append
void append(Exception const &another)
Definition: Exception.cc:153
SiStripDigi::strip
const uint16_t & strip() const
Definition: SiStripDigi.h:33
Exception
Definition: hltDiff.cc:246