/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/physics/include/RAT/BNLOpWLSData.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/physics/include/RAT/BNLOpWLSData.hh Source File
Ratpac-two
BNLOpWLSData.hh
1 
12 #ifndef __BNLOpWLSData__
13 #define __BNLOpWLSData__
14 
15 #include <string>
16 #include <vector>
17 
18 class TBranch;
19 
20 class BNLOpWLSData {
21  public:
22  BNLOpWLSData(const std::string fname);
23  virtual ~BNLOpWLSData();
24 
25  // Arguments: File name, Tree name containing Ex/Em data, Branch names for
26  // excitation wavelength and emission intensity. Bins are assumed to be nm.
27  //
28  // Currently, the data are stored in the ExEmData vector, with the exciting
29  // wavelength for event i stored in ExEmData.at(i).at(0).at(0), the emitting
30  // wavelengths stored in ExEmData.at(i).at(1).at(:), and the normalized
31  // stored at ExEmData.at(i).at(2).at(:).
32  // These data are read into memory to speed things up.
33  void SetExEmData(std::string fname);
34 
35  // Method to get a value from a tree. Arguments; pointer to branch, event #,
36  // name of branch.
37  void *GetPointerToValue(TBranch *, int, const char *);
38 
39  // The Ex/Em data
40  std::vector<std::vector<std::vector<double>>> ExEmData;
41 };
42 
43 #endif // __BNLOpWLSData__
Definition: BNLOpWLSData.hh:20