cmslpc.fnal.gov
cluster.
cmslpc
from a windows machine, the following links might be helpful:
AFTER the above you are ready for the exercises below
We assume that you are familiar with basic unix commands like ls
, ls -altrh
, cp
etc. and can edit a file using any of the editors like pico
, emacs
, nedit
etc.
To verify if cut and paste from one window to another works, cut and paste the following and then hit return
~cplager/runThisCommand.py "asdf;klasdjf;kakjsdf;akjf;aksdljf;a"\ "sldjfqewradsfafaw4efaefawefzdxffasdfw4ffawefawe4fawasdffadsfef"The response should be your username followed by alphabets unique to your username, for example like this:
success: malik znyvxQUESTION - Post this unique alphanumeric characters.
If you only run the command without any cut and paste, like the following:
somebody@cmslpc11> ~cplager/runThisCommand.pyyou should get
Error: You must provide the secret keyIf you paste incorrectly, you should get
Error: You didn't paste the correct input stringIf you run it from a wrong computer ( not cmslpc, say from your laptop locally), you should get
bash: ~cplager/runThisCommand.py: No such file or directoryOR
Unknown user: cplager.
Log into cmslpc, run this command:
cp ~cplager/editThisCommand.py .Then open editThisCommand.py in your editor and edit the 11th line adding a # (hash character) to the front of the line. So the lines should start of looking like this:
# Please comment the line below out by adding a '#' to the front of # the line. raise RuntimeError, "You need to comment out this line with a #"and be changed to:
# Please comment the line below out by adding a '#' to the front of # the line. #raise RuntimeError, "You need to comment out this line with a #"Save the file and run the command:
user@cmslpc12> ./editThisCommand.pyIf this is successful, you will see this
cplager@cmslpc12> ./editThisCommand.py success: cplager 0x1851DCBAQUESTION - Paste the bottom line into the window.
If you did not successfully edit the file, you'll see an error message such as this:
cplager@cmslpc12> ./editThisCommand.py Traceback (most recent call last): File "./editThisCommand.py", line 11, in ? raise RuntimeError, "You need to comment out this line with a #" RuntimeError: You need to comment out this line with a #
source /uscmst1/prod/sw/cms/cshrc uaf cmscvsroot CMSSW mkdir YOURWORKINGAREA cd YOURWORKINGAREA scram p CMSSW CMSSW_3_3_0 cd CMSSW_3_3_0/src cmsenvRun the following command:
echo $CMSSW_BASEQUESTION - Paste the output of the above command
/RelValTTbar/CMSSW_3_1_4-STARTUP31X_V2-v1/GEN-SIM-RECO
.
QUESTIONS - What is the size of this data? Click on "plain" to see the number of files it contains. How many files does it have?
Is this data at FNAL?
The files it contains should look like this
'/store/relval/CMSSW_3_1_4/RelValTTbar/GEN-SIM-RECO/STARTUP31X_V2-v1/0006/AC0641BB-73B1-DE11-A138-001D09F291D2.root', ...................................................More information about on accessing data in DBS can be found in WorkBookDataSamples
edmDumpEventContent
, edmProvDump
, edmEventSize
edmDumpEventContent
to see what class names etc. to use in order to access the objects in the RECO data file you located above edmDumpEventContent --all --regex caloJet dcap:///pnfs/cms/WAX/11/store/relval/CMSSW_3_1_4/RelValTTbar/GEN-SIM-RECO/STARTUP31X_V2-v1/0006/AC0641BB-73B1-DE11-A138-001D09F291D2.root > EdmDumpEventContent.txt
/pnfs/cms/WAX/11/
has been prefixed to the file name. Adding this gives you the physical location of the file at Fermilab.
EdmDumpEventContent.txt
. It has information divided into four columns (roughly). The first column is C++ class type of the data
, second is module label
, third is product instance label
and fourth is process name
. You can read more at Identifying Data in the Event.
--all --regex caloJet
. This will dump the entire event content as follows: edmDumpEventContent dcap:///pnfs/cms/WAX/11/store/relval/CMSSW_3_1_4/RelValTTbar/GEN-SIM-RECO/STARTUP31X_V2-v1/0006/AC0641BB-73B1-DE11-A138-001D09F291D2.root > EdmDumpEventContent.txt
--all --regex caloJet
.
edmProvDump
one can print out all the tracked parameters which were used to create the data file. One can see what modules were run, CMSSW version etc. used when the RECO file was made. To use it do edmProvDump dcap:///pnfs/cms/WAX/11/store/relval/CMSSW_3_1_4/RelValTTbar/GEN-SIM-RECO/STARTUP31X_V2-v1/0006/AC0641BB-73B1-DE11-A138-001D09F291D2.root > EdmProvDump.txt
EdmProvDump.txt
is a huge file. Open and look at this file and locate Processing History
( about 20 lines from the top).
edmEventSize
to know the size of different branches in your data file. The details about are here SWGuideEdmEventSize edmEventSize -v dcap:///pnfs/cms/WAX/11/store/relval/CMSSW_3_1_4/RelValTTbar/GEN-SIM-RECO/STARTUP31X_V2-v1/0006/AC0641BB-73B1-DE11-A138-001D09F291D2.root > EdmEventSize.txt
EdmEventSize.txt
and locate the line recoCaloJets_antikt5CaloJets__RECO.
. There are two numbers next to it that measure plain and the compressed size of this branch.
Using the WorkBookPATSimpleExample in Module 1 of PAT tutorial, we will plot the
Pt
distribution of the PAT muons. Note that we will use the datafile ( which is a RECO file) that you found above in the DBS instead of the default data file used in Module 1 ( you can dig out the default file later) but for now we will simply make a PAT tuple called simplePAT.root
.
YOURWORKINGAREA/CMSSW_3_1_4/src
To complete this exercise follow these steps:
1. Open your favorite editor and cut paste the contents of the file simplePAT_cfg.py. Save this file as simplePAT_cfg.py
.
2. Now run the following command
cmsRun simplePAT_cfg.pyWhile this command is executed you will see an output like this.
3. Now open the root file you just created. Note that this file is created in the YOURWORKINGAREA/CMSSW_3_1_4/src
directory where you should always be for this tutorial. To open the root file do:
root -l simplePAT.root
On root prompt type root [1] gStyle->SetOptStat(111111);
and then TBrowser b;
like this
root [1] gStyle->SetOptStat(111111);
root [1] TBrowser b;This opens a window that looks like this:
ROOT Files
on the left menu and now the window looks like this:
simplePAT.root
, then on Events
, then on patMuons_cleanLayer1Muons__PAT
and then on patMuons_cleanLayer1Muons__PAT.obj
.
You should now see a window that looks like this:
pt()
. You should now see PAT Muon Pt distribution.
EJTermDataForEventDisplay.root
from the RECO file that you have been working so far. Your task is to find out how many tracks
are present in the event number 8550
which is the last event in this file EJTermDataForEventDisplay.root
. To do this exercise follow any of the following method:
METHOD 1 ( Run Fireworks from your /YOURWORKINGAREA/CMSSW_3_1_4/src). This method is intended just for this exercise otherwise it is very slow and will choke up cmslpc if all user start event display simulatneously.
Form your /YOURWORKINGAREA/CMSSW_3_1_4/src execute the following command
cmsShow /afs/cern.ch/cms/sdt/web/validation/physicstools/EJTermDataForEventDisplay.root
METHOD 2
cd cmsShow31 ./cmsShow https://cms-service-sdtweb.web.cern.ch/cms-service-sdtweb/validation/physicstools/EJTermDataForEventDisplay.rootYou can also download the data file locally by doing
wget https://cms-service-sdtweb.web.cern.ch/cms-service-sdtweb/validation/physicstools/EJTermDataForEventDisplay.root
curl https://cms-service-sdtweb.web.cern.ch/cms-service-sdtweb/validation/physicstools/EJTermDataForEventDisplay.root > EJTermDataForEventDisplay.root
and then view the event display by doing
cd cmsShow31 ./cmsShow EJTermDataForEventDisplay.rootNow the event display should start. You may
UNCEHCK
all the objects in the summary view
on the left EXCEPT tracks
. You should see the following type of graphics ( with just green tracks)
8550
where you see event displayed as 8501
, press enterTracks
in the summary view
cmsShow dcap:///pnfs/cms/WAX/11/store/relval/CMSSW_3_1_4/RelValTTbar/GEN-SIM-RECO/STARTUP31X_V2-v1/0006/AC0641BB-73B1-DE11-A138-001D09F291D2.root
In the /YOURWORKINGAREA/CMSSW_3_1_4/src
directory cut and paste the following commands ( you can select all and paste all together and commands will be executed sequentially)
cvs co -r patTutorial_sept09_module1 PhysicsTools/PatExamples/src cvs co -r patTutorial_sept09_module1 PhysicsTools/PatExamples/interface cvs co -r patTutorial_sept09_module1 PhysicsTools/PatExamples/BuildFile cvs co -r patTutorial_sept09_module1 PhysicsTools/PatExamples/plugins/BuildFile cvs co -r patTutorial_sept09_module1 PhysicsTools/PatExamples/plugins/PatBasicAnalyzer.cc cvs co -r patTutorial_sept09_module1 PhysicsTools/PatExamples/test/analyzePatBasics_cfg.pyTo run, you need to compile the code by doing the following
scram bNow you open the file (using your favourite editor), like this
pico PhysicsTools/PatExamples/test/analyzePatBasics_cfg.pyand change the input file to "simplePAT.root you created in Exercise 4. This is done like below in the config file
analyzePatBasics_cfg.py
process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( 'file:simplePAT.root' ) )To run the code do ( assuming you are still in the
src
directory)
cmsRun PhysicsTools/PatExamples/test/analyzePatBasics_cfg.pyAfter the config file runs, you should see a file called
analyzePatBasics.root
. Browse through different histograms.
myZPeakModified.root
and draw the modified Z-peak as follows:
root -l myZPeakModified.root root [0] Zmass->Draw();QUESTION - Report the mean of the MODIFIED Z Mass. Questions/Problems/Suggestion - mailto: malik@fnalNOSPAMPLEASE.gov , Phone - 630-840-6441 -- SudhirMalik - 2009-10-06
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
![]() |
CondorJob_samplePAT | r1 | manage | 0.6 K | 2009-10-09 - 03:49 | SudhirMalik | |
![]() |
DBS.png | r1 | manage | 69.3 K | 2009-10-13 - 05:20 | SudhirMalik | |
![]() |
DBS_snapshot.png | r1 | manage | 100.2 K | 2009-10-16 - 03:26 | SudhirMalik | |
![]() |
EdmDumpEventContent.txt | r1 | manage | 31.3 K | 2009-10-13 - 06:02 | SudhirMalik | |
![]() |
EdmEventSize.txt | r1 | manage | 19.2 K | 2009-10-13 - 06:04 | SudhirMalik | |
![]() |
EdmProvDump.txt | r1 | manage | 643.2 K | 2009-10-13 - 06:03 | SudhirMalik | |
![]() |
Event5300.png | r1 | manage | 194.4 K | 2009-10-09 - 03:54 | SudhirMalik | |
![]() |
GridTaskMonitoring.pdf | r1 | manage | 119.5 K | 2009-10-09 - 03:53 | SudhirMalik | |
![]() |
Menu.png | r1 | manage | 22.9 K | 2009-10-09 - 03:54 | SudhirMalik | |
![]() |
MuonMultDist.png | r1 | manage | 22.5 K | 2009-10-07 - 22:54 | SudhirMalik | |
![]() |
Muon_pt.png | r1 | manage | 22.4 K | 2009-10-13 - 06:26 | SudhirMalik | |
![]() |
Tracks.png | r1 | manage | 74.0 K | 2009-10-09 - 03:53 | SudhirMalik | |
![]() |
condorjob.txt | r1 | manage | 0.8 K | 2009-10-09 - 07:58 | SudhirMalik | |
![]() |
crab.cfg | r1 | manage | 0.6 K | 2009-10-09 - 03:49 | SudhirMalik | |
![]() |
root1.png | r1 | manage | 17.0 K | 2009-10-09 - 06:03 | SudhirMalik | |
![]() |
root2.png | r1 | manage | 18.4 K | 2009-10-09 - 06:03 | SudhirMalik | |
![]() |
root3.png | r1 | manage | 21.1 K | 2009-10-09 - 06:04 | SudhirMalik | |
![]() |
root4.png | r1 | manage | 23.5 K | 2009-10-09 - 06:04 | SudhirMalik | |
![]() |
root5.png | r1 | manage | 26.8 K | 2009-10-09 - 06:04 | SudhirMalik | |
![]() |
root6.png | r1 | manage | 33.9 K | 2009-10-09 - 06:04 | SudhirMalik | |
![]() |
root7.png | r1 | manage | 21.3 K | 2009-10-09 - 06:05 | SudhirMalik | |
![]() |
simplePAT.csh | r1 | manage | 0.3 K | 2009-10-09 - 03:50 | SudhirMalik | |
![]() |
simplePAT.csh.txt | r1 | manage | 0.3 K | 2009-10-09 - 07:42 | SudhirMalik | |
![]() |
simplePAT.log | r1 | manage | 29.9 K | 2009-10-13 - 07:56 | SudhirMalik | |
![]() |
simplePAT314.log | r1 | manage | 29.9 K | 2009-10-13 - 08:01 | SudhirMalik | |
![]() |
simplePAT314_cfg.py.txt | r1 | manage | 0.6 K | 2009-10-13 - 08:57 | SudhirMalik | |
![]() |
simplePAT_313451.condorlog | r1 | manage | 1.0 K | 2009-10-09 - 03:48 | SudhirMalik | |
![]() |
simplePAT_313451.stdout | r1 | manage | 0.1 K | 2009-10-09 - 03:49 | SudhirMalik | |
![]() |
simplePAT_cfg.py.txt | r1 | manage | 0.5 K | 2009-10-13 - 06:32 | SudhirMalik |
![]() |
![]() |
![]() |
![]() |
|
![]() |
|
![]() |