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 );
72 const double d0_orig = track->d0();
73 const double z0_orig = track->z0();
77 hist(
"d0_systematic")->Fill( track->d0() );
78 hist(
"z0_systematic")->Fill( track->z0() );
79 hist(
"d0_systematic_delta")->Fill( track->d0() - d0_orig );
80 hist(
"z0_systematic_delta")->Fill( track->z0() - z0_orig );
83 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?
TrackParticle_v1 TrackParticle
Reference the current persistent version:
ShallowCopyResult_t< T > shallowCopy(const T &cont, const EventContext &ctx)
Create a shallow copy of an existing container.