ROOT logo
#ifndef __TMrbSubevent_Gassiplex_2_h__
#define __TMrbSubevent_Gassiplex_2_h__

//_________________________________________________[C++ CLASS DEFINITION FILE]
//////////////////////////////////////////////////////////////////////////////
// Name:           expconf/inc/TMrbSubevent_Gassiplex_2.h
// Purpose:        Define experimental configuration for MARaBOU
// Class:          TMrbSubevent_Gassiplex_2   -- MBS subevent type [10,102]
//                                               dedicated format Gassiplex modules
// Description:    Class definitions to implement a configuration front-end for MARaBOU
// Author:         R. Lutter
// Revision:       $Id$
// Date:           $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_Gassiplex_2
// Purpose:        Define MBS subevents of type [10,102]
// Methods:        MakeReadoutCode  -- output readout code for subevent [10,102]
// Description:    Defines a MBS subevent of type [10,102] - a special format
//                 reflecting Gassiplex data structure.
//                 Generates code.
// Keywords:
//////////////////////////////////////////////////////////////////////////////

class TMrbSubevent_Gassiplex_2 : public TMrbSubevent {

	public:

		TMrbSubevent_Gassiplex_2() {}; 				// default ctor
		TMrbSubevent_Gassiplex_2(const Char_t * SevtName, const Char_t * SevtTitle = "", Int_t Crate = -1);	// create a new Gassiplex subevent
		~TMrbSubevent_Gassiplex_2() {};	 			// 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 CheckModuleID(TMrbModule * Module) const {				// needs modules of type Gassiplex
			return (Module->CheckID(TMrbConfig::kModuleGassiplex));
		};

		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_Gassiplex_Common"); };

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

	ClassDef(TMrbSubevent_Gassiplex_2, 1) 	// [Config] Subevent type [10,102]: a format dedicated to Gassiplex modules
};

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