Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:38

0001 // Copyright 2020, Jefferson Science Associates, LLC.
0002 // Subject to the terms in the LICENSE file found in the top-level directory.
0003 
0004 #ifndef _CLUSTER_H_
0005 #define _CLUSTER_H_
0006 
0007 #include <vector>
0008 #include <TObject.h>
0009 #include "Hit.h"
0010 
0011 class Cluster:public TObject{
0012 
0013 public:
0014 
0015     Cluster(void):Etot(0.0){}
0016 
0017     void AddHit(const Hit* hit){
0018         hits.push_back(hit);
0019         Etot += hit->E;
0020     }
0021 
0022     std::vector<const Hit*> hits;
0023     double Etot;
0024 
0025     ClassDef(Cluster,1) // n.b. make sure ROOT_GENERATE_DICTIONARY is in cmake file!
0026 };
0027 
0028 #endif // _CLUSTER_H_