ATLAS Offline Software
TileCalorimeter
TileConditions
TileConditions
TileCalorimeter/TileConditions/TileConditions/Exception.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILECONDIIONS_EXCEPTION_H
6
#define TILECONDIIONS_EXCEPTION_H
7
8
#include "
TileCalibBlobObjs/Exception.h
"
9
#include "
TileIdentifier/TileRawChannelUnit.h
"
10
#include "
CaloIdentifier/CaloGain.h
"
11
12
namespace
TileCalib
{
13
14
//
15
//__________________________________________________________________________________
20
class
InvalidRawChanUnit
:
public
TileCalib::Exception
{
21
public
:
22
explicit
InvalidRawChanUnit
(
const
std::string&
domain
,
23
TileRawChannelUnit::UNIT
unit
)
24
:
Exception
(
domain
,
""
)
25
{
26
std::ostringstream
msg
;
27
msg
<<
"Invalid TileRawChannelUnit: "
<<
unit
;
28
setMessage
(
msg
.str());
29
}
30
virtual
~InvalidRawChanUnit
() throw() {}
31
};
32
33
//
34
//__________________________________________________________________________________
39
class
InvalidCaloGain
:
public
TileCalib::Exception
{
40
public
:
41
explicit
InvalidCaloGain
(
const
std::string&
domain
,
42
CaloGain::CaloGain
caloGain)
43
:
Exception
(
domain
,
""
)
44
{
45
std::ostringstream
msg
;
46
msg
<<
"Invalid CaloGain: "
<< caloGain;
47
setMessage
(
msg
.str());
48
}
49
virtual
~InvalidCaloGain
() throw() {}
50
};
51
52
}
53
54
#endif
TileCalib::InvalidRawChanUnit
Signals invalid use of TileRawChannelUnit.
Definition:
TileCalorimeter/TileConditions/TileConditions/Exception.h:20
TileCalib::Exception::domain
virtual const std::string & domain() const
Definition:
TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:35
TileCalib::InvalidRawChanUnit::InvalidRawChanUnit
InvalidRawChanUnit(const std::string &domain, TileRawChannelUnit::UNIT unit)
Definition:
TileCalorimeter/TileConditions/TileConditions/Exception.h:22
TileCalib::Exception
TileCalib Exception base class.
Definition:
TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:22
TileCalib::InvalidCaloGain::InvalidCaloGain
InvalidCaloGain(const std::string &domain, CaloGain::CaloGain caloGain)
Definition:
TileCalorimeter/TileConditions/TileConditions/Exception.h:41
TileRawChannelUnit::UNIT
UNIT
Definition:
TileRawChannelUnit.h:16
TileCalib
Definition:
TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:13
TileCalib::InvalidRawChanUnit::~InvalidRawChanUnit
virtual ~InvalidRawChanUnit()
Definition:
TileCalorimeter/TileConditions/TileConditions/Exception.h:30
TileRawChannelUnit.h
CaloGain::CaloGain
CaloGain
Definition:
CaloGain.h:11
unit
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
Definition:
AmgMatrixBasePlugin.h:21
TileCalib::Exception::setMessage
virtual void setMessage(const std::string &message)
Definition:
TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:40
CaloGain.h
Exception.h
python.AutoConfigFlags.msg
msg
Definition:
AutoConfigFlags.py:7
TileCalib::InvalidCaloGain
Signals invalid use of gain.
Definition:
TileCalorimeter/TileConditions/TileConditions/Exception.h:39
TileCalib::InvalidCaloGain::~InvalidCaloGain
virtual ~InvalidCaloGain()
Definition:
TileCalorimeter/TileConditions/TileConditions/Exception.h:49
Generated on Fri Jan 10 2025 21:10:14 for ATLAS Offline Software by
1.8.18