ATLAS Offline Software
Loading...
Searching...
No Matches
TileFCSmStepToTileHitVec.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5//****************************************************************************
6// Filename : TileFCSmStepToTileHitVec.h
7// Author : Sergey Karpov <Sergey.Karpov@cern.ch>
8// Created : Nov. 2013
9//
10// DESCRIPTION
11// TileFCSmStepToTileHitVec copies all TileHits from FCS_StepInfoCollection container
12// to TileHitVector_FCS with/without applying of new U-shape
13//
14// Properties (JobOption Parameters):
15// ISF_FCS_Parametrization::FCS_StepInfoCollection string Name of FCS_StepInfo container to read
16// TileHitVec_FCS string Name of TileHitVector to write
17// TileInfoName string Name of object in TDS with all parameters
18//
19// History:
20// 01 Nov 2013 - Created from TileCellIDCToCell.h
21// 28 Nov 2013 - Work with U-shape was added (Sasha Solodkov)
22//
23// BUGS:
24//
25//****************************************************************************
26
27#ifndef TILEFASTCALOSIM_TILEFCSMSTEPTOTILEHITVEC_H
28#define TILEFASTCALOSIM_TILEFCSMSTEPTOTILEHITVEC_H
29
33#include "GaudiKernel/ServiceHandle.h"
34#include "GaudiKernel/SystemOfUnits.h"
35#include "Gaudi/Property.h"
36
37class TileID;
38class TileHit;
39class TileInfo;
41class TileGeoG4SDCalc;
42class FCS_StepInfoCollection;
43
44// C++ STL includes
45#include <string>
46#include <vector>
47
49public:
50 // Constructor
51 TileFCSmStepToTileHitVec(const std::string& name, ISvcLocator* pSvcLocator);
52
53 // Destructor
55
56 // Gaudi Hooks
57 StatusCode initialize();
58 StatusCode execute(const EventContext& ctx);
59 StatusCode finalize();
60
61private:
62 int getUshapeFromGM() const;
63
64 ServiceHandle<IGeoModelSvc> m_geoModSvc{this, "GeoModelSvc", "GeoModelSvc"};
65 Gaudi::Property<std::string> m_FCS_StepInfo{this, "StepInfoCollection", "MergedEventSteps", "Name of input container (default=TileHitCnt)"};
66 Gaudi::Property<std::string> m_hitVec{this, "TileHitVector", "TileHitVec_FCS", "Name of output hit vector (default=TileHitVec)"};
67 Gaudi::Property<std::string> m_infoName{this, "TileInfoName", "TileInfo", "Name of TileInfo store (default=TileInfo"};
68
69 const TileID* m_tileID{nullptr};
70 const TileInfo* m_tileInfo{nullptr};
72 ServiceHandle<ITileCalculator> m_calc{this, "TileCalculator", "TileGeoG4SDCalc"};
73
74 Gaudi::Property<float> m_deltaT{this, "DeltaT", 0.5 * Gaudi::Units::nanosecond, "Minimal Time granularity in TileHit (default=0.5ns)"};
75 std::vector<TileHit*> m_allHits;
76
77 int m_uShape{-1};
78};
79
80#endif // TILERECALGS_TILEFCSMSTEPTOTILEHITVEC_H
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
StatusCode execute(const EventContext &ctx)
Execute method.
Gaudi::Property< std::string > m_hitVec
Gaudi::Property< std::string > m_infoName
TileFCSmStepToTileHitVec(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< float > m_deltaT
const TileDetDescrManager * m_tileMgr
Gaudi::Property< std::string > m_FCS_StepInfo
ServiceHandle< IGeoModelSvc > m_geoModSvc
std::vector< TileHit * > m_allHits
ServiceHandle< ITileCalculator > m_calc
Helper class for TileCal offline identifiers.
Definition TileID.h:67