20 m_smearTool(
"InDet::InDetTrackSystematicsTools/InDetTrackSmearingTool", this ){
37 for (
const auto& systpair : InDet::TrackSystematicMap) {
38 if (name == systpair.second.name()) {
44 if (systCode != StatusCode::SUCCESS) {
46 return StatusCode::FAILURE;
49 ATH_CHECK(
book( TH1F(
"d0_B",
"original d0", 100, -5.0, 5.0) ) );
50 ATH_CHECK(
book( TH1F(
"z0_B",
"original z0", 100, -200.0, 200.0) ) );
51 ATH_CHECK(
book( TH1F(
"d0sm",
"d0 after smearing", 100, -5.0, 5.0) ) );
52 ATH_CHECK(
book( TH1F(
"z0sm",
"z0 after smearing", 100, -200.0, 200.0) ) );
53 ATH_CHECK(
book( TH1F(
"subtraction_d0",
"subtraction_d0", 100, -0.10, 0.10) ) );
54 ATH_CHECK(
book( TH1F(
"subtraction_z0",
"subtraction_z0", 100,-0.50, 0.50) ) );
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;
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
@ Error
Some error happened during the object correction.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, const EventContext &ctx)
Function making a shallow copy of a constant container.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".