ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloRec
share
CaloCell_SimpleDetectorInfo.h
Go to the documentation of this file.
1
#ifndef CALOREC_CALOCELL_SIMPLEDETECTORINFO_H
2
#define CALOREC_CALOCELL_SIMPLEDETECTORINFO_H
3
4
/********************************************************************
5
6
NAME : CaloCell_SimpleDetectorInfo.h
7
AUTHORS : J.Tanaka <Junichi.Tanaka@cern.ch>
8
CREATED : 23th April 2004
9
PURPOSE : handle simple detector information of cell.
10
See Calorimeter/CaloRec/CaloRec-xx-yy-zz/src/CBNT_CaloCell.cxx
11
12
MODIFIED :
13
To use it in root:
14
root[0] #include "CaloCell_SimpleDetectorInfo.h"
15
root[1] CaloCell_SimpleDetectorInfo detInfo(1)
16
root[2] detInfo.isLArEM()
17
18
********************************************************************/
19
20
const
unsigned
CALOCELL_DETINFO_Atlas_Lar_EM
= (1<<0);
21
const
unsigned
CALOCELL_DETINFO_Atlas_Lar_HEC
= (1<<1);
22
const
unsigned
CALOCELL_DETINFO_Atlas_Lar_FCal
= (1<<2);
23
const
unsigned
CALOCELL_DETINFO_Atlas_Tile
= (1<<3);
24
25
const
unsigned
CALOCELL_DETINFO_EM_sampling
= (1<<4)|(1<<5);
26
const
unsigned
CALOCELL_DETINFO_EM_sampling_SHIFT
= 4;
27
const
unsigned
CALOCELL_DETINFO_EM_barrel
= (1<<6);
28
const
unsigned
CALOCELL_DETINFO_EM_endcap_outer
= (1<<7);
29
const
unsigned
CALOCELL_DETINFO_EM_endcap_inner
= (1<<8);
30
31
const
unsigned
CALOCELL_DETINFO_HEC_sampling
= (1<<9)|(1<<10);
32
const
unsigned
CALOCELL_DETINFO_HEC_sampling_SHIFT
= 9;
33
34
const
unsigned
CALOCELL_DETINFO_FCal_sampling
= (1<<11)|(1<<12);
35
const
unsigned
CALOCELL_DETINFO_FCal_sampling_SHIFT
= 11;
36
37
const
unsigned
CALOCELL_DETINFO_Tile_sampling
= (1<<13)|(1<<14)|(1<<15);
38
const
unsigned
CALOCELL_DETINFO_Tile_sampling_SHIFT
= 13;
39
const
unsigned
CALOCELL_DETINFO_Tile_barrel
= (1<<16);
40
const
unsigned
CALOCELL_DETINFO_Tile_extbarrel
= (1<<17);
41
const
unsigned
CALOCELL_DETINFO_Tile_gap
= (1<<18);
42
const
unsigned
CALOCELL_DETINFO_Tile_gapscin
= (1<<19);
43
44
class
CaloCell_SimpleDetectorInfo
45
{
46
public
:
47
CaloCell_SimpleDetectorInfo
() :
m_det
(0) {};
48
virtual
~CaloCell_SimpleDetectorInfo
() {};
49
CaloCell_SimpleDetectorInfo
(
unsigned
d) :
m_det
(d) {};
50
51
inline
void
set
(
unsigned
d) {
m_det
= d; }
52
inline
void
reset
() {
m_det
= 0; }
53
inline
unsigned
get
()
const
{
return
m_det
; }
54
55
inline
bool
isLArEM
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_Atlas_Lar_EM
); }
56
inline
bool
isLArHEC
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_Atlas_Lar_HEC
); }
57
inline
bool
isLArFCal
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_Atlas_Lar_FCal
); }
58
inline
bool
isTile
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_Atlas_Tile
); }
59
60
inline
bool
isLArEMBarrel
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_EM_barrel
); }
61
inline
bool
isLArEMEndcap
()
const
{
return
(
m_det
& (
CALOCELL_DETINFO_EM_endcap_inner
|
CALOCELL_DETINFO_EM_endcap_outer
)); }
62
inline
bool
isLArEMEndcapInner
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_EM_endcap_inner
); }
63
inline
bool
isLArEMEndcapOuter
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_EM_endcap_outer
); }
64
65
inline
bool
isTileBarrel
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_Tile_barrel
); }
66
inline
bool
isTileExtBarrel
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_Tile_extbarrel
); }
67
inline
bool
isTileGap
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_Tile_gap
); }
68
inline
bool
isTileGapScin
()
const
{
return
(
m_det
&
CALOCELL_DETINFO_Tile_gapscin
); }
69
70
inline
unsigned
getLArEMSampling
()
const
{
return
((
m_det
&
CALOCELL_DETINFO_EM_sampling
)>>
CALOCELL_DETINFO_EM_sampling_SHIFT
); }
71
inline
unsigned
getLArHECSampling
()
const
{
return
((
m_det
&
CALOCELL_DETINFO_HEC_sampling
)>>
CALOCELL_DETINFO_HEC_sampling_SHIFT
); }
72
inline
unsigned
getLArFCalSampling
()
const
{
return
((
m_det
&
CALOCELL_DETINFO_FCal_sampling
)>>
CALOCELL_DETINFO_FCal_sampling_SHIFT
); }
73
inline
unsigned
getTileSampling
()
const
{
return
((
m_det
&
CALOCELL_DETINFO_Tile_sampling
)>>
CALOCELL_DETINFO_Tile_sampling_SHIFT
); }
74
75
private
:
76
unsigned
m_det
;
77
};
78
79
#endif
// CALOREC_CALOCELL_SIMPLEDETECTORINFO_H
CALOCELL_DETINFO_Tile_gapscin
const unsigned CALOCELL_DETINFO_Tile_gapscin
Definition
CaloCell_SimpleDetectorInfo.h:42
CALOCELL_DETINFO_HEC_sampling
const unsigned CALOCELL_DETINFO_HEC_sampling
Definition
CaloCell_SimpleDetectorInfo.h:31
CALOCELL_DETINFO_EM_sampling_SHIFT
const unsigned CALOCELL_DETINFO_EM_sampling_SHIFT
Definition
CaloCell_SimpleDetectorInfo.h:26
CALOCELL_DETINFO_Atlas_Lar_HEC
const unsigned CALOCELL_DETINFO_Atlas_Lar_HEC
Definition
CaloCell_SimpleDetectorInfo.h:21
CALOCELL_DETINFO_Tile_extbarrel
const unsigned CALOCELL_DETINFO_Tile_extbarrel
Definition
CaloCell_SimpleDetectorInfo.h:40
CALOCELL_DETINFO_Atlas_Tile
const unsigned CALOCELL_DETINFO_Atlas_Tile
Definition
CaloCell_SimpleDetectorInfo.h:23
CALOCELL_DETINFO_EM_endcap_outer
const unsigned CALOCELL_DETINFO_EM_endcap_outer
Definition
CaloCell_SimpleDetectorInfo.h:28
CALOCELL_DETINFO_Tile_sampling_SHIFT
const unsigned CALOCELL_DETINFO_Tile_sampling_SHIFT
Definition
CaloCell_SimpleDetectorInfo.h:38
CALOCELL_DETINFO_Atlas_Lar_EM
const unsigned CALOCELL_DETINFO_Atlas_Lar_EM
Definition
CaloCell_SimpleDetectorInfo.h:20
CALOCELL_DETINFO_FCal_sampling
const unsigned CALOCELL_DETINFO_FCal_sampling
Definition
CaloCell_SimpleDetectorInfo.h:34
CALOCELL_DETINFO_Tile_gap
const unsigned CALOCELL_DETINFO_Tile_gap
Definition
CaloCell_SimpleDetectorInfo.h:41
CALOCELL_DETINFO_EM_barrel
const unsigned CALOCELL_DETINFO_EM_barrel
Definition
CaloCell_SimpleDetectorInfo.h:27
CALOCELL_DETINFO_Atlas_Lar_FCal
const unsigned CALOCELL_DETINFO_Atlas_Lar_FCal
Definition
CaloCell_SimpleDetectorInfo.h:22
CALOCELL_DETINFO_Tile_sampling
const unsigned CALOCELL_DETINFO_Tile_sampling
Definition
CaloCell_SimpleDetectorInfo.h:37
CALOCELL_DETINFO_Tile_barrel
const unsigned CALOCELL_DETINFO_Tile_barrel
Definition
CaloCell_SimpleDetectorInfo.h:39
CALOCELL_DETINFO_FCal_sampling_SHIFT
const unsigned CALOCELL_DETINFO_FCal_sampling_SHIFT
Definition
CaloCell_SimpleDetectorInfo.h:35
CALOCELL_DETINFO_EM_endcap_inner
const unsigned CALOCELL_DETINFO_EM_endcap_inner
Definition
CaloCell_SimpleDetectorInfo.h:29
CALOCELL_DETINFO_HEC_sampling_SHIFT
const unsigned CALOCELL_DETINFO_HEC_sampling_SHIFT
Definition
CaloCell_SimpleDetectorInfo.h:32
CALOCELL_DETINFO_EM_sampling
const unsigned CALOCELL_DETINFO_EM_sampling
Definition
CaloCell_SimpleDetectorInfo.h:25
CaloCell_SimpleDetectorInfo::isTileGapScin
bool isTileGapScin() const
Definition
CaloCell_SimpleDetectorInfo.h:68
CaloCell_SimpleDetectorInfo::isTileGap
bool isTileGap() const
Definition
CaloCell_SimpleDetectorInfo.h:67
CaloCell_SimpleDetectorInfo::isLArEMBarrel
bool isLArEMBarrel() const
Definition
CaloCell_SimpleDetectorInfo.h:60
CaloCell_SimpleDetectorInfo::~CaloCell_SimpleDetectorInfo
virtual ~CaloCell_SimpleDetectorInfo()
Definition
CaloCell_SimpleDetectorInfo.h:48
CaloCell_SimpleDetectorInfo::isTile
bool isTile() const
Definition
CaloCell_SimpleDetectorInfo.h:58
CaloCell_SimpleDetectorInfo::get
unsigned get() const
Definition
CaloCell_SimpleDetectorInfo.h:53
CaloCell_SimpleDetectorInfo::isTileExtBarrel
bool isTileExtBarrel() const
Definition
CaloCell_SimpleDetectorInfo.h:66
CaloCell_SimpleDetectorInfo::set
void set(unsigned d)
Definition
CaloCell_SimpleDetectorInfo.h:51
CaloCell_SimpleDetectorInfo::getLArFCalSampling
unsigned getLArFCalSampling() const
Definition
CaloCell_SimpleDetectorInfo.h:72
CaloCell_SimpleDetectorInfo::CaloCell_SimpleDetectorInfo
CaloCell_SimpleDetectorInfo()
Definition
CaloCell_SimpleDetectorInfo.h:47
CaloCell_SimpleDetectorInfo::isLArEMEndcap
bool isLArEMEndcap() const
Definition
CaloCell_SimpleDetectorInfo.h:61
CaloCell_SimpleDetectorInfo::reset
void reset()
Definition
CaloCell_SimpleDetectorInfo.h:52
CaloCell_SimpleDetectorInfo::getLArHECSampling
unsigned getLArHECSampling() const
Definition
CaloCell_SimpleDetectorInfo.h:71
CaloCell_SimpleDetectorInfo::m_det
unsigned m_det
Definition
CaloCell_SimpleDetectorInfo.h:76
CaloCell_SimpleDetectorInfo::isLArEM
bool isLArEM() const
Definition
CaloCell_SimpleDetectorInfo.h:55
CaloCell_SimpleDetectorInfo::isLArHEC
bool isLArHEC() const
Definition
CaloCell_SimpleDetectorInfo.h:56
CaloCell_SimpleDetectorInfo::CaloCell_SimpleDetectorInfo
CaloCell_SimpleDetectorInfo(unsigned d)
Definition
CaloCell_SimpleDetectorInfo.h:49
CaloCell_SimpleDetectorInfo::getLArEMSampling
unsigned getLArEMSampling() const
Definition
CaloCell_SimpleDetectorInfo.h:70
CaloCell_SimpleDetectorInfo::getTileSampling
unsigned getTileSampling() const
Definition
CaloCell_SimpleDetectorInfo.h:73
CaloCell_SimpleDetectorInfo::isTileBarrel
bool isTileBarrel() const
Definition
CaloCell_SimpleDetectorInfo.h:65
CaloCell_SimpleDetectorInfo::isLArEMEndcapInner
bool isLArEMEndcapInner() const
Definition
CaloCell_SimpleDetectorInfo.h:62
CaloCell_SimpleDetectorInfo::isLArFCal
bool isLArFCal() const
Definition
CaloCell_SimpleDetectorInfo.h:57
CaloCell_SimpleDetectorInfo::isLArEMEndcapOuter
bool isLArEMEndcapOuter() const
Definition
CaloCell_SimpleDetectorInfo.h:63
Generated on
for ATLAS Offline Software by
1.17.0