Skip to content

FCALSW/ElectronEfficiency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElectronEfficiency

BuildStatus

Build Status

HowTo

Requires $ROOTSYS is set, and cmake in the $PATH Then:

mkdir build
cd build
cmake ..
make install

Producing libTagProbability.so. The folder EfficiencyFiles contains the efficiencies in root 2d efficiency histograms

To use it Create an object (once per analysis, not once per event...

TagProbability myTP("Path/To/EfficienyFiles/OBC%i_TwoFourCut_Full_50k_4_40BX.root"); //The %i is important

Then you can call

   double GetProbability(const TLorentzVector& electron) const;
   double GetProbability(double gevEnergy, double mradTheta, double degreesPhi) const;
   bool IsTagged(const TLorentzVector& electron) const;

to query for the efficiency, or isTagged which will say true/false based on random number generator

About

FastMC for BeamCal ElectronEfficiency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published