MTChannel Class Reference

#include <MTChannel.hh>

Inheritance diagram for MTChannel:

Inheritance graph
[legend]
Collaboration diagram for MTChannel:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

CLASS CHANNEL Represent ChannelHit and not physical Chip channel

Definition at line 31 of file MTChannel.hh.


Constructor & Destructor Documentation

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]

Definition at line 62 of file MTChannel.hh.

00062 {Clear();}


Member Function Documentation

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]

Definition at line 66 of file MTChannel.hh.

00066 { return fEnergy; }

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]

Definition at line 72 of file MTChannel.hh.

Referenced by main().

00072 { return fOrder; }

UInt_t MTChannel::GetChb ( void   )  const [inline]

Definition at line 73 of file MTChannel.hh.

00073 { return GetChamberId();}

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

Definition at line 144 of file MTChannel.cpp.

Referenced by BeamProfile::filterOnId(), and main().

00145 {
00146                 return fSoftId.GetDifId();
00147 }

UInt_t MTChannel::GetChipId ( void   )  const

Definition at line 149 of file MTChannel.cpp.

Referenced by BeamProfile::FillHitPerChannel(), BeamProfile::FillHitPerChipDist(), BeamProfile::filterOnId(), and main().

00150 {
00151                 return fSoftId.GetChipId();
00152 }

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]

Definition at line 80 of file MTChannel.hh.

Referenced by main().

00080 { return rowInChamber;}

UInt_t MTChannel::GetColInChamber (  )  const [inline]

Definition at line 81 of file MTChannel.hh.

Referenced by main().

00081 { return colInChamber;}

ULong64_t MTChannel::GetTimestamp ( void   )  const [inline]

Definition at line 83 of file MTChannel.hh.

Referenced by main().

00083 { return(timestamp); };

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]

Definition at line 85 of file MTChannel.hh.

00085 { bcId_Abs=bcId ; };

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]

Definition at line 89 of file MTChannel.hh.

Referenced by main().

00089 { return(bcId_Hit_Fine); };

bool MTChannel::GetRejected ( void   )  const [inline]

Definition at line 91 of file MTChannel.hh.

00091 { return rejected;};

void MTChannel::SetRejected ( bool  aValue  )  [inline]

Definition at line 92 of file MTChannel.hh.

00092 { rejected = aValue; };

void MTChannel::SetMemoryOrder ( const UInt_t  order  )  [inline]

Definition at line 94 of file MTChannel.hh.

00094 { memoryOrder = order; };

UInt_t MTChannel::GetMemoryOrder ( void   )  const [inline]

Definition at line 95 of file MTChannel.hh.

Referenced by main().

00095 { return memoryOrder ;}  ;

void MTChannel::SetX ( Int_t  val  )  [inline]

Definition at line 98 of file MTChannel.hh.

Referenced by main().

00098 {  fX = val; }

void MTChannel::SetY ( Int_t  val  )  [inline]

Definition at line 99 of file MTChannel.hh.

Referenced by main().

00099 {  fY = val; }

void MTChannel::SetZ ( Int_t  val  )  [inline]

Definition at line 100 of file MTChannel.hh.

Referenced by main().

00100 {  fZ = val; }

void MTChannel::SetEnergy ( Float_t  val  )  [inline]

Definition at line 101 of file MTChannel.hh.

Referenced by main().

00101 { fEnergy = val; }

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 }


Member Data Documentation

Int_t MTChannel::fAnalogValue [private]

Definition at line 34 of file MTChannel.hh.

Referenced by GetAnalogValue(), and MTChannel().

Int_t MTChannel::fDigitalValue [private]

Definition at line 35 of file MTChannel.hh.

Referenced by GetDigitalValue(), and MTChannel().

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]

Definition at line 38 of file MTChannel.hh.

Referenced by GetHardId(), and MTChannel().

Int_t MTChannel::fX [private]

Definition at line 39 of file MTChannel.hh.

Referenced by GetX(), MTChannel(), and SetX().

Int_t MTChannel::fY [private]

Definition at line 40 of file MTChannel.hh.

Referenced by GetY(), MTChannel(), and SetY().

Int_t MTChannel::fZ [private]

Definition at line 41 of file MTChannel.hh.

Referenced by GetZ(), MTChannel(), and SetZ().

UInt_t MTChannel::fOrder [private]

Definition at line 42 of file MTChannel.hh.

Referenced by GetOrder(), and MTChannel().

ULong64_t MTChannel::timestamp [private]

Definition at line 44 of file MTChannel.hh.

Referenced by GetTimestamp(), and MTChannel().

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]

Definition at line 46 of file MTChannel.hh.

Referenced by GetBcId_Dif(), and MTChannel().

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]

Definition at line 48 of file MTChannel.hh.

Referenced by GetBcId_Hit_Fine(), and MTChannel().

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]

Definition at line 52 of file MTChannel.hh.

Referenced by GetRowInChamber(), and MTChannel().

UInt_t MTChannel::colInChamber [private]

Definition at line 53 of file MTChannel.hh.

Referenced by GetColInChamber(), and MTChannel().


The documentation for this class was generated from the following files:
Generated on Mon Jun 11 16:58:51 2012 for MicromegasFramework by  doxygen 1.4.7