All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CosmicIdUtils.h
Go to the documentation of this file.
1 #ifndef COSMICIDUTILS_H_SEEN
2 #define COSMICIDUTILS_H_SEEN
3 
4 
5 ///////////////////////////////////////////////
6 // CosmicIdUtils.h
7 //
8 // Reco utilities for doing cosmic removal in ana modules
9 // T Brooks (tbrooks@fnal.gov), November 2018
10 ///////////////////////////////////////////////
11 
12 // sbndcode
14 
15 // LArSoft
18 #include "nusimdata/SimulationBase/MCParticle.h"
19 
20 // c++
21 #include <vector>
22 #include <utility>
23 
24 namespace sbnd{
25 namespace CosmicIdUtils{
26 
27  // Create fake PDS optical flashes from true particle energy deposits
28  std::pair<std::vector<double>, std::vector<double>> FakeTpcFlashes(std::vector<simb::MCParticle> particles);
29 
30  // Determine if there is a PDS flash in time with the neutrino beam
31  bool BeamFlash(std::vector<double> flashes, double beamTimeMin, double beamTimeMax);
32 
33 }
34 }
35 
36 #endif
bool BeamFlash(std::vector< double > flashes, double beamTimeMin, double beamTimeMax)
std::pair< std::vector< double >, std::vector< double > > FakeTpcFlashes(std::vector< simb::MCParticle > particles)
Definition: CosmicIdUtils.cc:8
stream1 can override from command line with o or output services user sbnd