Brian Wilt's Daily Log -- Archive, Week Ending Friday, 6/23

Current Log Book

Setting up CMSSW 0.7.1 on CGate, take 2

Friday, June 23, 2006

After a disappointing US loss, I headed back ... Maarten had installed CMSSW_0_7_1 on cgate.mit.edu for me.

  • export SCRAM_ARCH=slc3_ia32_gcc323
  • export PATH=$PATH:/net/hisrv0001/app/cmsprod/cms/Releases/SCRAM:/net/hisrv0001/app/cmsprod/cms/utils/
  • scramv1 project CMSSW CMSSW_0_7_1

Now I have ~/sum06/CMSSW_0_7_1 in my directory and the project area.

  • eval `scramv1 runtime -sh` [I'm a bash guy]

At this point, cmsRun returns:

No configuration file given 
 please do 'cmsRun --help'.
%MSG-e FwkJob:  22-Jun-2006 20:18:14 EDT pre-events
<FrameworkError ExitStatus="7001" Type="ConfigFileNotFound" >
  No configuration file given 
 please do 'cmsRun --help'.
</FrameworkError>

Added everything but "=eval `scramv1 runtime -sh`=" to my environment -- that needs to be run in a specific subdirectory, /CMSSW_0_7_1.

Getting the Generators Working (Monte Carlo)

At this point, I think the next step is to begin piecing the different modules together in the configuration files.

First, let's try to get one of the particle guns working, and generating output that can be browsed with ROOT.

I spent some of the morning installing X-Win and reading more documents on CMS Computing -- I've created a section of links on my personal page.

I downloaded one of their particle gun demos from CVS, described here from CVS:

cvs co -r CMSSW_0_7_1 IOMC/ParticleGuns/test

Awesomely,

[bwilt@hisrv0001 test]$ cmsRun FlatEGunASCIIWriter.cfg
 --------------- HepPDT Version 1.02.01 --------------- 
found 251 particles
HepMC Particle Gun ASCII Writer is initialized
Requested # of Particles : 2
%MSG-i FwkReport:  23-Jun-2006 06:30:42 EDT BeforeEvents
Begin processing the 1th record. Run 1, Event 1
%MSG-i FwkReport:  BetweenModules 23-Jun-2006 06:30:42 EDT BetweenEvents
[...]
%MSG-i FwkReport:  BetweenModules 23-Jun-2006 06:30:42 EDT BetweenEvents
Begin processing the 10th record. Run 1, Event 10

Making Histograms with ROOT Files

Trying to generate a histogram from the ROOT file generated by CMSSW. This seems to work:

TFile f("brian.root")
TCanvas c1;
new TBrowser();

TH1F vertexLoc("vertexLoc", "Vertex Location", 100, -.02, .02)
Events->SetAlias("position","edmHepMCProduct_VtxSmeared.obj.evt_.m_signal_process_vertex.m_position.pp")
Events.Project("vertexLoc", "position.dx");
vertexLoc.Draw();

Open Questions / Conclusions / Goals after Friday

  • Seems like cmsRun is, in fact, working on cgate.mit.edu. Running it with some of the most basic particle gun cfg files from the tutorial site generates good output that can be browsed with ROOT.
  • How do I get the lite libraries (and autoload) in ROOT working? I can't seem to locate the necessary file, gSystem->Load("libPhysicsToolsFWLite"). Talk to the Phils and see if they had any luck locating it.
  • The particle gun seems to be working, but I can't get it working in conjunction with Vertex Smearing. Might be a problem with the config file, may just be plotting the wrong variables in ROOT (again, need the light FW). Build from there.
  • Should I even be working on cgate?
  • How do I change the gun to a specific particle? Not just random based on energy or pt?

libPhysicsToolsFWLite.so

I managed to find the root library I needed -- turned out, it was in the CMSSW_0_6_0 libraries, but hadn't been included in CMSSW_0_7_0 and CMSSW_0_7_1 libraries. It's located under the lib/slc3_ia32_gcc323 directory. There might have to be some trickery to get this to work ...

Solution was quite simple -- I spoke to Maarten and he mentioned that the issue was that the file had been renamed. In v0.7 it's been changed to libFWCoreFWLite.so.

-- BrianWilt - 26 Jun 2006

Setting up CMSSW 0.7.1

Thursday, June 22, 2006

Today I'm going to:

  • Install CMSSW 0.7.1 on the MIT LNS server, cgate.mit.edu
  • Configure the server and environment
  • Document the procedure

I'll be basing my work off the tutorial website for the session I went to 21/06/06 morning.

Installing CMSSW on cgate.mit.edu

  • Installing in my home directory (bwilt)
  • First, download and install SCRAMV1 (V1_0_2) SCRAM V1_0_2 Manual
    • mkdir ~/SCRAM; cd ~/SCRAM
    • export CVSROOT=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories/SCRAM"
    • cvs login; 98passwd
    • cvs co -d V1_0_2 -r V1_0_2 SCRAM
    • cd V1_0_2/Installation; ./autoconf
    • ./configure
    • After installing SCRAM using this method, get odd error message when trying to run main script: "=Cannot find Environment file. Area Corrupted? (/net)="
    • Trying to "=ls=" in the "=/net=" directory also gives strange error, "=ls: error while loading shared libraries: libacl.so.1: cannot read file data: Error 21="
    • Gave up -- turns out it was already installed (with a lot of other software) in /net/hisrv0001/app/cmsprod/cms. Just made a link to the installed version

  • Get CMSSW
    • cgate.mit.edu has older versions of the software -- I wanted the latest one. Getting CMSSW_0_7_1.
    • Pull from CMS CVS
      • export CVSROOT=":pserver:anonymous@cmscvs.cern.ch:/cvs_server/repositories/CMSSW"
      • cvs login; 98passwd
      • cvs co -r CMSSW_0_7_1 CMSSW
      • cvs co -r CMSSW_0_7_1 config
      • scram[v1] project -b config/boot
    • Having a difficult time trying to install the whole deal in my home directory, so Maarten will help and put it with the other CMSSW installs. Holding until tomorrow.

  • Spoke to Phil -- he and Christoph thought it was a bad idea to be working on cgate back at MIT, would be much better to work on a machine local to CERN. I think I'm going to stick working on the MIT server ... Bolek wanted me to specifically try to figure out how to get the program 1) installed and 2) running, basically from stratch.

Tomorrow

Tomorrow, I'll be working with the Maarten-loaded CMSSW_0_7_1 on cgate, and trying to get it to actually run. Phil mentioned that he and Steve Nahn really struggled with it, and that it will take a lot of time and persistence. I guess we'll see how it goes ...

-- BrianWilt - 22 Jun 2006

Getting Set Up

Wednesday, June 21, 2006

Just getting this set up. Things will probably get underway tomorrow.

I attended the tutorial today on CMSSW ... they described the program modules very neatly. I think I have a better picture of how the application is structured. I also think I'm starting to get a handle on this ROOT and C++ buisness.

-- BrianWilt - 21 Jun 2006

Topic revision: r4 - 2007-02-21 - 18:03:26 - MaartenBallintijn
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback