BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcGeom/include/MdcGeom/MdcCellAddr.h
Go to the documentation of this file.
1
#ifndef MDCCELLADDR_H
2
#define MDCCELLADDR_H
3
4
//--------------------------------------------------------------------------
5
//
6
// Environment:
7
// This software was developed for the BaBar collaboration. If you
8
// use all or part of it, please give an appropriate acknowledgement.
9
//
10
// Copyright Information:
11
// Copyright (C) 1999 <INFN>
12
//
13
// History:
14
// Migration for BESIII MDC
15
//
16
//------------------------------------------------------------------------
17
18
// ---------------------
19
// -- Class Interface --
20
// ---------------------
21
22
/**
23
* C++ source file code MdcCellAddr.
24
* This class is only a container for three static functions to map a Mdc
25
* cell address to its layer/wire numbers. Needed to break some circular
26
* dependency within the Mdc code
27
*
28
* This software was developed for the BaBar collaboration. If you
29
* use all or part of it, please give an appropriate acknowledgement.
30
*
31
* Copyright (C) 1999 [INFN & Padova University]
32
//
33
// History:
34
// Migration for BESIII MDC
35
*
36
* @see MdcCellAddrMdcCellAddr
37
*
38
* @version $Id: MdcCellAddr.h,v 1.2 2009/12/17 00:38:40 zhangy Exp $
39
*
40
* @author (R. Stroili) (originator);
41
*
42
*/
43
44
class
MdcCellAddr
{
45
46
//--------------------
47
// Instance Members --
48
//--------------------
49
50
public
:
51
// Constructors
52
MdcCellAddr
(
void
);
53
54
// Destructor
55
virtual
~MdcCellAddr
() { ; }
56
57
// Operators
58
59
//------------------
60
// Static Members --
61
//------------------
62
63
public
:
64
// Selectors (const)
65
static
int
wireIs
(
const
int
& cell ) {
return
cell % 1000; }
66
static
int
layerIs
(
const
int
& cell ) {
return
cell / 1000; }
67
static
int
cellIs
(
const
int
& wire,
const
int
& layer ) {
return
layer * 1000 + wire; }
68
};
69
70
#endif
// MDCCELLADDR_H
MdcCellAddr
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/MdcCellAddr.h:44
MdcCellAddr::~MdcCellAddr
virtual ~MdcCellAddr()
Definition
Reconstruction/MdcPatRec/MdcGeom/include/MdcGeom/MdcCellAddr.h:55
MdcCellAddr::wireIs
static int wireIs(const int &cell)
Definition
Reconstruction/MdcPatRec/MdcGeom/include/MdcGeom/MdcCellAddr.h:65
MdcCellAddr::layerIs
static int layerIs(const int &cell)
Definition
Reconstruction/MdcPatRec/MdcGeom/include/MdcGeom/MdcCellAddr.h:66
MdcCellAddr::cellIs
static int cellIs(const int &wire, const int &layer)
Definition
Reconstruction/MdcPatRec/MdcGeom/include/MdcGeom/MdcCellAddr.h:67
MdcCellAddr::MdcCellAddr
MdcCellAddr(void)
8.0.0
BOSS_Source
Reconstruction
MdcPatRec
MdcGeom
include
MdcGeom
MdcCellAddr.h
Generated by
1.16.1