mkdir my_sim
do_rate_normalization:true global_factor:1 cross_section:80 author:BRIL Rad Sim tag:v.3.7.20.0 detail_description: FLUKA simulation of CMS cavern. ---------------------------------------------------------- Some description of the simulation goes here e.g. about geometry, cut-offs or anything that might be important. Copy the whole into an empty file, adjust the parameter values if needed and save it as description.txt .
file:my_usrbin_output_1.bnn scoring:0 name_of_scoring: All particles (central region) particle_type:201 x_min:0.0 x_max:303.0 x_n_bins:303 x_bin_width:1.0 y_min:-3.14159274101 y_max:3.14159274101 y_n_bins:1 y_bin_width:6.28318548203 z_min:-680.0 z_max:680.0 z_n_bins:680 z_bin_width:2.0 file:my_usrbin_output_2.bnn scoring:1 name_of_scoring: Protons (full cavern) particle_type:1 x_min:0.0 x_max:1600.0 x_n_bins:160 x_bin_width:10.0 y_min:-3.14159274101 y_max:3.14159274101 y_n_bins:1 y_bin_width:6.28318548203 z_min:-2750.0 z_max:2750.0 z_n_bins:550 z_bin_width:10.0
python start.py ../data/my_sim
. This will extract the data and error tables of each detector from each .bnn into separate files, make a header.txt to each .bnn with information on the simulated primaries and number of batches (lxbatch split structure) and merge the config files into a single one (in case you created one separately for each .bnn).
mkdir /eos/cms/store/group/dpg_bril/comm_bril/www/webtooldata-staging/my_sim
xrdcp * /eos/cms/store/group/dpg_bril/comm_bril/www/webtooldata-staging/my_sim
cd ~/.ssh/
, or on Windows go to C:\Users\myuser\.ssh
. Create a new file called config and paste the lines below: Host cernsocks HostName lxplus.cern.ch DynamicForward 26852 ServerAliveInterval 5 TCPKeepAlive yes StrictHostKeyChecking no Compression yes Protocol 2 ForwardAgent yes
ssh -Nf cernsocks
in the terminal. This should prompt for your lxplus account's password.[Troubleshoot] Slow connection, timeout, no prompt for password: when connecting to lxplus, it assigns the user a random physical machine (node) depending on the cluster's resources i.e. the busyness of the nodes. This dynamic port forwarding might be refused by your system. In this case a simple but dirty solution is to skip forwarding and directly connect to a node by adding the node ID by writing e.g. lxplus6 instead of lxplus in the config file. Please note that since many users are using lxplus, the individual nodes might occasionally be overloaded and thus unavailable for new connections. Alternatively, you can try turning off your antivirus and firewall and try to connect like that. It might also worth trying to type ssh -C -D 26852 -Nf lxplus.cern.ch
in the terminal instead of using the config file. For debugging, you can use the verbosity options -v
-vv
or -vvv
after the ssh commands.
about:profiles
into the URL field and click on Create a new profile then enter a name for the profile the click on finish.
about:config
into the URL field. Then type proxy
into the search field on the top to display proxy settings.
network.proxy.type value 1 network.proxy.socks value localhost network.proxy.socks_port value 26852 network.proxy.socks_remote_dns value true network.proxy.no_proxies_on value localhostYou can get a more detailed description of this step here.
cd ~/.ssh/
then typing ssh-keygen -t rsa -C "firstname.lastname@cern.ch"
. When the terminal prompts Enter file in which to save the key ..., type id_rsa_cern_gitlab
to give this as a name to the ssh keys. Press enter to proceed, then skip the Enter passphrase ... prompts by pressing enter twice more. Now you should see the newly generated private id_rsa_cern_gitlab and public id_rsa_cern_gitlab.pub ssh keys in the .ssh directory.
chmod 500 id_rsa_cern_gitlab
to give yourself read and execute privileges for the private key. It is more important to block all privileges for everyone else (the last two digits are 0) for security reasons.
vi id_rsa_cern_gitlab.pub
and copy the whole content.
CERN Gitlab
then press Add key below. This will enable your machine to communicate with GitLab through your newly generated public ssh key.
eval $(ssh-agent)
in the terminal.
ssh-add ~/.ssh/id_rsa_cern_gitlab
cd
. Then type the following to download the source code of the front end and back end respectively: git clone -b dev-master ssh://git@gitlab.cern.ch:7999/cms-radiation-simulation-tools/web-tool-frontend.git git clone -b dev-master ssh://git@gitlab.cern.ch:7999/cms-radiation-simulation-tools/web-tool-backend.git
git status
or git log
. The former prints out the file names that are different i.e. contain modifications compared to the current version on GitLab. The latter prints out a long history of previous commits by all editors.
git commit -a -m "write some short comment about the changes here"
git push origin dev-master
for pushing the changes. This uploads your modified files to the dev-master branch of the repository.
git reset --hard ID
where ID is a combination of letters and numbers and is a unique identifier of a commit and can be found either in git log or on the right side in the history entry in the browser by clicking on Copy commit SHA.