Run Dependence


Contents

* Overview

* Software

* Download Files
* Making Tables Yourself

 

Overview

Making calibration tables for the EMTiming system averages over lots of data. This data often is taken over one or two month periods. There are small clock shifts that can happen from one run to another due to various effects like temperature changes or playing with the clock itself. This page describes how the Run-by-Run corrections produced and applied, and also provides all software so that the user can start applying these corrections.

Back to top

 

Software

The tables are in the simple text database format now. Once the calibrations are available, the W->enu sample is selected and the mean shift for each run is recorded. The tool that is used at the moment can be found here. The user should download it into the directory and include in the header file of the main script/module. Below is the example of how to use it with explanations. The tool is written so that it can be

//Specify that you want to read the table, not create it
RunDependence::OperMode opmode = RunDependence::READM;
//Create the tool, provide the name of the file it should be reading
RunDependence *cemT0Runs=new RunDependence(opmode,"emtcemclock_new1");
//Now for each run
//Check that the file has the correction for that run
if(! cemT0Runs->hasRunCorrection(runNumber)){
    std::cout<<" \t ^^^ Run = "<<runNumber<<" no entry "<<(*svr)->varName()<<"\n";

}
//Create Now get the correction for this run
Float_t rct = _cemT0Runs->getRunCorrection(runNumber);
//At the end tell the tool that you are done
_cemT0Runs->endJob();

 

Back to top

 

Download Files

Below are the link to the files I created from W electrons. Runs with small luminosity do not have corrections as there were not enough electrons to get a good Gaussian. The reason the electrons are is used is simple: single jet and photon time distribution is skewed by beam halo and cosmics. One might select diphoton or photon plus jet sample to make the calibrations. If you do, please send me what you get, I will add it to this web page. Single file is for a single detector component.
New 2 fb-1 CEM file is here, old CEM file is here
old PEM file is here
For PEM trackless electrons (photons) were used, but in plug beam halo and cosmics is not a problem.



Back to top

 

Making Tables Yourself

Here is how to make the tables yourself using the tool provided. Select your favorite dataset and choose the variable you would like to plot as a function of the run number. And here is what you should do:
 
//Specify that you want to make the table, not just read it
RunDependence::OperMode opmode = RunDependence::WRITEM;
//Create the tool, provide the name of the file it should be reading
RunDependence *cemT0Runs=new RunDependence(opmode,"emtcemclock_new1");
//Now for each event add the value to this run
_cemT0Runs->addEvent(runNumber,t0);

//At the end tell the tool that you are done, it will make two files for you - text and root

_cemT0Runs->endJob();


Back to top

 

 

Send comments to Max Goncharov (mailto:maxi@fnal.gov)

Last revised: