19 m_biasTool(
"InDet::InDetTrackSystematicsTools/InDetTrackBiasingTool", this ){
30 ATH_CHECK(
book( TH1F(
"d0_original",
"original d0", 100, -5.0, 5.0) ) );
31 ATH_CHECK(
book( TH1F(
"z0_original",
"original z0", 100, -200., 200.) ) );
32 ATH_CHECK(
book( TH1F(
"d0_nominal",
"d0 after nominal correction", 100, -5.0, 5.0) ) );
33 ATH_CHECK(
book( TH1F(
"z0_nominal",
"z0 after nominal correction", 100, -200., 200.) ) );
34 ATH_CHECK(
book( TH1F(
"d0_nominal_delta",
"d0 nominal - original (expect nonzero)", 100, -0.10, 0.10) ) );
35 ATH_CHECK(
book( TH1F(
"z0_nominal_delta",
"z0 nominal - original (expect nonzero)", 100, -0.50, 0.50) ) );
38 ATH_CHECK(
book( TH1F(
"d0_systematic",
"d0 after systematic variation", 100, -5.0, 5.0) ) );
39 ATH_CHECK(
book( TH1F(
"z0_systematic",
"z0 after systematic variation", 100, -200., 200.) ) );
40 ATH_CHECK(
book( TH1F(
"d0_systematic_delta",
"d0 systematic - original (expect zero)", 100, -0.10, 0.10) ) );
41 ATH_CHECK(
book( TH1F(
"z0_systematic_delta",
"z0 systematic - original (expect zero)", 100, -0.50, 0.50) ) );
43 return StatusCode::SUCCESS;
55 const double d0_orig = track->d0();
56 const double z0_orig = track->z0();
57 hist(
"d0_original")->Fill( d0_orig );
58 hist(
"z0_original")->Fill( z0_orig );
62 hist(
"d0_nominal")->Fill( track->d0() );
63 hist(
"z0_nominal")->Fill( track->z0() );
64 hist(
"d0_nominal_delta")->Fill( track->d0() - d0_orig );
65 hist(
"z0_nominal_delta")->Fill( track->z0() - z0_orig );
67 delete nominalCopy.first;
68 delete nominalCopy.second;
74 const double d0_orig = track->d0();
75 const double z0_orig = track->z0();
79 hist(
"d0_systematic")->Fill( track->d0() );
80 hist(
"z0_systematic")->Fill( track->z0() );
81 hist(
"d0_systematic_delta")->Fill( track->d0() - d0_orig );
82 hist(
"z0_systematic_delta")->Fill( track->z0() - z0_orig );
84 delete systematicCopy.first;
85 delete systematicCopy.second;
87 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
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.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
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: