00001 #ifndef CPANALYSISEXAMPLES_METADATATOOLEXAMPLE_H
00002 #define CPANALYSISEXAMPLES_METADATATOOLEXAMPLE_H 1
00003
00010
00011
00012
00013 #include "AsgTools/AsgMetadataTool.h"
00014
00015 #include "CPAnalysisExamples/IMetadataToolExample.h"
00016
00017 namespace CP {
00018
00019 class MetadataToolExample: public asg::AsgMetadataTool, public virtual IMetadataToolExample {
00020 public:
00021
00022
00023 ASG_TOOL_CLASS( MetadataToolExample , IMetadataToolExample )
00024
00025 MetadataToolExample( const std::string& name );
00026
00028 virtual StatusCode initialize() override;
00029
00031 virtual StatusCode beginInputFile() override;
00032
00034 virtual StatusCode endInputFile() override;
00035
00037 virtual StatusCode beginEvent() override;
00038
00039
00040 virtual void print() const override;
00041
00042 private:
00043 bool m_isConfigured = false;
00044 bool m_isMC = false;
00045 bool m_isFastSim = false;
00046 };
00047
00048 }
00049
00050 #endif //> !CPANALYSISEXAMPLES_METADATATOOLEXAMPLE_H