PandaRoot
FsmDetTypes.h
Go to the documentation of this file.
1
//****************************************************************************
2
//* This file is part of PandaRoot. *
3
//* *
4
//* PandaRoot is distributed under the terms of the *
5
//* GNU General Public License (GPL) version 3, *
6
//* copied verbatim in the file "LICENSE". *
7
//* *
8
//* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9
//* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10
//* The authors are listed in the file "AUTHORS". *
11
//****************************************************************************
12
13
//==========================================================================
14
// File and Version Information:
15
// $Id: FsmDetTypes.hh,v 1.4 2006/10/05 14:05:53 aida Exp $
16
//
17
//--------------------------------------------------------------------------
18
// Description:
19
// this structure is helpful for the easy treatment of the individual subdetectors.
20
// Attention: the correct order for "enum" and "FsmDetName::name" is mandatory"
21
//
22
// Author List:
23
// Bertram Kopf (Original author)
24
//
25
//
26
//==========================================================================
27
28
#ifndef FSMDETTYPES_H
29
#define FSMDETTYPES_H
30
31
struct
FsmDetEnum
{
32
enum
{
33
Mvd
= 0,
34
Mvd2
,
35
Tpc
,
36
Stt
,
37
Tof
,
38
Drc
,
39
EmcBarrel
,
40
EmcBwCap
,
41
EmcFwCap
,
42
EmcFS
,
43
Muo
,
44
Dch1
,
45
Dch2
,
46
Dch3
,
47
Dch4
,
48
Dch5
,
49
Dch6
,
50
Dch7
,
51
Dch8
,
52
FwkRch
,
53
CmpDet
,
54
numSystems
55
};
// attention: if you want to add/remove detectors don't forget to modify FsmDetName; keep an eye on the correct order!!!
56
};
57
58
struct
FsmDetName
{
59
static
const
std::string &
name
(
unsigned
int
t)
60
{
61
static
std::string detName[
FsmDetEnum::numSystems
+ 1] = {
"Mvd"
,
"Mvd2"
,
"Tpc"
,
"Stt"
,
"Tof"
,
"Drc"
,
"EmcBarrel"
,
"EmcBwCap"
,
"EmcFwCap"
,
"EmcFS"
,
"Muo"
,
62
"Dch1"
,
"Dch2"
,
"Dch3"
,
"Dch4"
,
"Dch5"
,
"Dch6"
,
"Dch7"
,
"Dch8"
,
"FwkRch"
,
"CmpDet"
,
"unknown"
};
63
if
(t >=
FsmDetEnum::numSystems
)
64
t =
FsmDetEnum::numSystems
;
65
return
detName[t];
66
}
67
};
68
69
#endif
FsmDetEnum::Muo
Definition:
FsmDetTypes.h:43
FsmDetEnum::Dch1
Definition:
FsmDetTypes.h:44
FsmDetEnum::Dch4
Definition:
FsmDetTypes.h:47
FsmDetName
Definition:
FsmDetTypes.h:58
FsmDetEnum::Dch7
Definition:
FsmDetTypes.h:50
FsmDetEnum::Tof
Definition:
FsmDetTypes.h:37
FsmDetEnum::numSystems
Definition:
FsmDetTypes.h:54
FsmDetEnum::Dch8
Definition:
FsmDetTypes.h:51
FsmDetEnum::FwkRch
Definition:
FsmDetTypes.h:52
FsmDetEnum::Tpc
Definition:
FsmDetTypes.h:35
FsmDetEnum::Dch6
Definition:
FsmDetTypes.h:49
FsmDetEnum::CmpDet
Definition:
FsmDetTypes.h:53
FsmDetName::name
static const std::string & name(unsigned int t)
Definition:
FsmDetTypes.h:59
FsmDetEnum::Dch3
Definition:
FsmDetTypes.h:46
FsmDetEnum
Definition:
FsmDetTypes.h:31
FsmDetEnum::Dch5
Definition:
FsmDetTypes.h:48
FsmDetEnum::Drc
Definition:
FsmDetTypes.h:38
FsmDetEnum::Stt
Definition:
FsmDetTypes.h:36
FsmDetEnum::EmcBarrel
Definition:
FsmDetTypes.h:39
FsmDetEnum::Mvd
Definition:
FsmDetTypes.h:33
FsmDetEnum::EmcBwCap
Definition:
FsmDetTypes.h:40
FsmDetEnum::Dch2
Definition:
FsmDetTypes.h:45
FsmDetEnum::EmcFwCap
Definition:
FsmDetTypes.h:41
FsmDetEnum::Mvd2
Definition:
FsmDetTypes.h:34
FsmDetEnum::EmcFS
Definition:
FsmDetTypes.h:42
home
gitlab-runner
builds
Vxspf1vo
0
PandaRootGroup
PandaRoot
fastsim
FsmDetTypes.h
Generated on Fri Nov 29 2024 06:04:39 for PandaRoot by
1.8.13