NEMO3 source cut. More...
#include <source_cut.h>
Public Types | |
enum | mode_t { MODE_INVALID = -1, MODE_ALL_TRACKS = 0, MODE_AT_LEAST_ONE_TRACK = 1 } |
Public Member Functions | |
source_cut (bool debug_=false) | |
constructor | |
virtual | ~source_cut () |
destructor | |
bool | is_source_molybdenum_metallic () const |
returns true if source mask contains SOURCE_MO_METAL | |
bool | is_source_molybdenum_composite () const |
returns true if source mask contains SOURCE_MO_COMPOSITE | |
bool | is_source_selenium () const |
returns true if source mask contains SOURCE_SE | |
bool | is_source_tellurium_natural () const |
returns true if source mask contains SOURCE_TE_NATURAL | |
bool | is_source_tellurium_enriched () const |
returns true if source mask contains SOURCE_TE_ENRICHED | |
bool | is_source_zirconium () const |
returns true if source mask contains SOURCE_ZR | |
bool | is_source_neodymum () const |
returns true if source mask contains SOURCE_ND | |
bool | is_source_calcium () const |
returns true if source mask contains SOURCE_CA | |
bool | is_source_copper () const |
returns true if source mask contains SOURCE_CU | |
bool | is_source_cadmium () const |
returns true if source mask contains SOURCE_CD | |
bool | is_source_calibration_tube () const |
returns true if source mask contains SOURCE_CALIB_TUBE | |
bool | is_source_endcap () const |
returns true if source mask contains SOURCE_ENDCAP | |
bool | is_prompt () const |
returns true if the delayed option is off | |
bool | is_delayed () const |
returns true is the delayed option is on | |
bool | is_mode_all_tracks () const |
returns true if mode all tracks is on | |
bool | is_mode_at_least_one_track () const |
returns true if the mode at least one track is on | |
bool | is_debug () const |
returns true is the debug option is on | |
void | set_debug (bool) |
sets the debug option | |
void | set (int mode_, std::list< int > source_mask_, bool delayed_, const std::string &tracking_name_="") |
sets the cut options | |
void | dump (std::ostream &out_=std::clog) const |
const function that dumps class informations | |
bool | accept () |
returns true is the event passes the cut | |
virtual std::string | cut_id () const |
returns cut id | |
virtual cut_creator_t | cut_creator () const |
cut creator | |
Static Public Member Functions | |
static int | get_mode_from_label (const std::string &label_) |
returs the mode id from the label_ | |
static std::string | get_label_from_mode (int mode_) |
returns the label from de mode_ id | |
static bool | is_mode_valid (int mode_) |
returns true if the mode is "all track" or "at least one track" | |
static nemo3::i_ana_event_cut * | create (const nemocuts::ICutFactory::cut_properties_t &cut_properties_) |
static method used within a cut factory | |
Static Public Attributes | |
static const std::string | CUT_ID |
cut id | |
Protected Member Functions | |
virtual void | __prepare_cut () |
checks the tracking existence | |
Private Attributes | |
bool | __debug |
int | __mode |
bool | __delayed |
std::list< int > | __source_mask |
std::string | __tracking_name |
Static Private Attributes | |
static creator_registration < source_cut > | __CR |
used by the cuts' factory stuff |
NEMO3 source cut.
Description of the cut:
This cut checks if the event has some tracks with vertex on some specific part of the source foils:
Available modes:
EACH == each track has vertex on the specified source AT_LEAST == at least one track has vertex on the specified source
Prompt or delayed tracks: