ElectronNeutrinoSelection
 All Classes Functions Variables Groups
Public Member Functions | Private Attributes | List of all members
lee::ElectronEventSelectionAlg Class Reference

Public Member Functions

bool eventSelected (const art::Event &evt)
 Main Event Selection Function. More...
 
void reconfigure (fhicl::ParameterSet const &p)
 Configure all of the parameters of this class. More...
 
const std::map< size_t, int > opticalfilter (const art::Event &evt, const std::vector< size_t > &pfplist, const art::ValidHandle< std::vector< recob::PFParticle >> pfparticle_handle)
 Checks if there is a flash within the 3.2-4.8 ms window and compatible with the center of charge. More...
 
const std::map< size_t, int > flashBasedSelection (const art::Event &evt, const std::vector< size_t > &pfplist, const art::ValidHandle< std::vector< recob::PFParticle >> pfparticle_handle)
 Checks if there is a flash within the flash_window_start - flash_window_end window with enough PE. and compatible with the center of charge, the best one is selected using flashmatching. More...
 
const flashana::QCluster_t collect3DHits (const art::Event &evt, const std::vector< size_t > &pfplist)
 Creates a photon cluster for a neutrino pfp hierarchy PFParticle. More...
 
TVector3 spaceChargeTrueToReco (const TVector3 &xyz)
 Return the true coordinates corrected by the space-charge effect. More...
 
void clear ()
 Reset internal variables.
 
const std::vector< size_t > & get_primary_indexes () const
 Return a list of the selected pfparticle top level neutrino candidate indexes.
 
const size_t & get_n_neutrino_candidates () const
 Return the number of neutrino candidates.
 
const std::map< size_t, bool > & get_neutrino_candidate_passed () const
 Inform whether a particular candidate passed or failed the algorithm. More...
 
const std::map< size_t, int > & get_op_flash_indexes () const
 Return the index of the flash matched with the pfparticle.
 
const std::map< size_t,
TVector3 > & 
get_neutrino_vertex () const
 Return the pandora calculated vertex indexed by pfparticle id number.
 
const std::map< size_t, int > & get_n_showers () const
 Return number of showers for this pfparticle.
 
const std::map< size_t, int > & get_n_showers_as_tracks () const
 Return number of showers for this pfparticle, reconstructed as tracks;.
 
const std::map< size_t, int > & get_n_tracks () const
 Return number of tracks for pfparticle index.
 
const std::map< size_t,
std::vector< size_t > > & 
get_pfp_id_showers_from_primary () const
 Return the list of pfparticle indexes that are showers that are associated with primary pfparticle indexes.
 
const std::map< size_t,
std::vector< size_t > > & 
get_pfp_id_tracks_from_primary () const
 Return the list of pfparticle indexes that are tracks that are associated with primary pfparticle indexes.
 
const std::map< size_t,
std::vector< size_t > > & 
get_pfp_id_showers_as_tracks_from_primary () const
 Return the list of pfparticle indexes that are tracks that are associated with primary pfparticle indexes.
 
const std::vector< double > & get_flash_PE () const
 Return the list of total PE of the flashes.
 
const std::vector< double > & get_flash_time () const
 Return the list of times of the flashes.
 
const double & get_flash_x () const
 Return the position in x of the flash.
 
const double & get_TPC_x () const
 Return the position in x of the center of the collected charge.
 
const int & get_selection_result () const
 Return the selection failure mode.
 

Private Attributes

size_t _n_neutrino_candidates
 
std::vector< size_t > _primary_indexes
 
std::map< size_t, bool > _neutrino_candidate_passed
 
std::map< size_t, int > _op_flash_indexes
 
std::map< size_t, TVector3 > _neutrino_vertex
 
std::map< size_t, int > _n_showers
 
std::map< size_t, std::vector
< size_t > > 
_pfp_id_showers_from_primary
 
std::map< size_t, int > _n_tracks
 
std::map< size_t, std::vector
< size_t > > 
_pfp_id_tracks_from_primary
 
std::map< size_t, int > _n_showers_as_tracks
 
std::map< size_t, std::vector
< size_t > > 
_pfp_id_showers_as_tracks_from_primary
 
std::vector< double > _flash_PE
 
std::vector< double > _flash_time
 
double _TPC_x
 
double _flash_x
 
int _selection_result
 
int kPassed = 0
 
int kNoNeutrino = 1
 
int kNoShowers = 2
 
int kNoTracks = 3
 
int kNoValidFlash = 4
 
int kNoDataProducts = 5
 
int m_nTracks
 
bool m_printDebug
 
double m_fidvolXstart
 
double m_fidvolXend
 
double m_fidvolYstart
 
double m_fidvolYend
 
double m_fidvolZstart
 
double m_fidvolZend
 
double m_fractionsigmaflashwidth
 
double m_absoluteflashdist
 
double m_startbeamtime
 
double m_endbeamtime
 
double m_PE_threshold
 
double m_cut_zwidth
 
double m_cut_sigzwidth
 
double m_cut_ywidth
 
double m_cut_sigywidth
 
double m_charge_light_ratio
 
bool m_flashmatching
 
bool m_FM_all
 
double m_isCosmicInTime
 
bool m_showersAsTracks
 
bool _do_opdet_swap
 If true swaps reconstructed OpDets according to _opdet_swap_map.
 
std::vector< int > _opdet_swap_map
 The OpDet swap map for reco flashes.
 
std::string m_pfp_producer
 
std::string fOpticalFlashFinderLabel
 
GeometryHelper geoHelper
 
PandoraInterfaceHelper pandoraHelper
 
flashana::FlashMatchManager m_mgr
 
art::ServiceHandle< geo::Geometry > m_geo
 

The documentation for this class was generated from the following files: