#include <stdio.h>
#include <stdlib.h>
#include "midas.h"
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "common.h"
#include "ucb_common.h"
Go to the source code of this file.
INT MMuPC1AnalysisC |
( |
EVENT_HEADER * |
pheader, |
|
|
void * |
pevent |
|
) |
| |
Definition at line 92 of file MMuPC1AnalysisC.cpp.
References i, kMuPC1NumXWires, kMuPC1NumYWires, muPC1_Xwire_successive_tdiffs, muPC1_Ywire_successive_tdiffs, channel_hit::parameter, SUCCESS, and time.
97 int hit_bank_size = bk_locate(pevent,
"HITS", (
DWORD *) &hit_bank);
99 if(hit_bank == NULL) {
100 fprintf(stderr,
"MMuPC1AnalysisC: Could not find bank HITS.\n");
109 prev_hit_index_muPC1_Xwire[j] = -1;
113 prev_hit_index_muPC1_Ywire[j] = -1;
117 for (
int i=0;
i<hit_bank_size;
i++) {
122 int wire = (par-4000);
124 if (prev_hit_index_muPC1_Xwire[wire] >= 0) {
126 hit_bank[prev_hit_index_muPC1_Xwire[wire]].
time),
129 prev_hit_index_muPC1_Xwire[wire] =
i;
136 int wire = (par-4050);
138 if (prev_hit_index_muPC1_Ywire[wire] >= 0) {
140 hit_bank[prev_hit_index_muPC1_Ywire[wire]].
time),
143 prev_hit_index_muPC1_Ywire[wire] =
i;
INT MMuPC1AnalysisC_init |
( |
void |
) | |
|
ANA_MODULE MMuPC1AnalysisC_module |
Initial value:= {
"MMuPC1AnalysisC",
"Tom Banks",
NULL,
NULL,
NULL,
NULL,
0,
NULL,
}
Definition at line 46 of file MMuPC1AnalysisC.cpp.
TH2* muPC1_Xwire_successive_tdiffs |
|
static |
TH2* muPC1_XwireVStime_2D |
|
static |
TH2* muPC1_Ywire_successive_tdiffs |
|
static |
TH2* muPC1_YwireVStime_2D |
|
static |