/************************************************************************** * This file is property of and copyright by the Experimental Nuclear * * Physics Group, Dep. of Physics * * University of Oslo, Norway, 2006 * * * * Author: Per Thomas Hille perthi@fys.uio.no for the ALICE DCS Project. * * Contributors are mentioned in the code where appropriate. * * Please report bugs to perthi@fys.uio.no * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ //#ifndef COMMONDEFSX_H //#define COMMONDEFSX_H #ifndef ALIHLTPHOSCONSTANTS_H #define ALIHLTPHOSCONSTANTS_H //#define APDVAL_BASE_PATH "../data/APD_settings/" //#define CONFIG_BASE_PATH "../data/ConfigurationFiles/" //#define APDSCRIPT_BASE_PATH "../data/APD_scripts/" namespace PhosHLTConst { const int MAX_HOSTS = 20; const int DEFAULT_EVENT_PORT = 42001; const int MAX_BIN_VALUE = 1023; const int DEFAULT_APD_DAC_VALUE = 512; const int EXIST = 0; const int NO_EXIST = -1; const char APDVAL_BASE_PATH[] = "../data/APD_settings/"; const char CONFIG_BASE_PATH[] = "../data/ConfigurationFiles/"; const char APDSCRIPT_BASE_PATH[] = "../data/APD_scripts/"; // const char *APDVAL_BASE_PATH = "../data/APD_settings/"; const unsigned long int AFL = 0x8000; const unsigned long int RDOL = 0x8001; //register typs const unsigned int REGTYPE_ALTRO = 1; const unsigned int REGTYPE_BC = 2; const unsigned int REGTYPE_RCU = 3; const unsigned int REGTYPE_RCU_ACL = 4; const unsigned int REGTYPE_TRU = 5; const unsigned int REGTYPE_TOR = 6; const unsigned int REGTYPE_BUSY = 7; const unsigned int TRU_SLOT = 0; const unsigned int TRU_A = 0; const unsigned int TRU_B = 16; const unsigned int TRUS_PER_RCU = 2; const unsigned int MAX_MESSAGE_SIZE = 512; const unsigned int ACL_SIZE = 256; const unsigned long int ACL_BASE_ADDRESS = 0x6400; const unsigned long int RCU_BASEADRESS = 0x7000; const unsigned long int RCU_RESULT_BASE = 0x6000; const unsigned long int TRU_REGS_BASE_ADDRESS = 0x72; const unsigned int N_TRU_REGS = 7; const unsigned int MAX_RESULT_BUFFER_SIZE = 8192; const unsigned int MAX_WORD_SIZE = 32; //maximum size in character of one word in the RCU result buffer // char *APDVAL_BASE_PATH = "../data/APD_settings/"; // char *CONFIG_BASE_PATH = "../data/ConfigurationFiles/"; // char *APDSCRIPT_BASE_PATH = "../data/APD_scripts/"; const unsigned int DEBUG = 0; //0/1/2/3 - Level for debugging details const unsigned int PHOS_ROWS = 64; // Number of rows per one PHOS module const unsigned int PHOS_COLS = 56; // Number of columns per one PHOS module const unsigned int PHOS_GAINS = 2; // Number of gains per one PHOS crystal const unsigned int HIGH_GAIN = 1; const unsigned int LOW_GAIN = 0; const unsigned long int MAX_TRIGGER_DELAY = 0x3fff; const unsigned int PHOS_MODS = 5; // Number of PHOS modules const unsigned int ALTRO_MAX_SAMPLES = 1008; /**