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