#ifndef __TMrbSubevent_DGF_2_h__
#define __TMrbSubevent_DGF_2_h__
namespace std {} using namespace std;
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <fstream>
#include "Rtypes.h"
#include "TSystem.h"
#include "TMrbSubevent.h"
#include "TMrbTemplate.h"
class TMrbSubevent_DGF_2 : public TMrbSubevent {
public:
TMrbSubevent_DGF_2() {};
TMrbSubevent_DGF_2(const Char_t * SevtName, const Char_t * SevtTitle = "", Int_t Crate = -1);
~TMrbSubevent_DGF_2() {};
Bool_t MakeReadoutCode(ofstream & RdoStrm, TMrbConfig::EMrbReadoutTag TagIndex,
TMrbTemplate & Template, const Char_t * Prefix = NULL);
Bool_t MakeRcFile(ofstream & RcStrm, TMrbConfig::EMrbRcFileTag TagIndex, const Char_t * ResourceName);
inline Bool_t HasFixedLengthFormat() const { return(kFALSE); };
inline Bool_t AllowsMultipleModules() const { return(kTRUE); };
inline Bool_t CheckModuleID(TMrbModule * Module) const {
return(Module->CheckID(TMrbConfig::kModuleXia_DGF_4C));
};
inline void SetClusterID(Int_t Number, Int_t Serial, const Char_t * Color) {
fClusterNumber = Number;
fClusterID.Set(Serial, Color);
};
inline Int_t GetClusterNumber() const { return(fClusterNumber); };
inline Int_t GetClusterSerial() const { return(fClusterID.GetIndex()); };
inline const Char_t * GetClusterColor() const { return(fClusterID.GetName()); };
inline Bool_t NeedsHitBuffer() const { return(kTRUE); };
inline Bool_t HasPrivateCode() const { return(kTRUE); };
inline Bool_t NeedsBranchMode() const { return(kTRUE); };
inline const Char_t * GetCommonCodeFile() { return("Subevent_DGF_Common"); };
inline void Help() { gSystem->Exec(Form("mrbHelp %s", this->ClassName())); };
protected:
Int_t fClusterNumber;
TMrbNamedX fClusterID;
ClassDef(TMrbSubevent_DGF_2, 1)
};
#endif