Skip to content
Snippets Groups Projects
Commit efdb5416 authored by Eric Torrence's avatar Eric Torrence
Browse files

Merge branch 'fasermc-dev' into 'master'

Physics Ntuple update

See merge request faser/calypso!333
parents 9c8ddb95 2da9e37f
No related branches found
No related tags found
No related merge requests found
...@@ -430,6 +430,8 @@ StatusCode NtupleDumperAlg::execute(const EventContext &ctx) const ...@@ -430,6 +430,8 @@ StatusCode NtupleDumperAlg::execute(const EventContext &ctx) const
bool trig_coincidence_vetoesORpreshower_and_calo = false; bool trig_coincidence_vetoesORpreshower_and_calo = false;
if ( ((m_tap&2)!=0) && ((m_tap&1)!=0) ) trig_coincidence_vetoesORpreshower_and_calo = true; if ( ((m_tap&2)!=0) && ((m_tap&1)!=0) ) trig_coincidence_vetoesORpreshower_and_calo = true;
bool trig_calo = (m_tap & 1);
// for random trigger, store charge of scintillators in histograms // for random trigger, store charge of scintillators in histograms
if (trig_random) { if (trig_random) {
// Read in Waveform containers // Read in Waveform containers
...@@ -482,7 +484,8 @@ StatusCode NtupleDumperAlg::execute(const EventContext &ctx) const ...@@ -482,7 +484,8 @@ StatusCode NtupleDumperAlg::execute(const EventContext &ctx) const
return StatusCode::SUCCESS; // finished with this randomly triiggered event return StatusCode::SUCCESS; // finished with this randomly triiggered event
} else if ( !(trig_coincidence_preshower_and_vetoes || trig_coincidence_timing_and_vetoesORpreshower || trig_coincidence_timing_and_calo || trig_coincidence_vetoesORpreshower_and_calo) ) { // Try adding calo-only trigger
} else if ( !(trig_coincidence_preshower_and_vetoes || trig_coincidence_timing_and_vetoesORpreshower || trig_coincidence_timing_and_calo || trig_coincidence_vetoesORpreshower_and_calo || trig_calo) ) {
// don't process events that fail to activate coincidence triggers // don't process events that fail to activate coincidence triggers
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
...@@ -729,8 +732,9 @@ StatusCode NtupleDumperAlg::execute(const EventContext &ctx) const ...@@ -729,8 +732,9 @@ StatusCode NtupleDumperAlg::execute(const EventContext &ctx) const
FillWaveBranches(*ecalContainer); FillWaveBranches(*ecalContainer);
// enforce blinding such that events that miss the veto layers and have a large calo signal are skipped and not in the output root file // enforce blinding such that events that miss the veto layers and have a large calo signal are skipped and not in the output root file
if ( (!isMC) && m_doBlinding) { // Only blind colliding BCIDs (+/- 1)
if ( m_calo_total_E_EM/1000.0 > 10.0 ) { // energy is in MeV so divide by 1000 to compare to 10 GeV if ( (!isMC) && m_doBlinding && abs(m_distanceToCollidingBCID) <= 1) {
if (m_calo_total_E_EM > m_blindingCaloThreshold ) { // energy is in MeV
if (m_wave_status[4] == 1 and m_wave_status[5] == 1 and m_wave_status[6] == 1 and m_wave_status[7] == 1 and m_wave_status[14] == 1) { // hit status == 1 means it is below threshold. channles 4 and 5 are vetoNu, channels 6,7, and 14 are veto if (m_wave_status[4] == 1 and m_wave_status[5] == 1 and m_wave_status[6] == 1 and m_wave_status[7] == 1 and m_wave_status[14] == 1) { // hit status == 1 means it is below threshold. channles 4 and 5 are vetoNu, channels 6,7, and 14 are veto
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
......
...@@ -111,6 +111,8 @@ private: ...@@ -111,6 +111,8 @@ private:
DoubleProperty m_genieLuminosity { this, "GenieLuminosity", 150.0, "Genie luminosity in inverse fb." }; DoubleProperty m_genieLuminosity { this, "GenieLuminosity", 150.0, "Genie luminosity in inverse fb." };
DoubleProperty m_minMomentum { this, "MinMomentum", 50000.0, "Write out all truth particles with a momentum larger MinMomentum"}; DoubleProperty m_minMomentum { this, "MinMomentum", 50000.0, "Write out all truth particles with a momentum larger MinMomentum"};
DoubleProperty m_blindingCaloThreshold {this, "BlindingCaloThreshold", 25000.0, "Blind events with Ecal energy above threshold (in MeV)"};
double m_baseEventCrossSection {1.0}; double m_baseEventCrossSection {1.0};
const double kfemtoBarnsPerMilliBarn {1.0e12}; const double kfemtoBarnsPerMilliBarn {1.0e12};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment