ROOT logo
#ifndef __TMrbSubevent_HB_1_h__
#define __TMrbSubevent_HB_1_h__

//_________________________________________________[C++ CLASS DEFINITION FILE]
//////////////////////////////////////////////////////////////////////////////
// Name:           expconf/inc/TMrbSubevent_HB_1.h
// Purpose:        Define experimental configuration for MARaBOU
// Class:          TMrbSubevent_HB_1   -- MBS subevent type [10,71]
//                                         format similar to [10,1] but with hitbuffer
// Description:    Class definitions to implement a configuration front-end for MARaBOU
// Author:         R. Lutter
// Revision:       $Id: TMrbSubevent_HB_1.h,v 1.4 2009-06-24 14:07:34 Rudolf.Lutter Exp $
// Date:
// Keywords:
//////////////////////////////////////////////////////////////////////////////

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"

//______________________________________________________[C++ CLASS DEFINITION]
//////////////////////////////////////////////////////////////////////////////
// Name:           TMrbSubevent_HB_1
// Purpose:        Define MBS subevents of type [10,71]
// Methods:        MakeReadoutCode  -- output readout code for subevent [10,71]
// Description:    Defines a MBS subevent of type [10,71] - a special format
//                 reflecting CAEN's data structure.
//                 Generates code.
// Keywords:
//////////////////////////////////////////////////////////////////////////////

class TMrbSubevent_HB_1 : public TMrbSubevent {

	public:

		TMrbSubevent_HB_1() {}; 				// default ctor
		TMrbSubevent_HB_1(const Char_t * SevtName, const Char_t * SevtTitle = "", Int_t Crate = -1);	// create a new hit buffer subevent
		~TMrbSubevent_HB_1() {};	 			// remove current subevent from list

		Bool_t MakeReadoutCode(ofstream & RdoStrm, TMrbConfig::EMrbReadoutTag TagIndex, 		// generate part of code for this subevent
											TMrbTemplate & Template, const Char_t * Prefix = NULL);

		inline Bool_t HasFixedLengthFormat() const { return(kFALSE); };				// variable length data
		inline Bool_t AllowsMultipleModules() const { return(kTRUE); };				// can store multiple modules

		inline Bool_t NeedsHitBuffer() const { return(kTRUE); };  					// allocate hit buffer
		inline Bool_t HasPrivateCode() const { return(kTRUE); }; 					// use private code files
		inline Bool_t NeedsBranchMode() const { return(kTRUE); }; 					// needs branch mode
		inline const Char_t * GetCommonCodeFile() { return("Subevent_HB_Common"); };

		inline void Help() { gSystem->Exec(Form("mrbHelp %s", this->ClassName())); };

	ClassDef(TMrbSubevent_HB_1, 1) 	// [Config] Subevent type [10,71]: with hitbuffer
};

#endif
 TMrbSubevent_HB_1.h:1
 TMrbSubevent_HB_1.h:2
 TMrbSubevent_HB_1.h:3
 TMrbSubevent_HB_1.h:4
 TMrbSubevent_HB_1.h:5
 TMrbSubevent_HB_1.h:6
 TMrbSubevent_HB_1.h:7
 TMrbSubevent_HB_1.h:8
 TMrbSubevent_HB_1.h:9
 TMrbSubevent_HB_1.h:10
 TMrbSubevent_HB_1.h:11
 TMrbSubevent_HB_1.h:12
 TMrbSubevent_HB_1.h:13
 TMrbSubevent_HB_1.h:14
 TMrbSubevent_HB_1.h:15
 TMrbSubevent_HB_1.h:16
 TMrbSubevent_HB_1.h:17
 TMrbSubevent_HB_1.h:18
 TMrbSubevent_HB_1.h:19
 TMrbSubevent_HB_1.h:20
 TMrbSubevent_HB_1.h:21
 TMrbSubevent_HB_1.h:22
 TMrbSubevent_HB_1.h:23
 TMrbSubevent_HB_1.h:24
 TMrbSubevent_HB_1.h:25
 TMrbSubevent_HB_1.h:26
 TMrbSubevent_HB_1.h:27
 TMrbSubevent_HB_1.h:28
 TMrbSubevent_HB_1.h:29
 TMrbSubevent_HB_1.h:30
 TMrbSubevent_HB_1.h:31
 TMrbSubevent_HB_1.h:32
 TMrbSubevent_HB_1.h:33
 TMrbSubevent_HB_1.h:34
 TMrbSubevent_HB_1.h:35
 TMrbSubevent_HB_1.h:36
 TMrbSubevent_HB_1.h:37
 TMrbSubevent_HB_1.h:38
 TMrbSubevent_HB_1.h:39
 TMrbSubevent_HB_1.h:40
 TMrbSubevent_HB_1.h:41
 TMrbSubevent_HB_1.h:42
 TMrbSubevent_HB_1.h:43
 TMrbSubevent_HB_1.h:44
 TMrbSubevent_HB_1.h:45
 TMrbSubevent_HB_1.h:46
 TMrbSubevent_HB_1.h:47
 TMrbSubevent_HB_1.h:48
 TMrbSubevent_HB_1.h:49
 TMrbSubevent_HB_1.h:50
 TMrbSubevent_HB_1.h:51
 TMrbSubevent_HB_1.h:52
 TMrbSubevent_HB_1.h:53
 TMrbSubevent_HB_1.h:54
 TMrbSubevent_HB_1.h:55
 TMrbSubevent_HB_1.h:56
 TMrbSubevent_HB_1.h:57
 TMrbSubevent_HB_1.h:58
 TMrbSubevent_HB_1.h:59
 TMrbSubevent_HB_1.h:60
 TMrbSubevent_HB_1.h:61
 TMrbSubevent_HB_1.h:62
 TMrbSubevent_HB_1.h:63
 TMrbSubevent_HB_1.h:64
 TMrbSubevent_HB_1.h:65
 TMrbSubevent_HB_1.h:66