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

#include <MdcCellAddr.h>

Public Member Functions

 MdcCellAddr (void)
 
virtual ~MdcCellAddr ()
 

Static Public Member Functions

static int wireIs (const int &cell)
 
static int layerIs (const int &cell)
 
static int cellIs (const int &wire, const int &layer)
 

Detailed Description

C++ source file code MdcCellAddr. 
This class is only a container for three static functions to map a Mdc 
cell address to its layer/wire numbers. Needed to break some circular
dependency within the Mdc code

This software was developed for the BaBar collaboration.  If you
use all or part of it, please give an appropriate acknowledgement.

Copyright (C) 1999 [INFN & Padova University]

History: Migration for BESIII MDC

@see MdcCellAddrMdcCellAddr

@version $Id: MdcCellAddr.h,v 1.2 2009/12/17 00:38:40 zhangy Exp $ 

@author (R. Stroili)    (originator);

Definition at line 45 of file MdcCellAddr.h.

Constructor & Destructor Documentation

◆ MdcCellAddr()

MdcCellAddr::MdcCellAddr ( void  )

Definition at line 35 of file MdcCellAddr.cxx.

36{;}

◆ ~MdcCellAddr()

virtual MdcCellAddr::~MdcCellAddr ( )
inlinevirtual

Definition at line 57 of file MdcCellAddr.h.

57{;}

Member Function Documentation

◆ cellIs()

static int MdcCellAddr::cellIs ( const int &  wire,
const int &  layer 
)
inlinestatic

Definition at line 70 of file MdcCellAddr.h.

70 { return
71 layer*1000+wire; }

◆ layerIs()

static int MdcCellAddr::layerIs ( const int &  cell)
inlinestatic

Definition at line 69 of file MdcCellAddr.h.

69{ return cell/1000; }

◆ wireIs()

static int MdcCellAddr::wireIs ( const int &  cell)
inlinestatic

Definition at line 68 of file MdcCellAddr.h.

68{ return cell%1000; }

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