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
59  :
60  t(threshold),
61  suffix(Form("_%s_%d", method, threshold)),
62  ref (new TH2F("ref" + suffix, ";p_{T}^{PF corr} (GeV);N_{ref}" , nPtBins, pt_edges.data(), nYbins, y_edges.data())),
63  test (new TH2F("test" + suffix, ";p_{T}^{PF corr} (GeV);N_{test}" , nPtBins, pt_edges.data(), nYbins, y_edges.data())),
64  hAll (new TH2F("all" + suffix, ";p_{T}^{PF corr} (GeV);p_{T}^{HLT} (GeV)", nPtBins, pt_edges.data(), nThresholds, thresholds.data())),
65  hFired (new TH2F("fired" + suffix, ";p_{T}^{PF corr} (GeV);p_{T}^{HLT} (GeV)", nPtBins, pt_edges.data(), nThresholds, thresholds.data())),
66  hFiredThreshold(new TH2F("firedMatching" + suffix, ";p_{T}^{PF corr} (GeV);p_{T}^{HLT} (GeV)", nPtBins, pt_edges.data(), nThresholds, thresholds.data())),
67  hHLTmap (new TH2F("HLTmap" + suffix, "; #phi^{hlt} ; #eta^{hlt}" , 200, -M_PI, M_PI, 200, -5, 5))
68  {
69  assert(find(thresholds.begin(), thresholds.end(), t) != thresholds.end());
70  }

Member Function Documentation

◆ Fill()

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

◆ Write()

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

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:53
DAS::Normalisation::thresholds
vector< double > thresholds
Definition: getTriggerCurves.cc:41
DAS::Normalisation::nThresholds
int nThresholds
Definition: getTriggerCurves.cc:42
DAS::pt_edges
static const std::vector< double > pt_edges
Definition: binnings.h:33
DAS::JetEnergy::w
static const float w
Definition: common.h:51
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:56
DAS::Normalisation::Efficiency::hHLTmap
TH2 * hHLTmap
Eta vs phi distribution of the HLT jets.
Definition: getTriggerCurves.cc:57
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:55
DAS::Normalisation::Efficiency::suffix
const TString suffix
name
Definition: getTriggerCurves.cc:51
DAS::Normalisation::Efficiency::t
const int t
Definition: getTriggerCurves.cc:50
DAS::Normalisation::Efficiency::ref
TH2 * ref
count of jets by reference trigger
Definition: getTriggerCurves.cc:52
DAS::Normalisation::Efficiency::hAll
TH2 * hAll
Definition: getTriggerCurves.cc:54
DAS::nYbins
static const int nYbins
Definition: binnings.h:38