AlcapDAQ
1
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "midas.h"
#include "Mql.h"
#include "MqlArray.h"
Go to the source code of this file.
Data Structures | |
struct | cluster_info |
struct | endpoint_info |
struct | XYZ |
struct | RPZ |
struct | RPT |
struct | TPCextrap |
struct | muscatter_struct |
Typedefs | |
typedef struct cluster_info | cluster_info |
typedef struct endpoint_info | endpoint_info |
typedef struct XYZ | XYZ |
typedef struct RPZ | RPZ |
typedef struct RPT | RPT |
typedef struct TPCextrap | TPCextrap |
typedef struct muscatter_struct | muscatter_struct |
Functions | |
bool | hit_search_TPCstack (stack_elt *stackArray, int index, int THRESHCODE, int ROWTYPE, int row1, int row2, int MINROW, int MAXROW) |
void | segment_search_TPCstack (stack_elt *stackArray, int num_stack_elts, int index, int *leftmost, int *rightmost, int *nendpts, endpoint_info *endptA, int start_row, int THRESHCODE, int ROWTYPE, int DIR, int ROWS_AHEAD, int STRETCH) |
void | segment_search_TPCstack_custom (stack_elt *stackArray, int num_stack_elts, int index, int *leftmost, int *rightmost, int *nendpts, endpoint_info *endptA, int start_row, int THRESHCODE, int ROWTYPE, int DIR, int ROWS_AHEAD, int STRETCH, int *ELcount, int *EHcount) |
XYZ | fillXYZ (double x, double y, double z) |
RPZ | fillRPZ (double radius, double phi, double z) |
RPT | fillRPT (double radius, double phi, double theta) |
XYZ | convertRPZtoXYZ (RPZ RPZpoint) |
XYZ | convertRPTtoXYZ (RPT RPTpoint) |
RPZ | convertXYZtoRPZ (XYZ XYZpoint) |
double | dotproductXYZ (XYZ vector1, XYZ vector2) |
double | magnitudeXYZ (XYZ vectorXYZ) |
double | ePC_anode_phi_fcn (int ePCNumber, double anode) |
double | ePC_inner_strip_z (int ePCNumber, double anode_phi, double inner_strip) |
double | ePC_outer_strip_z (int ePCNumber, double anode_phi, double outer_strip) |
bool | ePC1ePC2_PhiCoinc (double ePC1AbsPhi, double ePC2AbsPhi, double max_phi_diff) |
bool | ePCeSC_PhiCoinc (int ePCNumber, double ePC_phi, int eSC_gondola) |
XYZ | ePC1ePC2_Tracking_ZaxisClosestApproach (XYZ ePC1, XYZ ePC2) |
RPZ | extrapolate_ePC1ePC2_to_eSC (XYZ ePC1, XYZ ePC2) |
bool | intersection_ePC1ePC2_circle (XYZ ePC1, XYZ ePC2, double x_coord, double y_coord, double radius) |
bool | ePC1ePC2eSC_PhiCoinc (RPZ ePC1ePC2_eSCInt, int gondola) |
double | calculate_eSC_cosmic_angle (int gondolaA, int gondolaB) |
RPT | calculate_ePC1ePC2_chord (XYZ p1, XYZ p2, XYZ p3, XYZ p4) |
XYZ | calculate_muDet_eDet_impact (double endstrip, double drifttime, double endanode, XYZ ePC1, XYZ ePC2) |
XYZ | calculate_TPC_subvolume_indices (double endstrip, double drifttime, double endanode, int numXsubdivisions, int numYsubdivisions, int numZsubdivisions) |
TPCextrap | muSC_TPC_extrapolate (char *plane, double muSCTime, double beginstrip, double endstrip, double beginLtime, double endLtime, double beginanode, double endanode) |
void | print_muscatter_info (muscatter_struct muscatter, double driftLtime, int mustop_anode) |
muscatter_struct | search_for_muscatter_track (EVENT_HEADER *pheader, void *pevent, double driftLtime, double driftRtime, int mustop_Lindex, int mustop_Rindex, int mustop_anode, int mustop_mostLindex, int mustop_mostRindex) |
muscatter_struct | fill_muscatter_struct (int pixelcount, double spread, double impact, double length, double maxfracdistance, double angle) |
Variables | |
static const int | kMuSCBookendWidth = 40500 |
static const int | k25usPP = 25000 |
static const int | k35usPP = 35000 |
static const int | k40usPP = 40000 |
static const int | kMuPC1XClusterMaxGap = 2 |
static const int | kMuPC1XClusterInterval = 260 |
static const int | kMuPC1XSparkSizeCutoff = 21 |
static const int | kMuPC1YClusterMaxGap = 2 |
static const int | kMuPC1YClusterInterval = 260 |
static const int | kMuPC1YSparkSizeCutoff = 21 |
static const int | kTPCFirstAmpAnode = 5 |
static const int | kTPCLastAmpAnode = 73 |
static const int | kTPCAnodeFlag = 1 |
static const int | kTPCStripFlag = 2 |
static const double | kTPCXDimension = 140.0 |
static const double | kTPCYDimension = 120.0 |
static const double | kTPCZDimension = 300.0 |
static const double | kTPCXOffset = 0.0 |
static const double | kTPCYOffset = -2.0 |
static const double | kTPCZOffset = 8.5 |
static const double | kTPCMWPCOffset = 375.0 |
static const double | kTPCMaxDriftTime = 22420.0 |
static const double | kTPCSVDriftInterval = (kTPCMaxDriftTime-kTPCMWPCOffset) |
static const int | kSegMaxNumClusters = 5 |
static const int | kSegMinClustSep = 2 |
static const int | kSegMaxNumEndpts = 5 |
static const int | kSegUpFlag = 1 |
static const int | kSegDownFlag = -1 |
static const double | kePC1ActiveLength = 580 |
static const int | kePC1InnerStripClusterMaxGap = 2 |
static const int | kePC1InnerStripClusterMaxSize = 11 |
static const int | kePC1InnerStripADInterval1 = 245 |
static const int | kePC1InnerStripClusterTInterval1 = 240 |
static const int | kePC1InnerStripADInterval2 = 1000 |
static const int | kePC1InnerStripClusterTInterval2 = 300 |
static const int | kePC1InnerStripSparkSizeCutoff = 90 |
static const double | kePC1InnerStripDiameter = 376 |
static const double | kePC1InnerStripCircum = (M_PI * kePC1InnerStripDiameter) |
static const double | kePC1InnerStripPhiOffset = -0.048 |
static const double | kePC1InnerStripScrew = 46.194 |
static const double | kePC1InnerStripTanScrew = 1.0426 |
static const int | kePC1AnodeClusterMaxGap = 1 |
static const int | kePC1AnodeClusterMaxSize = 10 |
static const int | kePC1AnodeADInterval1 = 215 |
static const int | kePC1AnodeClusterTInterval1 = 210 |
static const int | kePC1AnodeADInterval2 = 900 |
static const int | kePC1AnodeClusterTInterval2 = 300 |
static const int | kePC1AnodeSparkSizeCutoff = 110 |
static const double | kePC1AnodeDiameter = 384 |
static const double | kePC1AnodeAbsPhiOffset = -1.411 |
static const int | kePC1OuterStripClusterMaxGap = 2 |
static const int | kePC1OuterStripClusterMaxSize = 11 |
static const int | kePC1OuterStripADInterval1 = 215 |
static const int | kePC1OuterStripClusterTInterval1 = 210 |
static const int | kePC1OuterStripADInterval2 = 1000 |
static const int | kePC1OuterStripClusterTInterval2 = 300 |
static const int | kePC1OuterStripSparkSizeCutoff = 90 |
static const double | kePC1OuterStripDiameter = 392 |
static const double | kePC1OuterStripCircum = (M_PI * kePC1OuterStripDiameter) |
static const double | kePC1OuterStripPhiOffset = -0.171 |
static const double | kePC1OuterStripScrew = 43.811 |
static const double | kePC1OuterStripTanScrew = 0.9593 |
static const double | kePC1HardcutLowZLimit = -300 |
static const double | kePC1HardcutHighZLimit = 300 |
static const double | kePC2ActiveLength = 800 |
static const int | kePC2InnerStripClusterMaxGap = 1 |
static const int | kePC2InnerStripClusterMaxSize = 10 |
static const int | kePC2InnerStripADInterval1 = 245 |
static const int | kePC2InnerStripClusterTInterval1 = 240 |
static const int | kePC2InnerStripADInterval2 = 1000 |
static const int | kePC2InnerStripClusterTInterval2 = 300 |
static const int | kePC2InnerStripSparkSizeCutoff = 110 |
static const double | kePC2InnerStripDiameter = 632 |
static const double | kePC2InnerStripCircum = (M_PI * kePC2InnerStripDiameter) |
static const double | kePC2InnerStripPhiOffset = 0.026 |
static const double | kePC2InnerStripScrew = 45.738 |
static const double | kePC2InnerStripTanScrew = 1.026 |
static const int | kePC2AnodeClusterMaxGap = 1 |
static const int | kePC2AnodeClusterMaxSize = 10 |
static const int | kePC2AnodeADInterval1 = 245 |
static const int | kePC2AnodeClusterTInterval1 = 240 |
static const int | kePC2AnodeADInterval2 = 1000 |
static const int | kePC2AnodeClusterTInterval2 = 300 |
static const int | kePC2AnodeSparkSizeCutoff = 110 |
static const double | kePC2AnodeDiameter = 640 |
static const double | kePC2AnodeAbsPhiOffset = -1.501 |
static const int | kePC2OuterStripClusterMaxGap = 1 |
static const int | kePC2OuterStripClusterMaxSize = 10 |
static const int | kePC2OuterStripADInterval1 = 245 |
static const int | kePC2OuterStripClusterTInterval1 = 240 |
static const int | kePC2OuterStripADInterval2 = 900 |
static const int | kePC2OuterStripClusterTInterval2 = 300 |
static const int | kePC2OuterStripSparkSizeCutoff = 110 |
static const double | kePC2OuterStripDiameter = 648 |
static const double | kePC2OuterStripCircum = (M_PI * kePC2OuterStripDiameter) |
static const double | kePC2OuterStripPhiOffset = -0.003 |
static const double | kePC2OuterStripScrew = 44.308 |
static const double | kePC2OuterStripTanScrew = 0.976 |
static const double | kePC2HardcutLowZLimit = -410 |
static const double | kePC2HardcutHighZLimit = 410 |
static const int | keSCNumGondolas = 16 |
static const int | keSCClusterInterval = 65 |
static const int | keSCSparkSizeCutoff = 55 |
static const double | keSCDiameter = 772 |
static const double | keSCActiveLength = 900 |
static const double | keSCAbsPhiOffset = (M_PI / 2.0) |
double | keSCInnerTOffset [keSCNumGondolas+1] |
double | keSCInnerTSigma [keSCNumGondolas+1] |
double | keSCOuterTOffset [keSCNumGondolas+1] |
double | keSCOuterTSigma [keSCNumGondolas+1] |
double | keSCGondolaTOffset [keSCNumGondolas+1] |
double | keSCGondolaTSigma [keSCNumGondolas+1] |
double | keSCCaenCompTOffset |
double | keSCCaenCompTSigma |
static const int | kSparkCutDeadtime = 50000 |
static const double | kEPS = 0.001 |
static const double | kePC1eSCPhiSigma = 0.20 |
static const double | kePC2eSCPhiSigma = 0.13 |
static const double | PV_wall_radius = 140 |
typedef struct cluster_info cluster_info |
typedef struct endpoint_info endpoint_info |
typedef struct muscatter_struct muscatter_struct |
double calculate_eSC_cosmic_angle | ( | int | gondolaA, |
int | gondolaB | ||
) |
XYZ calculate_muDet_eDet_impact | ( | double | endstrip, |
double | drifttime, | ||
double | endanode, | ||
XYZ | ePC1, | ||
XYZ | ePC2 | ||
) |
XYZ calculate_TPC_subvolume_indices | ( | double | endstrip, |
double | drifttime, | ||
double | endanode, | ||
int | numXsubdivisions, | ||
int | numYsubdivisions, | ||
int | numZsubdivisions | ||
) |
bool ePC1ePC2_PhiCoinc | ( | double | ePC1AbsPhi, |
double | ePC2AbsPhi, | ||
double | max_phi_diff | ||
) |
bool ePC1ePC2eSC_PhiCoinc | ( | RPZ | ePC1ePC2_eSCInt, |
int | gondola | ||
) |
double ePC_anode_phi_fcn | ( | int | ePCNumber, |
double | anode | ||
) |
double ePC_inner_strip_z | ( | int | ePCNumber, |
double | anode_phi, | ||
double | inner_strip | ||
) |
double ePC_outer_strip_z | ( | int | ePCNumber, |
double | anode_phi, | ||
double | outer_strip | ||
) |
bool ePCeSC_PhiCoinc | ( | int | ePCNumber, |
double | ePC_phi, | ||
int | eSC_gondola | ||
) |
muscatter_struct fill_muscatter_struct | ( | int | pixelcount, |
double | spread, | ||
double | impact, | ||
double | length, | ||
double | maxfracdistance, | ||
double | angle | ||
) |
RPT fillRPT | ( | double | radius, |
double | phi, | ||
double | theta | ||
) |
RPZ fillRPZ | ( | double | radius, |
double | phi, | ||
double | z | ||
) |
XYZ fillXYZ | ( | double | x, |
double | y, | ||
double | z | ||
) |
bool hit_search_TPCstack | ( | stack_elt * | stackArray, |
int | index, | ||
int | THRESHCODE, | ||
int | ROWTYPE, | ||
int | row1, | ||
int | row2, | ||
int | MINROW, | ||
int | MAXROW | ||
) |
bool intersection_ePC1ePC2_circle | ( | XYZ | ePC1, |
XYZ | ePC2, | ||
double | x_coord, | ||
double | y_coord, | ||
double | radius | ||
) |
double magnitudeXYZ | ( | XYZ | vectorXYZ) |
TPCextrap muSC_TPC_extrapolate | ( | char * | plane, |
double | muSCTime, | ||
double | beginstrip, | ||
double | endstrip, | ||
double | beginLtime, | ||
double | endLtime, | ||
double | beginanode, | ||
double | endanode | ||
) |
void print_muscatter_info | ( | muscatter_struct | muscatter, |
double | driftLtime, | ||
int | mustop_anode | ||
) |
muscatter_struct search_for_muscatter_track | ( | EVENT_HEADER * | pheader, |
void * | pevent, | ||
double | driftLtime, | ||
double | driftRtime, | ||
int | mustop_Lindex, | ||
int | mustop_Rindex, | ||
int | mustop_anode, | ||
int | mustop_mostLindex, | ||
int | mustop_mostRindex | ||
) |
void segment_search_TPCstack | ( | stack_elt * | stackArray, |
int | num_stack_elts, | ||
int | index, | ||
int * | leftmost, | ||
int * | rightmost, | ||
int * | nendpts, | ||
endpoint_info * | endptA, | ||
int | start_row, | ||
int | THRESHCODE, | ||
int | ROWTYPE, | ||
int | DIR, | ||
int | ROWS_AHEAD, | ||
int | STRETCH | ||
) |
void segment_search_TPCstack_custom | ( | stack_elt * | stackArray, |
int | num_stack_elts, | ||
int | index, | ||
int * | leftmost, | ||
int * | rightmost, | ||
int * | nendpts, | ||
endpoint_info * | endptA, | ||
int | start_row, | ||
int | THRESHCODE, | ||
int | ROWTYPE, | ||
int | DIR, | ||
int | ROWS_AHEAD, | ||
int | STRETCH, | ||
int * | ELcount, | ||
int * | EHcount | ||
) |
|
static |
Definition at line 13 of file ucb_common.h.
|
static |
Definition at line 14 of file ucb_common.h.
|
static |
Definition at line 15 of file ucb_common.h.
|
static |
Definition at line 44 of file ucb_common.h.
|
static |
Definition at line 65 of file ucb_common.h.
|
static |
Definition at line 59 of file ucb_common.h.
|
static |
Definition at line 61 of file ucb_common.h.
|
static |
Definition at line 57 of file ucb_common.h.
|
static |
Definition at line 58 of file ucb_common.h.
|
static |
Definition at line 60 of file ucb_common.h.
|
static |
Definition at line 62 of file ucb_common.h.
|
static |
Definition at line 64 of file ucb_common.h.
|
static |
Definition at line 63 of file ucb_common.h.
|
static |
Definition at line 135 of file ucb_common.h.
|
static |
Definition at line 79 of file ucb_common.h.
|
static |
Definition at line 78 of file ucb_common.h.
|
static |
Definition at line 47 of file ucb_common.h.
|
static |
Definition at line 49 of file ucb_common.h.
|
static |
Definition at line 53 of file ucb_common.h.
|
static |
Definition at line 45 of file ucb_common.h.
|
static |
Definition at line 46 of file ucb_common.h.
|
static |
Definition at line 48 of file ucb_common.h.
|
static |
Definition at line 50 of file ucb_common.h.
|
static |
Definition at line 52 of file ucb_common.h.
|
static |
Definition at line 54 of file ucb_common.h.
|
static |
Definition at line 55 of file ucb_common.h.
|
static |
Definition at line 51 of file ucb_common.h.
|
static |
Definition at line 56 of file ucb_common.h.
|
static |
Definition at line 68 of file ucb_common.h.
|
static |
Definition at line 70 of file ucb_common.h.
|
static |
Definition at line 74 of file ucb_common.h.
|
static |
Definition at line 66 of file ucb_common.h.
|
static |
Definition at line 67 of file ucb_common.h.
|
static |
Definition at line 69 of file ucb_common.h.
|
static |
Definition at line 71 of file ucb_common.h.
|
static |
Definition at line 73 of file ucb_common.h.
|
static |
Definition at line 75 of file ucb_common.h.
|
static |
Definition at line 76 of file ucb_common.h.
|
static |
Definition at line 72 of file ucb_common.h.
|
static |
Definition at line 77 of file ucb_common.h.
|
static |
Definition at line 81 of file ucb_common.h.
|
static |
Definition at line 102 of file ucb_common.h.
|
static |
Definition at line 96 of file ucb_common.h.
|
static |
Definition at line 98 of file ucb_common.h.
|
static |
Definition at line 94 of file ucb_common.h.
|
static |
Definition at line 95 of file ucb_common.h.
|
static |
Definition at line 97 of file ucb_common.h.
|
static |
Definition at line 99 of file ucb_common.h.
|
static |
Definition at line 101 of file ucb_common.h.
|
static |
Definition at line 100 of file ucb_common.h.
|
static |
Definition at line 136 of file ucb_common.h.
|
static |
Definition at line 116 of file ucb_common.h.
|
static |
Definition at line 115 of file ucb_common.h.
|
static |
Definition at line 84 of file ucb_common.h.
|
static |
Definition at line 86 of file ucb_common.h.
|
static |
Definition at line 90 of file ucb_common.h.
|
static |
Definition at line 82 of file ucb_common.h.
|
static |
Definition at line 83 of file ucb_common.h.
|
static |
Definition at line 85 of file ucb_common.h.
|
static |
Definition at line 87 of file ucb_common.h.
|
static |
Definition at line 89 of file ucb_common.h.
|
static |
Definition at line 91 of file ucb_common.h.
|
static |
Definition at line 92 of file ucb_common.h.
|
static |
Definition at line 88 of file ucb_common.h.
|
static |
Definition at line 93 of file ucb_common.h.
|
static |
Definition at line 105 of file ucb_common.h.
|
static |
Definition at line 107 of file ucb_common.h.
|
static |
Definition at line 111 of file ucb_common.h.
|
static |
Definition at line 103 of file ucb_common.h.
|
static |
Definition at line 104 of file ucb_common.h.
|
static |
Definition at line 106 of file ucb_common.h.
|
static |
Definition at line 108 of file ucb_common.h.
|
static |
Definition at line 110 of file ucb_common.h.
|
static |
Definition at line 112 of file ucb_common.h.
|
static |
Definition at line 113 of file ucb_common.h.
|
static |
Definition at line 109 of file ucb_common.h.
|
static |
Definition at line 114 of file ucb_common.h.
|
static |
Definition at line 134 of file ucb_common.h.
|
static |
Definition at line 123 of file ucb_common.h.
|
static |
Definition at line 122 of file ucb_common.h.
double keSCCaenCompTOffset |
double keSCCaenCompTSigma |
|
static |
Definition at line 119 of file ucb_common.h.
|
static |
Definition at line 121 of file ucb_common.h.
double keSCGondolaTOffset[keSCNumGondolas+1] |
double keSCGondolaTSigma[keSCNumGondolas+1] |
double keSCInnerTOffset[keSCNumGondolas+1] |
double keSCInnerTSigma[keSCNumGondolas+1] |
|
static |
Definition at line 118 of file ucb_common.h.
double keSCOuterTOffset[keSCNumGondolas+1] |
double keSCOuterTSigma[keSCNumGondolas+1] |
|
static |
Definition at line 120 of file ucb_common.h.
|
static |
Definition at line 18 of file ucb_common.h.
Referenced by MMuPC1AnalysisMQL().
|
static |
Definition at line 17 of file ucb_common.h.
Referenced by MMuPC1AnalysisMQL().
|
static |
Definition at line 19 of file ucb_common.h.
Referenced by MMuPC1AnalysisMQL().
|
static |
Definition at line 21 of file ucb_common.h.
Referenced by MMuPC1AnalysisMQL().
|
static |
Definition at line 20 of file ucb_common.h.
Referenced by MMuPC1AnalysisMQL().
|
static |
Definition at line 22 of file ucb_common.h.
Referenced by MMuPC1AnalysisMQL().
|
static |
Definition at line 12 of file ucb_common.h.
|
static |
Definition at line 42 of file ucb_common.h.
|
static |
Definition at line 38 of file ucb_common.h.
|
static |
Definition at line 40 of file ucb_common.h.
|
static |
Definition at line 39 of file ucb_common.h.
|
static |
Definition at line 41 of file ucb_common.h.
|
static |
Definition at line 133 of file ucb_common.h.
Referenced by MMuPC1AnalysisMQL().
|
static |
Definition at line 26 of file ucb_common.h.
|
static |
Definition at line 24 of file ucb_common.h.
|
static |
Definition at line 25 of file ucb_common.h.
|
static |
Definition at line 35 of file ucb_common.h.
|
static |
Definition at line 34 of file ucb_common.h.
|
static |
Definition at line 27 of file ucb_common.h.
|
static |
Definition at line 36 of file ucb_common.h.
|
static |
Definition at line 28 of file ucb_common.h.
|
static |
Definition at line 31 of file ucb_common.h.
|
static |
Definition at line 29 of file ucb_common.h.
|
static |
Definition at line 32 of file ucb_common.h.
|
static |
Definition at line 30 of file ucb_common.h.
|
static |
Definition at line 33 of file ucb_common.h.
|
static |
Definition at line 137 of file ucb_common.h.