ATLAS Offline Software
CaloEvent/CaloEvent/CaloSamplingHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOEVENT_CALOSAMPLINGHELPER_H
6 #define CALOEVENT_CALOSAMPLINGHELPER_H
7 
8 #include "CaloGeoHelpers/CaloSampling.h"
9 
15 class CaloCell;
16 
17 #include <vector>
18 
20 public:
21 
22  //* Constructors, destructors
23  //**
24 
25  CaloSamplingHelper( ) = default;
26  ~CaloSamplingHelper() = default;
27  CaloSamplingHelper( const CaloSamplingHelper& rhs) = delete;
29 
30  //**
31  //* Accessors
32  //**
33 
40  static CaloSample getSampling( const CaloCell& c );
41 
48  static unsigned int getSamplingBit(const CaloSample& rSample) {
49  return CaloSampling::getSamplingPattern(rSample);
50  }
51 
60  static unsigned int getSamplingBit(const CaloCell& rCell);
61 
62 
64  static bool isEMSampling(const CaloSample& rSample);
65  static bool isHADSampling(const CaloSample& rSample);
66  static bool isBarrelSampling(const CaloSample& rSample);
67  static bool isEndCapSampling(const CaloSample& rSample);
68  static bool isLArSampling(const CaloSample& rSample);
69  static bool isTileSampling(const CaloSample& rSample);
70 
71  //**
72  //* Private/Implementation
73  //**
74 private:
75 
76 
77  static const unsigned int m_EMMask;
78  static const unsigned int m_HADMask;
79  static const unsigned int m_BarrelMask;
80  static const unsigned int m_EndCapMask;
81  static const unsigned int m_LArMask;
82  static const unsigned int m_TileMask;
83 
84  static bool matchPattern(const CaloSample& rSample,
85  const unsigned int& mask);
86 
87 };
88 
89 #endif /* CALOSAMPLING_H */
CaloSamplingHelper::isEMSampling
static bool isEMSampling(const CaloSample &rSample)
Get sampling characteristics.
Definition: CaloEvent/src/CaloSamplingHelper.cxx:57
CaloSamplingHelper
algorithmic methods of the legacy CaloSampling.h class used by the legacy CaloCluster object
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:19
CaloSamplingHelper::isTileSampling
static bool isTileSampling(const CaloSample &rSample)
Definition: CaloEvent/src/CaloSamplingHelper.cxx:82
CaloSampling
provides Calorimeter Sampling enum
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:17
CaloSamplingHelper::m_TileMask
static const unsigned int m_TileMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:82
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
CaloSamplingHelper::getSamplingBit
static unsigned int getSamplingBit(const CaloSample &rSample)
Return a unique bit set for a given sampling.
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:48
CaloSampling::getSamplingPattern
static unsigned int getSamplingPattern(const CaloSample s)
Get a unsigned with one bit set
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:36
CaloSamplingHelper::operator=
CaloSamplingHelper & operator=(const CaloSamplingHelper &rhs)=delete
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
CaloSamplingHelper::isHADSampling
static bool isHADSampling(const CaloSample &rSample)
Definition: CaloEvent/src/CaloSamplingHelper.cxx:62
CaloSamplingHelper::m_EndCapMask
static const unsigned int m_EndCapMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:80
CaloSamplingHelper::m_EMMask
static const unsigned int m_EMMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:77
CaloSamplingHelper::isBarrelSampling
static bool isBarrelSampling(const CaloSample &rSample)
Definition: CaloEvent/src/CaloSamplingHelper.cxx:67
CaloSamplingHelper::getSampling
static CaloSample getSampling(const CaloCell &c)
Retrieves the sampling indicator for a cell.
Definition: CaloEvent/src/CaloSamplingHelper.cxx:39
CaloSamplingHelper::isLArSampling
static bool isLArSampling(const CaloSample &rSample)
Definition: CaloEvent/src/CaloSamplingHelper.cxx:77
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
CaloSamplingHelper::m_LArMask
static const unsigned int m_LArMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:81
CaloSamplingHelper::m_HADMask
static const unsigned int m_HADMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:78
CaloSamplingHelper::~CaloSamplingHelper
~CaloSamplingHelper()=default
CaloSamplingHelper::CaloSamplingHelper
CaloSamplingHelper(const CaloSamplingHelper &rhs)=delete
CaloSamplingHelper::CaloSamplingHelper
CaloSamplingHelper()=default
CaloSamplingHelper::isEndCapSampling
static bool isEndCapSampling(const CaloSample &rSample)
Definition: CaloEvent/src/CaloSamplingHelper.cxx:72
python.compressB64.c
def c
Definition: compressB64.py:93
CaloSamplingHelper::m_BarrelMask
static const unsigned int m_BarrelMask
Definition: CaloEvent/CaloEvent/CaloSamplingHelper.h:79
CaloSamplingHelper::matchPattern
static bool matchPattern(const CaloSample &rSample, const unsigned int &mask)
Definition: CaloEvent/src/CaloSamplingHelper.cxx:87