All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OpT0FinderException.h
Go to the documentation of this file.
1 /**
2  * \file OpT0FinderException.h
3  *
4  * \ingroup OpT0Finder
5  *
6  * \brief Class def header for exception classes in OpT0Finder package
7  *
8  * @author kazuhiro
9  */
10 
11 /** \addtogroup OpT0Finder
12 
13  @{*/
14 #ifndef OPT0FINDER_EXCEPTION_H
15 #define OPT0FINDER_EXCEPTION_H
16 
17 #include <iostream>
18 #include <exception>
19 
20 namespace flashmatch {
21  /**
22  \class OpT0FinderException
23  Generic (base) exception class for OpT0Finder package
24  */
25  class OpT0FinderException : public std::exception{
26 
27  public:
28  /// Default ctor w/ error message input (optional)
29  OpT0FinderException(const std::string& msg="");
30 
31  virtual ~OpT0FinderException() throw(){};
32 
33  virtual const char* what() const throw();
34 
35  private:
36  /// Error message
37  std::string _msg;
38  };
39 
40 }
41 #endif
42 /** @} */ // end of doxygen group
43 
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:42
OpT0FinderException(const std::string &msg="")
Default ctor w/ error message input (optional)
std::string _msg
Error message.
virtual const char * what() const