diff --git a/sbnanaobj/StandardRecord/SRCorrectedOpFlash.cxx b/sbnanaobj/StandardRecord/SRCorrectedOpFlash.cxx new file mode 100644 index 00000000..e6a24163 --- /dev/null +++ b/sbnanaobj/StandardRecord/SRCorrectedOpFlash.cxx @@ -0,0 +1,25 @@ +//////////////////////////////////////////////////////////////////////// +// \file SRCorrectedOpFlash.cxx +// \brief Slice-level match info for corrected opflash, which includes corrected opflash time using tpc information +// \author acastill@fnal.gov +//////////////////////////////////////////////////////////////////////// + +#include "sbnanaobj/StandardRecord/SRCorrectedOpFlash.h" + +#include + +namespace caf +{ + + void SRCorrectedOpFlash::setDefault() + { + OpFlashT0 = -9999.; + UpstreamTime_lightonly = -9999.; + UpstreamTime_tpczcorr = -9999.; + UpstreamTime_propcorr_tpczcorr = -9999.; + SliceNuScore = -9999.; + FMScore = -9999.; + } + +} // end namespace caf +//////////////////////////////////////////////////////////////////////// diff --git a/sbnanaobj/StandardRecord/SRCorrectedOpFlash.h b/sbnanaobj/StandardRecord/SRCorrectedOpFlash.h new file mode 100644 index 00000000..76252c6d --- /dev/null +++ b/sbnanaobj/StandardRecord/SRCorrectedOpFlash.h @@ -0,0 +1,36 @@ +//////////////////////////////////////////////////////////////////////// +// \file SRCorrectedOpFlash.h +// \brief Slice-level match info for corrected opflash, which includes corrected opflash time using tpc information +// \author acastill@fnal.gov +//////////////////////////////////////////////////////////////////////// +#ifndef SRCORRECTEDOPFLASH_H +#define SRCORRECTEDOPFLASH_H + +#include "sbnanaobj/StandardRecord/SRConstants.h" +#include + +namespace caf +{ + class SRCorrectedOpFlash + { + public: + + /// @name Data members related to the opflash corrected time + /// @{ + float OpFlashT0 { -9999. }; ///< | OpFlash Time wrt RWM time | (ns) + float UpstreamTime_lightonly { -9999. }; ///< | Nu upstream wall time reconstructed using light only | (ns) + float UpstreamTime_tpczcorr { -9999. }; ///< | Nu upstream wall time reconstructed using light and Z from tpc vertex | (ns) + float UpstreamTime_propcorr_tpczcorr { -9999. }; ///< | Nu upstream wall time reconstructed using light propagation correction from tpc information and z correction from tpc vertex | (ns) + float SliceNuScore { -9999. }; ///< | Slice Nu Score | + float FMScore { -9999. }; ///< | Flash Match Score | + /// @} + + void setDefault(); + + }; + +} // end namespace + +#endif // SRCORRECTEDOPFLASH_H +////////////////////////////////////////////////////////////////////////////// + diff --git a/sbnanaobj/StandardRecord/SRSlice.h b/sbnanaobj/StandardRecord/SRSlice.h index 2e6508f1..abd9e62f 100644 --- a/sbnanaobj/StandardRecord/SRSlice.h +++ b/sbnanaobj/StandardRecord/SRSlice.h @@ -11,6 +11,7 @@ #include "sbnanaobj/StandardRecord/SRFlashMatch.h" #include "sbnanaobj/StandardRecord/SROpT0Finder.h" #include "sbnanaobj/StandardRecord/SRTPCPMTBarycenterMatch.h" +#include "sbnanaobj/StandardRecord/SRCorrectedOpFlash.h" #include "sbnanaobj/StandardRecord/SRSliceRecoBranch.h" #include "sbnanaobj/StandardRecord/SRTrueInteraction.h" #include "sbnanaobj/StandardRecord/SRTruthMatch.h" @@ -51,6 +52,8 @@ namespace caf SRTPCPMTBarycenterMatch barycenterFM; //!< Matching this slice to the OpFlash nearest to its charge center in YZ and to the triggering flash + SRCorrectedOpFlash correctedOpFlash; //!< OpFlash corrected with using tpc information matched to this slice + SRFakeReco fake_reco; bool is_clear_cosmic { false }; //!< Whether pandora marks the slice as a "clear" cosmic diff --git a/sbnanaobj/StandardRecord/classes_def.xml b/sbnanaobj/StandardRecord/classes_def.xml index e4e13f8c..865a124e 100644 --- a/sbnanaobj/StandardRecord/classes_def.xml +++ b/sbnanaobj/StandardRecord/classes_def.xml @@ -72,7 +72,8 @@ - + + @@ -368,6 +369,13 @@ + + + + + + +