ATLAS Offline Software
Reconstruction/RecoTools/RecoToolInterfaces/RecoToolInterfaces/ICaloCellSelector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // ICaloCellSelector.h, (c) ATLAS Detector software
8 #ifndef ICALOCELLSELECTOR_H
9 #define ICALOCELLSELECTOR_H
10 
12 
13 class CaloCell;
14 
15 
16 namespace Trk {
17 
18  class CaloExtension;
19 
22  public:
24  virtual ~ICaloCellSelector() {}
25 
30  virtual bool select( const CaloCell& cell ) const = 0; // select or reject the cell
31 
33  virtual bool preSelectAction( const Trk::CaloExtension& caloExtension );
34 
36  virtual bool preSelectActionCells( const Rec::ParticleCellAssociation& cellAssociation );
37 
38  };
39 
41  return true;
42  }
43 
45  return preSelectAction(cellAssociation.caloExtension());
46  }
47 
48 } // end of namespace
49 
50 #endif
Trk::ICaloCellSelector::~ICaloCellSelector
virtual ~ICaloCellSelector()
virtual destructor
Definition: Reconstruction/RecoTools/RecoToolInterfaces/RecoToolInterfaces/ICaloCellSelector.h:24
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
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::ICaloCellSelector::select
virtual bool select(const CaloCell &cell) const =0
Method to determine if a cell is to be selected or not.
Rec::ParticleCaloAssociation::caloExtension
const Trk::CaloExtension & caloExtension() const
return calo extension
Definition: ParticleCaloAssociation.h:73
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::ICaloCellSelector::preSelectAction
virtual bool preSelectAction(const Trk::CaloExtension &caloExtension)
Initialize selector wtih CaloExtension, returns false if the selection cannot be performed for the gi...
Definition: Reconstruction/RecoTools/RecoToolInterfaces/RecoToolInterfaces/ICaloCellSelector.h:40
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
ParticleCellAssociation.h
Trk::ICaloCellSelector::preSelectActionCells
virtual bool preSelectActionCells(const Rec::ParticleCellAssociation &cellAssociation)
Initialize selector wtih ParticleCellAssociation, returns false if the selection cannot be performed ...
Definition: Reconstruction/RecoTools/RecoToolInterfaces/RecoToolInterfaces/ICaloCellSelector.h:44
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
Rec::ParticleCellAssociation
class storing calorimeter cell association with IParticle objects
Definition: ParticleCellAssociation.h:19