Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LeptonID #232

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

LeptonID #232

wants to merge 18 commits into from

Conversation

MarianaT27
Copy link
Collaborator

No description provided.

src/iguana/algorithms/clas12/LeptonIDFilter/Algorithm.cc Outdated Show resolved Hide resolved
Comment on lines 9 to 18
double P;
double Theta;
double Phi;
double SFpcal;
double SFecin;
double SFecout;
double m2pcal;
double m2ecin;
double m2ecout;
double score;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either each one of these members needs to be documented, or you can use @doxygen_off and @doxygen_on to avoid having to write documentation here.

Comment on lines 21 to 34
///
/// @brief_algo This is a template algorithm, used as an example showing how to write an algorithm.
///
/// Provide a more detailed description of your algorithm here.
///
/// @begin_doc_algo{clas12::LeptonIDFilter | Filter}
/// @input_banks{REC::Particle}
/// @output_banks{REC::Particle}
/// @end_doc
///
/// @begin_doc_config
/// @config_param{exampleInt | int | an example `integer` configuration parameter}
/// @config_param{exampleDouble | double | an example `double` configuration parameter}
/// @end_doc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to document this algorithm; see other algorithms for examples.

Comment on lines +81 to +115
//Create TMVA reader
TMVA::Reader *readerTMVA = new TMVA::Reader();

///Set of variables for the reader
///Momentum
Float_t P;
///Theta angle
Float_t Theta;
///Phi angle
Float_t Phi;
///Sampling fraction on the PCAL
Float_t PCAL;
///Sampling fraction on the ECIN
Float_t ECIN;
///Sampling fraction on the ECOUT
Float_t ECOUT;
///Second-momenta of PCAL
Float_t m2PCAL;
///Second-momenta of ECIN
Float_t m2ECIN;
///Second-momenta of ECOUT
Float_t m2ECOUT;

/// @brief Add variables to the readerTMVA
readerTMVA->AddVariable( "P",&P );
readerTMVA->AddVariable( "Theta",&Theta);
readerTMVA->AddVariable( "Phi",&Phi);
readerTMVA->AddVariable( "SFPCAL",&PCAL);
readerTMVA->AddVariable( "SFECIN",&ECIN);
readerTMVA->AddVariable( "SFECOUT",&ECOUT );
readerTMVA->AddVariable( "m2PCAL",&m2PCAL);
readerTMVA->AddVariable( "m2ECIN",&m2ECIN);
readerTMVA->AddVariable( "m2ECOUT",&m2ECOUT);

readerTMVA->BookMVA( "BDT", o_weightfile_fullpath );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The header should only declare the variables, not define them; the definitions could go in the Start() method in Algorithm.cc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Unsorted
Development

Successfully merging this pull request may close these issues.

2 participants