Re: [Brahms-dev-l] Drift Velocity calibration

From: Bekele, Selemon <bekeleku_at_ku.edu>
Date: Wed, 28 Feb 2007 09:31:19 -0600
Hi Flemming, Truls

    thanks for the info. Now I can submit the jobs.
For others who might happen to redo TPC calibrations, and 
produce ltr files the machine to log onto, as bramreco, is

              rcrsuser1

On that machine the login brings you to the /brahms/u/bramreo directory, 
but it is not the $HOME directory, and the setup stuff is also done

Selemon,

-----Original Message-----
From: Flemming Videbaek [mailto:videbaek_at_bnl.gov]
Sent: Wed 2/28/2007 5:47 AM
To: Truls Martin Larsen; Bekele, Selemon
Subject: Re: [Brahms-dev-l] Drift Velocity calibration
 
Hi
actually the machine to to use is rcrsuser1  , not 4. On that machine the login brings you to
the /brahms/u/bramreo directory, but it is not the $HOME directory, and the setup stuff is also done

Flemming

--------------------------------------------
Flemming Videbaek
Physics Department
Bldg 510-D
Brookhaven National Laboratory
Upton, NY11973

phone: 631-344-4106
cell:       631-681-1596
fax:        631-344-1334
e-mail: videbaek @ bnl gov
----- Original Message ----- 
From: "Truls Martin Larsen" <trulsml_at_nbi.dk>
To: "Bekele, Selemon" <bekeleku_at_ku.edu>; "Flemming Videbęk" <videbaek_at_bnl.gov>
Sent: Wednesday, February 28, 2007 5:20 AM
Subject: RE: [Brahms-dev-l] Drift Velocity calibration


> Hi,
>
> sorry I did'nt tell you, (Thought you had used rcrsuser4 before). The
> rcrsuser4 has its own special home directory:
> /home/bramreco
>
> So after bramreco has logged in you need to cd into the normal bramreco
> account:
> /brahms/u/bramreco
>
> and source the needed files to get the correct environment set up (like
> having brat and root available). There is a command for this but I have
> forgotten it...
>
> Flemming, what was this command?
>
> Cheers,
> Truls
>
>
> On Tue, 2007-02-27 at 18:21 -0600, Bekele, Selemon wrote:
>> Hi Truls,
>>
>>     Looking into the script masterTPCCal.sh, I understand why
>> I need to log onto rcrsuser4. Things are not working the way
>> I though they would. Here is what I attempted (look between the
>> double lines to see what I tried when things fail)
>>
>> ===================================================================
>> Logged onto rcrsuser4
>>
>> Reco % cd /brahms/bramreco/DataProduction/run05/calibTPC
>> Reco % masterTPCCal.sh -j -s -u bramreco -n bramreco_at_rcrsuser4.rcf.bn.gov -r runlists/cucu_runs_test.txt
>>  *-------- Master TPC Calibration Script ---------*
>>  * You're using:                                  *
>> masterTPCCal.sh: line 1: root-config: command not found
>>  *    root                 *
>> masterTPCCal.sh: line 1: brat-config: command not found
>>  *    brat                 *
>>  *------------------------------------------------*
>>  === Checking existence and validity of bratmain script
>>  === /brahms/u/bramreco/DataProduction/run05/calibTPC/getSequences.C ... ok
>>
>>
>>  === Starting HPSS stuff to get TPC sequences ===
>>
>>
>>  === Creating job summary files ===
>>
>> Coulnd't stat "/home/bramreco/.bratdbrc"
>> query's password for database BrahmsMain_at_brahms-db0.rcf.bnl.gov:
>> Error in <TMySQLServer::TMySQLServer>: connection to database BrahmsMain on brahms-db0.rcf.bnl.gov failed (error: Access denied 
>> for user 'query'@'rcrsuser4.rcf.bnl.gov' (using password: YES))
>> Error in <BrRdbmDb::Connect>: User query couldn't connect to database BrahmsMain @ brahms-db0.rcf.bnl.gov
>> Error masterTPCCal.sh: Failed to write JSF for run
>>
>> ====================================================================================
>> ====================================================================================
>> I just tried the usual brahms password. It looks it not the one for database stuff.
>>
>> Since this did not work, I copied /brahms/bramreco/.bratdbrc to /home/bramreco on rcrsuser4
>> and tried again.
>> =======================================================================================
>> =======================================================================================
>> Reco % masterTPCCal.sh -j -s -u bramreco -n bramreco_at_rcrsuser4.rcf.bn.gov -r runlists/cucu_runs_test.txt
>>  *-------- Master TPC Calibration Script ---------*
>>  * You're using:                                  *
>> masterTPCCal.sh: line 1: root-config: command not found
>>  *    root                 *
>> masterTPCCal.sh: line 1: brat-config: command not found
>>  *    brat                 *
>>  *------------------------------------------------*
>>  === Checking existence and validity of bratmain script
>>  === /brahms/u/bramreco/DataProduction/run05/calibTPC/getSequences.C ... ok
>>
>>
>>  === Starting HPSS stuff to get TPC sequences ===
>>
>>
>>  === Creating job summary files ===
>>
>> Trying to make lock file: /brahms/data17/scratch/calibTPC/jsf/.lock ... ok
>> fCondor = 1     fStandAlone = 1 fLtrDirName.Data() = tpc
>> replacing basename
>> tpc012319seq000
>> Writting JSF file /brahms/data17/scratch/calibTPC/jsf/bm/tpc012319seq000.jsf
>> Warning in <CheckOutputFile>: file '/brahms/data17/scratch/calibTPC/jsf/bm/tpc012319seq000.jsf' already exists, will be 
>> overwritten!
>> fCondor = 1     fStandAlone = 1 fLtrDirName.Data() = tpc
>> replacing basename
>> tpc012319seq001
>> Writting JSF file /brahms/data17/scratch/calibTPC/jsf/bm/tpc012319seq001.jsf
>> Warning in <CheckOutputFile>: file '/brahms/data17/scratch/calibTPC/jsf/bm/tpc012319seq001.jsf' already exists, will be 
>> overwritten!
>> fCondor = 1     fStandAlone = 1 fLtrDirName.Data() = tpc
>> replacing basename
>> tpc012319seq002
>> Writting JSF file /brahms/data17/scratch/calibTPC/jsf/bm/tpc012319seq002.jsf
>> Warning in <CheckOutputFile>: file '/brahms/data17/scratch/calibTPC/jsf/bm/tpc012319seq002.jsf' already exists, will be 
>> overwritten!
>> Trying to make lock file: /brahms/data17/scratch/calibTPC/jsf/.lock ... ok
>> fCondor = 1     fStandAlone = 1 fLtrDirName.Data() = tpc
>> replacing basename
>> tpc012324seq000
>> Writting JSF file /brahms/data17/scratch/calibTPC/jsf/bm/tpc012324seq000.jsf
>> Warning in <CheckOutputFile>: file '/brahms/data17/scratch/calibTPC/jsf/bm/tpc012324seq000.jsf' already exists, will be 
>> overwritten!
>> fCondor = 1     fStandAlone = 1 fLtrDirName.Data() = tpc
>> replacing basename
>> tpc012324seq001
>> Writting JSF file /brahms/data17/scratch/calibTPC/jsf/bm/tpc012324seq001.jsf
>> Warning in <CheckOutputFile>: file '/brahms/data17/scratch/calibTPC/jsf/bm/tpc012324seq001.jsf' already exists, will be 
>> overwritten!
>> fCondor = 1     fStandAlone = 1 fLtrDirName.Data() = tpc
>> replacing basename
>> tpc012324seq002
>> Writting JSF file /brahms/data17/scratch/calibTPC/jsf/bm/tpc012324seq002.jsf
>> Warning in <CheckOutputFile>: file '/brahms/data17/scratch/calibTPC/jsf/bm/tpc012324seq002.jsf' already exists, will be 
>> overwritten!
>>
>>  === Submitting job summary files ===
>>
>> /brahms/u/bramreco/DataProduction/run05/calibTPC/getSequences.C
>> Submitting /brahms/data17/scratch/calibTPC/jsf/bm/tpc012319seq000.jsf ... args = nodb ...executing crs_job -create 
>> /brahms/data17/scratch/calibTPC/jsf/bm/tpc012319seq000.jsf.tmp -p19 -q6
>> Failed
>> Please refer to /brahms/data17/scratch/calibTPC/jsf/log/bm/bmsubmit012319.log for more details
>> Error masterTPCCal.sh: Failed to submit jobs for run 12319
>> =======================================================================
>> ========================================================================
>> Looking into /brahms/data17/scratch/calibTPC/jsf/log/bm/bmsubmit012319.log,
>> one finds the line
>>
>> /opt/brahms/new/sbin/bmsubmit: line 246: crs_job: command not found
>> ============================================================================
>> ========================================================================
>>
>> It seems like I am missing something here. Would you please look into it
>> and let me know if you made it work.
>>
>> Thanks,
>> Selemon
>>
>>
>>
>>
>> Hi Selemon,
>>
>> First you need to get the raw data files from HPSS, and convert them
>> into root format. This and everything else you do with the scripts in
>> ~bramreco/DataProduction/run05/calibTPC
>>
>> Using the script: masterTPCCal.sh to submit jobs...
>> (use -s and -j option when you get the files from HPSS (getSequences.C),
>> and log onto rcrsuser4)
>>
>> --run-list : is a usefull option to write all the run number you want to
>> calibrate.
>>
>> Run masterTPCCal.sh from some rcas mashine when using
>> calibrateFibDrift.C as argument.
>>
>> And you are right about the numbers.
>>
>> Cheers,
>> Truls
>>
>>
>>
>> On Mon, 2007-02-26 at 18:10 -0600, Bekele, Selemon wrote:
>> > Hi,
>> >
>> > 1) I see the following piece of code in the script for drift velocity
>> > calibration of T1 and T2. It seems there is some root files to be
>> > used as input but it is not clear what the files are and where to find
>> > them.
>> >
>> > -------------------
>> > BrIOModule* inputModule =
>> >     new BrEventIO("inputModule", "Input Module");
>> >   inputModule->SetIOMode(BrIOModule::kBrRunFile|
>> >                          BrIOModule::kBrReadFile);
>> >   for (Int_t j = 0; j < nRuns; j++)
>> >     inputModule->AddFileSet(includeOption->GetValue(),
>> >                             Form("^run%06dseq.*.root$",
>> >                                  runOption->GetValue(j)));
>> >   mainModule->AddModule(inputModule);
>> > ---------------------
>> >
>> > 2) Here is another piece of code that I would like to understand.
>> > The suggestion made to me was to use the T2 information to calibrate
>> > the T1 drift velocity. What are the values in the arrays below?
>> > Is it enough to just use post2 instead of post1 is input, as done below,
>> > to do the calibration. I am also trying to do the TFW2 calibrations in CuCu.
>> > It would be helpful if anyone has done this before and comment at least to
>> > save time.
>> >
>> > --------------------------
>> >   Float_t post1[5]   = {5.0, 2.5, 0.0, -2.5, -5.0};
>> >   Float_t post2[5]   = {0.0, 2.5, 5.0, -2.5, -5.0};
>> >   Float_t t1adc[5] = {400, 400, 400, 350, 600};
>> >   Float_t t2adc[5] = {400, 400, 300, 400, 600};
>> >
>> >  for(Int_t i = 1; i < 5; i++) {
>> >
>> >     t1driftfibmodule->SetFibreAdcCuts(i, 375);
>> >     //t1driftfibmodule->SetFibreYPosition(i, post1[i]);
>> >     t1driftfibmodule->SetFibreYPosition(i, post2[i]);
>> >   }
>> > --------------------------
>> >
>> > Thanks in advance,
>> >
>> > Selemon
>> >
>> >
>> >
>> > _______________________________________________
>> > Brahms-dev-l mailing list
>> > Brahms-dev-l_at_lists.bnl.gov
>> > http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
>> >
>>
>>
> 


_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l_at_lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Wed Feb 28 2007 - 10:32:49 EST

This archive was generated by hypermail 2.2.0 : Wed Feb 28 2007 - 10:33:17 EST