Skip to content

Commit

Permalink
TRestComponentDataSet. Adding some documentation parts
Browse files Browse the repository at this point in the history
  • Loading branch information
jgalan committed Dec 1, 2023
1 parent 399f712 commit c354aeb
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
Binary file added doc/doxygen/images/component_hitmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/doxygen/images/component_spectra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 46 additions & 2 deletions source/framework/sensitivity/src/TRestComponentDataSet.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,52 @@
*************************************************************************/

/////////////////////////////////////////////////////////////////////////
/// This class allows to ...
///
/// This class ...
///
/// \code
/// <TRestComponentDataSet name="agSignal_vacuum">
/// <!-- We add here all the axion-photon coupling components -->
/// <dataset filename="${DUST}/Dataset_BabyIAXO_XMM_mm_Vacuum.root" weight="1" />
///
/// <variable name="final_posX" range="(-10,10)mm" bins="10" />
/// <variable name="final_posY" range="(-10,10)mm" bins="10" />
/// <variable name="final_energy" range="(0,10)keV" bins="20" />
///
/// <parameter name="weights" value="{NGamma}"/>
/// <parameter name="parameter" value="final_mass" />
/// <parameter name="parameterizationNodes" value="" />
/// </TRestComponentDataSet>
/// \endcode
///
/// \code
/// restRoot
/// [0] TRestComponentDataSet comp("components.rml", "agSignal_vacuum");
/// [1] comp.LoadDataSets()
/// [2] TFile *f = TFile::Open("vacuumComponent.root", "RECREATE");
/// [3] comp.Write("agSignal_vacuum");
/// \endcode
///
/// \code
/// restRoot vacuumComponents.root
/// [0] TCanvas *c = agVacuum->DrawComponent( { "final_posX", "final_posY"}, {"final_energy"}, 2);
/// [1] c->Print("component_hitmaps.png");
/// \endcode
///
/// \htmlonly <style>div.image img[src="component_hitmap.png"]{width:750px;}</style> \endhtmlonly
/// ![A 2-dimensional histogram scan versus the `final_energy` observable, generated by the DrawComponent
/// method](component_hitmap.png)
///
/// \code
/// restRoot vacuumComponents.root
/// [0] TCanvas *c = agVacuum->DrawComponent( { "final_energy"}, {"final_posX", "final_posY"}, 2);
/// [1] c->Print("component_hitmaps.png");
/// \endcode
///
/// In both cases each plot will regroup 2 bins.
///
/// \htmlonly <style>div.image img[src="component_spectra.png"]{width:750px;}</style> \endhtmlonly
/// ![A 1-dimensional histogram scan versus the `final_posX` and `final_posY` observables, generated by the
/// DrawComponent method](component_spectra.png)
///
///----------------------------------------------------------------------
///
Expand Down

0 comments on commit c354aeb

Please sign in to comment.