Program Listing for File ClusterHistsAlgo.h

Return to documentation for file (xAODAnaHelpers/ClusterHistsAlgo.h)

#ifndef xAODAnaHelpers_ClusterHistsAlgo_H
#define xAODAnaHelpers_ClusterHistsAlgo_H

#include <xAODAnaHelpers/ClusterHists.h>

// algorithm wrapper
#include "xAODAnaHelpers/Algorithm.h"

class ClusterHistsAlgo : public xAH::Algorithm
{
  // put your configuration variables here as public variables.
  // that way they can be set directly from CINT and python.
public:
  std::string m_inContainerName = "";

  // configuration variables
  std::string m_detailStr = "";

private:
  ClusterHists* m_plots = nullptr;

  // variables that don't get filled at submission time should be
  // protected from being send from the submission node to the worker
  // node (done by the //!)
public:
  // Tree *myTree; //!
  // TH1 *myHist; //!

  // this is a standard constructor
  ClusterHistsAlgo ();

  // these are the functions inherited from Algorithm
  virtual EL::StatusCode setupJob (EL::Job& job);
  virtual EL::StatusCode fileExecute ();
  virtual EL::StatusCode histInitialize ();
  virtual EL::StatusCode changeInput (bool firstFile);
  virtual EL::StatusCode initialize ();
  virtual EL::StatusCode execute ();
  virtual EL::StatusCode postExecute ();
  virtual EL::StatusCode finalize ();
  virtual EL::StatusCode histFinalize ();

  // this is needed to distribute the algorithm to the workers
  ClassDef(ClusterHistsAlgo, 1);

};

#endif