|
ATLAS Offline Software
|
#include <TileCosmicMuonFilterAlg.h>
|
| TileCosmicMuonFilterAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~TileCosmicMuonFilterAlg () |
|
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 33 of file TileCosmicMuonFilterAlg.h.
◆ StoreGateSvc_t
◆ TileCosmicMuonFilterAlg()
TileCosmicMuonFilterAlg::TileCosmicMuonFilterAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TileCosmicMuonFilterAlg()
TileCosmicMuonFilterAlg::~TileCosmicMuonFilterAlg |
( |
| ) |
|
|
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 TileCosmicMuonFilterAlg::execute |
( |
| ) |
|
|
virtual |
Returns true if this Muon passes the MCP ID hit cuts (see the MCP twiki for definitions: https://twiki.cern.ch/twiki/bin/view/AtlasProtected/MuonPerformance)
primaryTrackParticle() Returns a pointer (which should not usually be NULL, but might be if the muon has been stripped of information) to the primary TrackParticle corresponding to the MuonType of this muon. This is determined in the following order:
- CombinedTrackParticle
- InnerDetectorTrackParticle
- MuonSpectrometerTrackParticle
primaryTrackParticle() Returns a pointer (which should not usually be NULL, but might be if the muon has been stripped of information) to the primary TrackParticle corresponding to the MuonType of this muon. This is determined in the following order:
- CombinedTrackParticle
- InnerDetectorTrackParticle
- MuonSpectrometerTrackParticle
Definition at line 51 of file TileCosmicMuonFilterAlg.cxx.
57 case 2:
m_inputTracks =
"MuonSpectrometerTrackParticles" ;
break;
74 outputMuons->setStore( outputAuxMuons );
80 outputTracks->setStore( outputAuxTracks );
98 for(
int i = 0;
i < Ncut; ++
i)
cut[
i] = 0;
104 for(; muonItr != muonEnd; ++muonItr ){
121 if( !
muon->passesIDCuts() )
continue;
133 const TRACK* muon_track = 0;
136 case 0: muon_track =
muon->trackParticle(xAOD::Muon::CombinedTrackParticle);
break;
137 case 1: muon_track =
muon->trackParticle(xAOD::Muon::InnerDetectorTrackParticle);
break;
138 case 2: muon_track =
muon->trackParticle(xAOD::Muon::MuonSpectrometerTrackParticle);
break;
139 default: muon_track =
muon->primaryTrackParticle();
break;
141 if(!muon_track)
continue;
157 muonItr = outputMuons->
begin();
158 muonEnd = outputMuons->
end();
159 for(; muonItr != muonEnd; ++muonItr ){
168 const TRACK* muon_track = 0;
171 case 0: muon_track =
muon->trackParticle(xAOD::Muon::CombinedTrackParticle);
break;
172 case 1: muon_track =
muon->trackParticle(xAOD::Muon::InnerDetectorTrackParticle);
break;
173 case 2: muon_track =
muon->trackParticle(xAOD::Muon::MuonSpectrometerTrackParticle);
break;
174 default: muon_track =
muon->primaryTrackParticle();
break;
176 if(!muon_track)
continue;
190 for( ;cellItr != cellEnd; ++cellItr){
193 while(
i!=outputCells->size()){
if(outputCells->
at(
i)==
cell){
break;}
i++;}
194 if(
i==outputCells->size()){
197 assocItr->push_back(
i);
205 ATH_MSG_DEBUG(
"Number of selected cells: " << outputCells->size());
213 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 TileCosmicMuonFilterAlg::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_detStore
◆ m_dumpLarCells
bool TileCosmicMuonFilterAlg::m_dumpLarCells |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_inputCells
std::string TileCosmicMuonFilterAlg::m_inputCells |
|
private |
◆ m_inputMuons
std::string TileCosmicMuonFilterAlg::m_inputMuons |
|
private |
◆ m_inputTracks
std::string TileCosmicMuonFilterAlg::m_inputTracks |
|
private |
◆ m_muonCellR
float TileCosmicMuonFilterAlg::m_muonCellR |
|
private |
◆ m_muonCells
std::string TileCosmicMuonFilterAlg::m_muonCells |
|
private |
◆ m_muonEta
float TileCosmicMuonFilterAlg::m_muonEta |
|
private |
◆ m_muonPt
float TileCosmicMuonFilterAlg::m_muonPt |
|
private |
◆ m_outputCells
std::string TileCosmicMuonFilterAlg::m_outputCells |
|
private |
◆ m_outputMuons
std::string TileCosmicMuonFilterAlg::m_outputMuons |
|
private |
◆ m_outputTracks
std::string TileCosmicMuonFilterAlg::m_outputTracks |
|
private |
◆ m_trackInCalo
ToolHandle<ITrackTools> TileCosmicMuonFilterAlg::m_trackInCalo |
|
private |
◆ m_trackType
short TileCosmicMuonFilterAlg::m_trackType |
|
private |
◆ m_useCuts
bool TileCosmicMuonFilterAlg::m_useCuts |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
ElementProxy at(size_type n)
Access an element, as an lvalue.
std::string m_outputCells
Const iterator class for DataVector/DataList.
Temporary container used until we have I/O for AuxStoreInternal.
ToolHandle< ITrackTools > m_trackInCalo
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
iterator end() noexcept
Return an iterator pointing past the end of the collection.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::string m_outputTracks
std::vector< SG::VarHandleKeyArray * > m_vhka
std::string m_inputTracks
virtual void setOwner(IDataHandleHolder *o)=0
std::string m_outputMuons
Temporary container used until we have I/O for AuxStoreInternal.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
void clear()
Erase all the elements in the collection.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
xAOD::MuonAuxContainer MUONAUXCONTAINER
::StatusCode StatusCode
StatusCode definition for legacy code.
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
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)
DataVector adapter that acts like it holds const pointers.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
Class describing a TrackParticle.
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>
iterator begin() noexcept
Return an iterator pointing at the beginning of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.