ATLAS Offline Software
Loading...
Searching...
No Matches
TBMWPCRaw.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 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#include <string>
15#include <vector>
19
20
21
23{
24 public:
25
26 typedef unsigned short signal_type;
27 typedef unsigned int source_type;
28
30 // Constructors and Destructor //
32
33 TBMWPCRaw();
34 TBMWPCRaw(const std::string& thisBPCName);
35 ~TBMWPCRaw();
36
38 // Data Manipulation //
40
41 // signal type definition
45
46 // set signal //////////////////////////////////////////////////////
47 // void setSignal(source_type theSignalType, signal_type theSignal);
48
49 // set/reset overflow for each signal
50/* void setOverflow(source_type theSignalType); */
51/* void setOverflow(source_type theSignalType, bool overflow); */
52/* void resetOverflow(source_type theSignalType); */
53
54
56 inline void setCwireno(const std::vector<int>& cwireno) {
57 m_cwireno = cwireno;
58 }
59 inline void addCwireno(int cwire){
60 m_cwireno.push_back(cwire);
61 }
62
64 inline void setNwires(const std::vector<int>& nwires) {
65 m_nwires = nwires;
66 }
67 inline void addNwires(int nwire){
68 m_nwires.push_back(nwire);
69 }
70
71 // set X or Y
72 inline void setXchambers(bool isX){m_isX=isX;}
73
74
75 // set global overflow
76 virtual void setOverflow();
77 virtual void setOverflow(bool overflow);
78 virtual void resetOverflow();
79
80
81 // access signal //////////////////////////////////////////////////
82
83
85 inline const std::vector<int> & getCwireno()
86 const { return m_cwireno; }
87
89 inline const std::vector<int> & getNwires()
90 const { return m_nwires; }
91
92
93
94 inline bool isX() const {return m_isX;}
95
96 // access overflow for each signal type
97 // bool isOverflow(source_type theSignalType) const;
98
99 // data class reset
100 void reset();
101
102 private:
103
105 // Private Data //
107
108 // std::vector<signal_type> m_signals;
109 std::vector<bool> m_overflowType;
110
111 // Variables used in 2002 HEC+EMEC TB copied from LArTBeamChambers :
112 std::vector<int> m_cwireno;
113 std::vector<int> m_nwires;
114
115
116
117 bool m_isX;
118
120
122 // Private Data Manipulation //
124
125 // void setUpStores();
126
127};
128
129CLASS_DEF( TBMWPCRaw , 239046776 , 1 )
130
131#endif
132
133
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:112
bool isX() const
Definition TBMWPCRaw.h:94
bool m_isX
Definition TBMWPCRaw.h:117
void setXchambers(bool isX)
Definition TBMWPCRaw.h:72
virtual void setOverflow()
Definition TBMWPCRaw.cxx:84
const std::vector< int > & getNwires() const
Get the collection of the number of wire of a cluster.
Definition TBMWPCRaw.h:89
const std::vector< int > & getCwireno() const
Get the collection of the center wire number of a cluster.
Definition TBMWPCRaw.h:85
void addNwires(int nwire)
Definition TBMWPCRaw.h:67
bool m_overflowSetFlag
Definition TBMWPCRaw.h:119
void setNwires(const std::vector< int > &nwires)
Set the collection of the number of wires in a cluster.
Definition TBMWPCRaw.h:64
unsigned short signal_type
Definition TBMWPCRaw.h:26
void setCwireno(const std::vector< int > &cwireno)
Set the collection of the center wire number.
Definition TBMWPCRaw.h:56
virtual void resetOverflow()
Definition TBMWPCRaw.cxx:89
std::vector< int > m_nwires
the number of wires a cluster
Definition TBMWPCRaw.h:113
unsigned int source_type
Definition TBMWPCRaw.h:27
void reset()
Definition TBMWPCRaw.cxx:41
std::vector< bool > m_overflowType
Definition TBMWPCRaw.h:109
void addCwireno(int cwire)
Definition TBMWPCRaw.h:59