ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecoTools
TrackToCalo
TrackToCalo
CaloCellSelectorLayerdR.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// CaloCellSelectorLayerdR.h, (c) ATLAS Detector software
8
#ifndef CALOCELLSELECTORLAYERDR_H
9
#define CALOCELLSELECTORLAYERDR_H
10
11
#include "
GeoPrimitives/GeoPrimitives.h
"
12
#include "
RecoToolInterfaces/ICaloCellSelector.h
"
13
#include "
TrkCaloExtension/CaloExtensionHelpers.h
"
14
#include "
TrkParametersIdentificationHelpers/TrackParametersIdHelper.h
"
15
#include "
xAODCaloEvent/CaloCluster.h
"
16
17
namespace
Trk
{
18
19
// Recode of original method by TrackInCaloTools to select calo cells around track
20
// get mid point for each calo layer from the entry & exit point
21
// for each layer's mid point select calo cell within dR in the SAME layer
22
// Fast (?) but
23
// 1. may miss calo cell at another layer which nevertheless is close to the crossing
24
// 2. current implementation will fail in case where there's multiple entry to a calo layer
25
26
class
CaloCellSelectorLayerdR
:
public
ICaloCellSelector
{
27
public
:
28
CaloCellSelectorLayerdR
(
double
coneSize);
29
~CaloCellSelectorLayerdR
();
30
31
void
setConeSize
(
double
coneSize) {
m_coneSize2
= coneSize * coneSize; }
32
33
bool
preSelectAction
(
const
Trk::CaloExtension
& caloExtension);
34
bool
preSelectAction
(
const
xAOD::CaloCluster
& caloCluster);
35
bool
select
(
const
CaloCell
& cell)
const
;
// select or reject the cell
36
37
private
:
38
CaloExtensionHelpers::EtaPhiHashLookupVector
m_midPoints
;
39
double
m_coneSize2
;
40
// TrackParametersIdHelper parsIdHelper;
41
};
42
}
// namespace Trk
43
44
#endif
CaloExtensionHelpers.h
CaloCluster.h
GeoPrimitives.h
ICaloCellSelector.h
TrackParametersIdHelper.h
CaloCell
Data object for each calorimeter readout cell.
Definition
CaloCell.h:57
Trk::CaloCellSelectorLayerdR::~CaloCellSelectorLayerdR
~CaloCellSelectorLayerdR()
Trk::CaloCellSelectorLayerdR::preSelectAction
bool preSelectAction(const Trk::CaloExtension &caloExtension)
Initialize selector wtih CaloExtension, returns false if the selection cannot be performed for the gi...
Definition
CaloCellSelectorLayerdR.cxx:20
Trk::CaloCellSelectorLayerdR::setConeSize
void setConeSize(double coneSize)
Definition
CaloCellSelectorLayerdR.h:31
Trk::CaloCellSelectorLayerdR::m_coneSize2
double m_coneSize2
Definition
CaloCellSelectorLayerdR.h:39
Trk::CaloCellSelectorLayerdR::CaloCellSelectorLayerdR
CaloCellSelectorLayerdR(double coneSize)
Definition
CaloCellSelectorLayerdR.cxx:16
Trk::CaloCellSelectorLayerdR::m_midPoints
CaloExtensionHelpers::EtaPhiHashLookupVector m_midPoints
Definition
CaloCellSelectorLayerdR.h:38
Trk::CaloCellSelectorLayerdR::select
bool select(const CaloCell &cell) const
Method to determine if a cell is to be selected or not.
Definition
CaloCellSelectorLayerdR.cxx:39
Trk::CaloExtension
Tracking class to hold the extrapolation through calorimeter Layers Both the caloEntryLayerIntersecti...
Definition
TrkEvent/TrkCaloExtension/TrkCaloExtension/CaloExtension.h:19
Trk::ICaloCellSelector
abstract class that judge if a calo cell is to be included in a collection
Definition
Reconstruction/RecoTools/RecoToolInterfaces/RecoToolInterfaces/ICaloCellSelector.h:21
CaloExtensionHelpers::EtaPhiHashLookupVector
std::vector< std::tuple< bool, double, double > > EtaPhiHashLookupVector
Definition
CaloExtensionHelpers.h:24
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
Generated on
for ATLAS Offline Software by
1.17.0