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
6 changes: 5 additions & 1 deletion sbnanaobj/StandardRecord/SRTrigger.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ namespace caf
gate_id(0),
trigger_count(0),
gate_count(0),
gate_delta(-1)
gate_delta(-1),
passed_trigger(false),
num_pairs_over_threshold(-1),
monpulses_flat(),
monpulse_sizes()
{}


Expand Down
5 changes: 5 additions & 0 deletions sbnanaobj/StandardRecord/SRTrigger.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <cstdlib>
#include <cstdint>
#include <vector>

namespace caf
{
Expand All @@ -27,6 +28,10 @@ namespace caf
unsigned gate_count; ///< count of gate in this stream
int gate_delta; ///< Number of gates since previous trigger in this stream (gate of this event included)

bool passed_trigger; ///< if the event passed the trigger
int num_pairs_over_threshold; ///< number of pmt pairs over trigger threshold
std::vector<int> monpulses_flat; ///< trigger responses (number of PMT pairs above threshold for all channels) for all flashes (flattened to include all flashes in a single vector)
std::vector<int> monpulse_sizes; ///< length of each trigger responses to un-flatten the trigger responses (to a vector of trigger responses)
};
}

Expand Down
1 change: 1 addition & 0 deletions sbnanaobj/StandardRecord/StandardRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "sbnanaobj/StandardRecord/SRTruthBranch.h"
#include "sbnanaobj/StandardRecord/SRFakeReco.h"
#include "sbnanaobj/StandardRecord/SROpFlash.h"
#include "sbnanaobj/StandardRecord/SRTrigger.h"
#include "sbnanaobj/StandardRecord/SRInteractionDLP.h"
#include "sbnanaobj/StandardRecord/SRInteractionTruthDLP.h"

Expand Down
3 changes: 2 additions & 1 deletion sbnanaobj/StandardRecord/classes_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@
<version ClassVersion="10" checksum="1010873394"/>
</class>

<class name="caf::SRTrigger" ClassVersion="13">
<class name="caf::SRTrigger" ClassVersion="14">
<version ClassVersion="14" checksum="592461663"/>
<version ClassVersion="13" checksum="1642667704"/>
<version ClassVersion="12" checksum="2557689850"/>
<version ClassVersion="11" checksum="3162219101"/>
Expand Down