Skip to content

Commit

Permalink
Updating code to work with load-library features
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronc137 authored and Parity Account committed May 2, 2019
1 parent 7c28038 commit a50ef86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion rootScripts/aggregator/anaInt.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ definecut bcmds_cut (-1*bcm_ds>1)

newpage 2 5
title CAMGUIN Test
loadlib camguin_C.so
macro ./camguin.C("draw","evt","bcm_an_ds3","hw_sum","defaultCuts",0,"clean")
macro ./camguin.C("meanRms","mul","yield_sam1","hw_sum","defaultCuts",0,"defaultHist")
loadmacro camguin_C.so ./camguin.C("meanRms","mul","yield_sam1","hw_sum","defaultCuts",0,"defaultHist")
macro ./camguin.C("int","evt","bcm_an_us","hw_sum","defaultCuts",0,"defaultHist")
macro ./camguin.C("redraw","evt","bcm_an_us","hw_sum","defaultCuts",0,"defaultHist")
macro ./camguin.C("intloop","evt","bcm_an_ds","hw_sum","defaultCuts",0,"clean")
Expand Down
5 changes: 2 additions & 3 deletions rootScripts/aggregator/camAna.hh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ void writeMean_Loop_h(TString tree = "mul", TString branch = "asym_vqwk_04_0ch0"
TString channel = tree + "_" + branch + "_" + leaf;
// Make an instance of the relevant data source
TLeaf *Leaf = getLeaf_h(tree,branch,leaf,runNumber,nRuns);
if (!Leaf){
return;
}
if (Leaf){
TBranch *Branch = Leaf->GetBranch();
TTree *Tree = Branch->GetTree();
Int_t numEntries = Tree->GetEntries();
Expand All @@ -56,6 +54,7 @@ void writeMean_Loop_h(TString tree = "mul", TString branch = "asym_vqwk_04_0ch0"
}
data_mean = data/(1.0*n_data);
writeFile_h(analysis,data_mean,runNumber,nRuns);
}
}

void writeInt_loop_h(TString tree = "mul", TString branch = "asym_vqwk_04_0ch0", TString leaf = "hw_sum", TString cut = "defaultCut", Int_t runNumber = 0, Int_t nRuns = -1){
Expand Down
6 changes: 6 additions & 0 deletions rootScripts/aggregator/camguin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
#include <string>
#include <stdlib.h>
#include <dirent.h>
#include <TROOT.h>
#include <TSystem.h>
#include <TChain.h>
#include <TLeaf.h>
#include <TH1.h>
#include <TFile.h>
using namespace std;

int debug = 0;
Expand Down

0 comments on commit a50ef86

Please sign in to comment.