|
ATLAS Offline Software
|
#include <TileEopFilterAlg.h>
|
| TileEopFilterAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~TileEopFilterAlg () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | execute () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 23 of file TileEopFilterAlg.h.
◆ StoreGateSvc_t
◆ TileEopFilterAlg()
TileEopFilterAlg::TileEopFilterAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TileEopFilterAlg()
TileEopFilterAlg::~TileEopFilterAlg |
( |
| ) |
|
|
inline |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TileEopFilterAlg::execute |
( |
| ) |
|
|
virtual |
Definition at line 52 of file TileEopFilterAlg.cxx.
62 outputTracks->setStore( outputAuxTracks );
68 for(; trackItr != trackEnd; ++trackItr ){
107 for(; trackItr2 != trackEnd2; ++trackItr2 ){
108 if(trackItr==trackItr2)
continue;
109 const TRACK* track2 = *trackItr2;
110 double dif_eta =
track->eta() - track2->
eta();
111 double dif_phi =
track->phi() - track2->
phi();
112 if(dif_phi<0) dif_phi=-dif_phi;
113 if(dif_phi>
M_PI){dif_phi=2*
M_PI-dif_phi;}
114 double deltaR = sqrt(dif_eta*dif_eta+dif_phi*dif_phi);
135 outputClusters->setStore( outputAuxClusters );
149 for(;clusterItr != clusterEnd; ++clusterItr){
150 const CLUSTER* cluster = *clusterItr;
154 for( ; trackItr != trackEnd; ++trackItr ){
160 if (cell_sid==0 || cell_sid==4 ){lay=0;}
161 else if(cell_sid==1 || cell_sid==5 ){lay=1;}
162 else if(cell_sid==2 || cell_sid==6 ){lay=2;}
163 else if(cell_sid==3 || cell_sid==7 ){lay=3;}
164 else if(cell_sid==12 || cell_sid==18){lay=4;}
165 else if(cell_sid==13 || cell_sid==19){lay=5;}
166 else if(cell_sid==15 || cell_sid==17){lay=5;}
167 else if(cell_sid==14 || cell_sid==20){lay=6;}
168 else if(cell_sid==16) {lay=6;}
169 else if(cell_sid==8 ){lay=7;}
170 else if(cell_sid==9 ){lay=8;}
171 else if(cell_sid==10 ){lay=9;}
172 else if(cell_sid==11 ){lay=10;}
173 if(lay==-1)
continue;
176 if(dif_phi<0) dif_phi=-dif_phi;
177 if(dif_phi>
M_PI){dif_phi=2*
M_PI-dif_phi;}
178 double tmp = sqrt(dif_eta*dif_eta+dif_phi*dif_phi);
183 while(
i!=outputClusters->
size()){
if(outputClusters->
at(
i)==cluster){
break;}
i++;}
184 if(
i==outputClusters->
size()){
190 assocItr->push_back(
i);
211 clusterItr = outputClusters->
begin();
212 clusterEnd = outputClusters->
end();
215 for(;clusterItr != clusterEnd; ++clusterItr){
216 const CLUSTER* cluster = *clusterItr;
220 for(;cellItr != cellEnd; ++cellItr){
223 while(
i!=outputCells->size()){
if(outputCells->
at(
i)==
cell){
break;}
i++;}
224 if(
i==outputCells->size()){
228 assocItr->push_back(
i);
240 trackItr = outputTracks->
begin();
241 trackEnd = outputTracks->
end();
242 assocItr = trackCells->begin();
244 for( ; trackItr != trackEnd; ++trackItr ){
250 for(;cellItr != cellEnd; ++cellItr){
255 if (cell_sid==0 || cell_sid==4 ){lay=0;}
256 else if(cell_sid==1 || cell_sid==5 ){lay=1;}
257 else if(cell_sid==2 || cell_sid==6 ){lay=2;}
258 else if(cell_sid==3 || cell_sid==7 ){lay=3;}
259 else if(cell_sid==12 || cell_sid==18){lay=4;}
260 else if(cell_sid==13 || cell_sid==19){lay=5;}
261 else if(cell_sid==15 || cell_sid==17){lay=5;}
262 else if(cell_sid==14 || cell_sid==20){lay=6;}
263 else if(cell_sid==16) {lay=6;}
264 else if(cell_sid==8 ){lay=7;}
265 else if(cell_sid==9 ){lay=8;}
266 else if(cell_sid==10 ){lay=9;}
267 else if(cell_sid==11 ){lay=10;}
268 if(lay==-1)
continue;
269 double dif_eta =
cell->eta() - etrack[lay][3];
270 double dif_phi =
cell->phi() - etrack[lay][4];
271 if(dif_phi<0) dif_phi=-dif_phi;
272 if(dif_phi>
M_PI){dif_phi=2*
M_PI-dif_phi;}
273 double deltaR = sqrt(dif_eta*dif_eta+dif_phi*dif_phi);
276 while(
i!=outputCells->size()){
if(outputCells->
at(
i)==
cell){
break;}
i++;}
277 if(
i==outputCells->size()){
280 assocItr->push_back(
i);
286 ATH_MSG_DEBUG(
"Number of selected cells: " << outputCells->size());
294 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ initialize()
StatusCode TileEopFilterAlg::initialize |
( |
| ) |
|
|
virtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_clusterCells
std::string TileEopFilterAlg::m_clusterCells |
|
private |
◆ m_detStore
◆ m_dumpLarCells
bool TileEopFilterAlg::m_dumpLarCells |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_inputCells
std::string TileEopFilterAlg::m_inputCells |
|
private |
◆ m_inputClusters
std::string TileEopFilterAlg::m_inputClusters |
|
private |
◆ m_inputTracks
std::string TileEopFilterAlg::m_inputTracks |
|
private |
◆ m_outputCells
std::string TileEopFilterAlg::m_outputCells |
|
private |
◆ m_outputClusters
std::string TileEopFilterAlg::m_outputClusters |
|
private |
◆ m_outputTracks
std::string TileEopFilterAlg::m_outputTracks |
|
private |
◆ m_trackCellR
float TileEopFilterAlg::m_trackCellR |
|
private |
◆ m_trackCells
std::string TileEopFilterAlg::m_trackCells |
|
private |
◆ m_trackClusterR
float TileEopFilterAlg::m_trackClusterR |
|
private |
◆ m_trackClusters
std::string TileEopFilterAlg::m_trackClusters |
|
private |
◆ m_trackEta
float TileEopFilterAlg::m_trackEta |
|
private |
◆ m_trackInCalo
ToolHandle<ITrackTools> TileEopFilterAlg::m_trackInCalo |
|
private |
◆ m_trackIso
float TileEopFilterAlg::m_trackIso |
|
private |
◆ m_trackMom
float TileEopFilterAlg::m_trackMom |
|
private |
◆ m_trackPtrel
float TileEopFilterAlg::m_trackPtrel |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
virtual double pt() const override final
The transverse momentum ( ) of the particle.
ElementProxy at(size_type n)
Access an element, as an lvalue.
const_cell_iterator cell_begin() const
Iterator of the underlying CaloClusterCellLink (const version)
Const iterator class for DataVector/DataList.
Temporary container used until we have I/O for AuxStoreInternal.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
std::string m_inputTracks
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::string m_trackClusters
virtual void setOwner(IDataHandleHolder *o)=0
float etaSample(const CaloSample sampling) const
Retrieve barycenter in a given sample.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
ToolHandle< ITrackTools > m_trackInCalo
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
Description of a calorimeter cluster.
std::string m_clusterCells
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string m_inputClusters
#define CHECK(...)
Evaluate an expression and check for errors.
float phiSample(const CaloSample sampling) const
Retrieve barycenter in a given sample.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
const CaloClusterCellLink * getCellLinks() const
Get a pointer to the CaloClusterCellLink object (const version)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string m_outputCells
Auxiliary container for calorimeter cluster containers.
CaloClusterAuxContainer_v2 CaloClusterAuxContainer
Define the latest version of the calorimeter cluster auxiliary container.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void makePrivateStore()
Create a new (empty) private store for this object.
Container class for CaloCell.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataObjIDColl m_extendedExtraObjects
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
std::string m_outputTracks
DataVector adapter that acts like it holds const pointers.
const_cell_iterator cell_end() const
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
Class describing a TrackParticle.
const T * at(size_type n) const
Access an element, as an rvalue.
std::string m_outputClusters
const_iterator to loop over cells belonging to a cluster
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)