.. _program_listing_file_Root_PhotonHistsAlgo.cxx: Program Listing for File PhotonHistsAlgo.cxx ============================================ |exhale_lsh| :ref:`Return to documentation for file ` (``Root/PhotonHistsAlgo.cxx``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include #include #include #include #include #include #include // this is needed to distribute the algorithm to the workers ClassImp(PhotonHistsAlgo) PhotonHistsAlgo :: PhotonHistsAlgo () : IParticleHistsAlgo("PhotonHistsAlgo") { } EL::StatusCode PhotonHistsAlgo :: setupJob (EL::Job& job) { job.useXAOD(); xAOD::Init("PhotonHistsAlgo").ignore(); return EL::StatusCode::SUCCESS; } EL::StatusCode PhotonHistsAlgo::AddHists( std::string name ) { return IParticleHistsAlgo::AddHists(name); } EL::StatusCode PhotonHistsAlgo :: execute () { return IParticleHistsAlgo::execute(); }