ATLAS Offline Software
Loading...
Searching...
No Matches
LArHitMerger.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARDIGITIZATION_LArHitMerger_H
6#define LARDIGITIZATION_LArHitMerger_H
7
9#include "GaudiKernel/ServiceHandle.h"
10#include "Gaudi/Property.h"
11#include <vector>
12// Pile up
14
15
16class LArEM_ID;
17class LArHEC_ID;
18class LArFCAL_ID;
19
21{
22//
23//
24 public:
25 LArHitMerger(const std::string& name, ISvcLocator* pSvcLocator);
26 ~LArHitMerger() = default;
27 virtual StatusCode initialize();
28 virtual StatusCode execute();
29 virtual StatusCode finalize();
30
31 private:
32
33 ServiceHandle<PileUpMergeSvc> m_mergeSvc{this, "PileUpMergeSvc", "PileUpMergeSvc"};
34
35 std::vector<bool> m_SubDetFlag;
36 std::vector <std::string> m_HitContainer; // hit container name list
37 std::vector<int> m_CaloType;
38
39 StringProperty m_SubDetectors{this, "SubDetectors", "LAr_All", "subdetector selection"}; // subdetectors
40 StringProperty m_EmBarrelHitContainerName{this, "EmBarrelHitContainerName", "LArHitEMB", "Hit container name for EMB"};
41 StringProperty m_EmEndCapHitContainerName{this, "EmEndCapHitContainerName", "LArHitEMEC", "Hit container name for EMEC"};
42 StringProperty m_HecHitContainerName{this, "HecHitContainerName", "LArHitHEC", "Hit container name for HEC"};
43 StringProperty m_ForWardHitContainerName{this, "ForWardHitContainerName", "LArHitFCAL", "Hit container name for FCAL"};
44
48};
49
50#endif
the preferred mechanism to access information from the different event stores in a pileup job.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper class for LArEM offline identifiers.
Definition LArEM_ID.h:111
Helper class for LArFCAL offline identifiers.
Definition LArFCAL_ID.h:49
Helper class for LArHEC offline identifiers.
Definition LArHEC_ID.h:76
~LArHitMerger()=default
virtual StatusCode initialize()
std::vector< std::string > m_HitContainer
StringProperty m_ForWardHitContainerName
virtual StatusCode finalize()
StringProperty m_EmEndCapHitContainerName
StringProperty m_EmBarrelHitContainerName
const LArEM_ID * m_larem_id
std::vector< bool > m_SubDetFlag
const LArFCAL_ID * m_larfcal_id
StringProperty m_HecHitContainerName
StringProperty m_SubDetectors
ServiceHandle< PileUpMergeSvc > m_mergeSvc
LArHitMerger(const std::string &name, ISvcLocator *pSvcLocator)
const LArHEC_ID * m_larhec_id
std::vector< int > m_CaloType
virtual StatusCode execute()