Skip to content

feipengsy/DeepPID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

DeepPID

Installation

  1. Setup the BOSS (tested with 7.0.5) environment
  2. Download the code and compile using CMT
git clone https://github.com/feipengsy/DeepPID.git
# If you are on lxslc7, you could source the following setup.sh to setup ml packages. Otherwise see next section
source DeepPID/setup.sh 
cd DeepPID/DeepParticleID/DeepParticleID-00-00-01/cmt
cmt config
make
source setup.sh
  1. Edit your requirements file of your analysis package, add use DeepParticleID DeepParticleID-*
  2. This is an example code of using the DeepParticleID code:
#include "DeepParticleID/DeepParticleID.h"

StatusCode Analysis::execute() {

  //...
  
  DeepParticleID* pid = new DeepParticleID(XGBoost);
  pid->calculate(evtRecTrack);
  float prob_pi = pid->prob(2);
  float prob_K = pid->prob(3);

  //...
  delete pid;
}

Setup ML packages

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published