MergEVT include trace and pileup
This commit is contained in:
parent
f198afabf5
commit
088a9200f5
|
@ -61,7 +61,9 @@ int main(int argn, char **argv) {
|
||||||
tree->Branch("detID", &detID, "detID/s");
|
tree->Branch("detID", &detID, "detID/s");
|
||||||
tree->Branch("e", &data->energy, "crystal_energy/s");
|
tree->Branch("e", &data->energy, "crystal_energy/s");
|
||||||
tree->Branch("e_t", &data->time, "crystal_timestamp/l");
|
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;
|
TBenchmark gClock;
|
||||||
gClock.Reset();
|
gClock.Reset();
|
||||||
|
|
|
@ -39,7 +39,7 @@ void readRawTrace(TString fileName, int minDetID = 0, int maxDetID = 1000){
|
||||||
|
|
||||||
/**///==============================================================
|
/**///==============================================================
|
||||||
UShort_t detID;
|
UShort_t detID;
|
||||||
UShort_t trace[1024];
|
UShort_t trace[16000];
|
||||||
UShort_t traceLength;
|
UShort_t traceLength;
|
||||||
Int_t QDC[8];
|
Int_t QDC[8];
|
||||||
ULong64_t time;
|
ULong64_t time;
|
||||||
|
@ -99,6 +99,7 @@ void readRawTrace(TString fileName, int minDetID = 0, int maxDetID = 1000){
|
||||||
cRead->Clear();
|
cRead->Clear();
|
||||||
g->Draw("AL");
|
g->Draw("AL");
|
||||||
|
|
||||||
|
/*
|
||||||
text.SetTextColor(kRed);
|
text.SetTextColor(kRed);
|
||||||
text.DrawLatex(0.12, 0.85, Form("QDC, QDCtrace (diff)"));
|
text.DrawLatex(0.12, 0.85, Form("QDC, QDCtrace (diff)"));
|
||||||
for( int i = 0; i < 8; i++) {
|
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);
|
TBox * box = new TBox(x[i], minY, x[i+1], maxY);
|
||||||
box->SetFillColorAlpha(color[i], 0.1);
|
box->SetFillColorAlpha(color[i], 0.1);
|
||||||
box->Draw("same");
|
box->Draw("same");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
cRead->Update();
|
cRead->Update();
|
||||||
gSystem->ProcessEvents();
|
gSystem->ProcessEvents();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user