ATLAS Offline Software
Loading...
Searching...
No Matches
TBMWPCRaw Class Reference

#include <TBMWPCRaw.h>

Inheritance diagram for TBMWPCRaw:
Collaboration diagram for TBMWPCRaw:

Public Types

enum  SignalType { tdcLeft =0 , tdcRight , tdcDown , tdcUp }
typedef unsigned short signal_type
typedef unsigned int source_type

Public Member Functions

 TBMWPCRaw ()
 TBMWPCRaw (const std::string &thisBPCName)
 ~TBMWPCRaw ()
void setCwireno (const std::vector< int > &cwireno)
 Set the collection of the center wire number.
void addCwireno (int cwire)
void setNwires (const std::vector< int > &nwires)
 Set the collection of the number of wires in a cluster.
void addNwires (int nwire)
void setXchambers (bool isX)
virtual void setOverflow ()
virtual void setOverflow (bool overflow)
virtual void resetOverflow ()
const std::vector< int > & getCwireno () const
 Get the collection of the center wire number of a cluster.
const std::vector< int > & getNwires () const
 Get the collection of the number of wire of a cluster.
bool isX () const
void reset ()
virtual void setDetectorName (const std::string &tbBeamDetectorName)
const std::string & getDetectorName () const
bool isOverflow () const

Protected Attributes

bool m_overflow
 Detector Name.

Private Attributes

std::vector< bool > m_overflowType
std::vector< int > m_cwireno
 center wire number
std::vector< int > m_nwires
 the number of wires a cluster
bool m_isX
bool m_overflowSetFlag
std::string m_tbDetectorName

Detailed Description

Definition at line 22 of file TBMWPCRaw.h.

Member Typedef Documentation

◆ signal_type

typedef unsigned short TBMWPCRaw::signal_type

Definition at line 26 of file TBMWPCRaw.h.

◆ source_type

typedef unsigned int TBMWPCRaw::source_type

Definition at line 27 of file TBMWPCRaw.h.

Member Enumeration Documentation

◆ SignalType

Enumerator
tdcLeft 
tdcRight 
tdcDown 
tdcUp 

Definition at line 42 of file TBMWPCRaw.h.

42 {
44 };

Constructor & Destructor Documentation

◆ TBMWPCRaw() [1/2]

TBMWPCRaw::TBMWPCRaw ( )

Definition at line 17 of file TBMWPCRaw.cxx.

19 m_isX(false),
21{
22 // prepare stores
23 // this->setUpStores();
24}
bool m_isX
Definition TBMWPCRaw.h:117
bool m_overflowSetFlag
Definition TBMWPCRaw.h:119

◆ TBMWPCRaw() [2/2]

TBMWPCRaw::TBMWPCRaw ( const std::string & thisBPCName)

Definition at line 26 of file TBMWPCRaw.cxx.

27 : TBBeamDetector(thisBPCName),
28 m_isX(false)
29{
30 // prepare stores
31 this->reset();
32}
void reset()
Definition TBMWPCRaw.cxx:41

◆ ~TBMWPCRaw()

TBMWPCRaw::~TBMWPCRaw ( )

Definition at line 34 of file TBMWPCRaw.cxx.

35{ }

Member Function Documentation

◆ addCwireno()

void TBMWPCRaw::addCwireno ( int cwire)
inline

Definition at line 59 of file TBMWPCRaw.h.

59 {
60 m_cwireno.push_back(cwire);
61 }
std::vector< int > m_cwireno
center wire number
Definition TBMWPCRaw.h:112

◆ addNwires()

void TBMWPCRaw::addNwires ( int nwire)
inline

Definition at line 67 of file TBMWPCRaw.h.

67 {
68 m_nwires.push_back(nwire);
69 }
std::vector< int > m_nwires
the number of wires a cluster
Definition TBMWPCRaw.h:113

◆ getCwireno()

const std::vector< int > & TBMWPCRaw::getCwireno ( ) const
inline

Get the collection of the center wire number of a cluster.

Definition at line 85 of file TBMWPCRaw.h.

86 { return m_cwireno; }

◆ getDetectorName()

const std::string & TBBeamDetector::getDetectorName ( ) const
inlineinherited

Definition at line 61 of file TBBeamDetector.h.

62 { return m_tbDetectorName; }
std::string m_tbDetectorName

◆ getNwires()

const std::vector< int > & TBMWPCRaw::getNwires ( ) const
inline

Get the collection of the number of wire of a cluster.

Definition at line 89 of file TBMWPCRaw.h.

90 { return m_nwires; }

◆ isOverflow()

bool TBBeamDetector::isOverflow ( ) const
inlineinherited

Definition at line 64 of file TBBeamDetector.h.

65 { return m_overflow; }
bool m_overflow
Detector Name.

◆ isX()

bool TBMWPCRaw::isX ( ) const
inline

Definition at line 94 of file TBMWPCRaw.h.

94{return m_isX;}

◆ reset()

void TBMWPCRaw::reset ( )

Definition at line 41 of file TBMWPCRaw.cxx.

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}
std::vector< bool > m_overflowType
Definition TBMWPCRaw.h:109

◆ resetOverflow()

void TBMWPCRaw::resetOverflow ( )
virtual

Reimplemented from TBBeamDetector.

Definition at line 89 of file TBMWPCRaw.cxx.

90{
91 this->setOverflow(false);
92}
virtual void setOverflow()
Definition TBMWPCRaw.cxx:84

◆ setCwireno()

void TBMWPCRaw::setCwireno ( const std::vector< int > & cwireno)
inline

Set the collection of the center wire number.

Definition at line 56 of file TBMWPCRaw.h.

56 {
57 m_cwireno = cwireno;
58 }

◆ setDetectorName()

virtual void TBBeamDetector::setDetectorName ( const std::string & tbBeamDetectorName)
inlinevirtualinherited

Definition at line 48 of file TBBeamDetector.h.

49 { m_tbDetectorName = tbBeamDetectorName; }

◆ setNwires()

void TBMWPCRaw::setNwires ( const std::vector< int > & nwires)
inline

Set the collection of the number of wires in a cluster.

Definition at line 64 of file TBMWPCRaw.h.

64 {
65 m_nwires = nwires;
66 }

◆ setOverflow() [1/2]

void TBMWPCRaw::setOverflow ( )
virtual

Reimplemented from TBBeamDetector.

Definition at line 84 of file TBMWPCRaw.cxx.

85{
86 this->setOverflow(true);
87}

◆ setOverflow() [2/2]

void TBMWPCRaw::setOverflow ( bool overflow)
virtual

Reimplemented from TBBeamDetector.

Definition at line 94 of file TBMWPCRaw.cxx.

95{
96 m_overflowSetFlag = true;
97 m_overflow = overflow;
98}

◆ setXchambers()

void TBMWPCRaw::setXchambers ( bool isX)
inline

Definition at line 72 of file TBMWPCRaw.h.

72{m_isX=isX;}
bool isX() const
Definition TBMWPCRaw.h:94

Member Data Documentation

◆ m_cwireno

std::vector<int> TBMWPCRaw::m_cwireno
private

center wire number

Definition at line 112 of file TBMWPCRaw.h.

◆ m_isX

bool TBMWPCRaw::m_isX
private

Definition at line 117 of file TBMWPCRaw.h.

◆ m_nwires

std::vector<int> TBMWPCRaw::m_nwires
private

the number of wires a cluster

Definition at line 113 of file TBMWPCRaw.h.

◆ m_overflow

bool TBBeamDetector::m_overflow
protectedinherited

Detector Name.

Definition at line 81 of file TBBeamDetector.h.

◆ m_overflowSetFlag

bool TBMWPCRaw::m_overflowSetFlag
private

Definition at line 119 of file TBMWPCRaw.h.

◆ m_overflowType

std::vector<bool> TBMWPCRaw::m_overflowType
private

Definition at line 109 of file TBMWPCRaw.h.

◆ m_tbDetectorName

std::string TBBeamDetector::m_tbDetectorName
privateinherited

Definition at line 76 of file TBBeamDetector.h.


The documentation for this class was generated from the following files: