ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtData
AtPattern
AtPatternTypes.h
Go to the documentation of this file.
1
#ifndef ATPATTERNTYPES_H
2
#define ATPATTERNTYPES_H
3
4
#include <memory>
5
6
namespace
AtPatterns
{
7
14
enum class
PatternType
{
kLine
,
kRay
,
kCircle2D
,
kY
,
kFission
};
15
16
class
AtPattern;
23
std::unique_ptr<AtPattern>
CreatePattern
(
PatternType
type);
24
/*{
25
26
switch (type) {
27
case (PatternType::kLine): return std::make_unique<AtPatternLine>();
28
case (PatternType::kCircle2D): return std::make_unique<AtPatternCircle2D>();
29
default: return nullptr;
30
}
31
}
32
*/
33
34
}
// namespace AtPatterns
35
#endif //#ifndef ATPATTERNTYPES_H
AtPatterns::PatternType::kRay
@ kRay
AtPatterns::PatternType::kFission
@ kFission
AtPatterns::CreatePattern
std::unique_ptr< AtPattern > CreatePattern(PatternType type)
Factory for AtPattern.
Definition:
AtPatternTypes.cxx:11
AtPatterns::PatternType::kCircle2D
@ kCircle2D
AtPatterns::PatternType::kY
@ kY
AtPatterns
Definition:
AtFissionEvent.h:21
AtPatterns::PatternType
PatternType
Supported patterns.
Definition:
AtPatternTypes.h:14
AtPatterns::PatternType::kLine
@ kLine
Generated on Sat Nov 11 2023 15:30:37 for ATTPCROOT by
1.8.18