34 declareProperty(
"TryStandAloneMuons",
m_standalone =
"no");
61 return StatusCode::SUCCESS;
70 return StatusCode::SUCCESS;
168 return StatusCode::SUCCESS;
263 for(; muonItr != muonEnd; ++muonItr ){
276 const TRACK* muon_track = 0;
279 case 0: muon_track =
muon->trackParticle(xAOD::Muon::CombinedTrackParticle);
break;
280 case 1: muon_track =
muon->trackParticle(xAOD::Muon::InnerDetectorTrackParticle);
break;
281 case 2: muon_track =
muon->trackParticle(xAOD::Muon::MuonSpectrometerTrackParticle);
break;
282 default: muon_track =
muon->primaryTrackParticle();
break;
284 if(!muon_track)
continue;
286 std::vector<double> coordinates =
m_trackInCalo->getXYZEtaPhiInCellSampling(muon_track,&p);
288 if(coordinates.size() == 5 )
291 float path =
m_trackInCalo->getPathInsideCell(muon_track,&p);
303 ATH_MSG_INFO(
"Can not get the value of numberOfPixelHits");
307 ATH_MSG_INFO(
"Can not get the value of numberOfSCTHits");
312 m_muonX ->push_back(coordinates[0]);
313 m_muonY ->push_back(coordinates[1]);
314 m_muonZ ->push_back(coordinates[2]);
324 m_dx->push_back(path);
325 m_dEdx->push_back(path > 0 ? p.energy() / path : -1.);
330 return StatusCode::SUCCESS;
#define CHECK(...)
Evaluate an expression and check for errors.
Data object for each calorimeter readout cell.
This class groups all DetDescr information related to a CaloCell.
CaloCell_ID::SUBCALO getSubCalo() const
cell subcalo
float dphi() const
cell dphi
CaloCell_ID::CaloSample getSampling() const
cell sampling
IdentifierHash onl2() const
cell online identifier 2
float deta() const
cell deta
float volume() const
cell volume
IdentifierHash onl1() const
cell online identifier 1
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
uint8_t qual1(void) const
get quality of first PMT (data member)
float time1(void) const
get time of first PMT
int gain2(void) const
get gain of second PMT
bool badch1(void) const
check if first PMT is in bad channel list and masked
uint8_t qbit2(void) const
get quality bits of second PMT (data member)
int gain1(void) const
get gain of first PMT
uint8_t qual2(void) const
get quality of second PMT (data member)
float ene1(void) const
get energy of first PMT
bool badch2(void) const
check if second PMT is in bad channel list and masked
float time2(void) const
get time of second PMT
uint8_t qbit1(void) const
get quality bits of first PMT (data member)
float ene2(void) const
get energy of second PMT
Block filler tool for noisy FEB information.
double deltaPhi(double phi1, double phi2)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].