-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: main
Are you sure you want to change the base?
LeptonID #232
Conversation
double P; | ||
double Theta; | ||
double Phi; | ||
double SFpcal; | ||
double SFecin; | ||
double SFecout; | ||
double m2pcal; | ||
double m2ecin; | ||
double m2ecout; | ||
double score; |
There was a problem hiding this comment.
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.
/// | ||
/// @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 |
There was a problem hiding this comment.
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.
Co-authored-by: Christopher Dilks <[email protected]>
//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 ); |
There was a problem hiding this comment.
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
.
No description provided.