Correlations.h
Go to the documentation of this file.
1 #ifndef FNEX_Correlations_h
2 #define FNEX_Correlations_h
3 
4 // C++ includes
5 #include <sstream>
6 #include <iomanip>
7 
8 // ART includes
14 
15 // FNEX includes
18 
19 
20 namespace fnex{
21 
22 
23  typedef std::map<std::string, InputPoint> StringPointMap;
24 
32  double corr;
33  };
34 
35 
36  class Correlations{
37 
38  public:
39 
40  // Constructor/Destructor
41  explicit Correlations(fhicl::ParameterSet const& pset);
43 
44  // Configuration handler
45  void Reconfigure(fhicl::ParameterSet const& pset);
46 
47  // Apply point
48  void ApplyCorrelations(InputPoint & pInputPoint);
49 
50  // Apply point
51  void ApplyCorrelations(StringPointMap & pStringPointMap);
52 
53  // Configured successfully?
54  bool IsConfigured();
55 
56  // Name information
57  const std::string ToString() const;
58 
59  // Print info
60  void Print(std::ostream & outfile = std::cout) const;
61 
62  protected:
63 
64  // Has this been configured
66 
67  // Name
69 
70  // Vector of simple_correlation
71  std::vector<fnex::simple_correlation> fCorrelations;
72 
73  };
74 
75 }
76 
77 #endif
std::string fInstanceName
Definition: Correlations.h:68
novadaq::cnv::DetId indDet
Definition: Correlations.h:31
Create a list of fnex::Events to be used in fits.
std::vector< std::pair< const ISyst *, const ISyst * > > Correlations
std::string ToString(double value)
OStream cout
Definition: OStream.cxx:6
void Print(std::string prefix, std::string name, std::string suffix="")
Definition: nue_pid_effs.C:68
std::map< std::string, InputPoint > StringPointMap
Definition: Correlations.h:23
novadaq::cnv::DetId depDet
Definition: Correlations.h:30
std::vector< fnex::simple_correlation > fCorrelations
Definition: Correlations.h:71
FILE * outfile
Definition: dump_event.C:13
enum BeamMode string