ATLAS Offline Software
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 
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 
27  public:
30 
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:
39  double m_coneSize2;
40  // TrackParametersIdHelper parsIdHelper;
41  };
42 } // namespace Trk
43 
44 #endif
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
CaloExtensionHelpers.h
Trk::CaloExtension
Tracking class to hold the extrapolation from a particle from the ID to the muon system (or the other...
Definition: CaloExtension.h:18
Trk::CaloCellSelectorLayerdR::m_coneSize2
double m_coneSize2
Definition: CaloCellSelectorLayerdR.h:39
Trk::CaloCellSelectorLayerdR::m_midPoints
CaloExtensionHelpers::EtaPhiHashLookupVector m_midPoints
Definition: CaloCellSelectorLayerdR.h:38
GeoPrimitives.h
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
TrackParametersIdHelper.h
CaloCluster.h
CaloExtensionHelpers::EtaPhiHashLookupVector
std::vector< std::tuple< bool, double, double > > EtaPhiHashLookupVector
Definition: CaloExtensionHelpers.h:24
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
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
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
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::CaloCellSelectorLayerdR::CaloCellSelectorLayerdR
CaloCellSelectorLayerdR(double coneSize)
Definition: CaloCellSelectorLayerdR.cxx:16
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
ICaloCellSelector.h
Trk::CaloCellSelectorLayerdR::setConeSize
void setConeSize(double coneSize)
Definition: CaloCellSelectorLayerdR.h:31
Trk::CaloCellSelectorLayerdR::~CaloCellSelectorLayerdR
~CaloCellSelectorLayerdR()
xAOD::Iso::coneSize
float coneSize(IsolationConeSize type)
convert Isolation Size into cone size
Definition: IsolationHelpers.h:27
Trk::CaloCellSelectorLayerdR
Definition: CaloCellSelectorLayerdR.h:26