#include <MTChannel.hh>
Inheritance diagram for MTChannel:
Public Member Functions | |
MTChannel () | |
MTChannel (const MTChannel &orig) | |
MTChannel (const ChannelHit &hit, UInt_t order) | |
virtual | ~MTChannel () |
Int_t | GetAnalogValue (void) const |
Int_t | GetDigitalValue (void) const |
Float_t | GetEnergy (void) const |
const MTChannelSoftId & | GetSoftId () const |
UInt_t | GetHardId (void) const |
Int_t | GetX (void) const |
Int_t | GetY (void) const |
Int_t | GetZ (void) const |
UInt_t | GetOrder (void) const |
UInt_t | GetChb (void) const |
UInt_t | GetChamberId (void) const |
UInt_t | GetDifId (void) const |
UInt_t | GetChipId (void) const |
UInt_t | GetBoardId (void) const |
UInt_t | GetRowInChip (void) const |
UInt_t | GetColInChip (void) const |
UInt_t | GetRowInChamber () const |
UInt_t | GetColInChamber () const |
ULong64_t | GetTimestamp (void) const |
UInt_t | GetBcId_Abs (void) const |
UInt_t | SetBcId_Abs (UInt_t bcId) |
UInt_t | GetBcId_Dif (void) const |
UInt_t | GetBcId_Hit (void) const |
UInt_t | GetBcId_Hit_Fine (void) const |
bool | GetRejected (void) const |
void | SetRejected (bool aValue) |
void | SetMemoryOrder (const UInt_t order) |
UInt_t | GetMemoryOrder (void) const |
void | SetX (Int_t val) |
void | SetY (Int_t val) |
void | SetZ (Int_t val) |
void | SetEnergy (Float_t val) |
Int_t | Compare (const TObject *obj) const |
Private Attributes | |
Int_t | fAnalogValue |
Int_t | fDigitalValue |
Float_t | fEnergy |
MTChannelSoftId | fSoftId |
UInt_t | fHardId |
Int_t | fX |
Int_t | fY |
Int_t | fZ |
UInt_t | fOrder |
ULong64_t | timestamp |
UInt_t | bcId_Abs |
UInt_t | bcId_Dif |
UInt_t | bcId_Hit |
UInt_t | bcId_Hit_Fine |
UInt_t | memoryOrder |
bool | rejected |
UInt_t | rowInChamber |
UInt_t | colInChamber |
Definition at line 31 of file MTChannel.hh.
MTChannel::MTChannel | ( | ) |
Definition at line 45 of file MTChannel.cpp.
00046 { 00047 // Copy a channel object 00048 00049 fAnalogValue = 0; 00050 fDigitalValue = 0; 00051 fEnergy = 0.; 00052 fHardId = 0; 00053 fX = 0.; 00054 fY = 0.; 00055 fZ = 0.; 00056 rowInChamber = 0; 00057 colInChamber = 0; 00058 fOrder = 0; 00059 timestamp = 0; 00060 bcId_Abs = 0; 00061 bcId_Dif = 0; 00062 bcId_Hit = 0; 00063 bcId_Hit_Fine = 0; 00064 memoryOrder = 0; 00065 rejected = false; 00066 }
MTChannel::MTChannel | ( | const MTChannel & | orig | ) |
Definition at line 68 of file MTChannel.cpp.
00068 : TObject(orig) 00069 { 00070 // Copy a channel object 00071 00072 fAnalogValue = orig.fAnalogValue; 00073 fDigitalValue = orig.fDigitalValue; 00074 fEnergy = orig.fEnergy; 00075 fSoftId = orig.fSoftId; 00076 fHardId = orig.fHardId; 00077 fX = orig.fX; 00078 fY = orig.fY; 00079 fZ = orig.fZ; 00080 rowInChamber = orig.rowInChamber; 00081 colInChamber = orig.colInChamber; 00082 fOrder = orig.fOrder; 00083 timestamp = orig.timestamp; 00084 bcId_Abs = orig.bcId_Abs; 00085 bcId_Dif = orig.bcId_Dif; 00086 bcId_Hit = orig.bcId_Hit; 00087 bcId_Hit_Fine = orig.bcId_Hit_Fine; 00088 memoryOrder = orig.memoryOrder; 00089 ; 00090 00091 rejected = orig.rejected; 00092 }
MTChannel::MTChannel | ( | const ChannelHit & | hit, | |
UInt_t | order | |||
) |
Definition at line 96 of file MTChannel.cpp.
00096 { 00097 const Channel& ch = hit.getChannel(); 00098 00099 fAnalogValue = hit.getAnalogValue(); 00100 fEnergy = 0; 00101 fDigitalValue = hit.getDigitalValue(); 00102 const Chip& chip = ch.getChip() ; 00103 const Board& board = chip.getBoard() ; 00104 const Dif* dif = board.getDif(); 00105 unsigned int difId = 0; 00106 if ( dif != NULL) difId = dif->getId(); 00107 const Chamber& cham = ch.getChamber(); 00108 00109 fSoftId.SetValue(cham.getId(), difId, board.getId(), board.getRow(), board.getColumn(), board.getNbRows(), board.getNbColumns(), 00110 chip.getId(),chip.getRow(), chip.getColumn(),chip.getNbRows(), chip.getNbColumns(), chip.getSerialNumber(), 00111 ch.getHardId(),ch.getRow(),ch.getColumn()); 00112 fHardId =ch.getHardId() ; 00113 00114 00115 fHardId = ch.getHardId(); 00116 fX = ch.getX(); fY = ch.getY(); fZ = ch.getZ(); 00117 rowInChamber = ch.getRowInChamber(); 00118 colInChamber = ch.getColInChamber(); 00119 fOrder = order; 00120 timestamp = hit.getTimestamp(); 00121 bcId_Abs = hit.getBcId_Abs(); 00122 bcId_Dif = hit.getBcId_Dif(); 00123 bcId_Hit = hit.getBcId_Hit(); 00124 bcId_Hit_Fine = hit.getBcId_Hit_Fine(); 00125 memoryOrder = hit.getMemoryOrder(); 00126 00127 00128 rejected = 0; 00129 00130 00131 }
virtual MTChannel::~MTChannel | ( | ) | [inline, virtual] |
Int_t MTChannel::GetAnalogValue | ( | void | ) | const [inline] |
Definition at line 64 of file MTChannel.hh.
Referenced by BeamProfile::FillHotChip(), BeamProfile::FillXyDist(), BeamProfile::filterOnCut(), and main().
00064 { return fAnalogValue; }
Int_t MTChannel::GetDigitalValue | ( | void | ) | const [inline] |
Definition at line 65 of file MTChannel.hh.
Referenced by EventDisplay::DisplayMTEvent(), BeamProfile::FillHotChip(), BeamProfile::FillXyDist(), and main().
00065 { return fDigitalValue; }
Float_t MTChannel::GetEnergy | ( | void | ) | const [inline] |
const MTChannelSoftId& MTChannel::GetSoftId | ( | ) | const [inline] |
Definition at line 67 of file MTChannel.hh.
Referenced by MTEvent::AddChannel(), BeamProfile::FillDeltaT(), BeamProfile::FillHitPerChannel(), BeamProfile::FillHitPerChipDist(), BeamProfile::FillHotChip(), and main().
00067 { return fSoftId; }
UInt_t MTChannel::GetHardId | ( | void | ) | const [inline] |
Definition at line 68 of file MTChannel.hh.
Referenced by BeamProfile::FillHitPerChannel(), and main().
00068 { return fHardId; }
Int_t MTChannel::GetX | ( | void | ) | const [inline] |
Definition at line 69 of file MTChannel.hh.
Referenced by EventDisplay::DisplayMTEvent(), BeamProfile::FillXyDist(), and main().
00069 { return fX; }
Int_t MTChannel::GetY | ( | void | ) | const [inline] |
Definition at line 70 of file MTChannel.hh.
Referenced by EventDisplay::DisplayMTEvent(), BeamProfile::FillXyDist(), and main().
00070 { return fY; }
Int_t MTChannel::GetZ | ( | void | ) | const [inline] |
Definition at line 71 of file MTChannel.hh.
Referenced by EventDisplay::DisplayMTEvent(), and main().
00071 { return fZ; }
UInt_t MTChannel::GetOrder | ( | void | ) | const [inline] |
UInt_t MTChannel::GetChb | ( | void | ) | const [inline] |
UInt_t MTChannel::GetChamberId | ( | void | ) | const |
Definition at line 134 of file MTChannel.cpp.
Referenced by BeamProfile::FillHitPerChannel(), BeamProfile::FillHitPerChipDist(), BeamProfile::FillHotChip(), BeamProfile::FillXyDist(), BeamProfile::filterOnId(), MTEvent::GetChannelByOrder(), GetChb(), MTEvent::GetNchannel(), and main().
00135 { 00136 return fSoftId.GetChamberId(); 00137 }
UInt_t MTChannel::GetDifId | ( | void | ) | const |
UInt_t MTChannel::GetChipId | ( | void | ) | const |
Definition at line 149 of file MTChannel.cpp.
Referenced by BeamProfile::FillHitPerChannel(), BeamProfile::FillHitPerChipDist(), BeamProfile::filterOnId(), and main().
UInt_t MTChannel::GetBoardId | ( | void | ) | const |
Definition at line 139 of file MTChannel.cpp.
Referenced by BeamProfile::FillHitPerChannel(), BeamProfile::FillHitPerChipDist(), BeamProfile::filterOnId(), and main().
00140 { 00141 return fSoftId.GetBoardId(); 00142 }
UInt_t MTChannel::GetRowInChip | ( | void | ) | const |
Definition at line 154 of file MTChannel.cpp.
Referenced by main().
00155 { 00156 return fSoftId.GetRowInChip(); 00157 }
UInt_t MTChannel::GetColInChip | ( | void | ) | const |
Definition at line 159 of file MTChannel.cpp.
Referenced by main().
00160 { 00161 return fSoftId.GetColInChip(); 00162 }
UInt_t MTChannel::GetRowInChamber | ( | ) | const [inline] |
UInt_t MTChannel::GetColInChamber | ( | ) | const [inline] |
ULong64_t MTChannel::GetTimestamp | ( | void | ) | const [inline] |
UInt_t MTChannel::GetBcId_Abs | ( | void | ) | const [inline] |
Definition at line 84 of file MTChannel.hh.
Referenced by MTEvent::AddChannel(), and main().
00084 { return(bcId_Abs); };
UInt_t MTChannel::SetBcId_Abs | ( | UInt_t | bcId | ) | [inline] |
UInt_t MTChannel::GetBcId_Dif | ( | void | ) | const [inline] |
Definition at line 87 of file MTChannel.hh.
Referenced by MTEvent::AddChannel(), EventDisplay::DisplayMTEvent(), BeamProfile::FillDeltaT(), BeamProfile::filterOnCut(), and main().
00087 { return(bcId_Dif); };
UInt_t MTChannel::GetBcId_Hit | ( | void | ) | const [inline] |
Definition at line 88 of file MTChannel.hh.
Referenced by MTEvent::AddChannel(), Compare(), EventDisplay::DisplayMTEvent(), BeamProfile::FillDeltaT(), BeamProfile::filterOnCut(), and main().
00088 { return(bcId_Hit); };
UInt_t MTChannel::GetBcId_Hit_Fine | ( | void | ) | const [inline] |
bool MTChannel::GetRejected | ( | void | ) | const [inline] |
void MTChannel::SetRejected | ( | bool | aValue | ) | [inline] |
void MTChannel::SetMemoryOrder | ( | const UInt_t | order | ) | [inline] |
UInt_t MTChannel::GetMemoryOrder | ( | void | ) | const [inline] |
void MTChannel::SetX | ( | Int_t | val | ) | [inline] |
void MTChannel::SetY | ( | Int_t | val | ) | [inline] |
void MTChannel::SetZ | ( | Int_t | val | ) | [inline] |
void MTChannel::SetEnergy | ( | Float_t | val | ) | [inline] |
Int_t MTChannel::Compare | ( | const TObject * | obj | ) | const |
Definition at line 31 of file MTChannel.cpp.
00032 { 00033 if (bcId_Hit == ((MTChannel *)obj)->GetBcId_Hit()) return 0; 00034 else if (bcId_Hit < ((MTChannel *)obj)->GetBcId_Hit()) return -1; 00035 else return 1; 00036 }
Int_t MTChannel::fAnalogValue [private] |
Int_t MTChannel::fDigitalValue [private] |
Float_t MTChannel::fEnergy [private] |
Definition at line 36 of file MTChannel.hh.
Referenced by GetEnergy(), MTChannel(), and SetEnergy().
MTChannelSoftId MTChannel::fSoftId [private] |
Definition at line 37 of file MTChannel.hh.
Referenced by GetBoardId(), GetChamberId(), GetChipId(), GetColInChip(), GetDifId(), GetRowInChip(), GetSoftId(), and MTChannel().
UInt_t MTChannel::fHardId [private] |
Int_t MTChannel::fX [private] |
Int_t MTChannel::fY [private] |
Int_t MTChannel::fZ [private] |
UInt_t MTChannel::fOrder [private] |
ULong64_t MTChannel::timestamp [private] |
UInt_t MTChannel::bcId_Abs [private] |
Definition at line 45 of file MTChannel.hh.
Referenced by GetBcId_Abs(), MTChannel(), and SetBcId_Abs().
UInt_t MTChannel::bcId_Dif [private] |
UInt_t MTChannel::bcId_Hit [private] |
Definition at line 47 of file MTChannel.hh.
Referenced by Compare(), GetBcId_Hit(), and MTChannel().
UInt_t MTChannel::bcId_Hit_Fine [private] |
UInt_t MTChannel::memoryOrder [private] |
Definition at line 49 of file MTChannel.hh.
Referenced by GetMemoryOrder(), MTChannel(), and SetMemoryOrder().
bool MTChannel::rejected [private] |
Definition at line 50 of file MTChannel.hh.
Referenced by GetRejected(), MTChannel(), and SetRejected().
UInt_t MTChannel::rowInChamber [private] |
UInt_t MTChannel::colInChamber [private] |