ATLAS Offline Software
Loading...
Searching...
No Matches
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
18#include <string>
19#include <string_view>
20#include <vector>
21
22
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
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
121
123 // Private Data Manipulation //
125
126 // void setUpStores();
127
128};
129
130CLASS_DEF( TBMWPCRaw , 239046776 , 1 )
131
132#endif
133
134
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.
std::vector< int > m_cwireno
center wire number
Definition TBMWPCRaw.h:113
bool isX() const
Definition TBMWPCRaw.h:95
bool m_isX
Definition TBMWPCRaw.h:118
void setXchambers(bool isX)
Definition TBMWPCRaw.h:73
virtual void setOverflow()
Definition TBMWPCRaw.cxx:81
const std::vector< int > & getNwires() const
Get the collection of the number of wire of a cluster.
Definition TBMWPCRaw.h:90
const std::vector< int > & getCwireno() const
Get the collection of the center wire number of a cluster.
Definition TBMWPCRaw.h:86
void addNwires(int nwire)
Definition TBMWPCRaw.h:68
bool m_overflowSetFlag
Definition TBMWPCRaw.h:120
void setNwires(const std::vector< int > &nwires)
Set the collection of the number of wires in a cluster.
Definition TBMWPCRaw.h:65
unsigned short signal_type
Definition TBMWPCRaw.h:27
void setCwireno(const std::vector< int > &cwireno)
Set the collection of the center wire number.
Definition TBMWPCRaw.h:57
virtual void resetOverflow()
Definition TBMWPCRaw.cxx:86
std::vector< int > m_nwires
the number of wires a cluster
Definition TBMWPCRaw.h:114
unsigned int source_type
Definition TBMWPCRaw.h:28
void reset()
Definition TBMWPCRaw.cxx:38
std::vector< bool > m_overflowType
Definition TBMWPCRaw.h:110
void addCwireno(int cwire)
Definition TBMWPCRaw.h:60