32 void RecoEfficiencyPlots::fill(std::vector<const xAOD::TruthParticle*> & truth_taus, std::vector<const xAOD::TauJet*> & reco_taus,
float weight,
float avg_mu)
40 for (
auto truth_tau : truth_taus) {
43 if(truth_tau ==
nullptr){
continue; }
45 if((acc_ptvis(*truth_tau) < 15 * Athena::Units::GeV) || (std::abs(acc_etavis(*truth_tau)) > 2.5)){
continue; }
47 if(!(accIsHadronicTau(*truth_tau))) {
continue; }
49 bool isMatched =
false;
50 for (
auto reco_tau : reco_taus) {
51 if(truth_tau->p4().DeltaR(reco_tau->p4()) < 0.2) {
60 if(acc_ntracks(*truth_tau) == 1){
61 m_eff_truth_pt_1p->Fill(acc_ptvis(*truth_tau)/Athena::Units::GeV,isMatched,weight);
66 if(acc_ntracks(*truth_tau) == 3){
67 m_eff_truth_pt_3p->Fill(acc_ptvis(*truth_tau)/Athena::Units::GeV,isMatched,weight);
TProfile * BookTProfile(std::string_view name, std::string_view labels, int nBinsX, float startX, float endX, float startY=-1, float endY=-1, bool prependDir=true, bool useRMS=false)
Book a TProfile histogram.