-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathutil.h
33 lines (20 loc) · 1005 Bytes
/
util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef UTIL_H
#define UTIL_H
#include "TH1D.h"
#include "TH2D.h"
#include "EventType.h"
#include "TProfile.h"
double CalWeight(const anavar & evt, const int &partype);
double CalBkgW(const anavar & evt, const int &partype);
double CalG4RW(const anavar & evt);
void FillHistVec1D(TH1D *hist[pi::nIntTypes+1], const double &value, const int &partype, double weight=1, bool fill_underflow=true, bool fill_overflow=true);
void FillHistVec2D(TH2D *hist[pi::nIntTypes+1], const double &value1, const double &value2, const int &partype, double weight=1);
void FillProfVec(TProfile *profile[pi::nIntTypes+1], const double &value1, const double &value2, const int &partype);
void FillHist1D(TH1D *hist, const double &value, const double &wei);
double GetPionKE(double length);
double GetTheta(double x, double y, double z);
double GetPhi(double x, double y, double z);
double GetThetaxz(double x, double y, double z);
double GetThetayz(double x, double y, double z);
void SetProtoDUNEStyle();
#endif