BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
BesTofDigi Class Reference

#include <BesTofDigi.hh>

+ Inheritance diagram for BesTofDigi:

Public Member Functions

 BesTofDigi ()
 
virtual ~BesTofDigi ()
 
 BesTofDigi (const BesTofDigi &)
 
const BesTofDigioperator= (const BesTofDigi &)
 
virtual G4int operator== (const BesTofDigi &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetTrackIndex (G4int index)
 
void SetPartId (G4int partId)
 
void SetScinNb (G4int scinNb)
 
void SetForwADC (G4double ADC)
 
void SetBackADC (G4double ADC)
 
void SetForwTDC (G4double TDC)
 
void SetBackTDC (G4double TDC)
 
void SetModule_mrpc (G4int module_mrpc)
 
void SetTime1_mrpc (G4double time_mrpc)
 
void SetTime2_mrpc (G4double time_mrpc2)
 
void SetTrackIndex_mrpc (G4int index)
 
void SetPartId_mrpc (G4int partId)
 
G4int GetTrackIndex ()
 
G4int GetPartId ()
 
G4int GetScinNb ()
 
G4double GetForwADC ()
 
G4double GetBackADC ()
 
G4double GetForwTDC ()
 
G4double GetBackTDC ()
 
G4int GetModule_mrpc ()
 
G4double GetTime1_mrpc ()
 
G4double GetTime2_mrpc ()
 
G4int GetTrackIndex_mrpc ()
 
G4int GetPartId_mrpc ()
 

Detailed Description

Definition at line 19 of file BesTofDigi.hh.

Constructor & Destructor Documentation

◆ BesTofDigi() [1/2]

BesTofDigi::BesTofDigi ( )

Definition at line 16 of file BesTofDigi.cc.

17{
18 m_trackIndex = 0;
19 m_partId = -9;
20 m_scinNb = -9;
21 m_forwADC = -999;
22 m_backADC = -999;
23 m_forwTDC = -999;
24 m_backTDC = -999;
25
26
27}

◆ ~BesTofDigi()

BesTofDigi::~BesTofDigi ( )
virtual

Definition at line 29 of file BesTofDigi.cc.

29{}

◆ BesTofDigi() [2/2]

BesTofDigi::BesTofDigi ( const BesTofDigi right)

Definition at line 31 of file BesTofDigi.cc.

32 :G4VDigi()
33{
34 m_trackIndex = right.m_trackIndex;
35 m_partId=right.m_partId;
36 m_scinNb=right.m_scinNb;
37 m_forwADC=right.m_forwADC;
38 m_backADC=right.m_backADC;
39 m_forwTDC=right.m_forwTDC;
40 m_backTDC=right.m_backTDC;
41
42
43
44}

Member Function Documentation

◆ Draw()

void BesTofDigi::Draw ( )
virtual

Definition at line 68 of file BesTofDigi.cc.

69{
70}

◆ GetBackADC()

G4double BesTofDigi::GetBackADC ( )
inline

Definition at line 58 of file BesTofDigi.hh.

58{ return m_backADC; };

Referenced by BesRawDataWriter::SaveTofDigits(), and BesAsciiIO::SaveTofDigits().

◆ GetBackTDC()

G4double BesTofDigi::GetBackTDC ( )
inline

Definition at line 60 of file BesTofDigi.hh.

60{ return m_backTDC;};

Referenced by BesRawDataWriter::SaveTofDigits(), and BesAsciiIO::SaveTofDigits().

◆ GetForwADC()

G4double BesTofDigi::GetForwADC ( )
inline

Definition at line 57 of file BesTofDigi.hh.

57{ return m_forwADC; };

Referenced by BesRawDataWriter::SaveTofDigits(), and BesAsciiIO::SaveTofDigits().

◆ GetForwTDC()

G4double BesTofDigi::GetForwTDC ( )
inline

Definition at line 59 of file BesTofDigi.hh.

59{ return m_forwTDC;};

Referenced by BesRawDataWriter::SaveTofDigits(), and BesAsciiIO::SaveTofDigits().

◆ GetModule_mrpc()

G4int BesTofDigi::GetModule_mrpc ( )
inline

Definition at line 62 of file BesTofDigi.hh.

62{return m_scinNb;};

◆ GetPartId()

G4int BesTofDigi::GetPartId ( )
inline

Definition at line 55 of file BesTofDigi.hh.

55{ return m_partId;};

Referenced by BesRawDataWriter::SaveTofDigits(), and BesAsciiIO::SaveTofDigits().

◆ GetPartId_mrpc()

G4int BesTofDigi::GetPartId_mrpc ( )
inline

Definition at line 66 of file BesTofDigi.hh.

66{ return m_partId;}; //same function as above, but different name

◆ GetScinNb()

G4int BesTofDigi::GetScinNb ( )
inline

Definition at line 56 of file BesTofDigi.hh.

56{ return m_scinNb; };

Referenced by BesRawDataWriter::SaveTofDigits(), and BesAsciiIO::SaveTofDigits().

◆ GetTime1_mrpc()

G4double BesTofDigi::GetTime1_mrpc ( )
inline

Definition at line 63 of file BesTofDigi.hh.

63{return m_forwTDC;};

◆ GetTime2_mrpc()

G4double BesTofDigi::GetTime2_mrpc ( )
inline

Definition at line 64 of file BesTofDigi.hh.

64{return m_backTDC;};

◆ GetTrackIndex()

G4int BesTofDigi::GetTrackIndex ( )
inline

Definition at line 54 of file BesTofDigi.hh.

54{ return m_trackIndex; }

Referenced by BesRawDataWriter::SaveTofDigits(), and BesAsciiIO::SaveTofDigits().

◆ GetTrackIndex_mrpc()

G4int BesTofDigi::GetTrackIndex_mrpc ( )
inline

Definition at line 65 of file BesTofDigi.hh.

65{ return m_trackIndex;}; //same function as above, but different name

◆ operator delete()

void BesTofDigi::operator delete ( void *  aDigi)
inline

Definition at line 94 of file BesTofDigi.hh.

95{
96 BesTofDigiAllocator.FreeSingle((BesTofDigi*) aDigi);
97}
G4Allocator< BesTofDigi > BesTofDigiAllocator
Definition: BesTofDigi.cc:14

◆ operator new()

void * BesTofDigi::operator new ( size_t  )
inline

Definition at line 87 of file BesTofDigi.hh.

88{
89 void *aDigi;
90 aDigi = (void *) BesTofDigiAllocator.MallocSingle();
91 return aDigi;
92}

◆ operator=()

const BesTofDigi & BesTofDigi::operator= ( const BesTofDigi right)

Definition at line 47 of file BesTofDigi.cc.

48{
49 m_trackIndex=right.m_trackIndex;
50 m_partId=right.m_partId;
51 m_scinNb=right.m_scinNb;
52 m_forwADC=right.m_forwADC;
53 m_backADC=right.m_backADC;
54 m_forwTDC=right.m_forwTDC;
55 m_backTDC=right.m_backTDC;
56
57
58 return *this;
59}

◆ operator==()

int BesTofDigi::operator== ( const BesTofDigi right) const
virtual

Definition at line 62 of file BesTofDigi.cc.

63{
64 return (this==&right) ? 1 : 0;
65}

◆ Print()

void BesTofDigi::Print ( )
virtual

Definition at line 73 of file BesTofDigi.cc.

74{
75}

◆ SetBackADC()

void BesTofDigi::SetBackADC ( G4double  ADC)
inline

◆ SetBackTDC()

void BesTofDigi::SetBackTDC ( G4double  TDC)
inline

◆ SetForwADC()

void BesTofDigi::SetForwADC ( G4double  ADC)
inline

◆ SetForwTDC()

void BesTofDigi::SetForwTDC ( G4double  TDC)
inline

◆ SetModule_mrpc()

void BesTofDigi::SetModule_mrpc ( G4int  module_mrpc)
inline

Definition at line 46 of file BesTofDigi.hh.

46{ m_scinNb=module_mrpc;};

Referenced by BesTofDigitizerEcV4::Digitize().

◆ SetPartId()

void BesTofDigi::SetPartId ( G4int  partId)
inline

◆ SetPartId_mrpc()

void BesTofDigi::SetPartId_mrpc ( G4int  partId)
inline

Definition at line 50 of file BesTofDigi.hh.

50{ m_partId = partId; };//same function as above, but different name

◆ SetScinNb()

void BesTofDigi::SetScinNb ( G4int  scinNb)
inline

◆ SetTime1_mrpc()

void BesTofDigi::SetTime1_mrpc ( G4double  time_mrpc)
inline

Definition at line 47 of file BesTofDigi.hh.

47{ m_forwTDC=time_mrpc;};

Referenced by BesTofDigitizerEcV4::Digitize().

◆ SetTime2_mrpc()

void BesTofDigi::SetTime2_mrpc ( G4double  time_mrpc2)
inline

Definition at line 48 of file BesTofDigi.hh.

48{ m_backTDC=time_mrpc2;};

Referenced by BesTofDigitizerEcV4::Digitize().

◆ SetTrackIndex()

void BesTofDigi::SetTrackIndex ( G4int  index)
inline

◆ SetTrackIndex_mrpc()

void BesTofDigi::SetTrackIndex_mrpc ( G4int  index)
inline

Definition at line 49 of file BesTofDigi.hh.

49{ m_trackIndex = index; };//same function as above, but different name

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