12 int nhits,
TimeDelta time,
double * vertex,
13 double goodness_of_fit,
double goodness_of_time_fit,
14 bool fill_has_direction,
double energy)
16 if(fill_has_direction) {
18 std::cerr <<
"Reconstructer " <<
ReconInfo::EnumAsString(reconstructer) <<
" provides direction information but we are filling reconstruction information without it" << std::endl;
26 fTime.push_back(time);
39 int nhits,
TimeDelta time,
double * vertex,
40 double goodness_of_fit,
double goodness_of_time_fit,
41 double * direction_euler,
double * cherenkov_cone,
42 double direction_likelihood,
double energy)
44 AddRecon(reconstructer, trigger_num, nhits, time, vertex, goodness_of_fit, goodness_of_time_fit,
false, energy);
47 direct.
theta = direction_euler[0];
48 direct.
phi = direction_euler[1];
49 direct.
alpha = direction_euler[2];
85 return "TestVertices_NoDirection";
88 return "TestVertices";
91 return "Random_NoDirection";
109 std::cerr <<
"ReconInfo::ReconstructerFromString() Unknown string value " << s << std::endl;
117 return "NoNClustersWarning";
120 return "NClustersSilentWarning";
123 return "NClustersNormalWarning";
126 return "NClustersGoldenWarning";
141 std::cerr <<
"ReconInfo::NClustersWarningFromString() Unknown string value " << s << std::endl;
149 return "NoSupernovaWarning";
152 return "SupernovaSilentWarning";
155 return "SupernovaNormalWarning";
158 return "SupernovaGoldenWarning";
173 std::cerr <<
"ReconInfo::SNWarningFromString() Unknown string value " << s << std::endl;
enum EReconstructers Reconstructer_t
Pos3D GetVertex(int irecon)
std::vector< Pos3D > fVertex
TimeDelta GetTime(int irecon)
void UpdateTimeBoundaries(TimeDelta time)
static bool ShouldProvideDirection(Reconstructer_t r)
DirectionEuler GetDirectionEuler(int irecon)
CherenkovCone GetCherenkovCone(int irecon)
static constexpr double s_long_time_unit
Relative unit of long time member, i.e. long_unit / short_unit, both ns so = 1.
Reconstructer_t GetReconstructer(int irecon)
std::vector< bool > fHasDirection
enum NClustersWarnings NClustersWarning_t
std::vector< Reconstructer_t > fReconstructer
void AddReconFrom(ReconInfo *in, const int irecon)
std::vector< int > fNHits
static Reconstructer_t ReconstructerFromString(std::string s)
double GetGoodnessOfFit(int irecon)
double GetDirectionLikelihood(int irecon)
std::vector< DirectionEuler > fDirectionEuler
int GetTriggerNum(int irecon)
std::vector< double > fDirectionLikelihood
static NClustersWarning_t NClustersWarningFromString(std::string s)
std::vector< double > fGoodnessOfTimeFit
static SNWarning_t SNWarningFromString(std::string s)
enum SNWarnings SNWarning_t
double GetGoodnessOfTimeFit(int irecon)
std::vector< double > fEnergy
bool GetHasDirection(int irecon)
std::vector< int > fTriggerNum
static std::string EnumAsString(Reconstructer_t r)
std::vector< TimeDelta > fTime
void AddRecon(Reconstructer_t reconstructer, int trigger_num, int nhits, TimeDelta time, double *vertex, double goodness_of_fit, double goodness_of_time_fit, bool fill_has_direction=true, double energy=-1.)
std::vector< CherenkovCone > fCherenkovCone
double GetEnergy(int irecon)
std::vector< double > fGoodnessOfFit