Skip to content

Commit b6678b8

Browse files
committed
improved documentation
Signed-off-by: acolijn <auke.pieter.colijn@gmail.com>
1 parent f1b2c6d commit b6678b8

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

monitor/resolution.C

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
#include <vector>
44
#endif
55

6+
//
7+
// Plot resolution as a function of energy
8+
//
9+
// Input: rootfile - input ANA root filename(s). Wild cards work to analyze more than one run at once
10+
// save_plot - save plot to .pdf file (or other format)
11+
//
12+
// A.P. Colijn
13+
//
14+
615
#define NUMBER_OF_CHANNELS 8
716
#define MAX_PEAKS 5
817

monitor/stability.C

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
#include <vector>
44
#endif
55

6+
//
7+
// Plot rate, energy, resolution as a function of time.
8+
//
9+
// Input: rootfile - input ANA rootfile(s). Wild cards work if you wish to analyze a long chain of runs!
10+
// var - "e", "rate","res"
11+
// type - "abs", "rel"
12+
// save_plot - save plot to .pdf file (or other format)
13+
//
14+
// A.P. Colijn
15+
//
16+
617
#define NUMBER_OF_CHANNELS 8
718
#define MAX_PEAKS 5
819

@@ -154,16 +165,7 @@ void initVariable(string var){
154165
// MAIN ROUTINE
155166
//
156167
void stability(string rootfile, string var, string type, bool save_plot){
157-
//
158-
// Plot rate, energy, resolution as a function of time.
159-
//
160-
// Input: rootfile - input root filename
161-
// var - "e", "rate","res"
162-
// type - "abs", "rel"
163-
// save_plot - save plot to .pdf file (or other format)
164-
//
165-
// A.P. Colijn
166-
//
168+
// documentation on top....
167169
char hname[128],cmd[128],cut[128];
168170
cout << "chain_ana:: plotting routine"<<endl;
169171

0 commit comments

Comments
 (0)