|
ATLAS Offline Software
|
Go to the documentation of this file.
20 m_smearTool(
"InDet::InDetTrackSystematicsTools/InDetTrackSmearingTool", this ){
38 if (
name == systpair.second.name()) {
44 if (systCode != StatusCode::SUCCESS) {
46 return StatusCode::FAILURE;
57 return StatusCode::SUCCESS;
65 std::pair< xAOD::TrackParticleContainer*, xAOD::ShallowAuxContainer* > IDParticles_shallowCopy =
xAOD::shallowCopyContainer( *IDParticles );
67 double d0_1=0.,d0_2=0.,z0_1=0.,z0_2=0.;
70 hist(
"d0_B")->Fill( d0_1 );
71 hist(
"z0_B")->Fill( z0_1 );
77 hist(
"d0sm")->Fill( d0_2 );
78 hist(
"z0sm")->Fill( z0_2 );
79 hist(
"subtraction_d0")->Fill( d0_2 - d0_1 );
80 hist(
"subtraction_z0")->Fill( z0_2 - z0_1 );
82 delete IDParticles_shallowCopy.first;
83 delete IDParticles_shallowCopy.second;
86 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
@ Error
Some error happened during the object correction.
static const std::unordered_map< InDet::TrackSystematic, CP::SystematicVariation, std::hash< int > > TrackSystematicMap
::StatusCode StatusCode
StatusCode definition for legacy code.
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant container.
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Class describing a TrackParticle.