00001 00006 #ifndef VALINTUPLE_H 00007 #define VALINTUPLE_H 00008 00009 00010 #include "GaudiAlg/GaudiAlgorithm.h" 00011 00012 #include <string> 00013 00014 class ITHistSvc; 00015 class IGeometryInfo; 00016 class TTree; 00017 00018 00019 class ValiNTuple : public GaudiAlgorithm 00020 { 00021 00022 public: 00023 00024 ValiNTuple(const std::string& name, ISvcLocator* pSvcLocator); 00025 virtual ~ValiNTuple(); 00026 00027 virtual StatusCode initialize(); 00028 virtual StatusCode execute(); 00029 virtual StatusCode finalize(); 00030 00031 private: 00032 00035 std::string m_location; 00036 00039 std::string m_volume; 00040 00043 std::string m_filepath; 00044 00046 double m_maxEnergy; 00047 00049 double m_energyUnits; 00050 00051 private: 00052 00053 // Try to find bounds of vertices 00054 StatusCode BookVertices(); 00055 00056 // Locally cached pointer to the (T) histogram service 00057 ITHistSvc* m_hsvc; 00058 00059 // Locally cached pointer to the GI of the volume of generation 00060 //IGeometryInfo* m_geo; 00061 00062 // Locally cached pointers to Ntuple tree; 00063 TTree* m_outTree; 00064 }; 00065 00066 00067 00068 #endif // VALINTUPLE_H