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 (std::string_view 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 (std::string_view 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 23 of file TBMWPCRaw.h.

Member Typedef Documentation

◆ signal_type

typedef unsigned short TBMWPCRaw::signal_type

Definition at line 27 of file TBMWPCRaw.h.

◆ source_type

typedef unsigned int TBMWPCRaw::source_type

Definition at line 28 of file TBMWPCRaw.h.

Member Enumeration Documentation

◆ SignalType

Enumerator
tdcLeft 
tdcRight 
tdcDown 
tdcUp 

Definition at line 43 of file TBMWPCRaw.h.

43 {
45 };

Constructor & Destructor Documentation

◆ TBMWPCRaw() [1/2]

TBMWPCRaw::TBMWPCRaw ( )

Definition at line 14 of file TBMWPCRaw.cxx.

16 m_isX(false),
18{
19 // prepare stores
20 // this->setUpStores();
21}
bool m_isX
Definition TBMWPCRaw.h:118
bool m_overflowSetFlag
Definition TBMWPCRaw.h:120

◆ TBMWPCRaw() [2/2]

TBMWPCRaw::TBMWPCRaw ( std::string_view thisBPCName)

Definition at line 23 of file TBMWPCRaw.cxx.

24 : TBBeamDetector(thisBPCName),
25 m_isX(false)
26{
27 // prepare stores
28 this->reset();
29}
void reset()
Definition TBMWPCRaw.cxx:38

◆ ~TBMWPCRaw()

TBMWPCRaw::~TBMWPCRaw ( )

Definition at line 31 of file TBMWPCRaw.cxx.

32{ }

Member Function Documentation

◆ addCwireno()

void TBMWPCRaw::addCwireno ( int cwire)
inline

Definition at line 60 of file TBMWPCRaw.h.

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

◆ addNwires()

void TBMWPCRaw::addNwires ( int nwire)
inline

Definition at line 68 of file TBMWPCRaw.h.

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

◆ getCwireno()

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

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

Definition at line 86 of file TBMWPCRaw.h.

87 { return m_cwireno; }

◆ getDetectorName()

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

Definition at line 62 of file TBBeamDetector.h.

63 { 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 90 of file TBMWPCRaw.h.

91 { return m_nwires; }

◆ isOverflow()

bool TBBeamDetector::isOverflow ( ) const
inlineinherited

Definition at line 65 of file TBBeamDetector.h.

66 { return m_overflow; }
bool m_overflow
Detector Name.

◆ isX()

bool TBMWPCRaw::isX ( ) const
inline

Definition at line 95 of file TBMWPCRaw.h.

95{return m_isX;}

◆ reset()

void TBMWPCRaw::reset ( )

Definition at line 38 of file TBMWPCRaw.cxx.

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

◆ resetOverflow()

void TBMWPCRaw::resetOverflow ( )
virtual

Reimplemented from TBBeamDetector.

Definition at line 86 of file TBMWPCRaw.cxx.

87{
88 this->setOverflow(false);
89}
virtual void setOverflow()
Definition TBMWPCRaw.cxx:81

◆ setCwireno()

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

Set the collection of the center wire number.

Definition at line 57 of file TBMWPCRaw.h.

57 {
58 m_cwireno = cwireno;
59 }

◆ setDetectorName()

virtual void TBBeamDetector::setDetectorName ( std::string_view tbBeamDetectorName)
inlinevirtualinherited

Definition at line 49 of file TBBeamDetector.h.

50 { m_tbDetectorName.assign(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 65 of file TBMWPCRaw.h.

65 {
66 m_nwires = nwires;
67 }

◆ setOverflow() [1/2]

void TBMWPCRaw::setOverflow ( )
virtual

Reimplemented from TBBeamDetector.

Definition at line 81 of file TBMWPCRaw.cxx.

82{
83 this->setOverflow(true);
84}

◆ setOverflow() [2/2]

void TBMWPCRaw::setOverflow ( bool overflow)
virtual

Reimplemented from TBBeamDetector.

Definition at line 91 of file TBMWPCRaw.cxx.

92{
93 m_overflowSetFlag = true;
94 m_overflow = overflow;
95}

◆ setXchambers()

void TBMWPCRaw::setXchambers ( bool isX)
inline

Definition at line 73 of file TBMWPCRaw.h.

73{m_isX=isX;}
bool isX() const
Definition TBMWPCRaw.h:95

Member Data Documentation

◆ m_cwireno

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

center wire number

Definition at line 113 of file TBMWPCRaw.h.

◆ m_isX

bool TBMWPCRaw::m_isX
private

Definition at line 118 of file TBMWPCRaw.h.

◆ m_nwires

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

the number of wires a cluster

Definition at line 114 of file TBMWPCRaw.h.

◆ m_overflow

bool TBBeamDetector::m_overflow
protectedinherited

Detector Name.

Definition at line 82 of file TBBeamDetector.h.

◆ m_overflowSetFlag

bool TBMWPCRaw::m_overflowSetFlag
private

Definition at line 120 of file TBMWPCRaw.h.

◆ m_overflowType

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

Definition at line 110 of file TBMWPCRaw.h.

◆ m_tbDetectorName

std::string TBBeamDetector::m_tbDetectorName
privateinherited

Definition at line 77 of file TBBeamDetector.h.


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