ATLAS Offline Software
Loading...
Searching...
No Matches
CscDataPreparator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGL2MUONSA_CSCDATAPREPARATOR_H
6#define TRIGL2MUONSA_CSCDATAPREPARATOR_H
7
9#include "GaudiKernel/ServiceHandle.h"
10#include "GaudiKernel/ToolHandle.h"
11
12#include "CscData.h"
13#include "MuonRoad.h"
16
17// --------------------------------------------------------------------------------
18// --------------------------------------------------------------------------------
19
20namespace TrigL2MuonSA {
21
23 {
24 public:
25
26 CscDataPreparator(const std::string& type,
27 const std::string& name,
28 const IInterface* parent);
29
30 virtual StatusCode initialize() override;
31
32 public:
33
34 StatusCode prepareData(const EventContext& ctx,
35 TrigL2MuonSA::MuonRoad& muonRoad,
36 TrigL2MuonSA::CscHits& cscHits) const;
37
38 void setRoIBasedDataAccess(bool use_RoIBasedDataAccess) {m_use_RoIBasedDataAccess = use_RoIBasedDataAccess;};
39
40 private:
41
42 double calc_residual(double aw,
43 double bw,
44 double x,
45 double y) const;
46
47 double calc_residual_phi(double aw, double bw, double phiw, double hitphi, double hitz) const;
48
49 private:
50
51 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
52
53 //If we don't do the decoding in the algorithm, we need to read in the cluster container
54 SG::ReadHandleKey<Muon::CscPrepDataContainer> m_cscPrepContainerKey{ this, "CSCPrepDataContainer", "CSC_Clusters", "Name of the CSCContainer to read in"};
55
57 };
58
59} // namespace TrigL2MuonSA
60
61#endif
#define y
#define x
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
double calc_residual_phi(double aw, double bw, double phiw, double hitphi, double hitz) const
virtual StatusCode initialize() override
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
double calc_residual(double aw, double bw, double x, double y) const
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_cscPrepContainerKey
CscDataPreparator(const std::string &type, const std::string &name, const IInterface *parent)
StatusCode prepareData(const EventContext &ctx, TrigL2MuonSA::MuonRoad &muonRoad, TrigL2MuonSA::CscHits &cscHits) const
void setRoIBasedDataAccess(bool use_RoIBasedDataAccess)
std::vector< CscHitData > CscHits
Definition CscData.h:40