/[PAMELA software]/yoda/event/SubDetector.h
ViewVC logotype

Annotation of /yoda/event/SubDetector.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4.0 - (hide annotations) (download)
Sun Mar 6 04:33:01 2005 UTC (19 years, 8 months ago) by kusanagi
Branch: MAIN
CVS Tags: yodaPreTermistors2_1/00, YODA4_1/00, YODA4_0/04, YODA4_0/03, YODA4_0/02, YODA4_0/01, YODA4_3/02, YODA4_3/00, YODA4_3/01, YODA4_2/01, YODA4_2/00, YODA4_2/03, yodaPreTermistores2_0/00
Branch point for: PreThermistores2
Changes since 3.0: +1 -1 lines
File MIME type: text/plain
Stable version 4.0 - 6 March 2005 - Maurizio Nagni

1 kusanagi 1.1 /** @file
2 kusanagi 1.2 * $Source: /home/cvsmanager/yoda/event/SubDetector.h,v $
3 kusanagi 4.0 * $Id: SubDetector.h,v 3.0 2005/03/04 15:54:11 kusanagi Exp $
4 kusanagi 1.2 * $Author: kusanagi $
5 kusanagi 1.1 *
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 kusanagi 2.2 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 kusanagi 1.1 };
43     }
44    
45     #endif /* SUBDETECTOR_H */

  ViewVC Help
Powered by ViewVC 1.1.23