Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MC_co60_modulation.root
1 change: 1 addition & 0 deletions MC_cs137_modulation.root
1 change: 1 addition & 0 deletions MC_ti44_modulation.root
1 change: 1 addition & 0 deletions daqana.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <unistd.h>

#include "driver.hh"
#include "daq.hh"
Expand Down
7 changes: 3 additions & 4 deletions daqprocessor_single_calibrate.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@
#
# A.P. Colijn - [email protected]
#
modulation_basedir = "/Users/petman/Desktop/Modulation/"
modulation_basedir = "/Your/base/directory"
# output_basedir to be set to directory where the output structure should be
#output_basedir = "/data/atlas/users/acolijn/Modulation"
output_basedir = "/Users/petman/Desktop/Modulation/Run2/processed"
output_basedir = "/Where/your/root/files/live"
# run dir: where do you want all the scipts to live?
run_dir = modulation_basedir + "/stoomboot/scripts"
run_dir = modulation_basedir + "/daqana_scripts"

############################################################################################
import sys,os,argparse
Expand Down
Binary file modified python/processorlib.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions slowdaq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <unistd.h>

#include "driver.hh"
#include "sdaq.hh"
Expand Down
1 change: 1 addition & 0 deletions src/event.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "event.hh"
#include <iostream>
#include <math.h>
#include <unistd.h>

#include "TText.h"
#include "TLatex.h"
Expand Down
19 changes: 14 additions & 5 deletions src/rootdriver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,19 @@ void rootdriver::writeParameters(driver *drv){
}

void rootdriver::Close(){
tree->Write();

f->cd();
tree->Write(0, TObject::kWriteDelete, 0);
delete tree;
f->Close();
if(slowOn) fs->Close();

if(calFile != "NULL.root") _cal->Close();
delete f;

if(slowOn) {
temp_slowtree = NULL;
fs->Close();
}

if(calFile != "NULL.root") {
_cal_tree = NULL;
_cal->Close();
}
}