![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "CaloGeoHelpers/CaloSampling.h"
47 return StatusCode::SUCCESS;
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;
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
virtual StatusCode execute()
iterator end() noexcept
Return an iterator pointing past the end of the collection.
DataVector adapter that acts like it holds const pointers.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_outputTracks
std::string m_inputTracks
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
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.
TileCosmicMuonFilterAlg(const std::string &name, ISvcLocator *pSvcLocator)
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.
virtual StatusCode initialize()
#define CHECK(...)
Evaluate an expression and check for errors.
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.
Data object for each calorimeter readout cell.
DataVector adapter that acts like it holds const pointers.
Class describing a TrackParticle.
size_type size() const noexcept
Returns the number of elements in the collection.
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.