-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add update_environment function to manage.sh #170
Commits on Jul 19, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 86d881c - Browse repository at this point
Copy the full SHA 86d881cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66e7c80 - Browse repository at this point
Copy the full SHA 66e7c80View commit details -
Use of DataVectors and PmapVectors in cities.
Traffic of arguments in function events_loop for the various cities expressed more concisely with the user of DataVectors and PmapVectors containers.
Configuration menu - View commit details
-
Copy full SHA for 49805dc - Browse repository at this point
Copy the full SHA 49805dcView commit details -
Split HitCity into KrCity and HitCity
A KrCity computes and writes KrEvents, e.g, point-like events. This means that the baricenter integrates all the time slices for a given SiPM. Instead, a HitCity computes and writes HitEvents, in which the baricenter (or any other position-finding algo) is computed slice-by-slice. A HitCity is derived from a KrCity since both of them use the same file_loop() function (which starts from pmaps).
Configuration menu - View commit details
-
Copy full SHA for 22aa1a0 - Browse repository at this point
Copy the full SHA 22aa1a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c3aba1 - Browse repository at this point
Copy the full SHA 9c3aba1View commit details -
Add traceback after printout if except
Without the exit, the command-line test was passing with pretty greens when the city was not found (e.g, a captured ModuleNotFound, print that pytest captures and digests without telling anything and happy ending in spite of wrong situation). Adding traceback still gives printout when running in normal mode but provides diagnostics of the problem
Configuration menu - View commit details
-
Copy full SHA for 75f165f - Browse repository at this point
Copy the full SHA 75f165fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 752d882 - Browse repository at this point
Copy the full SHA 752d882View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b31ccf - Browse repository at this point
Copy the full SHA 9b31ccfView commit details -
Run 10 events by dafault in Penthesilea
The first few events are rejected by selection in the test sample in Penthesilea, running 10 events guarantees that the city runs fully.
Configuration menu - View commit details
-
Copy full SHA for 3f9eba7 - Browse repository at this point
Copy the full SHA 3f9eba7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 349221c - Browse repository at this point
Copy the full SHA 349221cView commit details -
write sipm_ids_and_charges_in_slice with test
this function allows takes an s2sid_peak and slice number and returns the sipm ids of sipms in that s2si, with their charges at slice number
Configuration menu - View commit details
-
Copy full SHA for e6a9bb9 - Browse repository at this point
Copy the full SHA e6a9bb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0d3b51 - Browse repository at this point
Copy the full SHA a0d3b51View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8a2bb1 - Browse repository at this point
Copy the full SHA a8a2bb1View commit details -
Add pmaps_functions_c to base.
This is needed to use the corresponding cython function rather than previous python version.
Configuration menu - View commit details
-
Copy full SHA for 2eb9dd7 - Browse repository at this point
Copy the full SHA 2eb9dd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a9d5ca - Browse repository at this point
Copy the full SHA 1a9d5caView commit details -
Configuration menu - View commit details
-
Copy full SHA for dae8bc0 - Browse repository at this point
Copy the full SHA dae8bc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6bceab - Browse repository at this point
Copy the full SHA d6bceabView commit details -
Modify functions sipm_ids_and_charges_in_slice.
Include in the list only slices with positive charge.
Configuration menu - View commit details
-
Copy full SHA for 874cf49 - Browse repository at this point
Copy the full SHA 874cf49View commit details -
Fix function compute_xy_position
One has to take into account the possibility that the slice results in an empty SiPM list. This is handled via SipmEmptyList exception.
Configuration menu - View commit details
-
Copy full SHA for f5e2b05 - Browse repository at this point
Copy the full SHA f5e2b05View commit details -
Take into account that clusters for a given slice_no can be empty.
In this case, the slice is looped away.
Configuration menu - View commit details
-
Copy full SHA for 4e5a0fc - Browse repository at this point
Copy the full SHA 4e5a0fcView commit details -
Cecilia is removed from cities. The simulation of the trigger will be done shortly in Diomira.
Configuration menu - View commit details
-
Copy full SHA for f113f36 - Browse repository at this point
Copy the full SHA f113f36View commit details -
Add NN (NoNumber) with value -999999
Although it may be argued that we reinvent the wheel, the use of a numerical NN is quite convenient when writing/reading pytables to/from disk, as a proxy for NaN.
Configuration menu - View commit details
-
Copy full SHA for 1fb9928 - Browse repository at this point
Copy the full SHA 1fb9928View commit details -
Cluster takes std (not rms) as argument.
Cluster takes the std (not the rms) as argument. A number of properties (Xrm and such) are modified accordingly.
Configuration menu - View commit details
-
Copy full SHA for 097cdaf - Browse repository at this point
Copy the full SHA 097cdafView commit details -
Various tests involving cluster fixed.
The change of definition in Cluster (takes std, not rms) requires to fix a number of tests.
Configuration menu - View commit details
-
Copy full SHA for 6900bc6 - Browse repository at this point
Copy the full SHA 6900bc6View commit details -
Redefined conf. files for kr_city and hit_city.
hit_city inherits now from kr_city. Config. files modified accordingly.
Configuration menu - View commit details
-
Copy full SHA for d157523 - Browse repository at this point
Copy the full SHA d157523View commit details -
Dorothea is now derived from KrCity, which centralizes the operations of a city which computes and writes a KrEvent. In particular, in a KrCity the position of the particle is computed integrating over all temporal samples in SiPMs, but otherwise using the same reco-algorithms (configurable) that can be used in HitCity (where position is computed slice-by-slice).
Configuration menu - View commit details
-
Copy full SHA for 2e8a2f4 - Browse repository at this point
Copy the full SHA 2e8a2f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb1171a - Browse repository at this point
Copy the full SHA eb1171aView commit details -
Like other cities before her, Dorothea has been further simplified, transfering most of its functionality to the base. In particular, KrEvent is no longer created by Dorothea (the proper place to create a KrEvent is in KrCity). Tests have been modified accordingly.
Configuration menu - View commit details
-
Copy full SHA for 28de639 - Browse repository at this point
Copy the full SHA 28de639View commit details -
Move critical functionality of Penthesilea to the base.
Penthesilea follows the same fate that other cities before, and gets leaner and thinner (more invisible), transfering functionality to the base. Following the existing model, it is the HitCity (and not a derived slave) the one that creates the HitEvent.
Configuration menu - View commit details
-
Copy full SHA for d11efb7 - Browse repository at this point
Copy the full SHA d11efb7View commit details -
Eliminate "Persistent" classes.
The use of "Persistent" class is unnecessary and somewhat confusing. Following the model of pmap classes, all other "persistent" classes now include a method store that is used by the corresponding writer for persistent storage. Thus, classes PersistentHitCollection and PersistentKrEvent have been sent to Valhaya.
Configuration menu - View commit details
-
Copy full SHA for f8411bf - Browse repository at this point
Copy the full SHA f8411bfView commit details -
Propagate elimination of "Persistent".
Several tests use now HitCollection and KrEvent rather than PersistentHitCollection etc. Notice that instantiation to persistent classes is no longer done in Dorothea or Penthesilea, but in the base.
Configuration menu - View commit details
-
Copy full SHA for 26698a5 - Browse repository at this point
Copy the full SHA 26698a5View commit details -
Cosmetics and cleaning old wood.
Dead code removed, some cosmetics applied.
Configuration menu - View commit details
-
Copy full SHA for a47410c - Browse repository at this point
Copy the full SHA a47410cView commit details -
Dorothea must call kr_city.con (it was calling hit_city.conf)
Configuration menu - View commit details
-
Copy full SHA for 56413fd - Browse repository at this point
Copy the full SHA 56413fdView commit details -
Corona algorithm raises exceptions when needed.
Some times Corona may find an empty list, in which case an exception is raised.
Configuration menu - View commit details
-
Copy full SHA for aef8abc - Browse repository at this point
Copy the full SHA aef8abcView commit details -
Change name: test_xy_algo to xy_algo_test
To follow the standard convention
Configuration menu - View commit details
-
Copy full SHA for c931c51 - Browse repository at this point
Copy the full SHA c931c51View commit details -
This PR simplifies the structure of the cities, making then one step closer to the goal of being truly invisibles. The most important features are: 1-Most cities have the same run() method, that now goes to the base (only Zaira needs to re-write the run() method). 2- Cities reading RWF (Isidora and Irene) have the same file_loop() method, that now goes to their common base. 3-Cities reading PMAPS (Dorothea and Penthiselea) have the same file_loop() method that now goes to their common base (Dorothea and Penthiselea both inherit now from HitCity). 4-A counter class allows easy bookeping and common go() method. Overall, the concrete cities are much thiner and simpler, with considerable reduction of noise and sizeable repayment of TD).
Configuration menu - View commit details
-
Copy full SHA for c6f1377 - Browse repository at this point
Copy the full SHA c6f1377View commit details
Commits on Jul 20, 2017
-
write and test func to ensure s2d, s2sid have same peaks
s2si automatically set its peaks to be the peaks in s2d even if the s2sid did not have all those peaks. this has been fixed
Alejandro Botas authored and Alejandro Botas committedJul 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 024b39e - Browse repository at this point
Copy the full SHA 024b39eView commit details -
fixes bug in find_s12 that could poorly initialize candidate peak
find_s12 sometimes initialized the start of the first peak to the incorrect time. this has been fixed and a test has been added.
Alejandro Botas committedJul 20, 2017 Configuration menu - View commit details
-
Copy full SHA for 314b532 - Browse repository at this point
Copy the full SHA 314b532View commit details
Commits on Jul 21, 2017
-
index into KrEvent lists with enumeration of peak_no not peak_no
Alejandro Botas committedJul 21, 2017 Configuration menu - View commit details
-
Copy full SHA for 84459d1 - Browse repository at this point
Copy the full SHA 84459d1View commit details -
make sure cython rebin_array returns nparray not memview
Alejandro Botas committedJul 21, 2017 Configuration menu - View commit details
-
Copy full SHA for 3581313 - Browse repository at this point
Copy the full SHA 3581313View commit details -
address unshared peaks in rebin_s2si_peak
Alejandro Botas committedJul 21, 2017 Configuration menu - View commit details
-
Copy full SHA for 7893243 - Browse repository at this point
Copy the full SHA 7893243View commit details -
stop penthesilea from printing garbage
a function in pmap_functions_c was printing a few integers for each event
Alejandro Botas committedJul 21, 2017 Configuration menu - View commit details
-
Copy full SHA for 523290e - Browse repository at this point
Copy the full SHA 523290eView commit details -
move load_dst to io.dst_io from reco.dst_functions
Alejandro Botas committedJul 21, 2017 Configuration menu - View commit details
-
Copy full SHA for 1380c2c - Browse repository at this point
Copy the full SHA 1380c2cView commit details -
S2Si sets its peaks to be those present in s2d. This is unacceptable when the sipms do not have signal during the one or more of the peaks in s2d. this has been fixed by check_s2d_and_s2sid_share_peaks in pmaps.pyx.
Configuration menu - View commit details
-
Copy full SHA for 25f8d79 - Browse repository at this point
Copy the full SHA 25f8d79View commit details -
Daemons (see Nother Lights) are people's (external) souls in Lyra's world. In IC daemons are slave (or companions) objects that can be invoked from cities. Consider for example the problem to add monitoring histograms to a given city. One solution is to write all the monitoring code in the city itself. Master would not like that for sure. The city becomes immediately cumbersome, and the code booking and filling histograms proliferates quickly. Plus, monitoring is tipically not stable, since the critical histograms tend to vary with time. The alternative is that the city calls a monitoring script (ms). At init level, the city will call the init level of the ms (say to book histograms). Then, at run level the city calls the run method of the ms (fill histograms) and finally, at at the end level the city calls the end method of the ms (save histograms to disk). The scheme is quite general, and applies to any type of script that a given city wants to invoke to delegate any task. Thus, a daemon is defined as an object with an __init__() method, a run method and an end method. Daemons live in the new daemons directory (package) in IC. In this commit, we define the base class and two toy daemons (Lyra and Asriel). The daemons are defined by the variable deamons in the corresponding city, which is associated to a list of names, each name representing one daemon (the city will invoke all of them). The code for daemon invocation is also defined in this commit.
Configuration menu - View commit details
-
Copy full SHA for b8e3dc9 - Browse repository at this point
Copy the full SHA b8e3dc9View commit details -
Add daemon capability to base_cities
Method run can now read the list of daemons, invoke them and set them to the class instances. In addition, run calls now the metod go and the method end. Method end calls the end method of all daemons and returns the counter dictionary.
Configuration menu - View commit details
-
Copy full SHA for a137a26 - Browse repository at this point
Copy the full SHA a137a26View commit details -
Add a test to show that irene with daemons runs.
In the spirit of testing the command line, this test runs irene with a configuration file that invokes two toy daemons, Lyra and Asriel.
Configuration menu - View commit details
-
Copy full SHA for 80058ff - Browse repository at this point
Copy the full SHA 80058ffView commit details -
Several tests modified to accept new format.
In several tests we need to change cnt = city.run() by city.run() cnt = city.end()
Configuration menu - View commit details
-
Copy full SHA for 13c07a4 - Browse repository at this point
Copy the full SHA 13c07a4View commit details -
Add daemons to IC Daemons (see Northern Lights) are people's (external) souls in Lyra's world. In IC, daemons are slave (or companions) objects that can be invoked from cities. Consider for example the problem to add monitoring histograms to a given city. One solution is to write all the monitoring code in the city itself. Master forbids! The city becomes immediately cumbersome, and the code booking and filling histograms proliferates quickly. Plus, monitoring is typically not stable, since the critical histograms tend to vary with time. The alternative is that the city calls a monitoring script (ms). At init level, the city will call the init level of the ms (say to book histograms). Then, at run level the city calls the run method of the ms (fill histograms) and finally, at at the end level the city calls the end method of the ms (save histograms to disk). The scheme is quite general, and applies to any type of script that a given city wants to invoke to delegate any task. Thus, a daemon is defined as an object with an init() method, a run method and an end method. Daemons live in the new daemons directory (package) in IC. In this PR we add to IC the functionality to handle daemons. 1-The config files for cities can now define the presence of daemons by adding a variable called (surprise!) daemons which is set to a list of names (see irene_example_daemon_config.conf) 2-The method drive in base city parses the names and calls function invoke_daemons() to return instances of the corresponding classes, which must be defined in the daemon directory (see examples lyra.py and asriel.py). 3-Also in drive, the instances of the daemons are set as attributes of the cities, which can now call them. 4-A new method, in base_cities, called end() calls the end() method of the daemons. The run method of the daemons are called by the concrete cities.
Configuration menu - View commit details
-
Copy full SHA for e790e10 - Browse repository at this point
Copy the full SHA e790e10View commit details
Commits on Jul 22, 2017
-
Base cities has been refactored to introduce three new cities: 1) RawCity: a city that reads RawData. 2) PmpCity: a city that reads PMAPS. 3) DstCity: a city that reads DSTs (KDSts), formely called MapCity. Inheritance from those cities provides common functionality for the file_loop() method. Thus, Irene, Isidora and Diomira, all are RawCities (although Diomira reads MCRD while Irene and Isidora read RWF), Dorothea and Penthesilea are PmpCities and Zaira is so far the only example of a DstCity (but there will be likely others). The cities still keep a linear scheme of inheritance, since DeconvolutionCity inherits from RawDataCity propagating the functionality to Irene and Isidora (both of them Deconvolution cities) while KrCity inherits from DstCity, propagating the functionality to Dorothea and Penthesilea. The base clase formely called SensorResponseCity has been renamed to MonteCarloCity. It inherits from RawCity (since it reads raw data) and provides the functionality for Sensor Response Simulation AND Trigger simulation.
Configuration menu - View commit details
-
Copy full SHA for b8b9ae4 - Browse repository at this point
Copy the full SHA b8b9ae4View commit details -
Configuration files have been refactored to reflect the new inheritance structure of cities. Thus, raw_data_city.conf includes city.conf while deconvolution_city.conf now includes raw_data_city.conf, and son on.
Configuration menu - View commit details
-
Copy full SHA for abfc6e8 - Browse repository at this point
Copy the full SHA abfc6e8View commit details -
Move merge_two_dicts from base_cities to core_functions.
This general-use function was in the wrong place and has been relocated.
Configuration menu - View commit details
-
Copy full SHA for 8367cb9 - Browse repository at this point
Copy the full SHA 8367cb9View commit details -
There are two types of Raw Waveforms, RWF and MCRD. A RawCity defines by configuration which type of raw waveform is using. The exception UnknownRWF is raised if an unknown type of Raw Waveform (other than or MCRD)
Configuration menu - View commit details
-
Copy full SHA for 0623530 - Browse repository at this point
Copy the full SHA 0623530View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e0aa6c - Browse repository at this point
Copy the full SHA 1e0aa6cView commit details
Commits on Jul 24, 2017
-
Further refactoring of base_cities
This commits continues the refactoring of base_cities. The most important addition is the TriggerEmulationCity, which allows the emulation of the trigger. Class MonteCarloCity inherits now from TriggerEmulationCity (which provides the capability to read Raw Waveforms), and Diomira inherits from MoteCarloCity (and thus from TriggerEmulationCity). This scheme allows Diomira to read raw data (MCRD), simulate sensor response (functionality from MonteCarloCity) and emulate trigger (functionality from TriggerEmulationCity). In addition, this commit includes: 1. legal and credits 2. cosmetics 3. re-organization of methods 4. Class PmpCity is rebaptized PCity (to avoid confusion with PmapCity)
Configuration menu - View commit details
-
Copy full SHA for ac74c44 - Browse repository at this point
Copy the full SHA ac74c44View commit details -
Complete TriggerFilter module.
The Trigger filter module selects events that pass the trigger. This commits fixes bugs and completes the code that is now passing tests.
Configuration menu - View commit details
-
Copy full SHA for 70a748c - Browse repository at this point
Copy the full SHA 70a748cView commit details -
Exceptions FileLoopMethodNotSet and EventLoopMethodNotSet are added to the IC suite. Those exceptions are triggered if the file_loop (or event_loop) method defined in the base class are nor superseeded.
Configuration menu - View commit details
-
Copy full SHA for 3c4e710 - Browse repository at this point
Copy the full SHA 3c4e710View commit details -
find_s12 function has no optional parameters.
All parameters in find_s12 function must be provided by the calling functions find_s1 and find_2. Consequently, no optional parameters have been left.
Configuration menu - View commit details
-
Copy full SHA for 0a84535 - Browse repository at this point
Copy the full SHA 0a84535View commit details -
Diomira has been refactored so that, in addition to simulate sensor response it can now emulate the S2 trigger (and select events that pass the trigger). Tests have been fixed accordingly.
Configuration menu - View commit details
-
Copy full SHA for 59cf1be - Browse repository at this point
Copy the full SHA 59cf1beView commit details -
All configuration files have been adapted to reflect the changes in base_cities and in Diomira and friends.
Configuration menu - View commit details
-
Copy full SHA for ad01428 - Browse repository at this point
Copy the full SHA ad01428View commit details -
File trigger_emulation_city.conf now defines the trigger emulation
Configuration menu - View commit details
-
Copy full SHA for 61e51df - Browse repository at this point
Copy the full SHA 61e51dfView commit details -
PATH_OUT was pointing to the wrong spot.
Configuration menu - View commit details
-
Copy full SHA for a98aded - Browse repository at this point
Copy the full SHA a98adedView commit details -
This PR transfers to Diomira the functionality intended for Cecilia who knows rests in peace until next incarnation. The PR introduces also a number of improvements, whose need has been revealed by the need to emulate the trigger. Specifically in this PR: Base cities has been refactored to introduce three new cities: RawCity: a city that reads RawData. PCity: a city that reads PMAPS. DstCity: a city that reads DSTs (KDSts), formely called MapCity. Inheritance from those cities provides common functionality for the file_loop() method. Thus, Irene, Isidora and Diomira, all are RawCities (although Diomira reads MCRD while Irene and Isidora read RWF), Dorothea and Penthesilea are PCities and Zaira is so far the only example of a DstCity (but there will be likely others). The cities still keep a linear scheme of inheritance, since DeconvolutionCity inherits from RawCity propagating the functionality to Irene and Isidora (both of them Deconvolution cities) while KrCity inherits from DstCity, propagating the functionality to Dorothea and Penthesilea. Furthermore this PR adds a TriggerEmulationCity, which allows the emulation of the trigger. The base clase formerly called SensorResponseCity has been renamed to MonteCarloCity and made to inherit from TriggerEmulationCity (which provides the capability to read RawWaveforms). Finally, Diomira inherits from MoteCarloCity (and thus from TriggerEmulationCity). This scheme allows Diomira to read raw data (MCRD), simulate sensor response (functionality from MonteCarloCity) and emulate trigger (functionality from TriggerEmulationCity). Configuration files have been refactored to reflect the new inheritance structure of cities.
Configuration menu - View commit details
-
Copy full SHA for e6c0dca - Browse repository at this point
Copy the full SHA e6c0dcaView commit details -
Take negative run numbers for MC
If the user specifies a negative run number, the result obtained will be the same as the absolute value of that run number. The negative sign implies that config file is for MC.
Configuration menu - View commit details
-
Copy full SHA for d3a7f8b - Browse repository at this point
Copy the full SHA d3a7f8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4af511e - Browse repository at this point
Copy the full SHA 4af511eView commit details -
Take negative run numbers for MC
This PR changes the way we use the DB. Instead of using just run number 0 for MC, now the idea is to put a negative number. The configuration obtained will be the same as the one from the same positive run number. The negative sign will indicate that is an MC file.
Configuration menu - View commit details
-
Copy full SHA for 6c2c593 - Browse repository at this point
Copy the full SHA 6c2c593View commit details
Commits on Jul 25, 2017
-
Do not take rebin defaults for S1 and S2.
For the usual application (search for S1 and S2 over the calibrated sum), S1 is not rebinned and S2 is rebinned to 1 mus. However there are other user cases. Specifically, when emulating the trigger, the search for peaks over individual PMTs is done with waveforms that are deconvoluted but not rebinned. Thus, it is a bad idea to hard-wire the defaults. With this commit they are introduced as parameters.
Configuration menu - View commit details
-
Copy full SHA for e04f994 - Browse repository at this point
Copy the full SHA e04f994View commit details -
Configuration menu - View commit details
-
Copy full SHA for 738a91d - Browse repository at this point
Copy the full SHA 738a91dView commit details -
Adapt configuration files for diomira and friends.
The configuration file of diomira, pamp_city and trigger_emulation_city are adapted to reflect correct values for all parameters.
Configuration menu - View commit details
-
Copy full SHA for dba9d4e - Browse repository at this point
Copy the full SHA dba9d4eView commit details -
For unknown reasons, we were passing the wrong calibration (sipm_adc_to_pes) constant to the simulation of the pmts. Now fixed!
Configuration menu - View commit details
-
Copy full SHA for 4e10f61 - Browse repository at this point
Copy the full SHA 4e10f61View commit details -
Pass run_number to FEE and friends.
Diomira simulates the response of the PMTs FEE. It uses the data base to pass the various calibration constants needed, including deconvolution constants. However, it was assuming that run_number for MC was *always* zero, as per the previous convention. This has changed now (MC run number is negative and will match the corresponding run number in data) and thus it is needed to propagate run_number all the way up to FEE.
Configuration menu - View commit details
-
Copy full SHA for 7ace9e4 - Browse repository at this point
Copy the full SHA 7ace9e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51f0f0b - Browse repository at this point
Copy the full SHA 51f0f0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4d2a40 - Browse repository at this point
Copy the full SHA b4d2a40View commit details -
This small PR fixes a minor (major) issue. DIOMIRA simulates both the response of the sensors and the trigger. When emulating the response of the trigger, one is simulating the search on the FPGA on peaks in individual PMTs. This search is performed with the same algos used to search s1 and s2 in the calibrated sum, but the individual PMTs are neither calibrated, nor rebinned. Consequently, the search for s1 and s2 must allow the possibility that the waveform is not rebined (previously we never rebinned s1 but always rebinned s2). This is done in this PR, together with defining proper parameters for DIOMIRA.
Configuration menu - View commit details
-
Copy full SHA for d5524c9 - Browse repository at this point
Copy the full SHA d5524c9View commit details -
Move class Voxel to event_model.
Class Voxel is moved to event_model where it belongs.
Configuration menu - View commit details
-
Copy full SHA for 644ab06 - Browse repository at this point
Copy the full SHA 644ab06View commit details -
Voxel, Hit and Cluster are all similar beasts. This is expressed by defining a common ancestor BHit (actually BHit is equal to Voxel, but we keep a separate definition for clarity). The inheritance chain enhances the common structure of the objects and avoid duplications.
Configuration menu - View commit details
-
Copy full SHA for 86b8f8e - Browse repository at this point
Copy the full SHA 86b8f8eView commit details -
Change pos to posxy in Cluster.
The refactoring of Cluster-Hit-Voxel has shown a feature that was identified long ago and then forgotten. Namely, in a cluster, the field called pos should be called posxy (since it describes a xy point). This is now necessary to avoid conflict with the pos property which is (ast it should) xyz.
Configuration menu - View commit details
-
Copy full SHA for 6fdad42 - Browse repository at this point
Copy the full SHA 6fdad42View commit details -
New test of voxel class and adapt old tests.
A new test for Voxel has been added and all the tests have been adapated (in particular to the change: pos to posxy in Cluster).
Configuration menu - View commit details
-
Copy full SHA for f4a1e72 - Browse repository at this point
Copy the full SHA f4a1e72View commit details -
Configuration menu - View commit details
-
Copy full SHA for cafc475 - Browse repository at this point
Copy the full SHA cafc475View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ef0daf - Browse repository at this point
Copy the full SHA 5ef0dafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 822d625 - Browse repository at this point
Copy the full SHA 822d625View commit details -
Configuration menu - View commit details
-
Copy full SHA for e937e0c - Browse repository at this point
Copy the full SHA e937e0cView commit details -
make function compute_csum_and_pmaps private.
This function is used internally in tests, but function compute_pmaps_from_rwf should be used in the API instead. Thus, it is made private. Tests are modified accordingly.
Configuration menu - View commit details
-
Copy full SHA for 291f9f9 - Browse repository at this point
Copy the full SHA 291f9f9View commit details -
Pass correct named tuple to compute_pmaps_from_rwf
CalibVectors rather than CalibParams
Configuration menu - View commit details
-
Copy full SHA for 2f14396 - Browse repository at this point
Copy the full SHA 2f14396View commit details -
Conditional emulation of trigger.
The current version of trigger emulation only emulates trigger on S2. The condition of calling the emulation only if trigger_type is set to S2, permits NOT to call the trigger emulation if the trigger is set on S1 (or the user does not want to emulate the trigger)
Configuration menu - View commit details
-
Copy full SHA for fdb9937 - Browse repository at this point
Copy the full SHA fdb9937View commit details
Commits on Jul 26, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 7fcc56d - Browse repository at this point
Copy the full SHA 7fcc56dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 327c737 - Browse repository at this point
Copy the full SHA 327c737View commit details -
Cecilia has merge her soul with that of Diomira and needs to further configuration.
Configuration menu - View commit details
-
Copy full SHA for 1b37d8e - Browse repository at this point
Copy the full SHA 1b37d8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c258815 - Browse repository at this point
Copy the full SHA c258815View commit details -
Protection agains empty events.
The Monte Carlo simulation produces occasional empty events, which are characterized by flat waveforms running within the noise line. Irene had already implemented a protection against those events, which required that the sum of the zero-supressed waveforms were not zero. However, a closely related cousin is an event whose zero-supressed waveform yields a small number (due to noise fluctuations) but still yields no s1 or s2 indexes on the search (e.g, once a cut on 1-2 pes is imposed the waveform happens to be empty). This commit expands the defence against such type of events, organizes it in a function and adds counters for classification of the zombies.
Configuration menu - View commit details
-
Copy full SHA for 79732cd - Browse repository at this point
Copy the full SHA 79732cdView commit details -
This PR includes fixes needed to extend the functionality of Penthesilea (so that it can call Paolina). The most significant change is the re-factoring of the Voxel-Hit-Cluster classes that are now organised consistently. All classes are derived from a BHit class (which defines a base-hit (x,y,z,E) and is identical to Voxel, which keeps a different name for clarity). An old-standing issue related with Cluster has been fixed. Cluster had a "pos" attribute which returned an (x,y) vector, while a "pos" attribute of a hit should return an (x,y,z) vector, has it happens now. The old "pos" in Cluster has been renamed to "posxy". In addition a number of small miscellaneous fixes and improvements have been implemented.
Configuration menu - View commit details
-
Copy full SHA for f5aef7b - Browse repository at this point
Copy the full SHA f5aef7bView commit details -
Alejandro Botas authored and Alejandro Botas committed
Jul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 81f0e1f - Browse repository at this point
Copy the full SHA 81f0e1fView commit details -
write _find_peaks for more modular _find_s12
find_s12 is too big for no good reason. By splitting it up we are able to easily find the s2pmt (s2s of the individual pmts). The code is also more modular legible testable.
Alejandro Botas authored and Alejandro Botas committedJul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 2d958fe - Browse repository at this point
Copy the full SHA 2d958feView commit details -
add function extract_peaks_from_waveform (last part of find_s12)
Alejandro Botas authored and Alejandro Botas committedJul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for e27b476 - Browse repository at this point
Copy the full SHA e27b476View commit details -
test select_peaks_of_allowed_length
Alejandro Botas authored and Alejandro Botas committedJul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 7200d24 - Browse repository at this point
Copy the full SHA 7200d24View commit details -
test to make sure find_peaks finds the correct peak indx bounds
Alejandro Botas authored and Alejandro Botas committedJul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 27ee5d9 - Browse repository at this point
Copy the full SHA 27ee5d9View commit details -
test find_peaks does not find_peaks when index spaced by 1 + stride
Alejandro Botas authored and Alejandro Botas committedJul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for f9ab034 - Browse repository at this point
Copy the full SHA f9ab034View commit details -
test extract_peaks_from_waveforms
Alejandro Botas authored and Alejandro Botas committedJul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 6b8c1ff - Browse repository at this point
Copy the full SHA 6b8c1ffView commit details -
find_peaks does not have kwarg length
Alejandro Botas authored and Alejandro Botas committedJul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 22f1fea - Browse repository at this point
Copy the full SHA 22f1feaView commit details -
Alejandro Botas authored and Alejandro Botas committed
Jul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for c7c3edd - Browse repository at this point
Copy the full SHA c7c3eddView commit details -
find_peaks DOES have kwarg length
Alejandro Botas authored and Alejandro Botas committedJul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 29f646d - Browse repository at this point
Copy the full SHA 29f646dView commit details -
cythonize the rest of the modular find_s12 functions
Alejandro Botas authored and Alejandro Botas committedJul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 579a35e - Browse repository at this point
Copy the full SHA 579a35eView commit details -
Alejandro Botas authored and Alejandro Botas committed
Jul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for 97bd553 - Browse repository at this point
Copy the full SHA 97bd553View commit details -
Alejandro Botas authored and Alejandro Botas committed
Jul 26, 2017 Configuration menu - View commit details
-
Copy full SHA for fdbefed - Browse repository at this point
Copy the full SHA fdbefedView commit details
Commits on Jul 27, 2017
-
Alejandro Botas authored and Alejandro Botas committed
Jul 27, 2017 Configuration menu - View commit details
-
Copy full SHA for 6b2f161 - Browse repository at this point
Copy the full SHA 6b2f161View commit details -
make sure modular functions perform identically to find_s12
Alejandro Botas authored and Alejandro Botas committedJul 27, 2017 Configuration menu - View commit details
-
Copy full SHA for c80aa92 - Browse repository at this point
Copy the full SHA c80aa92View commit details -
add more tests for S2Pmt methods
Alejandro Botas authored and Alejandro Botas committedJul 27, 2017 Configuration menu - View commit details
-
Copy full SHA for c9cb9bf - Browse repository at this point
Copy the full SHA c9cb9bfView commit details -
improved check that s2d and s2pmtd are consistent in S2Pmt
Alejandro Botas authored and Alejandro Botas committedJul 27, 2017 Configuration menu - View commit details
-
Copy full SHA for d8623b6 - Browse repository at this point
Copy the full SHA d8623b6View commit details -
add ic exception inconsistent s2d and s2pmtd
upon initialization of an S2Pmt, we assert that the energies in each s2d peak are the sum of the energies across pmts in that peak in s2pmtd, for each time bin.
Alejandro Botas authored and Alejandro Botas committedJul 27, 2017 Configuration menu - View commit details
-
Copy full SHA for 167a3dd - Browse repository at this point
Copy the full SHA 167a3ddView commit details
Commits on Jul 28, 2017
-
make find_peaks, select_peaks_..., and extract_peaks... cpdef
Alejandro Botas authored and Alejandro Botas committedJul 28, 2017 Configuration menu - View commit details
-
Copy full SHA for d7b44b2 - Browse repository at this point
Copy the full SHA d7b44b2View commit details -
have python find_s12 use modular functions
Alejandro Botas authored and Alejandro Botas committedJul 28, 2017 Configuration menu - View commit details
-
Copy full SHA for 0e5074d - Browse repository at this point
Copy the full SHA 0e5074dView commit details -
accomodate rebin flag, for now
Alejandro Botas authored and Alejandro Botas committedJul 28, 2017 Configuration menu - View commit details
-
Copy full SHA for 9125c07 - Browse repository at this point
Copy the full SHA 9125c07View commit details -
make select_peaks_of_allowed_length private
Alejandro Botas authored and Alejandro Botas committedJul 28, 2017 Configuration menu - View commit details
-
Copy full SHA for 9e5ee94 - Browse repository at this point
Copy the full SHA 9e5ee94View commit details -
Functions for finding and using s2s from individual pmts
These additions allow IC to find and interact with the s2s of individual pmts. find_s12 has been broken up into 3 functions find_peaks, select_peaks_of_allowed_length, and extract_peaks_from_waveform (in python and cython). find_s12 was too big. First it found peaks, then it selected peaks of the correct length, then it put those peaks into a dictionary. Without changing the inputs/outputs, adding flags, and other technical debt, find_s12 would not allow us to efficiently find the s12s of individual pmts. Note finding the s2s of individual pmts is not quite as simple as it first appears since we need to rebin each pmt cwf in the same exact way we rebinned the csum, so that the rebinned time bins of the s2pmtd match and sum to s2d for each peak. Also, breaking find_s12 into modular functions allows for much better testing. a class, S2Pmt has been added to pmaps.pyx. It is initialized with dictionaries s2d and s2pmtd which maps peak_no -- > [[pmt0E], [pmt1E], ..., [pmtnE]]. People should look at this and make sure they like the basic structure. a function get_s2pmtd has been added to peak functions. It takes as input CWF and peak_bounds. peak_bounds is a dictionary mapping peak_no --> i_start, i_stop of the s2 peaks found in csum. Note peak_bounds is the output of find_peaks, and get_s2pmtd makes uses extract_peaks_from_waveform to construct s2pmtd --> tearing find_s12 apart was worth it. tests for all this stuff ----------- I have only created the free functions, I have not yet started messing around with any of the cities or base cities, so I have not deleted find_s12. If people are happy i or whoever can update pmap_city and whatever else to use the new functions.
Configuration menu - View commit details
-
Copy full SHA for 2da7d24 - Browse repository at this point
Copy the full SHA 2da7d24View commit details -
get rid of redundant rebin flag, we already have rebin_stride
our find s1/s2 algorithms took as input both the amount we wanted to rebin, rebin_stride, and a flag, rebin. The flag is redundant
Alejandro Botas authored and Alejandro Botas committedJul 28, 2017 Configuration menu - View commit details
-
Copy full SHA for 9a3ef29 - Browse repository at this point
Copy the full SHA 9a3ef29View commit details
Commits on Aug 9, 2017
-
Modify diomira test to check event numbers in MCTracks
Test for issue next-exp#287.
Configuration menu - View commit details
-
Copy full SHA for 493e856 - Browse repository at this point
Copy the full SHA 493e856View commit details -
Check event number in mc_track_writer
When reading MCTrack table from input file, one has to check event number in the input row to know when to stop copying rows.
Configuration menu - View commit details
-
Copy full SHA for d6f37df - Browse repository at this point
Copy the full SHA d6f37dfView commit details
Commits on Aug 10, 2017
-
Fix event number in MCTrack table
There was a bug in the mc_track_writer that was setting all event numbers to zero. It is now fixed and one test has been updated to check this condition. This closes next-exp#287.
Configuration menu - View commit details
-
Copy full SHA for 2f94a6e - Browse repository at this point
Copy the full SHA 2f94a6eView commit details
Commits on Aug 18, 2017
-
make pf.get_s2pmtd --> pf.get_s12pmtd
Alejandro Botas authored and Alejandro Botas committedAug 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 7f17cf0 - Browse repository at this point
Copy the full SHA 7f17cf0View commit details -
change S2Pmt(S2) --> S12Pmt(S12)
The same class can also be used to hold the S1s of individual pmts
Alejandro Botas authored and Alejandro Botas committedAug 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 9ec76d6 - Browse repository at this point
Copy the full SHA 9ec76d6View commit details -
change name of exception to InconsistentS12dPmtsd
Alejandro Botas authored and Alejandro Botas committedAug 18, 2017 Configuration menu - View commit details
-
Copy full SHA for 5badd04 - Browse repository at this point
Copy the full SHA 5badd04View commit details -
Alejandro Botas authored and Alejandro Botas committed
Aug 18, 2017 Configuration menu - View commit details
-
Copy full SHA for c417b0f - Browse repository at this point
Copy the full SHA c417b0fView commit details
Commits on Aug 21, 2017
-
Allow icusers to study s1s of individual pmts
Before we could only look at the s2s of individual pmts, even though the code had all the functionality necessary to look at the s1s of individual pmts. Even though we will not typically use/save this data, it is useful for some analysis and can help us better understand our detector and make cool plots, and it costs nothing.
Configuration menu - View commit details
-
Copy full SHA for 9866740 - Browse repository at this point
Copy the full SHA 9866740View commit details -
Add methods contains and repr to minmax.
In particular, method contains returns true if a given number is in the closed interval defined by the minmax
Configuration menu - View commit details
-
Copy full SHA for 695bdf5 - Browse repository at this point
Copy the full SHA 695bdf5View commit details -
total_energy (width, height) _ above_threshold return the energy, width and height of the peak counting only the samples above a given threshold.
Configuration menu - View commit details
-
Copy full SHA for 394f0c2 - Browse repository at this point
Copy the full SHA 394f0c2View commit details -
This filter has been refactored using the high-level interface of s1, s2 and s2si rather than the low-level dictionaries previously used. In addition, typehints have been added to some of the functions.
Configuration menu - View commit details
-
Copy full SHA for 0cfa55e - Browse repository at this point
Copy the full SHA 0cfa55eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73e4c05 - Browse repository at this point
Copy the full SHA 73e4c05View commit details -
Configuration menu - View commit details
-
Copy full SHA for b40fef3 - Browse repository at this point
Copy the full SHA b40fef3View commit details -
Added/fixed _str__ methods, fixed a parameter wrongly set in s12_selector.conf
Configuration menu - View commit details
-
Copy full SHA for c0ba02c - Browse repository at this point
Copy the full SHA c0ba02cView commit details -
Import PMAPS classes to event_model.
This is done for clarity, so that all event_model classes can be imported from event_model.
Configuration menu - View commit details
-
Copy full SHA for 438f5f0 - Browse repository at this point
Copy the full SHA 438f5f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58faec3 - Browse repository at this point
Copy the full SHA 58faec3View commit details -
Add voxels_from_track_graph function to paolina_functions.
The function is added to return a list of voxels from the nodes of the (track) graph.
Configuration menu - View commit details
-
Copy full SHA for 9ba849a - Browse repository at this point
Copy the full SHA 9ba849aView commit details -
Add new classes representing Tracks and Blobs.
Classes VoxelCollection, Track, Blob and TrackCollection have been added. A VoxelCollection is simply a collection of voxles. A Track is a subclass of VoxelCollection defined by two features: a collection of connected voxels and a pair of blobs, defining its extremes. A Blob is also a VoxelCollection, defining the set of Voxels in a given radius near the extrema of the track. A TrackCollection is a (writable) collection of Voxels.
Configuration menu - View commit details
-
Copy full SHA for 7f96996 - Browse repository at this point
Copy the full SHA 7f96996View commit details -
Add a text to function voxels_from_track_graph.
Test checks correct behaviour of the function (which has been fixed thanks to test).
Configuration menu - View commit details
-
Copy full SHA for 4fa461b - Browse repository at this point
Copy the full SHA 4fa461bView commit details -
Improvements and additions to paolina_functions.
function voxels_within_radius returns a list of voxels whose distances are small than radius. function blobs return a list of voxels within a radius of the extrema. corrected the type of find_extrema.
Configuration menu - View commit details
-
Copy full SHA for c227982 - Browse repository at this point
Copy the full SHA c227982View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6e0ac7 - Browse repository at this point
Copy the full SHA d6e0ac7View commit details -
Improve definition of Blob class.
Blob takes now a list of voxels (just like track) and computes the energy directly from the list.
Configuration menu - View commit details
-
Copy full SHA for b299de7 - Browse repository at this point
Copy the full SHA b299de7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0ca8bb - Browse repository at this point
Copy the full SHA e0ca8bbView commit details -
Add two new functions and complete annotation.
Configuration menu - View commit details
-
Copy full SHA for 946e71d - Browse repository at this point
Copy the full SHA 946e71dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f2d8ae - Browse repository at this point
Copy the full SHA 6f2d8aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for e537be2 - Browse repository at this point
Copy the full SHA e537be2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6890a87 - Browse repository at this point
Copy the full SHA 6890a87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8805cef - Browse repository at this point
Copy the full SHA 8805cefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 711bd2b - Browse repository at this point
Copy the full SHA 711bd2bView commit details -
Disable temporarilty ISIDORA execution line test.
Isidora is giving a failure in Travis that cannot be reproduced locally. Since Isidora is essentially a fossil we disable this test for the moment, to be reviewed asap.
Configuration menu - View commit details
-
Copy full SHA for 32ec7d8 - Browse repository at this point
Copy the full SHA 32ec7d8View commit details -
Refactors s12_filter so that it uses the high-level interface. Adds new classes representing Tracks and Blobs (as well as their containers) Adds new functionality to paolina_functions Add new helper functions (e.g, functions to draw voxels and tracks). Adds type hints (to Paolina functions, the idea is to add type hints to all functions in IC).
Configuration menu - View commit details
-
Copy full SHA for f712cf4 - Browse repository at this point
Copy the full SHA f712cf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab917b0 - Browse repository at this point
Copy the full SHA ab917b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 703b0cf - Browse repository at this point
Copy the full SHA 703b0cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 030e3d3 - Browse repository at this point
Copy the full SHA 030e3d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62940b5 - Browse repository at this point
Copy the full SHA 62940b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9614be - Browse repository at this point
Copy the full SHA c9614beView commit details -
Corona improvements part 1: exceptions
Improves the management of exceptions in the corona algorithms
Configuration menu - View commit details
-
Copy full SHA for 03d7bb1 - Browse repository at this point
Copy the full SHA 03d7bb1View commit details
Commits on Aug 22, 2017
-
Configuration menu - View commit details
-
Copy full SHA for a0542b5 - Browse repository at this point
Copy the full SHA a0542b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for a515161 - Browse repository at this point
Copy the full SHA a515161View commit details -
Extend functionality of corona algorithm.
corona is modified so that a global baricenter is called if the corona algorithm is called with a negative value of the lm_radius. This permits the use of corona as a general algorithm, avoiding some of the bookeeping issues associated with the use of two different reconstruction algorithms.
Configuration menu - View commit details
-
Copy full SHA for cb5cedc - Browse repository at this point
Copy the full SHA cb5cedcView commit details -
The various exceptions associated with a failure in the tracking plane reconstruction are now derived from a base class XYRecoFail, allowing a more uniform treatment.
Configuration menu - View commit details
-
Copy full SHA for 17af3dc - Browse repository at this point
Copy the full SHA 17af3dcView commit details -
Adapt configuration files for Penthesilea.
Penthesilea depends on kr_city and hit_city configuration files. All of them have been adapted so that: 1) the reconstruction algorithm (barycenter or corona) is no longer called. We use *always* corona. 2) corona depends of a number of parameters which are now passed through the configuration files. 3) the default for kr_city is to pass lm_radius = -1, in which case an overall barycenter is computed. 4) the default for hit_city is to pass a 3 x 3 corona, using lm_radius = 0 and new_lm_radius = 15.
Configuration menu - View commit details
-
Copy full SHA for e3ba289 - Browse repository at this point
Copy the full SHA e3ba289View commit details -
Refactor reconstruction algorithms.
1.- The code no longer calls two algorithms (barycenter or corona) which had to be selected by card, but a single algorithm (corona) with a number of parameters. In particular, lm_radius can be set to a negative number in which case corona will return an overall barycenter (using all SiPms above Qthr threshold). 2. The condition imposing a single cluster when filling a kr_event has been removed. That condition assumed that an overall barycenter returning a single cluster *had to be used* in kr_city (e.g, to compute KDSTs and maps). However, this is not a must and in fact, better (less biased) results can in principle be obtained using a corona algorithm which uses a limited number of SiPms around the local maximum. On the other hand, the use of a corona may result in more than one cluster in the tracking plane, even in the case of single-particles (e.g, X-rays or Krypton), due, for example, to noisiy SiPMs. However, the energy of the "true cluster" will be closer to the energy of the S2 than the energy of any fake cluster. This criterium is used to decide among clusters if there is more than one. 3. In the case of hit_city, if there is a reconstruction failure a hit is still formed using a "NN cluster" (a Non-Numeric cluster). This allows to keep track of the energy of the slice that failed to produce a cluster.
Configuration menu - View commit details
-
Copy full SHA for 6cc8959 - Browse repository at this point
Copy the full SHA 6cc8959View commit details
Commits on Aug 23, 2017
-
Configuration menu - View commit details
-
Copy full SHA for dc95417 - Browse repository at this point
Copy the full SHA dc95417View commit details -
Fixed assorted issues in xy_algorithms.
A number of issues have been fixed in xy_algorithms, including a bug introduced by accident and now fixed. The most important change is that dummy clusters are written even when the XY algorithm (corona) fails to find them, so that one can keep track of those cases.
Configuration menu - View commit details
-
Copy full SHA for 4d08d66 - Browse repository at this point
Copy the full SHA 4d08d66View commit details
Commits on Aug 24, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 0ad518d - Browse repository at this point
Copy the full SHA 0ad518dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 671fce8 - Browse repository at this point
Copy the full SHA 671fce8View commit details -
A counter is introduced In order to keep track of the number of times that we produce two clusters when running Corona for Krypton events. At the same time, further counters are introduced for better book-keeping.
Configuration menu - View commit details
-
Copy full SHA for ea39de4 - Browse repository at this point
Copy the full SHA ea39de4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7de77e2 - Browse repository at this point
Copy the full SHA 7de77e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20802d3 - Browse repository at this point
Copy the full SHA 20802d3View commit details -
Add a new test file (with hits).
This test file is used to test reading of hits. It is very small and so it won't overload our data storage
Configuration menu - View commit details
-
Copy full SHA for e203220 - Browse repository at this point
Copy the full SHA e203220View commit details -
Refactor dst_io splitting hits_io. Add tests.
dst_io has been refactored. The file dst_io contains now only general reading functions (e.g, load_dst), while hits_io now contains all the functionality related with reading and writing hits. Tests have been added to exercize the new reading functionality.
Configuration menu - View commit details
-
Copy full SHA for 2a01e94 - Browse repository at this point
Copy the full SHA 2a01e94View commit details -
Add function to read hits skiping NN and test.
Hits can be of type "NN" (No number), when the cluster algorithm fails to find a XY position. Depending on the application the user may be interested in skipping completely such hits. Thus, a function to return only hits which are not of type NN has been added, plus the corresponding test.
Configuration menu - View commit details
-
Copy full SHA for de6f999 - Browse repository at this point
Copy the full SHA de6f999View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b94cbf - Browse repository at this point
Copy the full SHA 9b94cbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c31d566 - Browse repository at this point
Copy the full SHA c31d566View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5ed894 - Browse repository at this point
Copy the full SHA f5ed894View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b95784 - Browse repository at this point
Copy the full SHA 1b95784View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45284fd - Browse repository at this point
Copy the full SHA 45284fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ebb168b - Browse repository at this point
Copy the full SHA ebb168bView commit details
Commits on Aug 25, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 6980e2e - Browse repository at this point
Copy the full SHA 6980e2eView commit details -
Add extra option to profile functions
now they can return standard deviation instead of mean error
Configuration menu - View commit details
-
Copy full SHA for bb4a387 - Browse repository at this point
Copy the full SHA bb4a387View commit details
Commits on Aug 27, 2017
-
Add functions to load MC traks and hits.
A new module mchits_io containing functions to read the MCTraks pytable and return event dictionaries is added. Event dictionaries for MCTrks are provided by function read_mctracks while event dictionaries for all the hits produced by and electron or a positron in the event are produced by load_mchits. A simple test that checks that the hits readout in one event correspond to those in disk (hard wired in the code) is added.
Configuration menu - View commit details
-
Copy full SHA for d930e9f - Browse repository at this point
Copy the full SHA d930e9fView commit details -
Minor fixes in pmpas_functions_c.pyx
Minor fixes (e.g, definition of type for max_events) added to function.
Configuration menu - View commit details
-
Copy full SHA for 6910642 - Browse repository at this point
Copy the full SHA 6910642View commit details -
New classes defining MCParticle and MCHit.
High level classes defining MCParticle and MCHit have been added. The functions in module mchit_io file dictionary events of instances of these classes, e.g, {event_no:MCParticle}, {event_no:MCHit}
Configuration menu - View commit details
-
Copy full SHA for 9cce4c0 - Browse repository at this point
Copy the full SHA 9cce4c0View commit details -
Add a fixture to test MC particle and hits.
The fixture takes a MCRD file with MCTRK data and passes the data corresponding to the first particle (with 4 hits) in the table.
Configuration menu - View commit details
-
Copy full SHA for aae7313 - Browse repository at this point
Copy the full SHA aae7313View commit details -
Refactor mchits_io and add a second test.
A minor refactoring to return data in a more consistent way. load_mcparticles(file_name) --> returns event_dicts for particles load_mchits(file_name) --> returns event_dicts for hits. In addition a second test has been added. The test checks that the first particle and all its hits in disk is correctly loaded into the high level class. The two existing tests, while simple, check that the data format is correct and the high level classes are correctly instantiated.
Configuration menu - View commit details
-
Copy full SHA for a0e2637 - Browse repository at this point
Copy the full SHA a0e2637View commit details
Commits on Aug 28, 2017
-
MC hits and particles functions and classes
A new module mchits_io containing functions to read the MCTraks pytable and return high level event dictionaries is added. Two high level classes are added to the event_model module. MCParticle defines a MC particle MCHit defines a MC hit. functions in mchits_io module: oad_mcparticles(file_name) --> returns event_dicts for particles : {event_no:MCParticle} load_mchits(file_name) --> returns event_dicts for hits: {event_no:MCHit} Two tests have been added. The test check that the first particle and all its hits in disk is correctly loaded into the high level class (for for MCParticle and for MCHit) The tests, while simple, check that the data format is correct and the high level classes are correctly instantiated.
Configuration menu - View commit details
-
Copy full SHA for 8b765e5 - Browse repository at this point
Copy the full SHA 8b765e5View commit details -
delete correct_s1_ene from base_cities
Alejandro Botas authored and Alejandro Botas committedAug 28, 2017 Configuration menu - View commit details
-
Copy full SHA for bdcbe9f - Browse repository at this point
Copy the full SHA bdcbe9fView commit details
Commits on Aug 29, 2017
-
add functions for increasing s2si thresholds + tests
Alejandro Botas authored and Alejandro Botas committedAug 29, 2017 Configuration menu - View commit details
-
Copy full SHA for 19d4e57 - Browse repository at this point
Copy the full SHA 19d4e57View commit details
Commits on Aug 30, 2017
-
make raise_s2si_thresholds non-destructive
Alejandro Botas authored and Alejandro Botas committedAug 30, 2017 Configuration menu - View commit details
-
Copy full SHA for cd4fcce - Browse repository at this point
Copy the full SHA cd4fcceView commit details -
cythonize raise s2si thresholds functions
Alejandro Botas authored and Alejandro Botas committedAug 30, 2017 Configuration menu - View commit details
-
Copy full SHA for 351ea82 - Browse repository at this point
Copy the full SHA 351ea82View commit details -
add type hints for raise sipm threshold functions
Alejandro Botas authored and Alejandro Botas committedAug 30, 2017 Configuration menu - View commit details
-
Copy full SHA for bab781f - Browse repository at this point
Copy the full SHA bab781fView commit details -
have raise_s2si_thresholds call cython functions
Alejandro Botas authored and Alejandro Botas committedAug 30, 2017 Configuration menu - View commit details
-
Copy full SHA for 876a0c0 - Browse repository at this point
Copy the full SHA 876a0c0View commit details -
replace py impose_thr_sipm and thr_sipm_s2 functions with cython
Alejandro Botas authored and Alejandro Botas committedAug 30, 2017 Configuration menu - View commit details
-
Copy full SHA for a559671 - Browse repository at this point
Copy the full SHA a559671View commit details -
replace py delete_empty_s2si_peaks and _events with cython functions
Alejandro Botas authored and Alejandro Botas committedAug 30, 2017 Configuration menu - View commit details
-
Copy full SHA for c6f64eb - Browse repository at this point
Copy the full SHA c6f64ebView commit details -
Add funtions or increasing s2si thresholds
These are functions we can use to increase the cuts on the SiPMs: thr_sipm and thr_sipm_s2 The idea is that maybe we could initially run irene with cuts on the SiPMs on the low side, and have the ability to quickly increase them whenever we want without having to rerun all of irene.
Alejandro Botas authored and Jacek Generowicz committedAug 30, 2017 Configuration menu - View commit details
-
Copy full SHA for febecbe - Browse repository at this point
Copy the full SHA febecbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87ebaa6 - Browse repository at this point
Copy the full SHA 87ebaa6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2debd48 - Browse repository at this point
Copy the full SHA 2debd48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e10e1a - Browse repository at this point
Copy the full SHA 3e10e1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79d1aed - Browse repository at this point
Copy the full SHA 79d1aedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96007b4 - Browse repository at this point
Copy the full SHA 96007b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f83125 - Browse repository at this point
Copy the full SHA 3f83125View commit details -
Configuration menu - View commit details
-
Copy full SHA for 358800d - Browse repository at this point
Copy the full SHA 358800dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d51a93 - Browse repository at this point
Copy the full SHA 7d51a93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a3a050 - Browse repository at this point
Copy the full SHA 0a3a050View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14a8b41 - Browse repository at this point
Copy the full SHA 14a8b41View commit details -
This PR fixes a number of warnings issued when running tests. There were 3 types: 1. Operations on empty arrays. This has been fixed by introducing new functions to handle that particular case. 2. Overflow. Hypothesis floats were running up to 10**20, which caused overflow when calling np.std (which at some point squared the number). 3. Division by 0. This has been avoided by either removing those elements from the operation or treating the case separately. Closes next-exp#310.
Configuration menu - View commit details
-
Copy full SHA for 2217c62 - Browse repository at this point
Copy the full SHA 2217c62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 121f176 - Browse repository at this point
Copy the full SHA 121f176View commit details
Commits on Aug 31, 2017
-
Jacek Generowicz committed
Aug 31, 2017 Configuration menu - View commit details
-
Copy full SHA for d5ddfc8 - Browse repository at this point
Copy the full SHA d5ddfc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e353d2 - Browse repository at this point
Copy the full SHA 5e353d2View commit details
Commits on Sep 1, 2017
-
fix find_peaks to avoid error when no pmt signal after tmin
Alejandro Botas authored and Alejandro Botas committedSep 1, 2017 Configuration menu - View commit details
-
Copy full SHA for 25388dc - Browse repository at this point
Copy the full SHA 25388dcView commit details -
fix typo trheshold --> threshold
This fixes a typo propagated from pmaps.peak to a few different places in the repo. It is tested
Alejandro Botas authored and Alejandro Botas committedSep 1, 2017 Configuration menu - View commit details
-
Copy full SHA for a6b8cd0 - Browse repository at this point
Copy the full SHA a6b8cd0View commit details
Commits on Sep 2, 2017
-
Typo in return np.array(qs_slice)
ansimez authored and Alejandro Botas committedSep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for 3411410 - Browse repository at this point
Copy the full SHA 3411410View commit details -
Removed func _sipms_ids_and_charges_in_slice from pmaps_functions.py
ansimez authored and Alejandro Botas committedSep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for c481c97 - Browse repository at this point
Copy the full SHA c481c97View commit details -
delete _sipm_ids_and_charges_in_slice'
ansimez authored and Alejandro Botas committedSep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for fc8ab51 - Browse repository at this point
Copy the full SHA fc8ab51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 544badd - Browse repository at this point
Copy the full SHA 544baddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 433ccef - Browse repository at this point
Copy the full SHA 433ccefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 86383ca - Browse repository at this point
Copy the full SHA 86383caView commit details -
This PR indexes the kr table currently produced by Dorothea and adds a test to ensure all tables produced are properly indexed.
Configuration menu - View commit details
-
Copy full SHA for 7d7be45 - Browse repository at this point
Copy the full SHA 7d7be45View commit details -
add some writers to write s1pmt and s2pmt pmaps
Alejandro Botas authored and Alejandro Botas committedSep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for 8d86286 - Browse repository at this point
Copy the full SHA 8d86286View commit details -
Alejandro Botas authored and Alejandro Botas committed
Sep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for 0576b08 - Browse repository at this point
Copy the full SHA 0576b08View commit details -
Alejandro Botas authored and Alejandro Botas committed
Sep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for dffa163 - Browse repository at this point
Copy the full SHA dffa163View commit details -
Alejandro Botas authored and Alejandro Botas committed
Sep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for 057834f - Browse repository at this point
Copy the full SHA 057834fView commit details -
write and load ipmts together or separately
Alejandro Botas authored and Alejandro Botas committedSep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for d5698d4 - Browse repository at this point
Copy the full SHA d5698d4View commit details -
Alejandro Botas authored and Alejandro Botas committed
Sep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for 4033146 - Browse repository at this point
Copy the full SHA 4033146View commit details -
pmap writers need not store empty si peaks
Alejandro Botas authored and Alejandro Botas committedSep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for 503219f - Browse repository at this point
Copy the full SHA 503219fView commit details -
flush h5out before closing in city.run()
Alejandro Botas authored and Alejandro Botas committedSep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for d89fe62 - Browse repository at this point
Copy the full SHA d89fe62View commit details -
Configuration menu - View commit details
-
Copy full SHA for e4b9f0a - Browse repository at this point
Copy the full SHA e4b9f0aView commit details -
Add set_plot_labels to signal_functions.
Needed for plotting.
Configuration menu - View commit details
-
Copy full SHA for 1129471 - Browse repository at this point
Copy the full SHA 1129471View commit details -
pmap writers and loaders for the individual pmts
With these modifications we can write and load the s1 and s2 of individual pmts. The ipmt pmaps can be written and loaded separately or together with the traditional pmaps. There are a few things we need to be aware of: We've found we must flush the pytables after writing to avoid data losses at least when writing all the ipmt + pmaps simultaneously. we flush the entire h5out file now, in city.run() in base_cities.py One change implemented in this PR is not backwards compatible. s12pmt.pmtsd has been replaced by s12pmt.ipmtd because this naming is more descriptive, more consistent with the nomenclature necessary to distinguish between different pmap writers/loaders, and because I think no one is using the ipmt pmaps yet so hopefully there won't be many complaints. All the write pmap functions (old and new) now accept None as an argument instead of an s1, s2, s2si s1pmt s2pmt or any combination of these. Before if there was an event without an s-whatever the writer had to be given an empty instance of that class, call the store method, and then do nothing. Now they store an si peak when there is an si peak for that event. I am also eager to (in a separate PR) have the pmap constructors do something intelligent when they are given empty dictionaries in initialization. All of this will hopefully also speed irene up a little bit.
Alejandro Botas authored and Alejandro Botas committedSep 2, 2017 Configuration menu - View commit details
-
Copy full SHA for 894e08c - Browse repository at this point
Copy the full SHA 894e08cView commit details
Commits on Sep 4, 2017
-
Configuration menu - View commit details
-
Copy full SHA for c3d6c78 - Browse repository at this point
Copy the full SHA c3d6c78View commit details -
Configuration menu - View commit details
-
Copy full SHA for a59f2e8 - Browse repository at this point
Copy the full SHA a59f2e8View commit details
Commits on Sep 5, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 266a915 - Browse repository at this point
Copy the full SHA 266a915View commit details -
Raise exception when constructing empty pmaps
Close next-exp#315. Pmap constructors: S1, S2, S2Si, S1Pmt, S2Pmt will now raise an exception when given empty dicts to initialize. Previously if we had an empty s2, we would call and initialize an empty S2Pmt --> S2 --> S12. This is now avoided. If the constructor is called to build a peaks out of empty dictionaries, the constructor now raises InitializeEmptyPmapObject which must be caught. The general flow of things has changed such that where previously if there were no s2 in an event, IC would pass around empty s2, s2si, and s2pmt, Now we just pass around None. This PR merely creates this exception and catches it throughout the codebase where necessary.
Alejandro Botas authored and Jacek Generowicz committedSep 5, 2017 Configuration menu - View commit details
-
Copy full SHA for 53faf4b - Browse repository at this point
Copy the full SHA 53faf4bView commit details
Commits on Sep 6, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 6dac1ad - Browse repository at this point
Copy the full SHA 6dac1adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e6a565 - Browse repository at this point
Copy the full SHA 7e6a565View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85c726d - Browse repository at this point
Copy the full SHA 85c726dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 15816a8 - Browse repository at this point
Copy the full SHA 15816a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bb93ef - Browse repository at this point
Copy the full SHA 8bb93efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84e9fdb - Browse repository at this point
Copy the full SHA 84e9fdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for de96b52 - Browse repository at this point
Copy the full SHA de96b52View commit details -
Allow irene to find ipmt pmaps
This pr will allow irene to make use of the ipmt pmap finders and writers in order to save ipmt pmaps. I've run this irene in my notebook a few times and everything looks good so far. In order to tell irene to write ipmt pmaps (or not) I had to put a flag compute_ipmt_pmaps in pmap_city.conf. This means that previous irene config files will not work without first adding the flag. This may be kind of annoying for people running productions @jmbenlloch @jerenner @gonzaponte. If there is a better way of doing this, please let me know, and I will implement it. The only alternative I could think of would be to create another city, but that sounds potentially even more annoying for you guys. I did some time/memory profiling for on Kr data. From run 4446 with thr_sipm = 1pes and 'thr_sipm_s2 = 2pes' and found after running 1k events: speed 1.92 evt / sec with IPMT 2.06 evt / sec without file size 2.37 x larger than without IPMT So, time does not appear to be an issue, but the file size does grow substantially... @jjgomezcadenas I don't remember if we decided we wanted to put the ipmt pmaps in a different group, called IPMT in the hdf5 file... did we?
Configuration menu - View commit details
-
Copy full SHA for bc9f5fc - Browse repository at this point
Copy the full SHA bc9f5fcView commit details -
Use event numbers from input files for MC
We were computing a new event number in Diomira because in the previous MC production, each file restarted the event counter to zero. This is not the case anymore, each file has a unique event number. Since this was a patch intended to use that old production, it could be removed now.
Configuration menu - View commit details
-
Copy full SHA for 25248a4 - Browse repository at this point
Copy the full SHA 25248a4View commit details
Commits on Sep 7, 2017
-
Configuration menu - View commit details
-
Copy full SHA for ff58314 - Browse repository at this point
Copy the full SHA ff58314View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d9235a - Browse repository at this point
Copy the full SHA 2d9235aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b49eae - Browse repository at this point
Copy the full SHA 5b49eaeView commit details -
Fix broken test (voxelize_single_hit)
Jacek Generowicz committedSep 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 96543f9 - Browse repository at this point
Copy the full SHA 96543f9View commit details -
Add missing whitespace in return type annotations
Jacek Generowicz committedSep 7, 2017 Configuration menu - View commit details
-
Copy full SHA for fa27747 - Browse repository at this point
Copy the full SHA fa27747View commit details -
Jacek Generowicz committed
Sep 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 5f33f69 - Browse repository at this point
Copy the full SHA 5f33f69View commit details -
Clean up implementation of shortest_paths
Jacek Generowicz committedSep 7, 2017 Configuration menu - View commit details
-
Copy full SHA for aacd947 - Browse repository at this point
Copy the full SHA aacd947View commit details -
Jacek Generowicz committed
Sep 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 7d09020 - Browse repository at this point
Copy the full SHA 7d09020View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa3ca94 - Browse repository at this point
Copy the full SHA aa3ca94View commit details
Commits on Sep 8, 2017
-
Deal with 1 hit in voxelize_hits
Closes next-exp#328 Previously, the code was crashing when a hit collection contained only one item.
Jacek Generowicz committedSep 8, 2017 Configuration menu - View commit details
-
Copy full SHA for 7817404 - Browse repository at this point
Copy the full SHA 7817404View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a68042 - Browse repository at this point
Copy the full SHA 4a68042View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0680b7 - Browse repository at this point
Copy the full SHA e0680b7View commit details