AliPhysics  5dd2c10 (5dd2c10)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition Struct Reference

2D position of a trigger channel on the EMCAL surface More...

#include <AliEmcalTriggerMaker.h>

Inheritance diagram for AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition:

Public Member Functions

 AliEmcalTriggerChannelPosition ()
 
 AliEmcalTriggerChannelPosition (int col, int row)
 
virtual ~AliEmcalTriggerChannelPosition ()
 
int GetCol () const
 
int GetRow () const
 
void SetCol (int col)
 
void SetRow (int row)
 
virtual Bool_t IsEqual (const TObject *ref)
 
virtual Int_t Compare (const TObject *ref)
 

Private Attributes

Int_t fCol
 Column of the trigger channel. More...
 
Int_t fRow
 Row of the trigger channel. More...
 

Detailed Description

2D position of a trigger channel on the EMCAL surface

This class represents the position of a trigger channel in a 2D coordinate system consisting of column and row.

Definition at line 97 of file AliEmcalTriggerMaker.h.

Constructor & Destructor Documentation

AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::AliEmcalTriggerChannelPosition ( )
inline

Dummy (I/O) constructor, not to be used

Definition at line 102 of file AliEmcalTriggerMaker.h.

AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::AliEmcalTriggerChannelPosition ( int  col,
int  row 
)
inline

Main constuctor, setting the position in column and row

Parameters
colColumn of the trigger channel
rowRow of the trigger channel

Definition at line 108 of file AliEmcalTriggerMaker.h.

virtual AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::~AliEmcalTriggerChannelPosition ( )
inlinevirtual

Destructor, nothing to do

Definition at line 112 of file AliEmcalTriggerMaker.h.

Member Function Documentation

Int_t AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::Compare ( const TObject *  ref)
inlinevirtual

Compare objects. If objects differ, return always greater (+1). Otherwise compare col and row of the object. Col has priority with respect to row.

Parameters
refThe object ot comparte to
Returns
0 if objects are equal, -1 if this object is smaller, +1 if this object is larger.

Definition at line 280 of file AliEmcalTriggerMaker.h.

int AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::GetCol ( ) const
inline

Get the column of the channel

Returns
The column of the channel

Definition at line 118 of file AliEmcalTriggerMaker.h.

int AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::GetRow ( ) const
inline

Get the row of the channel

Returns
The row of the channel

Definition at line 123 of file AliEmcalTriggerMaker.h.

Bool_t AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::IsEqual ( const TObject *  ref)
inlinevirtual

Check if the object is equal to object ref. Object can only be equal if ref is of the same type (AliEmcalTrigger channel position). If this is the case, col and row of the two objects have to match.

Parameters
refThe object to check
Returns
True if objects are equal, false otherwise

Definition at line 268 of file AliEmcalTriggerMaker.h.

void AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::SetCol ( int  col)
inline

Set the colummn of the channel

Parameters
colThe column of the channel

Definition at line 129 of file AliEmcalTriggerMaker.h.

void AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::SetRow ( int  row)
inline

Set the row of the channel

Parameters
rowThe row of the channel

Definition at line 134 of file AliEmcalTriggerMaker.h.

Member Data Documentation

Int_t AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::fCol
private

Column of the trigger channel.

Definition at line 139 of file AliEmcalTriggerMaker.h.

Referenced by Compare(), GetCol(), IsEqual(), and SetCol().

Int_t AliEmcalTriggerMaker::AliEmcalTriggerChannelPosition::fRow
private

Row of the trigger channel.

Definition at line 140 of file AliEmcalTriggerMaker.h.

Referenced by Compare(), GetRow(), IsEqual(), and SetRow().


The documentation for this struct was generated from the following file: