Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHNodeOperation.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHNodeOperation.h
1 #ifndef PHOOL_PHNODEOPERATION_H
2 #define PHOOL_PHNODEOPERATION_H
3 
4 // Declaration of class PHNodeOperation
5 // Purpose: abstract strategy base class which operates on PHNodes
6 // Author: Matthias Messer
7 
8 class PHNode;
9 
11 {
12  public:
14  : verbosity(0)
15  {
16  }
17  virtual ~PHNodeOperation() {}
18  void
20  {
21  perform(&o);
22  }
23  void
25  {
26  perform(o);
27  }
28 
29  virtual void Verbosity(const int i) { verbosity = i; }
30  virtual int Verbosity() const { return verbosity; }
31 
32  protected:
33  virtual void perform(PHNode*) = 0;
34  int verbosity;
35 };
36 
37 #endif