... | ... | @@ -52,15 +52,21 @@ verbose - if True, will make more output |
|
|
|
|
|
return run - the object to be passed to further functions.
|
|
|
|
|
|
### get_shot_trainId_2(run,diag='JF4',debug=0,use_cache=1)
|
|
|
### get_shot_trainId_2 (run,diag='JF4',debug=0,use_cache=1)
|
|
|
|
|
|
Tries to find out which run contained the data with laser shot. It will find it as a trainId with the strongest data in diagnostics given by 'diag'. if use_cache, then it will store the result in local pickle and read it later for faster access.
|
|
|
|
|
|
return trainId, ratio - ratio is the ratio between strongest and second strongest shot, so you can use it to say if it was real and good laser shot.
|
|
|
**return trainId, ratio** - ratio is the ratio between strongest and second strongest shot, so you can use it to say if it was real and good laser shot.
|
|
|
|
|
|
### get_shot_trainId (run,diag='JF4',debug=0,use_cache=1)
|
|
|
|
|
|
Identical as get_shot_trainId_2, but it returns only one parameter:
|
|
|
|
|
|
**return trainId**
|
|
|
|
|
|
### get_image(run,diag_nickname,trainId=-1,average=True,diag='',recalc=0,threshold_lower=-1,threshold_upper=-1,debug=0,save=False)
|
|
|
|
|
|
run - the run object from open_run
|
|
|
run - the run object from open_run
|
|
|
|
|
|
diag_nickname - name of the diagnostics in the local dictionary. The dictionary of nicknames can be seen and ajdusted at the beginning of the source code. It contains:\[nickame, data source name, trainID offset\]
|
|
|
|
... | ... | @@ -80,7 +86,15 @@ The **dictionary** with the diagnostics can be avoided and the source name provi |
|
|
|
|
|
Somehow similar to get_image. gets you a numpy array of diagnostics given by diag_nickname in given run. The cache is not yet implemented here.
|
|
|
|
|
|
return values,trains
|
|
|
**return values,trains**
|
|
|
|
|
|
### get_shot_I (run,trainId=None,threshold=1e99,debug=0,average=True)
|
|
|
|
|
|
get the intensity of either shot (if trainId>0) or average intensity in run (if trainId=-1)...works similar as get_image.
|
|
|
|
|
|
The intensity is taken from XGM_SASE2, i.e x-ray gas monitor very far upstream, above attenuators and everything.
|
|
|
|
|
|
The threshold does not make much sense now...
|
|
|
|
|
|
#### Image calibration (in progress, used only for ePix)
|
|
|
|
... | ... | |