ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TestBeam
TBEvent
TBEvent
TBMWPC.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TBEVENT_TBMWPC_H
6
#define TBEVENT_TBMWPC_H
8
// //
9
// Reconstructed MWBPC data (MWBPC were used in 2002 TB) //
10
// //
11
// This class describes actually a MWPC plane where only one (X or Y) coord //
12
// is reconstructed. //
13
// //
14
// In all variable names 'C' stand either for X or Y depending on m_isX //
15
// //
17
18
#include <vector>
19
#include "GaudiKernel/MsgStream.h"
20
#include "
AthContainers/DataVector.h
"
21
#include "
AthenaKernel/CLASS_DEF.h
"
22
#include "
TBEvent/TBBeamDetector.h
"
23
24
25
26
27
28
29
class
TBMWPC
:
public
TBBeamDetector
30
{
31
public
:
32
34
// Constructors and Destructor //
36
37
TBMWPC
();
38
39
TBMWPC
(
const
std::string& thisBPCName);
40
41
~TBMWPC
();
42
44
// Data Manipulation //
46
47
48
// set signals //////////////////////////////////////////////////////
49
void
setCPos
(
const
std::vector<float>& signals) {
m_cPos
=signals;}
50
void
setCErr
(
const
std::vector<float>& errors) {
m_cErr
=errors;}
51
52
53
// set X or Y
54
void
setXchambers
(
bool
isX
){
m_isX
=
isX
;}
55
57
void
setClusterSizeC
(
const
std::vector<float>& clsize_c){
m_clusterSize_c
=clsize_c;}
58
59
60
// set/reset overflow
61
void
setCPosOverflow
(
const
std::vector<bool>& overflow) {
m_cPosOverflow
=overflow;}
62
63
64
// access signals ///////////////////////////////////////////////////////
65
inline
const
std::vector<float>&
getCPos
()
const
{
return
m_cPos
; }
66
67
inline
const
std::vector<float>&
getCErr
()
const
{
return
m_cErr
; }
68
69
inline
bool
isX
()
const
{
return
m_isX
;}
70
71
72
74
inline
const
std::vector<float>&
getClusterSizeC
()
const
{
return
m_clusterSize_c
;}
75
76
77
// access overflow for each variable //////////////////////////////////
78
inline
const
std::vector<bool>&
isCPosOverflow
()
const
{
return
m_cPosOverflow
; }
79
80
81
private
:
82
84
// Private Data //
86
87
88
// reconstructed (c,y)
89
std::vector<float>
m_cPos
;
90
std::vector<float>
m_cErr
;
91
92
bool
m_isX
;
93
94
// variables used in 2002 HEC+EMEC from LArTBBeamChambers :
95
std::vector<float>
m_clusterSize_c
;
96
97
98
99
// overflow indicators
100
std::vector<bool>
m_cPosOverflow
;
101
102
103
};
104
105
CLASS_DEF
(
TBMWPC
, 6388439 , 1 )
106
#endif
107
108
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
TBMWPC
Definition
TBMWPC.h:30
TBMWPC::getCErr
const std::vector< float > & getCErr() const
Definition
TBMWPC.h:67
TBMWPC::isCPosOverflow
const std::vector< bool > & isCPosOverflow() const
Definition
TBMWPC.h:78
TBMWPC::m_cErr
std::vector< float > m_cErr
Definition
TBMWPC.h:90
TBMWPC::setXchambers
void setXchambers(bool isX)
Definition
TBMWPC.h:54
TBMWPC::setCPos
void setCPos(const std::vector< float > &signals)
Definition
TBMWPC.h:49
TBMWPC::isX
bool isX() const
Definition
TBMWPC.h:69
TBMWPC::TBMWPC
TBMWPC()
Definition
TBMWPC.cxx:12
TBMWPC::setClusterSizeC
void setClusterSizeC(const std::vector< float > &clsize_c)
Set cluster size for c-direction.
Definition
TBMWPC.h:57
TBMWPC::m_clusterSize_c
std::vector< float > m_clusterSize_c
half with of cluster (c) (cm)
Definition
TBMWPC.h:95
TBMWPC::m_cPos
std::vector< float > m_cPos
Definition
TBMWPC.h:89
TBMWPC::setCErr
void setCErr(const std::vector< float > &errors)
Definition
TBMWPC.h:50
TBMWPC::getCPos
const std::vector< float > & getCPos() const
Definition
TBMWPC.h:65
TBMWPC::m_cPosOverflow
std::vector< bool > m_cPosOverflow
Definition
TBMWPC.h:100
TBMWPC::getClusterSizeC
const std::vector< float > & getClusterSizeC() const
Get cluster size for c-direction.
Definition
TBMWPC.h:74
TBMWPC::~TBMWPC
~TBMWPC()
Definition
TBMWPC.cxx:25
TBMWPC::m_isX
bool m_isX
Definition
TBMWPC.h:92
TBMWPC::setCPosOverflow
void setCPosOverflow(const std::vector< bool > &overflow)
Definition
TBMWPC.h:61
Generated on
for ATLAS Offline Software by
1.17.0