ROOT logo
#ifndef __TMrbSis_3600_h__
#define __TMrbSis_3600_h__

//_________________________________________________[C++ CLASS DEFINITION FILE]
//////////////////////////////////////////////////////////////////////////////
// Name:           expconf/inc/TMrbSis_3600.h
// Purpose:        Define experimental configuration for MARaBOU
// Class:          TMrbSis_3600        -- VME pattern unit
// Description:    Class definitions to implement a configuration front-end for MARaBOU
// Author:         R. Lutter
// Revision:       $Id: TMrbSis_3600.h,v 1.9 2008-01-14 09:48:51 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 "TObject.h"

class TMrbVMEChannel;

//______________________________________________________[C++ CLASS DEFINITION]
//////////////////////////////////////////////////////////////////////////////
// Name:           TMrbSis_3600
// Purpose:        Define a VME module type SIS 3600
// Description:    Defines a VME module SIS 3600 (list mode)
// Keywords:
//////////////////////////////////////////////////////////////////////////////

class TMrbSis_3600 : public TMrbVMEModule {

	public:
		enum				{	kSegSize		=	0x200	};
		enum				{	kAddrMod		=	0x39	};

		enum EMrbOffsets	{};

	public:

		TMrbSis_3600() {};  												// default ctor
		TMrbSis_3600(const Char_t * ModuleName, UInt_t BaseAddr, Int_t FifoDepth = 1); 	// define a new module
		~TMrbSis_3600() {};												// default dtor

		Bool_t MakeReadoutCode(ofstream & RdoStrm, TMrbConfig::EMrbModuleTag TagIndex);  	// generate part of code
		Bool_t MakeReadoutCode(ofstream & RdoStrm, TMrbConfig::EMrbModuleTag TagIndex, TMrbVMEChannel * Channel, Int_t Value = 0);  	// generate code for given channel

		virtual inline const Char_t * GetMnemonic() const { return("sis_3600"); }; 	// module mnemonic

		inline void SetFifoDepth(Int_t FifoDepth) { fFifoDepth = FifoDepth; };
		inline Int_t GetFifoDepth() const { return(fFifoDepth); };

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

	protected:
		void DefineRegisters(); 							// define vme registers

	protected:
		Int_t fFifoDepth;			// fifo depth per channel

	ClassDef(TMrbSis_3600, 1)		// [Config] SIS 3600, VME pattern unit
};

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