Closed tmcahill closed 2 years ago
Combed through every occurrence of 'v2dl3' in the code for the refactor from v2dl3.py
-> v2dl3_for_vegas.py
:
environment.yml
-> environment-vegas.yml
v2dl3
conda env to v2dl3-vegas
conda envv2dl3.py
to simply log a help message upon being called with any flags (or lack thereof)v2dl3-vegas
entry point for v2dl3_for_vegas.py
README.md
to reflect above changesTested the updated README commands on a fresh install to a new conda env; All working and successfully processed a runlist.
Other minor changes:
First of a series of updates for my implementation of Alisha Chromey's work for 4DMLM.
This update implements the
EventClass
object, a simple data structure by which event classes are implemented.EventClasses are created when using event class mode (-ec). The user may provide one or more EAs per EA tag in the runlist to create an
EventClass
for each EA in the tag. Event classes are paired to the data files of the same ID. Example runlistGiving event classes their own object is cleaner than passing event class data many times via function parameters. It also allows us to avoid redundant computations for input files which correspond to an already constructed event class.
Next patch will make use of these EventClasses to select events to separate .fits files.
Vegas-side run successful with this patch.
Itemized changes
EventClass.py
genHDUList.py
event_class
to passEventClass
es toVegasDataSource
event_class
xoreffective_area_file
is Nonev2dl3.py
runlist_to_file_pair
extended to supportEventClass
-ec
flag added to trigger event class modeloadROOTfiles()
call by assigningfile_type
appropriatelyVegasDataSource.py
event_classes
optional keyword argument and class memberevent_classes
xorea_file
is NoneparseSt6RunList.py
validateRunlist()
extended to support multiple EAs per tag in event class modeutil.py
getCuts()
added; retrieves cuts values from the given keys in a ROOT cuts text