Git Product home page Git Product logo

localpolnew's Introduction

This module calculates the raw square root asymmetries of forward neutrons in the ZDC/SMD.

Running standalone:

  1. cd macros/
  2. root.exe
  3. .x Fun4All_ZDCNeutronLocPol.C(<DST_file>,<output_file>,<startEvent>,<nEvents>)

<DST_file>: use a raw triggered DST found in /sphenix/lustre01/sphnxpro/commissioning/slurp/calophysics/ or /sphenix/lustre01/sphnxpro/physics/slurp/calophysics/ <output_file>: output root file that contains SMD hit trees
<startEvent>: Event to start Fun4All at, default: 0
<nEvents>: Number of events Fun4All will run over, default: 10000

Running with condor:
To detect a percent level asymmetry it becomes necessary to run over greater than 10^7 events. Each segment of the automatically produced DSTs contain 10000 events so we can utilize condor to speed up our workflow.

  1. cd macros/
  2. In run_smd.sh, ensure that condor=true and fullrun=true
  3. In run_smd.sh, set fname to the input DST with %04d where the segment number would be e.g. "DST_TRIGGERED_EVENT_run2pp_new_2024p001-00042797-%04d.root"
  4. Ensure that the directory in ofname1 exists
  5. In runsmd.job, change Initialdir to your directory
  6. In runsmd.job, set Queue <number_of_jobs>, default <number_of_jobs> = 500 (do not do too many more than this at one time)
  7. condor_submit runsmd.job

Square root asymmetries:
Once you have your trees produced, the raw square root asymmetries are calculated and drawn by:

  1. root.exe
  2. .x drawAsym.C(<tree_file>,<storenumber>,<runnumber>)

<tree_file>: root output file from Fun4All containing SMD hit trees
<storenumber>: store number, default: 34485
<runnumber>: run number, default: 42796

Example results:
The asymmetries of Runs 42796+42797 from store 34485 can be seen in macros/output

Contact [email protected] if you have any questions.

localpolnew's People

Contributors

gwd213 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.