ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TestBeam
TBEvent
TBEvent
TBMWPCRaw.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TBEVENT_TBMWPCRAW_H
6
#define TBEVENT_TBMWPCRAW_H
8
// //
9
// Raw data class for Beam Projection Chambers (MWPC with time //
10
// delay readout). Actually each instance describes a MWPC plane. //
11
// //
13
14
15
#include "
AthenaKernel/CLASS_DEF.h
"
16
#include "
AthContainers/DataVector.h
"
17
#include "
TBEvent/TBBeamDetector.h
"
18
#include <string>
19
#include <string_view>
20
#include <vector>
21
22
23
class
TBMWPCRaw
:
public
TBBeamDetector
24
{
25
public
:
26
27
typedef
unsigned
short
signal_type
;
28
typedef
unsigned
int
source_type
;
29
31
// Constructors and Destructor //
33
34
TBMWPCRaw
();
35
TBMWPCRaw
(std::string_view thisBPCName);
36
~TBMWPCRaw
();
37
39
// Data Manipulation //
41
42
// signal type definition
43
enum
SignalType
{
44
tdcLeft
=0,
tdcRight
,
tdcDown
,
tdcUp
45
};
46
47
// set signal //////////////////////////////////////////////////////
48
// void setSignal(source_type theSignalType, signal_type theSignal);
49
50
// set/reset overflow for each signal
51
/* void setOverflow(source_type theSignalType); */
52
/* void setOverflow(source_type theSignalType, bool overflow); */
53
/* void resetOverflow(source_type theSignalType); */
54
55
57
inline
void
setCwireno
(
const
std::vector<int>& cwireno) {
58
m_cwireno
= cwireno;
59
}
60
inline
void
addCwireno
(
int
cwire){
61
m_cwireno
.push_back(cwire);
62
}
63
65
inline
void
setNwires
(
const
std::vector<int>& nwires) {
66
m_nwires
= nwires;
67
}
68
inline
void
addNwires
(
int
nwire){
69
m_nwires
.push_back(nwire);
70
}
71
72
// set X or Y
73
inline
void
setXchambers
(
bool
isX
){
m_isX
=
isX
;}
74
75
76
// set global overflow
77
virtual
void
setOverflow
();
78
virtual
void
setOverflow
(
bool
overflow);
79
virtual
void
resetOverflow
();
80
81
82
// access signal //////////////////////////////////////////////////
83
84
86
inline
const
std::vector<int> &
getCwireno
()
87
const
{
return
m_cwireno
; }
88
90
inline
const
std::vector<int> &
getNwires
()
91
const
{
return
m_nwires
; }
92
93
94
95
inline
bool
isX
()
const
{
return
m_isX
;}
96
97
// access overflow for each signal type
98
// bool isOverflow(source_type theSignalType) const;
99
100
// data class reset
101
void
reset
();
102
103
private
:
104
106
// Private Data //
108
109
// std::vector<signal_type> m_signals;
110
std::vector<bool>
m_overflowType
;
111
112
// Variables used in 2002 HEC+EMEC TB copied from LArTBeamChambers :
113
std::vector<int>
m_cwireno
;
114
std::vector<int>
m_nwires
;
115
116
117
118
bool
m_isX
;
119
120
bool
m_overflowSetFlag
;
121
123
// Private Data Manipulation //
125
126
// void setUpStores();
127
128
};
129
130
CLASS_DEF
(
TBMWPCRaw
, 239046776 , 1 )
131
132
#endif
133
134
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
TBBeamDetector.h
TBBeamDetector::TBBeamDetector
TBBeamDetector()
Definition
TBBeamDetector.h:24
TBMWPCRaw
Definition
TBMWPCRaw.h:24
TBMWPCRaw::m_cwireno
std::vector< int > m_cwireno
center wire number
Definition
TBMWPCRaw.h:113
TBMWPCRaw::isX
bool isX() const
Definition
TBMWPCRaw.h:95
TBMWPCRaw::m_isX
bool m_isX
Definition
TBMWPCRaw.h:118
TBMWPCRaw::setXchambers
void setXchambers(bool isX)
Definition
TBMWPCRaw.h:73
TBMWPCRaw::setOverflow
virtual void setOverflow()
Definition
TBMWPCRaw.cxx:81
TBMWPCRaw::getNwires
const std::vector< int > & getNwires() const
Get the collection of the number of wire of a cluster.
Definition
TBMWPCRaw.h:90
TBMWPCRaw::getCwireno
const std::vector< int > & getCwireno() const
Get the collection of the center wire number of a cluster.
Definition
TBMWPCRaw.h:86
TBMWPCRaw::addNwires
void addNwires(int nwire)
Definition
TBMWPCRaw.h:68
TBMWPCRaw::m_overflowSetFlag
bool m_overflowSetFlag
Definition
TBMWPCRaw.h:120
TBMWPCRaw::SignalType
SignalType
Definition
TBMWPCRaw.h:43
TBMWPCRaw::tdcUp
@ tdcUp
Definition
TBMWPCRaw.h:44
TBMWPCRaw::tdcDown
@ tdcDown
Definition
TBMWPCRaw.h:44
TBMWPCRaw::tdcLeft
@ tdcLeft
Definition
TBMWPCRaw.h:44
TBMWPCRaw::tdcRight
@ tdcRight
Definition
TBMWPCRaw.h:44
TBMWPCRaw::setNwires
void setNwires(const std::vector< int > &nwires)
Set the collection of the number of wires in a cluster.
Definition
TBMWPCRaw.h:65
TBMWPCRaw::TBMWPCRaw
TBMWPCRaw()
Definition
TBMWPCRaw.cxx:14
TBMWPCRaw::~TBMWPCRaw
~TBMWPCRaw()
Definition
TBMWPCRaw.cxx:31
TBMWPCRaw::signal_type
unsigned short signal_type
Definition
TBMWPCRaw.h:27
TBMWPCRaw::setCwireno
void setCwireno(const std::vector< int > &cwireno)
Set the collection of the center wire number.
Definition
TBMWPCRaw.h:57
TBMWPCRaw::resetOverflow
virtual void resetOverflow()
Definition
TBMWPCRaw.cxx:86
TBMWPCRaw::m_nwires
std::vector< int > m_nwires
the number of wires a cluster
Definition
TBMWPCRaw.h:114
TBMWPCRaw::source_type
unsigned int source_type
Definition
TBMWPCRaw.h:28
TBMWPCRaw::reset
void reset()
Definition
TBMWPCRaw.cxx:38
TBMWPCRaw::m_overflowType
std::vector< bool > m_overflowType
Definition
TBMWPCRaw.h:110
TBMWPCRaw::addCwireno
void addCwireno(int cwire)
Definition
TBMWPCRaw.h:60
Generated on
for ATLAS Offline Software by
1.17.0