Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
hycal.h File Reference

Go to the source code of this file.

Classes

struct  blockINFO_t
 
struct  cluster_t
 
struct  ccalcluster_t
 
struct  ccalhit_t
 

Macros

#define MSECT   5
 
#define MCOL   12
 
#define MROW   12
 
#define CRYSTAL_BLOCKS   144
 
#define T_BLOCKS   144
 
#define MAX_HHITS   144
 
#define MAX_CLUSTERS   60
 
#define MAX_CC   60
 
#define nint_phot_cell   5
 
#define ncoef_phot_cell   3
 
#define dcorr_phot_cell   16
 
#define CRYS_ROWS   12
 
#define CRYS_SIZE_X   2.077
 
#define CRYS_SIZE_Y   2.075
 
#define ECH(M, N)   ech_common_.ech[N-1][M-1]
 
#define STAT_CH(M, N)   stat_ch_common_.stat_ch[N-1][M-1]
 
#define ICL_INDEX(M, N)   icl_common_.icl_index[N][M]
 
#define ICL_IENER(M, N)   icl_common_.icl_iener[N][M]
 
#define HEGEN(N)   read_mcfile_com_.hegen[N-1]
 
#define SET_XSIZE   set_common_.xsize
 
#define SET_YSIZE   set_common_.ysize
 
#define SET_EMIN   set_common_.mine
 
#define SET_EMAX   set_common_.maxe
 
#define SET_HMIN   set_common_.min_dime
 
#define SET_MINM   set_common_.minm
 
#define NCOL   set_common_.ncol
 
#define NROW   set_common_.nrow
 
#define ZHYCAL   set_common_.zhycal
 
#define ISECT   set_common_.isect
 
#define FA(N)   hbk_common_.fa[N-1]
 

Functions

float energy_correct (float c_energy, int central_id)
 
float shower_depth (float energy)
 
int IsIDinVec (vector< const DCCALHit * > hitarray, int id12)
 
void main_island_ ()
 
void init_island_ (char filename[1000], int *name_length)
 

Variables

int status_global [MSECT][MCOL][MROW]
 
float Nonlin_en1 [T_BLOCKS]
 
float Nonlin_en2 [T_BLOCKS]
 
int event_num
 
int run_num
 
int clock_num
 
float beam_energy
 
float tac_energy
 
float beam_time
 
int n_h_clusters
 
int n_h_hits
 
int tagger_id
 
int tagger_time
 
int iftac
 
blockINFO_t blockINFO [T_BLOCKS]
 
ccalhit_t ccalhit [T_BLOCKS]
 
cluster_t cluster_storage [MAX_CLUSTERS]
 
ccalcluster_t ccalcluster [MAX_CLUSTERS]
 
struct {
   int   mcrun
 
   int   mcevent
 
   float   hegen [64]
 
   int   nout
 
   int   iout [MAX_HHITS]
 
   int   aout [MAX_HHITS]
 
read_mcfile_com_
 
struct {
   int   mcread_flag
 
   int   mc_eof_flag
 
   int   nreadmc
 
mcread_stat_com_
 
struct {
   int   ech [MROW][MCOL]
 
ech_common_
 
struct {
   int   stat_ch [MROW][MCOL]
 
stat_ch_common_
 
struct {
   int   icl_index [MAX_CC][200]
 
   int   icl_iener [MAX_CC][200]
 
icl_common_
 
struct {
   float   xsize
 
   float   ysize
 
   float   mine
 
   float   maxe
 
   int   min_dime
 
   float   minm
 
   int   ncol
 
   int   nrow
 
   float   zhycal
 
   int   isect
 
set_common_
 
struct {
   int   nadcgam
 
   union {
      int   iadcgam [50][12]
 
      float   fadcgam [50][12]
 
   }   u
 
adcgam_cbk_
 
struct {
   float   fa [100]
 
hbk_common_
 

Macro Definition Documentation

#define CRYS_ROWS   12

Definition at line 55 of file hycal.h.

#define CRYS_SIZE_X   2.077

Definition at line 56 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define CRYS_SIZE_Y   2.075

Definition at line 57 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define CRYSTAL_BLOCKS   144

Definition at line 15 of file hycal.h.

#define dcorr_phot_cell   16

Definition at line 24 of file hycal.h.

#define ECH (   M,
 
)    ech_common_.ech[N-1][M-1]

Definition at line 109 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define FA (   N)    hbk_common_.fa[N-1]

Definition at line 140 of file hycal.h.

#define HEGEN (   N)    read_mcfile_com_.hegen[N-1]

Definition at line 120 of file hycal.h.

#define ICL_IENER (   M,
 
)    icl_common_.icl_iener[N][M]

Definition at line 117 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define ICL_INDEX (   M,
 
)    icl_common_.icl_index[N][M]

Definition at line 116 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define ISECT   set_common_.isect

Definition at line 131 of file hycal.h.

#define MAX_CLUSTERS   60

Definition at line 19 of file hycal.h.

#define MAX_HHITS   144

Definition at line 18 of file hycal.h.

#define MCOL   12

Definition at line 5 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define MROW   12

Definition at line 6 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define MSECT   5

Definition at line 4 of file hycal.h.

#define ncoef_phot_cell   3

Definition at line 23 of file hycal.h.

#define NCOL   set_common_.ncol

Definition at line 128 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define nint_phot_cell   5

Definition at line 22 of file hycal.h.

#define NROW   set_common_.nrow

Definition at line 129 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define SET_EMAX   set_common_.maxe

Definition at line 125 of file hycal.h.

#define SET_EMIN   set_common_.mine

Definition at line 124 of file hycal.h.

#define SET_HMIN   set_common_.min_dime

Definition at line 126 of file hycal.h.

#define SET_MINM   set_common_.minm

Definition at line 127 of file hycal.h.

#define SET_XSIZE   set_common_.xsize

Definition at line 122 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define SET_YSIZE   set_common_.ysize

Definition at line 123 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define STAT_CH (   M,
 
)    stat_ch_common_.stat_ch[N-1][M-1]

Definition at line 113 of file hycal.h.

Referenced by DCCALShower_factory::evnt().

#define T_BLOCKS   144

Definition at line 16 of file hycal.h.

#define ZHYCAL   set_common_.zhycal

Definition at line 130 of file hycal.h.

Function Documentation

float energy_correct ( float  c_energy,
int  central_id 
)
void init_island_ ( char  filename[1000],
int *  name_length 
)
int IsIDinVec ( vector< const DCCALHit * >  hitarray,
int  id12 
)
void main_island_ ( )
float shower_depth ( float  energy)

Variable Documentation

struct { ... } adcgam_cbk_
int aout[MAX_HHITS]

Definition at line 106 of file hycal.h.

float beam_energy
float beam_time
blockINFO_t blockINFO[T_BLOCKS]
int clock_num
cluster_t cluster_storage[MAX_CLUSTERS]
int ech[MROW][MCOL]

Definition at line 110 of file hycal.h.

struct { ... } ech_common_
float fa[100]

Definition at line 139 of file hycal.h.

Referenced by ExtractTDCADCTiming().

float fadcgam[50][12]

Definition at line 137 of file hycal.h.

struct { ... } hbk_common_
float hegen[64]

Definition at line 105 of file hycal.h.

int iadcgam[50][12]

Definition at line 137 of file hycal.h.

struct { ... } icl_common_
int icl_iener[MAX_CC][200]

Definition at line 118 of file hycal.h.

int icl_index[MAX_CC][200]

Definition at line 118 of file hycal.h.

int iftac
int iout[MAX_HHITS]

Definition at line 106 of file hycal.h.

int isect

Definition at line 134 of file hycal.h.

float maxe

Definition at line 133 of file hycal.h.

int mc_eof_flag

Definition at line 107 of file hycal.h.

int mcevent

Definition at line 105 of file hycal.h.

int mcread_flag

Definition at line 107 of file hycal.h.

struct { ... } mcread_stat_com_
int mcrun

Definition at line 105 of file hycal.h.

int min_dime

Definition at line 133 of file hycal.h.

float mine

Definition at line 133 of file hycal.h.

float minm

Definition at line 133 of file hycal.h.

int n_h_hits
int nadcgam

Definition at line 136 of file hycal.h.

int ncol

Definition at line 134 of file hycal.h.

float Nonlin_en1[T_BLOCKS]
float Nonlin_en2[T_BLOCKS]
int nout

Definition at line 106 of file hycal.h.

int nreadmc

Definition at line 107 of file hycal.h.

int nrow

Definition at line 134 of file hycal.h.

struct { ... } read_mcfile_com_
int run_num
struct { ... } set_common_
int stat_ch[MROW][MCOL]

Definition at line 114 of file hycal.h.

struct { ... } stat_ch_common_
int status_global[MSECT][MCOL][MROW]
float tac_energy
int tagger_id
int tagger_time
float xsize

Definition at line 133 of file hycal.h.

float ysize

Definition at line 133 of file hycal.h.

float zhycal

Definition at line 134 of file hycal.h.