![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "CaloGeoHelpers/CaloSampling.h"
51 return StatusCode::SUCCESS;
61 case 2:
m_inputTracks =
"MuonSpectrometerTrackParticles" ;
break;
78 outputMuons->setStore( outputAuxMuons );
84 outputTracks->setStore( outputAuxTracks );
101 for(
int i = 0;
i < Ncut; ++
i)
cut[
i] = 0;
107 for(; muonItr != muonEnd; ++muonItr ){
136 const TRACK* muon_track = 0;
139 case 0: muon_track =
muon->trackParticle(xAOD::Muon::CombinedTrackParticle);
break;
140 case 1: muon_track =
muon->trackParticle(xAOD::Muon::InnerDetectorTrackParticle);
break;
141 case 2: muon_track =
muon->trackParticle(xAOD::Muon::MuonSpectrometerTrackParticle);
break;
142 default: muon_track =
muon->primaryTrackParticle();
break;
144 if(!muon_track)
continue;
152 for(; trackItr != trackEnd; ++trackItr ){
154 if(muon_track==
track)
continue;
155 double dif_eta = muon_track->
eta() -
track->eta();
156 double dif_phi = muon_track->
phi() -
track->phi();
157 if(dif_phi<0) dif_phi=-dif_phi;
158 if(dif_phi>
M_PI){dif_phi=2*
M_PI-dif_phi;}
159 double deltaR = sqrt(dif_eta*dif_eta+dif_phi*dif_phi);
178 muonItr = outputMuons->
begin();
179 muonEnd = outputMuons->
end();
180 for(; muonItr != muonEnd; ++muonItr ){
189 const TRACK* muon_track = 0;
192 case 0: muon_track =
muon->trackParticle(xAOD::Muon::CombinedTrackParticle);
break;
193 case 1: muon_track =
muon->trackParticle(xAOD::Muon::InnerDetectorTrackParticle);
break;
194 case 2: muon_track =
muon->trackParticle(xAOD::Muon::MuonSpectrometerTrackParticle);
break;
195 default: muon_track =
muon->primaryTrackParticle();
break;
197 if(!muon_track)
continue;
210 for( ;cellItr != cellEnd; ++cellItr){
213 while(
i!=outputCells->size()){
if(outputCells->
at(
i)==
cell){
break;}
i++;}
214 if(
i==outputCells->size()){
217 assocItr->push_back(
i);
225 ATH_MSG_DEBUG(
"Number of selected cells: " << outputCells->size());
233 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
ElementProxy at(size_type n)
Access an element, as an lvalue.
Const iterator class for DataVector/DataList.
Temporary container used until we have I/O for AuxStoreInternal.
std::string m_outputCells
@ 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.
DataVector adapter that acts like it holds const pointers.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
std::string m_outputTracks
virtual StatusCode execute()
TileMuonFilterAlg(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< ITrackTools > m_trackInCalo
std::string m_inputTracks
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.
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.
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.
virtual double e() const override final
The total energy of the particle.
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.
std::string m_outputMuons
DataVector adapter that acts like it holds const pointers.
Class describing a TrackParticle.
virtual StatusCode initialize()
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.
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)