AlcapDAQ  1
Data Structures | Typedefs | Functions | Variables
common.h File Reference
#include "midas.h"
#include <math.h>
#include "TPCcommon.h"
#include "HITS.h"
#include "CAET.h"
#include "ADCS.h"
#include "FDCR.h"
#include "TPCW.h"
#include "NDET.h"
#include "TSPK.h"
#include "SKIM.h"

Go to the source code of this file.

Data Structures

struct  caen_word
 
union  comp_word
 
struct  channel_hit
 
struct  caen_hit
 
struct  adc_hit
 
struct  fadc_word
 
struct  FADC_info
 
struct  TPCWFD_info
 
struct  ndet_elt
 
struct  TPC_map_elt
 
struct  tdc400_word
 
struct  td_elt
 
struct  thresh_bits
 
struct  stack_elt
 
struct  tpc_spark_word
 
struct  skim_elt
 

Typedefs

typedef struct caen_word caen_word
 
typedef union comp_word comp_word
 
typedef struct channel_hit channel_hit
 
typedef struct caen_hit caen_hit
 
typedef struct adc_hit adc_hit
 
typedef struct fadc_word fadc_word
 
typedef struct FADC_info FADC_info
 
typedef struct TPCWFD_info TPCWFD_info
 
typedef struct ndet_elt ndet_elt
 
typedef struct TPC_map_elt TPC_map_elt
 
typedef struct tdc400_word tdc400_word
 
typedef struct td_elt td_elt
 
typedef struct thresh_bits thresh_bits
 
typedef struct stack_elt stack_elt
 
typedef struct tpc_spark_word tpc_spark_word
 
typedef struct skim_elt skim_elt
 

Functions

bool parameter_exists (int par)
 
void print_TPCstack_interval (void *pevent, long index1, long index2)
 
void print_TPCstack_interval_by_time (void *pevent, double time1, double time2)
 
void print_TPCstack_section (void *pevent, long index)
 
void print_TPCstack_section_by_time (void *pevent, double time)
 
bool has_Ehigh_and_strip_hits (EVENT_HEADER *pheader, void *pevent, double time)
 
bool has_VH_hit (EVENT_HEADER *pheader, void *pevent, double time)
 

Variables

static const int kMaxEvents = 31000
 
static const int kMaxCrates = 8
 
static const int kMaxTDC400s = 9
 
static const int kMaxCaens = 3
 
static const int kMaxComps = 3
 
static const int kMaxCompFpgas = 26
 
static const int kMaxFadcs = 4
 
static const int kMaxFadcTriggers = 5
 
static const int kMaxCamacAdcs = 10
 
static const int kNumCaenChannels = 128
 
static const int kNumCompFpgaChannels = 64
 
static const int kNumFadcChannels = 4
 
static const int kMaxNumTPCPads = 80
 
static const int kCaenTrailingEdgeLimit = 100
 
double rolloverPeriod
 
double rolloverWidth
 
static const int kNumRollovers = 3
 
static const int kNumRolloverPairs = 3
 
double rolloverTimeOffset [kNumRollovers]
 
static const int kMuPC1NumXWires = 24
 
static const int kMuPC1NumYWires = 24
 
static const int kMuSCADInterval = 29
 
static const int kMuSCloADInterval = 29
 
static const int kMuSCAD2Interval = 120
 
static const int kMuSCAADInterval = 90
 
static const int kMuSCMismatchThreshold = 3
 
static const int kMuSCSignalsTCoincHalfWidth = 20
 
double muSCCopy2TimeOffset
 
double muSCATimeOffset
 
double muSCGateBTimeOffset
 
double muSCGateBBarTimeOffset
 
double muSCRoutedTimeOffset [4]
 
static const int kePC1NumInnerStrips = 192
 
static const int kePC1NumAnodes = 512
 
static const int kePC1NumOuterStrips = 192
 
static const int kePC2NumInnerStrips = 320
 
static const int kePC2NumAnodes = 1024
 
static const int kePC2NumOuterStrips = 320
 
static const int kePC1AnodeSparkSizeLowCutoff = 35
 
static const int kePC1AnodeSparkSizeHighCutoff = 490
 
static const int kePC1IstripSparkSizeLowCutoff = 35
 
static const int kePC1IstripSparkSizeHighCutoff = 180
 
static const int kePC1OstripSparkSizeLowCutoff = 35
 
static const int kePC1OstripSparkSizeHighCutoff = 180
 
static const int kePC2AnodeSparkSizeLowCutoff = 35
 
static const int kePC2AnodeSparkSizeHighCutoff = 990
 
static const int kePC2IstripSparkSizeLowCutoff = 35
 
static const int kePC2IstripSparkSizeHighCutoff = 300
 
static const int kePC2OstripSparkSizeLowCutoff = 35
 
static const int kePC2OstripSparkSizeHighCutoff = 300
 
static const int keSCSparkSizeLowCutoff = 10
 
static const int keSCSparkSizeHighCutoff = 55
 
static const int kMuPC1XSparkSizeLowCutoff = 10
 
static const int kMuPC1XSparkSizeHighCutoff = 24
 
static const int kMuPC1YSparkSizeLowCutoff = 10
 
static const int kMuPC1YSparkSizeHighCutoff = 24
 
static const int keSCCaenOnlyCutThreshold = 10
 
static const int keSCCompOnlyCutThreshold = 25
 
static const double kSkimPP = 25000
 
static const double kSkimInterval = 55000
 
static const double kGeneralSkimInterval = 200000
 
static const double kPi = M_PI
 
static const double k2Pi = (2.0 * M_PI)
 
static const bool ON = 1
 
static const bool OFF = 0
 

Typedef Documentation

typedef struct adc_hit adc_hit
typedef struct caen_hit caen_hit
typedef struct caen_word caen_word
typedef struct channel_hit channel_hit
typedef union comp_word comp_word
typedef struct FADC_info FADC_info
typedef struct fadc_word fadc_word
typedef struct ndet_elt ndet_elt
typedef struct skim_elt skim_elt
typedef struct stack_elt stack_elt
typedef struct td_elt td_elt
typedef struct tdc400_word tdc400_word
typedef struct thresh_bits thresh_bits
typedef struct TPC_map_elt TPC_map_elt
typedef struct TPCWFD_info TPCWFD_info

Function Documentation

bool has_Ehigh_and_strip_hits ( EVENT_HEADER *  pheader,
void *  pevent,
double  time 
)
bool has_VH_hit ( EVENT_HEADER *  pheader,
void *  pevent,
double  time 
)
bool parameter_exists ( int  par)
void print_TPCstack_interval ( void *  pevent,
long  index1,
long  index2 
)
void print_TPCstack_interval_by_time ( void *  pevent,
double  time1,
double  time2 
)
void print_TPCstack_section ( void *  pevent,
long  index 
)
void print_TPCstack_section_by_time ( void *  pevent,
double  time 
)

Variable Documentation

const double k2Pi = (2.0 * M_PI)
static

Definition at line 90 of file common.h.

const int kCaenTrailingEdgeLimit = 100
static

Definition at line 27 of file common.h.

Referenced by make_caen().

const int kePC1AnodeSparkSizeHighCutoff = 490
static

Definition at line 61 of file common.h.

const int kePC1AnodeSparkSizeLowCutoff = 35
static

Definition at line 60 of file common.h.

const int kePC1IstripSparkSizeHighCutoff = 180
static

Definition at line 63 of file common.h.

const int kePC1IstripSparkSizeLowCutoff = 35
static

Definition at line 62 of file common.h.

const int kePC1NumAnodes = 512
static

Definition at line 53 of file common.h.

const int kePC1NumInnerStrips = 192
static

Definition at line 52 of file common.h.

const int kePC1NumOuterStrips = 192
static

Definition at line 54 of file common.h.

const int kePC1OstripSparkSizeHighCutoff = 180
static

Definition at line 65 of file common.h.

const int kePC1OstripSparkSizeLowCutoff = 35
static

Definition at line 64 of file common.h.

const int kePC2AnodeSparkSizeHighCutoff = 990
static

Definition at line 67 of file common.h.

const int kePC2AnodeSparkSizeLowCutoff = 35
static

Definition at line 66 of file common.h.

const int kePC2IstripSparkSizeHighCutoff = 300
static

Definition at line 69 of file common.h.

const int kePC2IstripSparkSizeLowCutoff = 35
static

Definition at line 68 of file common.h.

const int kePC2NumAnodes = 1024
static

Definition at line 56 of file common.h.

const int kePC2NumInnerStrips = 320
static

Definition at line 55 of file common.h.

const int kePC2NumOuterStrips = 320
static

Definition at line 57 of file common.h.

const int kePC2OstripSparkSizeHighCutoff = 300
static

Definition at line 71 of file common.h.

const int kePC2OstripSparkSizeLowCutoff = 35
static

Definition at line 70 of file common.h.

const int keSCCaenOnlyCutThreshold = 10
static

Definition at line 80 of file common.h.

const int keSCCompOnlyCutThreshold = 25
static

Definition at line 81 of file common.h.

const int keSCSparkSizeHighCutoff = 55
static

Definition at line 73 of file common.h.

const int keSCSparkSizeLowCutoff = 10
static

Definition at line 72 of file common.h.

const double kGeneralSkimInterval = 200000
static

Definition at line 86 of file common.h.

const int kMaxCaens = 3
static

Definition at line 12 of file common.h.

Referenced by MCaenCompProcessRaw(), and MCaenCompProcessRaw_init().

const int kMaxCamacAdcs = 10
static

Definition at line 17 of file common.h.

const int kMaxCompFpgas = 26
static

Definition at line 14 of file common.h.

Referenced by make_comp(), and MCaenCompProcessRaw_init().

const int kMaxComps = 3
static

Definition at line 13 of file common.h.

Referenced by MCaenCompProcessRaw(), and MCaenCompProcessRaw_init().

const int kMaxCrates = 8
static

Definition at line 10 of file common.h.

Referenced by MCaenCompProcessRaw_init().

const int kMaxEvents = 31000
static

Definition at line 9 of file common.h.

Referenced by init_caen_histograms(), init_comp_histograms(), and MCaenCompProcessRaw_init().

const int kMaxFadcs = 4
static

Definition at line 15 of file common.h.

const int kMaxFadcTriggers = 5
static

Definition at line 16 of file common.h.

const int kMaxNumTPCPads = 80
static

Definition at line 21 of file common.h.

const int kMaxTDC400s = 9
static

Definition at line 11 of file common.h.

const int kMuPC1NumXWires = 24
static
const int kMuPC1NumYWires = 24
static
const int kMuPC1XSparkSizeHighCutoff = 24
static

Definition at line 75 of file common.h.

const int kMuPC1XSparkSizeLowCutoff = 10
static

Definition at line 74 of file common.h.

const int kMuPC1YSparkSizeHighCutoff = 24
static

Definition at line 77 of file common.h.

const int kMuPC1YSparkSizeLowCutoff = 10
static

Definition at line 76 of file common.h.

const int kMuSCAADInterval = 90
static

Definition at line 42 of file common.h.

Referenced by MMuSCAnalysisMQL().

const int kMuSCAD2Interval = 120
static

Definition at line 41 of file common.h.

Referenced by MMuSCAnalysisMQL().

const int kMuSCADInterval = 29
static

Definition at line 39 of file common.h.

Referenced by MMuSCAnalysisC(), and MMuSCAnalysisMQL().

const int kMuSCloADInterval = 29
static

Definition at line 40 of file common.h.

Referenced by MMuSCAnalysisMQL().

const int kMuSCMismatchThreshold = 3
static

Definition at line 43 of file common.h.

Referenced by MMuSCAnalysisC().

const int kMuSCSignalsTCoincHalfWidth = 20
static

Definition at line 44 of file common.h.

const int kNumCaenChannels = 128
static

Definition at line 18 of file common.h.

Referenced by init_caen_histograms(), and MCaenCompProcessRaw_init().

const int kNumCompFpgaChannels = 64
static

Definition at line 19 of file common.h.

Referenced by MCaenCompProcessRaw_init().

const int kNumFadcChannels = 4
static

Definition at line 20 of file common.h.

const int kNumRolloverPairs = 3
static

Definition at line 31 of file common.h.

const int kNumRollovers = 3
static

Definition at line 30 of file common.h.

const double kPi = M_PI
static

Definition at line 89 of file common.h.

const double kSkimInterval = 55000
static

Definition at line 85 of file common.h.

const double kSkimPP = 25000
static

Definition at line 84 of file common.h.

double muSCATimeOffset

Definition at line 35 of file MMuSCAnalysisC.cpp.

Referenced by MMuSCAnalysisC_init().

double muSCCopy2TimeOffset

Definition at line 34 of file MMuSCAnalysisC.cpp.

Referenced by MMuSCAnalysisC_init().

double muSCGateBBarTimeOffset
double muSCGateBTimeOffset
double muSCRoutedTimeOffset[4]

Definition at line 36 of file MMuSCAnalysisC.cpp.

Referenced by MMuSCAnalysisC_init().

const bool OFF = 0
static

Definition at line 92 of file common.h.

const bool ON = 1
static

Definition at line 91 of file common.h.

double rolloverPeriod
double rolloverTimeOffset[kNumRollovers]
double rolloverWidth