ROOT logo
#ifndef __TMrbCaen_V260_h__
#define __TMrbCaen_V260_h__

//_________________________________________________[C++ CLASS DEFINITION FILE]
//////////////////////////////////////////////////////////////////////////////
// Name:           expconf/inc/TMrbCaen_V260.h
// Purpose:        Define experimental configuration for MARaBOU
// Class:          TMrbCaen_V260        -- 16 chn 24 bit VME scaler
// Description:    Class definitions to implement a configuration front-end for MARaBOU
// Author:         R. Lutter
// Revision:       $Id: TMrbCaen_V260.h,v 1.8 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"

#include "TMrbVMEScaler.h"

class TMrbVMEChannel;

//______________________________________________________[C++ CLASS DEFINITION]
//////////////////////////////////////////////////////////////////////////////
// Name:           TMrbCaen_V260
// Purpose:        Define a VME scaler type CAEN V260
// Description:    Defines a VME scaler CAEN V260 (list mode)
// Keywords:
//////////////////////////////////////////////////////////////////////////////

class TMrbCaen_V260 : public TMrbVMEScaler {

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

		enum EMrbOffsets	{	kOffsChannel0	=	0x10,
								kOffsClear		=	0x50,
								kOffsInhibit	=	0x52,
								kOffsEnable 	=	0x54,
								kOffsIncrement 	=	0x56,
								kOffsModuleType =	0xFC,
								kOffsVersion 	=	0xFE
							};

	public:

		TMrbCaen_V260() {};  												// default ctor
		TMrbCaen_V260(const Char_t * ModuleName, UInt_t BaseAddr); 			// define a new scaler
		~TMrbCaen_V260() {};												// 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("caen_v260"); }; 	// module mnemonic

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

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

	ClassDef(TMrbCaen_V260, 1)		// [Config] CAEN V260, 16 x 24 bit VME scaler
};

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