21 m_smearTool(
"InDet::InDetTrackSystematicsTools/InDetTrackSmearingTool", this ){
38 for (
const auto& systpair : InDet::TrackSystematicMap) {
39 if (name == systpair.second.name()) {
45 if (systCode != StatusCode::SUCCESS) {
47 return StatusCode::FAILURE;
50 ATH_CHECK(
book( TH1F(
"d0_B",
"original d0", 100, -5.0, 5.0) ) );
51 ATH_CHECK(
book( TH1F(
"z0_B",
"original z0", 100, -200.0, 200.0) ) );
52 ATH_CHECK(
book( TH1F(
"d0sm",
"d0 after smearing", 100, -5.0, 5.0) ) );
53 ATH_CHECK(
book( TH1F(
"z0sm",
"z0 after smearing", 100, -200.0, 200.0) ) );
54 ATH_CHECK(
book( TH1F(
"subtraction_d0",
"subtraction_d0", 100, -0.10, 0.10) ) );
55 ATH_CHECK(
book( TH1F(
"subtraction_z0",
"subtraction_z0", 100,-0.50, 0.50) ) );
58 return StatusCode::SUCCESS;
69 double d0_1=0.,d0_2=0.,z0_1=0.,z0_2=0.;
72 hist(
"d0_B")->Fill( d0_1 );
73 hist(
"z0_B")->Fill( z0_1 );
79 hist(
"d0sm")->Fill( d0_2 );
80 hist(
"z0sm")->Fill( z0_2 );
81 hist(
"subtraction_d0")->Fill( d0_2 - d0_1 );
82 hist(
"subtraction_z0")->Fill( z0_2 - z0_1 );
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.
typename ShallowCopyResult< T >::type ShallowCopyResult_t
Return type of xAOD::shallowCopy.
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.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".