mEmcGeaMakeRaw.c File Reference

#include <math.h>
#include "dio_trk.hh"
#include "mEmcGeaMakeRaw.h"
#include "emlLib.h"

Include dependency graph for mEmcGeaMakeRaw.c:

Go to the source code of this file.

Defines

#define max(x, y)   ( ( (x) > (y) ) ? (x) : (y) )
#define min(x, y)   ( ( (x) < (y) ) ? (x) : (y) )
#define TRUE   1
#define FALSE   0
#define p_timemax   1000
#define max_chanz   96
#define max_chany   48
#define i_detmax   8
#define r_lowgain_convfac   0.001
#define r_highgain_convfac   0.008
#define r_tdc_convfac   0.05
#define i_low_ped   4000
#define i_high_ped   4000
#define i_minvalue   100
#define p_maxtimebin   1200
#define p_maxtowerhit   30
#define p_gatemax   127.0

Functions

long type_of_call mEmcGeaMakeRaw_ (TABLE_HEAD_ST *header_h, HEADER_ST *header, TABLE_HEAD_ST *dEmcGeaHit_h, DEMCGEAHIT_ST *dEmcGeaHit, TABLE_HEAD_ST *dEmcGeaParams_h, DEMCGEAPARAMS_ST *dEmcGeaParams, TABLE_HEAD_ST *dEmcRespPar_h, DEMCRESPPAR_ST *dEmcRespPar, TABLE_HEAD_ST *dEmcGeometry_h, DEMCGEOMETRY_ST *dEmcGeometry, TABLE_HEAD_ST *dEmcGeaTrackTower_h, DEMCGEATRACKTOWER_ST *dEmcGeaTrackTower, TABLE_HEAD_ST *dEmcGeaTowerTrack_h, DEMCGEATOWERTRACK_ST *dEmcGeaTowerTrack, TABLE_HEAD_ST *dEmcRawData_h, DEMCRAWDATA_ST *dEmcRawData)
 This is the core module in calculating detector response for simulated data.


Define Documentation

#define FALSE   0
 

Referenced by mEmcGeaMakeRaw_().

#define i_detmax   8
 

Referenced by mEmcGeaMakeRaw_().

#define i_high_ped   4000
 

#define i_low_ped   4000
 

#define i_minvalue   100
 

#define max x,
 )     ( ( (x) > (y) ) ? (x) : (y) )
 

#define max_chany   48
 

#define max_chanz   96
 

#define min x,
 )     ( ( (x) < (y) ) ? (x) : (y) )
 

#define p_gatemax   127.0
 

Referenced by mEmcGeaMakeRaw_().

#define p_maxtimebin   1200
 

Referenced by mEmcGeaMakeRaw_().

#define p_maxtowerhit   30
 

Referenced by mEmcGeaMakeRaw_().

#define p_timemax   1000
 

#define r_highgain_convfac   0.008
 

#define r_lowgain_convfac   0.001
 

#define r_tdc_convfac   0.05
 

#define TRUE   1
 

Referenced by mEmcDefGeom_(), mEmcGeaMakeRaw_(), and mEmcGeaParams_().


Function Documentation

long type_of_call mEmcGeaMakeRaw_ TABLE_HEAD_ST *  header_h,
HEADER_ST *  header,
TABLE_HEAD_ST *  dEmcGeaHit_h,
DEMCGEAHIT_ST *  dEmcGeaHit,
TABLE_HEAD_ST *  dEmcGeaParams_h,
DEMCGEAPARAMS_ST *  dEmcGeaParams,
TABLE_HEAD_ST *  dEmcRespPar_h,
DEMCRESPPAR_ST *  dEmcRespPar,
TABLE_HEAD_ST *  dEmcGeometry_h,
DEMCGEOMETRY_ST *  dEmcGeometry,
TABLE_HEAD_ST *  dEmcGeaTrackTower_h,
DEMCGEATRACKTOWER_ST *  dEmcGeaTrackTower,
TABLE_HEAD_ST *  dEmcGeaTowerTrack_h,
DEMCGEATOWERTRACK_ST *  dEmcGeaTowerTrack,
TABLE_HEAD_ST *  dEmcRawData_h,
DEMCRAWDATA_ST *  dEmcRawData
 

This is the core module in calculating detector response for simulated data.

It is fairly complicated and has lots of functionality, governed by the dEmcRespPar parameter table. If you don't know what you are doing darned well, stick to the default values... Detailed Documentation: {http://www.phenix.bnl.gov/WWW/emcal/documentation/offline/doc99}

Author:
Gabor David {mailto:david@bnl.gov}
Version:
1.0

Definition at line 16 of file mEmcGeaMakeRaw.c.

References error(), FALSE, i_detmax, i_high_ped, i_low_ped, j, max_chany, max_chanz, p_gatemax, p_maxtimebin, p_maxtowerhit, r_highgain_convfac, r_lowgain_convfac, r_tdc_convfac, and TRUE.