1 |
mocchiut |
1.1 |
/** @file |
2 |
|
|
* $Source: /repository/event/SubDetector.h,v $ |
3 |
|
|
* $Id: SubDetector.h,v 1.1 2008-01-11 17:14:20 messineo Exp $ |
4 |
|
|
* $Author: messineo $ |
5 |
|
|
* |
6 |
|
|
* Header file for the SubDetector class. |
7 |
|
|
*/ |
8 |
|
|
#ifndef SUBDETECTOR_H |
9 |
|
|
#define SUBDETECTOR_H |
10 |
|
|
|
11 |
|
|
#include <string> |
12 |
|
|
|
13 |
|
|
namespace pamela { |
14 |
|
|
/** |
15 |
|
|
* This class is just to mark something as specific to a certain |
16 |
|
|
* subdetector. The instances of this class are constant and initialized |
17 |
|
|
* as static members. |
18 |
|
|
*/ |
19 |
|
|
class SubDetector { |
20 |
|
|
private: |
21 |
|
|
/** |
22 |
|
|
* The name of the subdetector. |
23 |
|
|
*/ |
24 |
|
|
std::string Name; |
25 |
|
|
protected: |
26 |
|
|
/* |
27 |
|
|
* Create a new "SubDetector". Intended to be used only internally. |
28 |
|
|
*/ |
29 |
|
|
SubDetector(std::string name): Name(name) { } |
30 |
|
|
public: |
31 |
|
|
/** |
32 |
|
|
* Get the name of the subdetector. |
33 |
|
|
*/ |
34 |
|
|
std::string GetName(void) const { return Name; } |
35 |
|
|
static const SubDetector* Tracker; /**< Tracker */ |
36 |
|
|
static const SubDetector* Calorimeter; /**< Calorimeter */ |
37 |
|
|
static const SubDetector* Anticounter; /**< Anticounter unit */ |
38 |
|
|
static const SubDetector* Trigger; /**< Trigger */ |
39 |
|
|
static const SubDetector* Neutron; /**< Neutron */ |
40 |
|
|
static const SubDetector* S4; /**< S4 */ |
41 |
|
|
static const SubDetector* Tof; /**< TOF */ |
42 |
|
|
}; |
43 |
|
|
} |
44 |
|
|
|
45 |
|
|
#endif /* SUBDETECTOR_H */ |