-- IrvingDanielSandovalGonzalez - 2014-11-25


To edit the note you need the following svn commands:

To create the repository

  • svn co -N svn+ssh://<user>@svn.cern.ch/reps/tdr2 MyNotes # where MyNotes is a placeholder for a name of your choice
  • cd MyNotes
  • svn update utils
  • svn update -N notes
  • svn update notes/AN-15-107
  • eval `./notes/tdr runtime -sh`
  • cd notes/AN-15-107/trunk
To commit changes to a file simply do:
  • svn ci -m "My log comment"
If you add NEW files, then add them first then commit by doing
  • svn add new file
To compile
  • tdr --style=pas b AN-15-107


CONDOR allows the user to submit jobs into the lpc batch farm. REMEMBER THAT CONDOR RUNS ONLY IN EOS. The following steps describe how to use it:

1. Create a condor config file that specifies: the executable file, the memory requirements, the transfer files status, etc. An example can be found here:


universe = vanilla

Executable = sframe_condor_exe.sh

Requirements = Memory >= 199 &&OpSys = "LINUX"&& (Arch ! "DUMMY" )&& Disk > 1000000

+BigMemoryJob = TRUE

Output = ttbarredo_sframe_$(Cluster)_$(Process).stdout

Error = ttbarredo_sframe_$(Cluster)_$(Process).stderr

Log = ttbarredo_sframe_$(Cluster)_$(Process).log

notify_user = ${LOGNAME}@FNAL.GOV

Arguments = #XMLFILE#

Queue 1

2. Create the executable file , which is called by the config file has the commands you usually ran in your command line, an example can be found here:


#! /bin/bash

# Source version of CMSSW associated to SFRAME

cd /uscms/home/.../CMSSW_X_Y_Z/src

eval `scramv1 runtime -sh` cd /uscms/home/.../SFrame14/

source setup.sh

# Run the sframe job

cd /eos/uscms/store/user/dansand/ZprimeAnalysis2012 sframe_main $1





To upload stuff into your cern website, simply log in to lxplus and create (if not existent) directory where you wanna upload the file. Then just scp the file to the directory:

scp myfile.png isandova@lxplus6NOSPAMPLEASE.cern.ch:/afs/cern.ch/user/i/isandova/www/html/mydirectory



1.Remote Declaring

git init

=git remote add FolderName https://github.com/username/FolderName.git=

2. Add and commit

git add myfile.cxx

git commit -m "Comment here"

3. Push to remote and branch

git push FolderName master

You can also check the remotes git remote -v



For a collaborative effort, the easiest way of synchronizing and committing code is by creating a "fork" of the repository you want to collaborate with. Use this "fork" version to commit your code locally (after testing it) and submit a "pull request" after you make sure you have the 2 remotes (your local remote and the upstream).

A useful explanation can be found here:

https://help.github.com/articles/fork-a-repo/

After forking the repository, add your file(s) and commit the changes as usual

  • git add myfile
  • git commit -m "added myfile
Then push the file into your repository (usually origin) and to the desired branch:
  • git push (remotename) (branchname)
Sometimes the push command does not work (error 403), in that case change the ulr from https to ssh:

After the changes have been commited and pushed, you can now check your repository and see that the changes are there, then you are ready to do a pull request.

https://help.github.com/articles/using-pull-requests/

And for the specific case of CMSSW, more info can be found here:

http://cms-sw.github.io/tutorial.html




Running the limits is done as follows:

1) Create the theta input file. For this step you need the post-selection root files. To merge the files you can use the root script write_test_theta_file.C, you just need to have the root file in the same directory where this script is being run.

2) Rebinning the theta input file. After running the script of step 1) theta_input.root file will be created, in the tails of the distribution due to small statistics we rebin the histogram such that the error is less than 30%. To rebin, you just need to run the python script histogram_rebinning_simple.py

3) Create a model in theta. To create from scratch a model, look here: http://www-ekp.physik.uni-karlsruhe.de/~ott/theta/theta-auto/intro.html#first-example . Otherwise you can use the default model analysis_comb.py

4) Run theta. Once you have the rebinned theta input file and the python model file, you are set to run theta. To do so, go to the ../utils2/ directory and create a directory and put there the root file and the python file. Then simply do: ../../../theta/utils2/theta-auto.py analysis_comb.py



To open on emacs files through ssh do:
  • C-x C-f /ssh:user@192.168.1.5:/usr/share/nginx/html/index.html
Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r14 - 2017-06-21 - IrvingDanielSandovalGonzalez
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback