ATLAS Offline Software
Loading...
Searching...
No Matches
TBMWPCRaw.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7#include "TBEvent/TBMWPCRaw.h"
8
9
11// Constructors and Destructors //
13
16 m_isX(false),
18{
19 // prepare stores
20 // this->setUpStores();
21}
22
23TBMWPCRaw::TBMWPCRaw(std::string_view thisBPCName)
24 : TBBeamDetector(thisBPCName),
25 m_isX(false)
26{
27 // prepare stores
28 this->reset();
29}
30
33
35// Data Manipulation //
37
39{
40 // reset signals and overflows
41 // m_signals.resize(m_signals.size(),0);
42 m_overflowType.resize(m_overflowType.size(),false);
43 // global flags
44 m_overflowSetFlag = false;
45
46 m_cwireno.clear();
47 m_nwires.clear();
48}
49
50// void TBMWPCRaw::setSignal(TBMWPCRaw::source_type theSignalType,
51// TBMWPCRaw::signal_type theSignal)
52// {
53// if ( theSignalType < m_signals.size() )
54// {
55// m_signals[theSignalType] = theSignal;
56// }
57// }
58
59// overflow handling for each signal type
60// void TBMWPCRaw::setOverflow(TBMWPCRaw::source_type theSignalType)
61// {
62// this->setOverflow(theSignalType,true);
63// }
64
65// void TBMWPCRaw::resetOverflow(TBMWPCRaw::source_type theSignalType)
66// {
67// this->setOverflow(theSignalType,false);
68// }
69
70// void TBMWPCRaw::setOverflow(TBMWPCRaw::source_type theSignalType,
71// bool overflow)
72// {
73// if ( theSignalType < m_signals.size() )
74// {
75// m_overflowType[theSignalType] = overflow;
76// }
77// if ( ! m_overflowSetFlag ) m_overflow = ( m_overflow | overflow );
78// }
79
80// global overflow handling
82{
83 this->setOverflow(true);
84}
85
87{
88 this->setOverflow(false);
89}
90
91void TBMWPCRaw::setOverflow(bool overflow)
92{
93 m_overflowSetFlag = true;
94 m_overflow = overflow;
95}
96
98// Data Access //
100
101// TBMWPCRaw::signal_type
102// TBMWPCRaw::getSignal(TBMWPCRaw::source_type theSignalType) const
103// {
104// return ( theSignalType <= TBMWPCRaw::tdcUp )
105// ? m_signals[theSignalType]
106// : 0;
107// }
108
109// bool TBMWPCRaw::isOverflow(TBMWPCRaw::source_type theSignalType) const
110// {
111// return ( theSignalType <= TBMWPCRaw::tdcUp )
112// ? m_overflowType[theSignalType]
113// : false;
114// }
115
117// Internal //
119
120// void TBMWPCRaw::setUpStores()
121// {
122// // find size
123// unsigned int theSize = (unsigned int) TBMWPCRaw::tdcUp;
124// theSize++;
125// // preset
126// m_signals.resize(theSize);
127// m_overflowType.resize(theSize);
128// this->reset();
129// }
bool m_overflow
Detector Name.
std::vector< int > m_cwireno
center wire number
Definition TBMWPCRaw.h:113
bool m_isX
Definition TBMWPCRaw.h:118
virtual void setOverflow()
Definition TBMWPCRaw.cxx:81
bool m_overflowSetFlag
Definition TBMWPCRaw.h:120
virtual void resetOverflow()
Definition TBMWPCRaw.cxx:86
std::vector< int > m_nwires
the number of wires a cluster
Definition TBMWPCRaw.h:114
void reset()
Definition TBMWPCRaw.cxx:38
std::vector< bool > m_overflowType
Definition TBMWPCRaw.h:110