ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12namespace TileCalib {
13
14 //
15 //__________________________________________________________________________________
21 public:
22 explicit InvalidRawChanUnit( const std::string& domain,
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 //__________________________________________________________________________________
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
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
Exception(const std::string &domain, const std::string &message)
InvalidCaloGain(const std::string &domain, CaloGain::CaloGain caloGain)
InvalidRawChanUnit(const std::string &domain, TileRawChannelUnit::UNIT unit)
MsgStream & msg
Definition testRead.cxx:32