FDetComponentSelector.cc
Go to the documentation of this file.
1 #include <fdet/FDetComponentSelector.h>
2 
3 #include <fdet/Eye.h>
4 #include <fdet/Telescope.h>
5 #include <utl/AugerException.h>
6 
7 using namespace fdet;
8 
9 //===========================================================================
10 
12  fType(type)
13 {
14 }
15 
16 
17 bool
19 const
20 {
21  switch (fType) {
22  case eAll:
23  return true;
24  break;
25  case ePhysical:
26  return !comp.IsVirtual();
27  break;
28  case eVirtual:
29  return comp.IsVirtual();
30  break;
31  default:
32  throw utl::NonExistentComponentException("Invalid FDetector component selection");
33  }
34 
35  return true;
36 }
37 
bool operator()(const fdet::Eye &comp) const
Type
Possible component status.
Base class for exceptions trying to access non-existing components.
Detector description interface for Eye-related data.
Definition: FDetector/Eye.h:45
FDetComponentSelector(const Type type=ePhysical)
bool IsVirtual() const
Returns whether this eye is a virtual eye.

, generated on Tue Sep 26 2023.