DAS  3.0
Das Analysis System
Efficiency

Description

Efficiency does not exactly contain the trigger efficiency curve, but rather the histograms to fill in order to get the efficiency curve, namely the reference trigger and the test trigger histograms.

Public Member Functions

 Efficiency (const char *method, int threshold)
 
void Fill (const FourVector &p4, bool fired, double w=1)
 
void Write (TDirectory *d)
 

Public Attributes

const int t
 
const TString suffix
 
TH2 * ref
 
TH2 * test
 
TH2 * hAll
 
TH2 * hFired
 
TH2 * hFiredThreshold
 
TH2 * hHLTmap
 

Constructor & Destructor Documentation

◆ Efficiency()

Efficiency ( const char *  method,
int  threshold 
)
inline
Todo:
throw exception on bad threshold
62  :
63  t(threshold),
64  suffix(Form("_%s_%d", method, threshold)),
65  ref (new TH2F("ref" + suffix, ";p_{T}^{PF corr} (GeV);N_{ref}" , nPtBins, pt_edges.data(), nYbins, y_edges.data())),
66  test (new TH2F("test" + suffix, ";p_{T}^{PF corr} (GeV);N_{test}" , nPtBins, pt_edges.data(), nYbins, y_edges.data())),
67  hAll (new TH2F("all" + suffix, ";p_{T}^{PF corr} (GeV);p_{T}^{HLT} (GeV)", nPtBins, pt_edges.data(), nThresholds, thresholds.data())),
68  hFired (new TH2F("fired" + suffix, ";p_{T}^{PF corr} (GeV);p_{T}^{HLT} (GeV)", nPtBins, pt_edges.data(), nThresholds, thresholds.data())),
69  hFiredThreshold(new TH2F("firedMatching" + suffix, ";p_{T}^{PF corr} (GeV);p_{T}^{HLT} (GeV)", nPtBins, pt_edges.data(), nThresholds, thresholds.data())),
70  hHLTmap (new TH2F("HLTmap" + suffix, "; #phi^{hlt} ; #eta^{hlt}" , 200, -M_PI, M_PI, 200, -5, 5))
71  {
72  assert(find(thresholds.begin(), thresholds.end(), t) != thresholds.end());
73  }

Member Function Documentation

◆ Fill()

void Fill ( const FourVector p4,
bool  fired,
double  w = 1 
)
inline
76  {
77  float y = std::abs(p4.Rapidity());
78  ref->Fill(p4.Pt(), y, w);
79  if (fired)
80  test->Fill(p4.Pt(), y, w);
81  }

◆ Write()

void Write ( TDirectory *  d)
inline
84  {
85  d->cd();
86  auto dd = d->mkdir(Form("HLT%d", t));
87  dd->cd();
88  for (auto h: {ref, test, hAll, hFired, hFiredThreshold, hHLTmap}) {
89  h->SetDirectory(dd);
90  TString name = h->GetName();
91  name.ReplaceAll(suffix,"");
92  h->Write(name);
93  }
94  }

Member Data Documentation

◆ hAll

TH2 * hAll

◆ hFired

TH2 * hFired

CP for all matched jets IFF the trigger has fired.

◆ hFiredThreshold

TH2 * hFiredThreshold

CP for all matched jets IFF the trigger has fired AND the matched HLT jet is above the HLT threshold.

◆ hHLTmap

TH2 * hHLTmap

Eta vs phi distribution of the HLT jets.

◆ ref

TH2* ref

count of jets by reference trigger

◆ suffix

const TString suffix

name

◆ t

const int t

◆ test

TH2 * test

count of jets by test & reference triggers


The documentation for this struct was generated from the following file:
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.name
name
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:48
method
method
Definition: Core-gitclone-lastrun.txt:5
DAS::y_edges
static const std::vector< double > y_edges
Definition: binnings.h:36
DAS::Normalisation::Efficiency::test
TH2 * test
count of jets by test & reference triggers
Definition: getTriggerCurves.cc:56
DAS::Normalisation::thresholds
vector< double > thresholds
Definition: getTriggerCurves.cc:44
DAS::Normalisation::nThresholds
int nThresholds
Definition: getTriggerCurves.cc:45
DAS::pt_edges
static const std::vector< double > pt_edges
Definition: binnings.h:33
DAS::JetEnergy::w
static const float w
Definition: common.h:47
DAS::Normalisation::Efficiency::hFiredThreshold
TH2 * hFiredThreshold
CP for all matched jets IFF the trigger has fired AND the matched HLT jet is above the HLT threshold.
Definition: getTriggerCurves.cc:59
DAS::Normalisation::Efficiency::hHLTmap
TH2 * hHLTmap
Eta vs phi distribution of the HLT jets.
Definition: getTriggerCurves.cc:60
DAS::nPtBins
static const int nPtBins
Definition: binnings.h:39
DAS::Normalisation::threshold
const float threshold
Definition: sigmoid.h:14
DAS::Normalisation::Efficiency::hFired
TH2 * hFired
CP for all matched jets IFF the trigger has fired.
Definition: getTriggerCurves.cc:58
DAS::Normalisation::Efficiency::suffix
const TString suffix
name
Definition: getTriggerCurves.cc:54
DAS::Normalisation::Efficiency::t
const int t
Definition: getTriggerCurves.cc:53
DAS::Normalisation::Efficiency::ref
TH2 * ref
count of jets by reference trigger
Definition: getTriggerCurves.cc:55
DAS::Normalisation::Efficiency::hAll
TH2 * hAll
Definition: getTriggerCurves.cc:57
DAS::nYbins
static const int nYbins
Definition: binnings.h:38