ATLAS Offline Software
TileHitVecToCnt.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //****************************************************************************
6 // Filename : TileHitVecToCnt.h
7 // Author : Alexandre Solodkov
8 // Created : Dec 2003
9 //
10 // DESCRIPTION
11 //
12 // TileHitVecToCnt copies all TileHits from TileHitVector (AthenaHitsVector)
13 // to TileHitContainer (identifiable container) without any corrections
14 // If pileup option is set, all hits are merged, if several hits have
15 // the same ID, energy and time from all of them is stored in vectors
16 // inside single TileHit
17 //
18 // Properties (JobOption Parameters):
19 //
20 // TileHitVectors string Name of TileHitVector to read
21 // TileHitContainer string Name of TileHitContainer to write
22 // TileInfoName string Name of object in TDS with all parameters
23 // PileUp bool Do or not pileup
24 // HitTimeFlag int Working with hit times
25 //
26 // BUGS:
27 //
28 // History:
29 // 10Jan04 Created from TileCellIDCToCell.
30 // 10Feb04 pileup flag added
32 //
33 //****************************************************************************
34 
35 #ifndef TILESIMALGS_TILEHITVECTOCNT_H
36 #define TILESIMALGS_TILEHITVECTOCNT_H
37 
38 #include "GaudiKernel/ToolHandle.h"
40 
41 class IPileUpTool;
42 
44 class TileHitVecToCnt : public AthAlgorithm {
45 
46  public:
47 
49  TileHitVecToCnt(const std::string &name,ISvcLocator *pSvcLocator);
50 
51  virtual ~TileHitVecToCnt() = default;
52 
54  virtual StatusCode initialize() override;
55  virtual StatusCode execute() override;
56  virtual bool isClonable() const override final { return true; }
57 
58  private:
59  ToolHandle<IPileUpTool> m_digTool{this, "DigitizationTool", "TileHitVecToCntTool", "AthAlgTool which performs the conversion from TileHitVectors to TileHitContainers"};
60 };
61 
62 #endif // TILESIMALGS_TILEHITVECTOCNT_H
TileHitVecToCnt
Top algorithm class for TileHitVecToCnt.
Definition: TileHitVecToCnt.h:44
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
TileHitVecToCnt::execute
virtual StatusCode execute() override
Definition: TileHitVecToCnt.cxx:42
AthAlgorithm.h
TileHitVecToCnt::isClonable
virtual bool isClonable() const override final
Definition: TileHitVecToCnt.h:56
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileHitVecToCnt::TileHitVecToCnt
TileHitVecToCnt(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters.
Definition: TileHitVecToCnt.cxx:25
IPileUpTool
Definition: IPileUpTool.h:24
TileHitVecToCnt::m_digTool
ToolHandle< IPileUpTool > m_digTool
Definition: TileHitVecToCnt.h:59
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TileHitVecToCnt::~TileHitVecToCnt
virtual ~TileHitVecToCnt()=default
TileHitVecToCnt::initialize
virtual StatusCode initialize() override
Basic algorithm methods.
Definition: TileHitVecToCnt.cxx:33