MergEVT include trace and pileup

This commit is contained in:
Ryan Tang 2022-03-04 16:56:08 -05:00
parent f198afabf5
commit 088a9200f5
2 changed files with 7 additions and 3 deletions

View File

@ -61,7 +61,9 @@ int main(int argn, char **argv) {
tree->Branch("detID", &detID, "detID/s");
tree->Branch("e", &data->energy, "crystal_energy/s");
tree->Branch("e_t", &data->time, "crystal_timestamp/l");
tree->Branch("p", &data->pileup, "pileup/O");
tree->Branch("trace_length", &data->trace_length, "trace_length/s");
tree->Branch("trace", data->trace, "trace[trace_length]/s");
TBenchmark gClock;
gClock.Reset();

View File

@ -39,7 +39,7 @@ void readRawTrace(TString fileName, int minDetID = 0, int maxDetID = 1000){
/**///==============================================================
UShort_t detID;
UShort_t trace[1024];
UShort_t trace[16000];
UShort_t traceLength;
Int_t QDC[8];
ULong64_t time;
@ -99,6 +99,7 @@ void readRawTrace(TString fileName, int minDetID = 0, int maxDetID = 1000){
cRead->Clear();
g->Draw("AL");
/*
text.SetTextColor(kRed);
text.DrawLatex(0.12, 0.85, Form("QDC, QDCtrace (diff)"));
for( int i = 0; i < 8; i++) {
@ -108,7 +109,8 @@ void readRawTrace(TString fileName, int minDetID = 0, int maxDetID = 1000){
TBox * box = new TBox(x[i], minY, x[i+1], maxY);
box->SetFillColorAlpha(color[i], 0.1);
box->Draw("same");
}
}
*/
cRead->Update();
gSystem->ProcessEvents();