[Brahms-dev-l] Re: Condor wrapper commands

From: Hironori Ito <hito@rcf.rhic.bnl.gov>
Date: Tue Jul 27 2004 - 10:46:37 EDT
Hello.  Follow the instructions below.

1.  get rid of output files from "--inputfiles" options since it is not 
input file
    remove  hists/hists_9904.root
2.  get rid of input file directory from "--inputfiles" option  since it 
is not input file
    remove data/reduced04/r9904
3.  Rewrite your script (MultCalibration.C) since the section for 
inputModule is a biiiiiiiiig mess!
    In general, for run04 data, you can (and should) use new AddFileSet 
method of BrIOModule. 
Here is a suggested change.

    Add  one option in your scripts.

  BrAppIntOption* proOption =
    new BrAppIntOption('\0', "proNo", "Production Number",0);
                                                                                

Then, instead of inputModule->AddFile, use inputModule->AddFileSet( 
runOption->GetValue(), "ltr", proOption->GetValue())


Now, if you insist to use AddFile, you need to specify a full path to 
every file you use in "--inputfiles" option.
In your case for run 9904, you need to add 
/brahms/data14/data/run04/auau/200/r9904/ltr/ltr009904seq000v0p1.root, 
/brahms/data14/data/run04/auau/200/r9904/ltr/ltr009904seq001v0p1.root, 
/brahms/data14/data/run04/auau/200/r9904/ltr/ltr009904seq002v0p1.root

etc.....

As you can see, it is a wast of time. Don't use it this way.  Just fix 
your script.


Hiro

Kalavagunta, Chaitanya wrote:

>Thanks Hiro,
>             I realised that there were a lot of files not included in the inputfiles option.
>
>Again...however I get the following error...
>
>with the command.............
>
>condor_wrapper.rb --inputfiles=bblgeo.dat,bbrgeo.dat,bblgain_2001.dat,bbrgain_2001.dat,
>BBLGap.dat,BBRGap.dat,hists/hists_9904.root,data/reduced04/r9904 --outputDir=/brahms/u/parmanu/analysis/multcalib/condor_jobs/ --jobname=condor_job9904 --exec=bratmain --args MultCalibration.C -r 9904 -S root -n 6 -v on -f on -p on
>
>--------------------------------------------------------------------------
>SysError in <TFile::TFile>: file hists/hists_9904.root can not be opened (No such file or directory)
>Error in <TFile::WriteTObject>: Directory hists/hists_9904.root is not writable
>Error in <TFile::WriteTObject>: Directory hists/hists_9904.root is not writable
>Error in <TFile::WriteTObject>: Directory hists/hists_9904.root is not writable
>
>nInputs, Prototype: 6 data/reduced04/r9904/ltr/ltr009904seq000v0p1.root
>nInputs: 6
>File not found: data/reduced04/r9904/ltr/ltr009904seq000v0p1.root
>File not found: data/reduced04/r9904/ltr/ltr009904seq001v0p1.root
>File not found: data/reduced04/r9904/ltr/ltr009904seq002v0p1.root
>File not found: data/reduced04/r9904/ltr/ltr009904seq003v0p1.root
>File not found: data/reduced04/r9904/ltr/ltr009904seq004v0p1.root
>File not found: data/reduced04/r9904/ltr/ltr009904seq005v0p1.root
>----------------------------------------------------------------------
>
>I tried including hists/hists_9904.root,data/reduced04/r9904/ among the list of input files.
>
>I did not see anything in the .out file for quite some time though the condor status showed that the job was running.
>
>Do I have to include the individual root files?
>
>Thanks,
>Chaitanya
>
> 
>
>
>
>-----Original Message-----
>From:	Hironori Ito [mailto:hito@rcf.rhic.bnl.gov]
>Sent:	Mon 7/26/2004 2:54 PM
>To:	Kalavagunta, Chaitanya
>Cc:	devlist
>Subject:	Re: Condor wrapper commands
>Hello.  Upon reading your output and error logs 
>(/brahms/u/parmanu/analysis/multcalib/condor_jobs/condorjob_9883.err),  
>you have this error message "Fatal in 
><MultBbDnDeta::MultBbDnDeta::GetBBGeoParam>: Unable to open 
>bblgeo.dat".  You need to include this file in your --inputfiles options.
>
>
>Hiro
>
>
>
>Kalavagunta, Chaitanya wrote:
>
>  
>
>>Hi,
>>   I am using the wrapper script to commit the MultCalibration.C program to the condor queue.
>>
>>I use the following command:
>>---------------------------------------------------------------------------
>>condor_wrapper.rb --outputDir=/brahms/u/parmanu/analysis/multcalib/condor_jobs/ --jobname=condor_job9883 --exec=bratmain --args MultCalibration.C -r 9883 -S root -n 6 -v on -f on -p on
>>-------------------------------------------------------------------
>>Where..i get the following job file
>>
>>Universe       = vanilla
>>Notification   = Complete
>>Notify_user    = parmanu@rcf.rhic.bnl.gov
>>Executable     = /brahms/u/parmanu/bin/bratmain
>>Arguments      = MultCalibration.C -r 9883 -S root -n 20 -v on -f on -p on
>>GetEnv         = True
>>Priority       = -10
>>Requirements   =
>>transfer_input_files = MultCalibration.C
>>should_transfer_files = YES
>>When_to_transfer_output = ON_EXIT
>>Output         = /direct/brahms+u/parmanu/analysis/multcalib/condor_job9883.out
>>Error          = /direct/brahms+u/parmanu/analysis/multcalib/condor_job9883.err
>>Log            = /brahms/u/parmanu/condor/condor.log
>>+Experiment    = "brahms"
>>+Job_Queue     = "cas4"
>>-------------------------------------------------------------------
>>There are some more options in your script which I haven't understood yet.
>>
>>I am not able to get the desired output from this command.
>>
>>What am I doing wrong? 
>>
>>Thanks in advance,
>>
>>Regards,
>>Chaitanya 
>>
>>
>>
>>
>> 
>>
>>    
>>
>
>
>
>
>  
>


_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l@lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Tue Jul 27 10:46:59 2004

This archive was generated by hypermail 2.1.8 : Tue Jul 27 2004 - 10:47:21 EDT