|
ant
A2 ant: class-based analysis framework
|
The DetEff class. More...
#include <det_eff.h>
Collaboration diagram for ant::analysis::utils::scratch_collicott_DetEff:Classes | |
| struct | DetEff_t |
| struct | Stats_t |
Public Member Functions | |
| scratch_collicott_DetEff (const HistogramFactory &histFac, OptionsPtr opts) | |
| virtual | ~scratch_collicott_DetEff () |
| void | SetEventType (bool isSignal, const std::string decay) |
| void | TrackSignalEvent (const LorentzVec &sp, const double &sp_time, const TTaggerHit &tc, const PromptRandom::Switch &promptrandom) |
| void | AcceptEvent (const LorentzVec &sp, const double &sp_time, const TTaggerHit &tc, const PromptRandom::Switch &promptrandom) |
| void | AcceptSigEvent (const LorentzVec &sp, const double &sp_time, const TTaggerHit &tc, const PromptRandom::Switch &promptrandom) |
| void | AcceptBkgEvent (const LorentzVec &sp, const double &sp_time, const TTaggerHit &tc, const PromptRandom::Switch &promptrandom) |
| void | FillDetEff (DetEff_t &t, const LorentzVec &sp, const double &sp_time, const TTaggerHit &tc, const PromptRandom::Switch &promptrandom) |
Protected Attributes | |
| HistogramFactory | HistFac |
| Stats_t | stats |
| DetEff_t | total |
| DetEff_t | accepted |
| DetEff_t | contamination |
| bool | Signal = false |
| std::string | Decay = "" |
Static Protected Attributes | |
| static constexpr auto | radtodeg = std_ext::radian_to_degree(1.0) |
The DetEff class.
This class stores a set of yield trees needed to calculate detection efficiencies
DetEff tree used to store full kinematics of
USE:
Once per event:
if(event.Reconstructed().ID.isSet(ant::TID::Flags_t::MC))
detection_efficiency.SetEventType(signal,decay);
If signal event, and MC event, loop over tagger channels:
for (const auto &tc : event.Reconstructed().TaggerHits){
promptrandom.SetTaggerHit(tc.Time);
detection_efficiency.TrackSignalEvent(*pi0, 0, tc, promptrandom);
}
After all cuts, if MC event, loop over tagger channels:
for (const auto &tc : event.Reconstructed().TaggerHits){
promptrandom.SetTaggerHit(tc.Time);
detection_efficiency.AcceptEvent(Meson,Meson_time, tc,promptrandom);
} | scratch_collicott_DetEff::scratch_collicott_DetEff | ( | const HistogramFactory & | histFac, |
| OptionsPtr | opts | ||
| ) |
|
inlinevirtual |
| void scratch_collicott_DetEff::AcceptBkgEvent | ( | const LorentzVec & | sp, |
| const double & | sp_time, | ||
| const TTaggerHit & | tc, | ||
| const PromptRandom::Switch & | promptrandom | ||
| ) |
|
inline |
| void scratch_collicott_DetEff::AcceptSigEvent | ( | const LorentzVec & | sp, |
| const double & | sp_time, | ||
| const TTaggerHit & | tc, | ||
| const PromptRandom::Switch & | promptrandom | ||
| ) |
| void scratch_collicott_DetEff::FillDetEff | ( | DetEff_t & | t, |
| const LorentzVec & | sp, | ||
| const double & | sp_time, | ||
| const TTaggerHit & | tc, | ||
| const PromptRandom::Switch & | promptrandom | ||
| ) |
| void scratch_collicott_DetEff::SetEventType | ( | bool | isSignal, |
| const std::string | decay | ||
| ) |
| void scratch_collicott_DetEff::TrackSignalEvent | ( | const LorentzVec & | sp, |
| const double & | sp_time, | ||
| const TTaggerHit & | tc, | ||
| const PromptRandom::Switch & | promptrandom | ||
| ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |