ATLAS Offline Software
Loading...
Searching...
No Matches
LArDigitThinner.h
Go to the documentation of this file.
1//Dear emacs, this is -*-c++-*-
2/*
3 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4*/
5
6
13
14
15#ifndef LARROD_LArDigitThinner_H
16#define LARROD_LArDigitThinner_H
17
20//#include "Identifier/HWIdentifier.h"
21
27
28#include <vector>
29#include <string>
30#include <mutex>
31
32class CaloCell_ID;
33class LArOnlineID;
37
39{
40 public:
41 LArDigitThinner(const std::string& name,
42 ISvcLocator* pSvcLocator);
43
45
46 StatusCode initialize() override;
47 StatusCode execute(const EventContext& ctx) const override;
48 StatusCode finalize() override;
49
50 private:
51
53
55 int getRegion(const HWIdentifier chid) const;
56
57 const std::vector<int>& initCutValues(const EventContext& ctx) const;
58
61
62 //std::vector<int> m_seen, m_passed;
63
66
67 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
68
69 //Event input:
70 SG::ReadHandleKey<LArDigitContainer> m_inputKey{this, "InputContainerName","LArDigitContainer_MC", "SG Key of LArDigitContainer"};
71 SG::ReadHandleKey<LArRawChannelContainer> m_rawChannelKey{this,"RawChannelContainerName","LArRawChannels", "SG key of the LArRawChannelContainer"};
72
73 //Event output:
74 SG::WriteHandleKey<ConstDigitCont_t> m_outputKey{this, "OutputContainerName","LArDigitContainer_Thinned", "SG Key of thinned LArDigitContainer"};
75
76 CxxUtils::CachedValue<std::vector<int> > m_energyCuts; //cut for each cell - indexed by online hash id
77
78};
79
80#endif
Cached value with atomic update.
DataVector adapter that acts like it holds const pointers.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
DataVector adapter that acts like it holds const pointers.
Cached value with atomic update.
Definition CachedValue.h:55
Container class for LArDigit.
SG::WriteHandleKey< ConstDigitCont_t > m_outputKey
CxxUtils::CachedValue< std::vector< int > > m_energyCuts
const std::vector< int > & initCutValues(const EventContext &ctx) const
StatusCode initialize() override
int getRegion(const HWIdentifier chid) const
const LArOnlineID * m_onlineID
ConstDataVector< LArDigitContainer > ConstDigitCont_t
StatusCode finalize() override
SG::ReadHandleKey< LArRawChannelContainer > m_rawChannelKey
const CaloCell_ID * m_caloCellId
StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
std::vector< int > m_energyCuts_barrel
std::vector< int > m_energyCuts_endcap
SG::ReadHandleKey< LArDigitContainer > m_inputKey
LArDigitThinner(const std::string &name, ISvcLocator *pSvcLocator)
Container for LArRawChannel (IDC using LArRawChannelCollection)
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.