ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CMFlashCluster.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CMFlashCluster.h
1 
7 #ifndef TRACKBASE_CMFLASHCLUSTER_H
8 #define TRACKBASE_CMFLASHCLUSTER_H
9 
10 #include <phool/PHObject.h>
11 
12 #include <climits>
13 #include <cmath>
14 #include <iostream>
15 #include <memory>
16 
17 
23 class CMFlashCluster : public PHObject
24 {
25  public:
27  ~CMFlashCluster() override {}
28  // PHObject virtual overloads
29  void identify(std::ostream& os = std::cout) const override
30  {
31  os << "CMFlashCluster base class" << std::endl;
32  }
33  void Reset() override {}
34  int isValid() const override { return 0; }
35 
36 
38  using PHObject::CopyFrom;
39 
41  virtual void CopyFrom( const CMFlashCluster& ) {}
42 
44  virtual void CopyFrom( CMFlashCluster* ) {}
45 
46  //
47  // cluster id
48  //
49  virtual unsigned int getClusKey() const { return UINT_MAX; }
50  virtual void setClusKey(unsigned int) {}
51 
52  //
53  // cluster position
54  //
55  virtual float getX() const { return NAN; }
56  virtual void setX(float) {}
57  virtual float getY() const { return NAN; }
58  virtual void setY(float) {}
59  virtual float getZ() const { return NAN; }
60  virtual void setZ(float) {}
61 
62  //
63  // cluster info
64  //
65  virtual void setAdc(unsigned int) {}
66  virtual unsigned int getAdc() const { return UINT_MAX; }
67 
68  protected:
69  CMFlashCluster() = default;
70  ClassDefOverride(CMFlashCluster, 1)
71 };
72 
73 #endif //TRACKBASE_CMFLASHCLUSTER_H