ATLAS Offline Software
Loading...
Searching...
No Matches
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
6NAME : CaloCell_SimpleDetectorInfo.h
7AUTHORS : J.Tanaka <Junichi.Tanaka@cern.ch>
8CREATED : 23th April 2004
9PURPOSE : handle simple detector information of cell.
10 See Calorimeter/CaloRec/CaloRec-xx-yy-zz/src/CBNT_CaloCell.cxx
11
12MODIFIED :
13To use it in root:
14root[0] #include "CaloCell_SimpleDetectorInfo.h"
15root[1] CaloCell_SimpleDetectorInfo detInfo(1)
16root[2] detInfo.isLArEM()
17
18********************************************************************/
19
20const unsigned CALOCELL_DETINFO_Atlas_Lar_EM = (1<<0);
21const unsigned CALOCELL_DETINFO_Atlas_Lar_HEC = (1<<1);
22const unsigned CALOCELL_DETINFO_Atlas_Lar_FCal = (1<<2);
23const unsigned CALOCELL_DETINFO_Atlas_Tile = (1<<3);
24
25const unsigned CALOCELL_DETINFO_EM_sampling = (1<<4)|(1<<5);
27const unsigned CALOCELL_DETINFO_EM_barrel = (1<<6);
28const unsigned CALOCELL_DETINFO_EM_endcap_outer = (1<<7);
29const unsigned CALOCELL_DETINFO_EM_endcap_inner = (1<<8);
30
31const unsigned CALOCELL_DETINFO_HEC_sampling = (1<<9)|(1<<10);
33
34const unsigned CALOCELL_DETINFO_FCal_sampling = (1<<11)|(1<<12);
36
37const unsigned CALOCELL_DETINFO_Tile_sampling = (1<<13)|(1<<14)|(1<<15);
39const unsigned CALOCELL_DETINFO_Tile_barrel = (1<<16);
40const unsigned CALOCELL_DETINFO_Tile_extbarrel = (1<<17);
41const unsigned CALOCELL_DETINFO_Tile_gap = (1<<18);
42const unsigned CALOCELL_DETINFO_Tile_gapscin = (1<<19);
43
45{
46public:
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); }
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
74
75private:
76 unsigned m_det;
77};
78
79#endif // CALOREC_CALOCELL_SIMPLEDETECTORINFO_H
const unsigned CALOCELL_DETINFO_Tile_gapscin
const unsigned CALOCELL_DETINFO_HEC_sampling
const unsigned CALOCELL_DETINFO_EM_sampling_SHIFT
const unsigned CALOCELL_DETINFO_Atlas_Lar_HEC
const unsigned CALOCELL_DETINFO_Tile_extbarrel
const unsigned CALOCELL_DETINFO_Atlas_Tile
const unsigned CALOCELL_DETINFO_EM_endcap_outer
const unsigned CALOCELL_DETINFO_Tile_sampling_SHIFT
const unsigned CALOCELL_DETINFO_Atlas_Lar_EM
const unsigned CALOCELL_DETINFO_FCal_sampling
const unsigned CALOCELL_DETINFO_Tile_gap
const unsigned CALOCELL_DETINFO_EM_barrel
const unsigned CALOCELL_DETINFO_Atlas_Lar_FCal
const unsigned CALOCELL_DETINFO_Tile_sampling
const unsigned CALOCELL_DETINFO_Tile_barrel
const unsigned CALOCELL_DETINFO_FCal_sampling_SHIFT
const unsigned CALOCELL_DETINFO_EM_endcap_inner
const unsigned CALOCELL_DETINFO_HEC_sampling_SHIFT
const unsigned CALOCELL_DETINFO_EM_sampling