ATLAS Offline Software
TileCellMaskingTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILECELLMASKINGTOOL_H
6 #define TILECELLMASKINGTOOL_H
7 
8 // Gaudi includes
9 #include "GaudiKernel/ServiceHandle.h"
10 
11 // Atlas includes
13 
14 // Calo includes
17 
18 #include <string>
19 #include <vector>
20 #include <bitset>
21 
22 class TileID;
23 class TileHWID;
24 
25 class TileCellMaskingTool: public AthAlgTool, virtual public ICaloCellMakerTool {
26  public:
27  TileCellMaskingTool(const std::string& type
28  , const std::string& name
29  , const IInterface* parent);
30 
31  virtual StatusCode initialize() override;
32  virtual StatusCode process (CaloCellContainer* theCellContainer,
33  const EventContext& ctx) const override;
34  virtual StatusCode finalize() override;
35 
36  virtual bool channel_is_good(HWIdentifier & hwid);
37 
38  private:
39 
41  void killer(const std::string& component, int ros, int drw, int index);
42 
43  std::vector<std::string> m_rejectedTileDrawer;
44  std::vector<std::string> m_rejectedTileMB;
45  std::vector<std::string> m_rejectedTileDigitizer;
46  std::vector<std::string> m_rejectedTileDMU;
47  std::vector<std::string> m_rejectedTileChannels;
48  float m_zeroEnergy;
49 
50  const TileID* m_tileID;
52 
53  std::bitset<65536> m_includedCellsMap;
54 
55 };
56 
57 #endif
TileCellMaskingTool::killer
void killer(const std::string &component, int ros, int drw, int index)
Definition: TileCellMaskingTool.cxx:107
TileCellMaskingTool::m_zeroEnergy
float m_zeroEnergy
Definition: TileCellMaskingTool.h:48
TileCellMaskingTool::process
virtual StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
Definition: TileCellMaskingTool.cxx:155
index
Definition: index.py:1
TileCellMaskingTool::m_includedCellsMap
std::bitset< 65536 > m_includedCellsMap
Definition: TileCellMaskingTool.h:53
TileCellMaskingTool::finalize
virtual StatusCode finalize() override
Definition: TileCellMaskingTool.cxx:310
TileCellMaskingTool::m_rejectedTileDigitizer
std::vector< std::string > m_rejectedTileDigitizer
Definition: TileCellMaskingTool.h:45
HWIdentifier
Definition: HWIdentifier.h:13
TileCellMaskingTool::TileCellMaskingTool
TileCellMaskingTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TileCellMaskingTool.cxx:25
TileCellMaskingTool::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileCellMaskingTool.h:51
ICaloCellMakerTool
Definition: ICaloCellMakerTool.h:20
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileCellMaskingTool::m_rejectedTileMB
std::vector< std::string > m_rejectedTileMB
Definition: TileCellMaskingTool.h:44
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
TileCellMaskingTool::channel_is_good
virtual bool channel_is_good(HWIdentifier &hwid)
Definition: TileCellMaskingTool.cxx:317
TileCellMaskingTool::fillIncludedCellsMap
StatusCode fillIncludedCellsMap()
Definition: TileCellMaskingTool.cxx:61
HWIdentifier.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
TileCellMaskingTool::m_tileID
const TileID * m_tileID
Definition: TileCellMaskingTool.h:50
TileCellMaskingTool::m_rejectedTileDMU
std::vector< std::string > m_rejectedTileDMU
Definition: TileCellMaskingTool.h:46
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
ICaloCellMakerTool.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileCellMaskingTool::initialize
virtual StatusCode initialize() override
Definition: TileCellMaskingTool.cxx:44
AthAlgTool
Definition: AthAlgTool.h:26
TileCellMaskingTool
Definition: TileCellMaskingTool.h:25
TileCellMaskingTool::m_rejectedTileDrawer
std::vector< std::string > m_rejectedTileDrawer
Definition: TileCellMaskingTool.h:43
TileCellMaskingTool::m_rejectedTileChannels
std::vector< std::string > m_rejectedTileChannels
Definition: TileCellMaskingTool.h:47