Warning, file /include/JANA/plugins/RootDatamodelExample/Cluster.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
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)
0026 };
0027
0028 #endif