157 m_pt.push_back(mu.pt());
158 m_eta.push_back(mu.eta());
159 m_phi.push_back(mu.phi());
160 m_e.push_back(mu.e());
180 if( !(mu.parameter(value, xAOD::Muon::ParamDef::msInnerMatchChi2)) ) value=-999.;
182 if( !(mu.parameter(ivalue, xAOD::Muon::ParamDef::msInnerMatchDOF)) ) ivalue=-999;
184 if( !(mu.parameter(value, xAOD::Muon::ParamDef::msOuterMatchChi2)) ) value=-999.;
186 if( !(mu.parameter(ivalue, xAOD::Muon::ParamDef::msOuterMatchDOF)) ) ivalue=-999;
188 if( !(mu.parameter(value, xAOD::Muon::ParamDef::CaloLRLikelihood)) ) value=-999.;
190 if( !(mu.parameter(ivalue, xAOD::Muon::ParamDef::CaloMuonIDTag)) ) ivalue=-999;
192 if( !(mu.parameter(value, xAOD::Muon::ParamDef::EnergyLoss)) ) value=-999.;
209 m_trkp_d0.push_back( mu.primaryTrackParticle()->d0() );
210 m_trkp_z0.push_back( mu.primaryTrackParticle()->z0() );
211 m_trkp_qOverP.push_back( mu.primaryTrackParticle()->qOverP() );
216 size_t nMuonSegments = mu.nMuonSegments();
220 m_museg_x.push_back( std::vector<float >() );
221 m_museg_y.push_back( std::vector<float >() );
222 m_museg_z.push_back( std::vector<float >() );
230 for(
int i=0; (size_t)i<nMuonSegments; i++ ) {
232 m_museg_x[ muonIndx ].push_back(muonSegment->
x());
233 m_museg_y[ muonIndx ].push_back(muonSegment->
y());
234 m_museg_z[ muonIndx ].push_back(muonSegment->
z());
278 TVector3 v(caloEnt_pxAcc(truthMu),
279 caloEnt_pyAcc(truthMu),
280 caloEnt_pzAcc(truthMu));
293 TVector3 v(muonEnt_pxAcc(truthMu),
294 muonEnt_pyAcc(truthMu),
295 muonEnt_pzAcc(truthMu));
308 TVector3 v(muonExit_pxAcc(truthMu),
309 muonExit_pyAcc(truthMu),
310 muonExit_pzAcc(truthMu));
345 if(isGoodTruthTrack)
return;
347 if(truthMu.
status())
return;
Helper class to provide constant type-safe access to aux data.
std::vector< float > m_iso_ptvarcon20
std::vector< std::vector< float > > m_museg_z
std::vector< int > m_th_truthType
std::unique_ptr< TTree > m_tree
std::vector< bool > m_th_isGoodTruthTrack
void postFillTreeActions()
unsigned long long m_eventNumber
std::vector< float > m_msInnerMatchChi2
std::vector< float > m_trkp_z0
std::vector< std::vector< unsigned int > > m_museg_technology
std::vector< int8_t > m_innerSmallHoles
std::vector< float > m_iso_topoetcon20
void fillEventBranches(const xAOD::EventInfo *eventInfo, bool isData)
std::vector< float > m_th_MuonExit_p
std::vector< float > m_CaloLRLikelihood
std::vector< int > m_msOuterMatchDOF
std::vector< int > m_Quality
std::vector< std::vector< int > > m_museg_nPhiLayers
std::vector< float > m_iso_ptcone20
std::vector< double > m_th_eta
std::vector< float > m_th_CaloEntry_p
std::vector< double > m_th_phi
std::vector< std::vector< int > > m_museg_sector
std::vector< std::vector< int > > m_museg_nTrigEtaLayers
std::vector< std::vector< float > > m_museg_x
void fillTruthMuonBranches(const xAOD::TruthParticle &truthMu, bool isGoodTruthTrack)
std::vector< int > m_CaloMuonIDTag
std::vector< int8_t > m_th_nprecLayers
std::vector< float > m_msOuterMatchChi2
std::vector< int8_t > m_innerLargeHoles
std::vector< float > m_pt
uint32_t m_mcChannelNumber
std::vector< float > m_trkp_chiSquared
MuonTree(PlotBase *pParent, const std::string &sDir, bool mcFlag)
std::vector< int8_t > m_th_ntrigEtaLayers
Float_t m_mcBeamSpotWeight
std::vector< double > m_th_pt
std::vector< float > m_trkp_qOverP
std::vector< std::vector< int > > m_museg_nPrecisionHits
std::vector< float > m_trkp_d0
void fillRecoMuonBranches(const xAOD::Muon &mu)
std::vector< int8_t > m_th_nphiLayers
std::vector< float > m_iso_neflowisol20
std::vector< float > m_th_MuonEntry_p
std::vector< float > m_rapidity
std::vector< float > m_eta
std::vector< int > m_msInnerMatchDOF
std::vector< size_t > m_nMuonSegments
std::vector< std::vector< float > > m_museg_y
std::vector< int > m_th_truthOrigin
std::vector< float > m_phi
std::vector< int > m_muonType
std::vector< float > m_EnergyLoss
std::vector< int8_t > m_innerSmallHits
std::vector< int8_t > m_innerLargeHits
std::vector< std::vector< unsigned int > > m_museg_chamberIndex
std::vector< uint16_t > m_allAuthors
std::vector< float > m_trkp_numberDoF
PlotBase(PlotBase *parent, const std::string &sDir)
TTree * BookTree(const std::string &name, bool prependDir=true)
Book a TTree.
Helper class to provide constant type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
uint64_t mcEventNumber() const
The MC generator's event number.
uint32_t lumiBlock() const
The current event's luminosity block number.
float beamSpotWeight() const
Weight for beam spot size reweighting.
uint32_t runNumber() const
The current event's run number.
uint32_t mcChannelNumber() const
The MC generator's channel number.
uint64_t eventNumber() const
The current event's event number.
float y() const
Returns the x position.
int nTrigEtaLayers() const
Returns the number of trigger eta layers.
int nPrecisionHits() const
::Muon::MuonStationIndex::TechnologyIndex technology() const
Returns the main technology of the segment.
::Muon::MuonStationIndex::ChIndex chamberIndex() const
Returns the chamber index.
int nPhiLayers() const
Returns the number of phi layers.
float z() const
Returns the y position.
int status() const
Status code.
virtual double pt() const override final
The transverse momentum ( ) of the particle.
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
virtual double phi() const override final
The azimuthal angle ( ) of the particle.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
@ neflowisol20
Neutral eflow isolation.
@ topoetcone20
Topo-cluster ET-sum.
@ ptcone20
Track isolation.
@ ptvarcone20
Mini-Isolation http://arxiv.org/abs/1007.2221.
EventInfo_v1 EventInfo
Definition of the latest event info version.
TruthParticle_v1 TruthParticle
Typedef to implementation.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
Muon_v1 Muon
Reference the current persistent version:
MuonSegment_v1 MuonSegment
Reference the current persistent version:
@ innerLargeHits
number of precision hits in the inner large layer
@ innerLargeHoles
number of precision holes in the inner large layer
@ innerSmallHoles
number of precision holes in the inner small layer
@ innerSmallHits
number of precision hits in the inner small layer