connect piaf d0cha.fnal.govIn your PAW session:
help piafshould help with most of the problems.
**** Welcome to the Piaf server @ d0cha **** **** Piaf slave server @ d0cha started **** **** Piaf slave server @ d0cha started **** **** Piaf slave server @ d0cha started **** **** Piaf slave server @ d0cha started ****
/dataX ( X = [1-3] ) are used for the general purpose data sets, like 'global Ntuples' and/or for various subsets requested by physics groups.
/projX ( X = [1-14] ) are used for storage of physics groups'
data sets. They are devided among physics groups. /proj[1-4] are assigned to
QCD group, /proj[5-8] are assigned to WZ group, /proj[9-12] are assigned to
TOP LJETS group, and /proj[13-14] are assigned to TOP ALLJETS group.
Here is the up-to-date proj disks usage information.
/spoolX ( X = [1-6] ) are used for a storage of data sets for current
use by individual physicists. The data can be spooled there when needed and will be disk resident.
The spool disks management system is now available.
This system archives all the spool disks data to a robotic mass
storage. Purge 'less often used' data sets in the spool area so that
spool disks will maintain around 20% free space.
The archived data sets can be
retrieved to the spool area whenever needed.
Your suggestions, comments are always welcome, please contact
PIAF consultant.
Here is the up-to-date spool disks usage
information.
PUT filename spool1/filenameNotice:
To use this file for a subsequent analysis do:
h/file LUN //piaf/spool1/filenameTo make it all work you need a symbolic link from your piaf directory to the spool area.
stage filenameFor detailed usage of this command, use "help stage" inside your PAW session or click here to see the help manual of this command.
Another way to retrieve your archived data sets can be done using command
line in your interactive login session to the challenge. Do following:
d0cha% setup d0paw
d0cha% filestat
d0cha% retrieve_file filename
Note:
1. "filestat" will produce a list of all your files available in the
CAPHSM robot and indicate which files are not in spool disks.
"retrieve_file" will retrieve your file back from CAPHSM to the
original directory.
2. "filestat" can have filename as its argument to filter the resulting
file list. Wildcards * and ? is allowed, but you have to protect them
from shell to avoid file name expansion. For example:
filestat "single_et*"
filestat \*run_1a\*
3. wildcards is now allowed when you use "retrieve_file". please use it
carefully. If there are more than one file with the same name in
CAPHSM, they will all be retrieved and restored naturally to different
original directories unless you specify "-l" option which retrieves
only the latest version.
1. log in to the Challenge
2. cd piaf
( you should be in /piafdisk/your_name/piaf now )
3. ln -sf /spool1/you spool1
...
ln -sf /spool6/you spool6
4. exit
After this is done, you can put the data there via
PUT file spoolX/file ( X is from 1 to 6 )and use via
h/file LUN //piaf/spoolX/fileor
chain -my_chain chain my_chain //piaf/spoolX/file1 chain my_chain //piaf/spoolX/file2 chain my_chain //piaf/spoolX/file3NOTICE: //piaf in the above example tells piaf that the data file residing on the Challenge should be analyzed. If, in the same PAW session you type:
h/file LUN1 file chain my_chain file1 file2 file3then the local files will be analyzed.
nt/loop 10 func.f77
Notice: your function should be in the file func.f
SELECT.F.AND.MASS<1.5
is in general much less efficient than:
MASS<1.5.AND.SELECT.F
especially if MASS is very often >= 1.5.
...
IF (IDNEVT .EQ. 1) THEN
CALL HBOOK1(...)
...
ENDIF
but:
SAVE IFIRST
DATA IFIRST /0/
IF (IFIRST .EQ. 0) THEN
IFIRST = 1
CALL HBOOK1(...)
...
ENDIF
PAW> nt/loop //chain/10 select.f77() 1000 In piaf, Stdout and Stderr produced by your selection functions are redirected to some log files .piaf*.log in your ~/piaf directory first, then PIAF server send those log files back to the client. If your selection function produces error messages for each event and you are looping over many events, your log files will become so big that it fills up the /home disk, your piaf processes will hung and will not send your messages back to you and other people can't use their piaf servers properly.