Skip to content
Snippets Groups Projects
Commit 708fdf58 authored by Chad Lantz's avatar Chad Lantz
Browse files

Added batch waveform generation function

parent 4fc24282
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ using namespace std;
TGraph* getPMTdata( string fileName );
double evaluateSum( vector< TF1* >& funcVec, double x );
void generateWaveform(string fileName);
Double_t PMTpulseFunction(Double_t *t, Double_t *par){
Float_t tt = t[0];
......@@ -18,6 +19,14 @@ Double_t PMTpulseFunction(Double_t *t, Double_t *par){
return f;
}
void batchWaveform(){
int fileStart = 0;
int fileStop = 100;
for(int fileNum = fileStart; fileNum < fileStop; fileNum++){
generateWaveform( Form("filename%d.root",fileNum) );
}
}
/*
* Calculate the number of Cherenkov photons likely to make it out
* of the ZDC starting from the output of the JZCaPA MC. Accounting
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment