ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | Private Attributes | List of all members
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. More...
 
void addCwireno (int cwire)
 
void setNwires (const std::vector< int > &nwires)
 Set the collection of the number of wires in a cluster. More...
 
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. More...
 
const std::vector< int > & getNwires () const
 Get the collection of the number of wire of a cluster. More...
 
bool isX () const
 
void reset ()
 
virtual void setDetectorName (const std::string &tbBeamDetectorName)
 
std::string getDetectorName () const
 
bool isOverflow () const
 

Protected Attributes

bool m_overflow
 Detector Name. More...
 

Private Attributes

std::vector< bool > m_overflowType
 
std::vector< int > m_cwireno
 center wire number More...
 
std::vector< int > m_nwires
 the number of wires a cluster More...
 
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.

18  : TBBeamDetector(),
19  m_isX(false),
20  m_overflowSetFlag(false)
21 {
22  // prepare stores
23  // this->setUpStores();
24 }

◆ 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 }

◆ ~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  }

◆ addNwires()

void TBMWPCRaw::addNwires ( int  nwire)
inline

Definition at line 67 of file TBMWPCRaw.h.

67  {
68  m_nwires.push_back(nwire);
69  }

◆ 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()

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

Definition at line 61 of file TBBeamDetector.h.

62  { return 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; }

◆ 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 }

◆ resetOverflow()

void TBMWPCRaw::resetOverflow ( )
virtual

Reimplemented from TBBeamDetector.

Definition at line 89 of file TBMWPCRaw.cxx.

90 {
91  this->setOverflow(false);
92 }

◆ 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;}

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:
TBMWPCRaw::m_nwires
std::vector< int > m_nwires
the number of wires a cluster
Definition: TBMWPCRaw.h:113
TBMWPCRaw::setOverflow
virtual void setOverflow()
Definition: TBMWPCRaw.cxx:84
TBMWPCRaw::m_overflowSetFlag
bool m_overflowSetFlag
Definition: TBMWPCRaw.h:119
TBMWPCRaw::tdcUp
@ tdcUp
Definition: TBMWPCRaw.h:43
TBMWPCRaw::isX
bool isX() const
Definition: TBMWPCRaw.h:94
TBMWPCRaw::tdcLeft
@ tdcLeft
Definition: TBMWPCRaw.h:43
TBMWPCRaw::tdcRight
@ tdcRight
Definition: TBMWPCRaw.h:43
TBBeamDetector::TBBeamDetector
TBBeamDetector()
Definition: TBBeamDetector.h:23
TBMWPCRaw::reset
void reset()
Definition: TBMWPCRaw.cxx:41
TBBeamDetector::m_overflow
bool m_overflow
Detector Name.
Definition: TBBeamDetector.h:81
TBMWPCRaw::m_cwireno
std::vector< int > m_cwireno
center wire number
Definition: TBMWPCRaw.h:112
TBMWPCRaw::tdcDown
@ tdcDown
Definition: TBMWPCRaw.h:43
TBBeamDetector::m_tbDetectorName
std::string m_tbDetectorName
Definition: TBBeamDetector.h:76
TBMWPCRaw::m_isX
bool m_isX
Definition: TBMWPCRaw.h:117
TBMWPCRaw::m_overflowType
std::vector< bool > m_overflowType
Definition: TBMWPCRaw.h:109