LCIO4TPC.F95
Wrapper for LCIO FORTRAN interface
LCIO parameters are defined in LCIOapi.F95. |
OpenReadLCIO: |
open LCIO file
for reading. |
ReadLCIOnTbin: |
if LCIO_TPCBIT_RAW bit is set
(raw data available) search first 10 events for information
on nTbin. |
ReadLCIOComment: |
read comment from run header. |
CloseReadLCIO: |
close LCIO file. |
ReadLCIOnextEvent: |
get next event; read Amplitude/Time
or raw data; read MCtrack if available.
will read raw data if available unless bit 1 in iflag is set, otherwise will
read Amplitude/Time. |
OpenWriteLCIO: |
open LCIO file for writing;
file name = thisrun.slcio. |
CloseWriteLCIO: |
close LCIO file. |
WriteLCIOHeader: |
write comment / date to run
header. |
WriteLCIOEvent: |
depending whether bit in iflag
is set:
bit 0: write raw data (if nTbin >
0)
bit 1: write Amplitude / Time . |
LCIOdummy.F95
Replacement for LCIO4TPC.F95 if LCIO is not
installed
Same procedures available, but they do nothing. |
LCIOapi.F95
Definitions of LCIO functions and parameters (headerfile)
To replace the include files of f77. Not complete
yet. For functions with side effects (result returned
as formal parameter) wrapper routines (function or
subroutine) are defined. Naming convention get -> got. |
TPCpaw.f95
Booking and filling of Ntuples and histograms
Try to keep PAW histogram IDs in one place. |
|
initilize and terminate PAW. |
PAWend: |
PAW_book : |
book all histograms and Ntuples. |
NT_book: |
wrapper to book ntuple Ntuple. |
NF_xxxxx: |
fill Ntuple, e.g. NF_event
for event display. |
HF_xxxxx: |
fill histogram. |
PininCal: |
book histograms for calibration:
pedestals, ... |
calSignal: |
average amplitude, pedestal;
fill calibration histograms. |
calRFtime: |
rise- and fall-time; fill calibration
histograms. |
TPCf77.f
f77 help routines |
OPENFILE: |
wrapper for OPEN and CLOSE (f77
can't write to a file opened with F!). |
CLOSEFILE: |
WRITECH: |
write a character
string to a file. |
PAWCOM: |
initialize PAW,
PAW common block. |
READWORD, READHWORD, READBYTE, READCH: |
wrapper for FGETC
for MIDAS data. |
MyMinuit.f95
Wrapper for MINUIT |
MINUIT: |
perform fit.
input: subroutine that calculates the chisq (can be
in F), arrays containing names, start values, errors
and bounds for each fit parameter, print flag.
output: fit values, errors, error matrix, chisq, error flag. |
MINini: |
initialize and terminate MINUIT. |
MINend: |
LinearRegression: |
linear fit via linear regession. |
Qfit: |
quartic fit via differentiation
and linear regession. |
SPLINE: |
spline intrapolation. |