// ClusterSystem.h
// The class that fills the Cluster class from the MCparticle history
// read from a GISMO ascii file.

#ifndef CLUSTERSYSTEM
#define CLUSTERSYSTEM
 
#include "RecModule.h"
#include "Event.h"
#include "GetParameters.h"
#include "Cluster.h"

class ClusterSystem : public RecModule {

public:

ClusterSystem(GetParameters* gp);
//ClusterSystem(Event* event);
~ClusterSystem(){};

void FillClusters(TObjArray* cal_digi);
void doit(Event* event);
void spew(FILE* ofile)const;
void cleanup();

private:

Event* m_event; // This is the event which is being analyzed
GetParameters* m_parameters;
Float_t* m_hitEscale;
Float_t* m_hitcosThetaSeg;
Float_t* m_hitphiSeg;
 public:

ClassDef(ClusterSystem,0)

};

#endif
