ATLAS Offline Software
Loading...
Searching...
No Matches
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"
23
24
25
26
27
28
29class 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
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
105CLASS_DEF( TBMWPC , 6388439 , 1 )
106#endif
107
108
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
const std::vector< float > & getCErr() const
Definition TBMWPC.h:67
const std::vector< bool > & isCPosOverflow() const
Definition TBMWPC.h:78
std::vector< float > m_cErr
Definition TBMWPC.h:90
void setXchambers(bool isX)
Definition TBMWPC.h:54
void setCPos(const std::vector< float > &signals)
Definition TBMWPC.h:49
bool isX() const
Definition TBMWPC.h:69
TBMWPC()
Definition TBMWPC.cxx:12
void setClusterSizeC(const std::vector< float > &clsize_c)
Set cluster size for c-direction.
Definition TBMWPC.h:57
std::vector< float > m_clusterSize_c
half with of cluster (c) (cm)
Definition TBMWPC.h:95
std::vector< float > m_cPos
Definition TBMWPC.h:89
void setCErr(const std::vector< float > &errors)
Definition TBMWPC.h:50
const std::vector< float > & getCPos() const
Definition TBMWPC.h:65
std::vector< bool > m_cPosOverflow
Definition TBMWPC.h:100
const std::vector< float > & getClusterSizeC() const
Get cluster size for c-direction.
Definition TBMWPC.h:74
~TBMWPC()
Definition TBMWPC.cxx:25
bool m_isX
Definition TBMWPC.h:92
void setCPosOverflow(const std::vector< bool > &overflow)
Definition TBMWPC.h:61