Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions sbnanaobj/StandardRecord/SRCorrectedOpFlash.cxx
Original file line number Diff line number Diff line change
@@ -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 <climits>

namespace caf
{

void SRCorrectedOpFlash::setDefault()
{
OpFlashT0 = -9999.;
UpstreamTime_lightonly = -9999.;
UpstreamTime_tpczcorr = -9999.;
UpstreamTime_propcorr_tpczcorr = -9999.;
SliceNuScore = -9999.;
FMScore = -9999.;
}

} // end namespace caf
////////////////////////////////////////////////////////////////////////
36 changes: 36 additions & 0 deletions sbnanaobj/StandardRecord/SRCorrectedOpFlash.h
Original file line number Diff line number Diff line change
@@ -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 <vector>

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
//////////////////////////////////////////////////////////////////////////////

3 changes: 3 additions & 0 deletions sbnanaobj/StandardRecord/SRSlice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion sbnanaobj/StandardRecord/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
<version ClassVersion="10" checksum="83320005"/>
</class>

<class name="caf::SRSlice" ClassVersion="22">
<class name="caf::SRSlice" ClassVersion="23">
<version ClassVersion="23" checksum="3825810478"/>
<version ClassVersion="22" checksum="2124497341"/>
<version ClassVersion="21" checksum="3825441135"/>
<version ClassVersion="20" checksum="1917004696"/>
Expand Down Expand Up @@ -368,6 +369,13 @@
<version ClassVersion="10" checksum="2672302824"/>
</class>

<class name="caf::SRCorrectedOpFlash" ClassVersion="13">
<version ClassVersion="13" checksum="3257300089"/>
<version ClassVersion="12" checksum="1558889595"/>
<version ClassVersion="11" checksum="755718921"/>
<version ClassVersion="10" checksum="2672302824"/>
</class>

<class name="caf::SROpFlash" ClassVersion="14">
<version ClassVersion="14" checksum="1680515282"/>
<version ClassVersion="13" checksum="2333809763"/>
Expand Down