DAS  3.0
Das Analysis System
TriggerLumi.h
Go to the documentation of this file.
1 #ifndef __TRIGGER_LUMI__
2 #define __TRIGGER_LUMI__
3 
4 #include <vector>
5 #include <map>
6 #include <filesystem>
7 
9 
10 #include <TString.h>
11 #include <TH1.h>
12 
13 namespace DAS {
14 
17 struct TriggerLumi {
18  int turnon;
19  float weight;
20  TH1 * h;
21  TriggerLumi (int trigger);
22  //TriggerLumi ();
23  void Fill (const std::vector<RecJet>& jets);
24 };
25 
26 std::map<int, TriggerLumi> GetLumiFromFiles
27  (const std::filesystem::path& lumi_file,
28  const std::filesystem::path& turnon_file);
29 
30 }
31 
32 #endif
DAS
Definition: applyBTagSF.cc:31
DAS::TriggerLumi
Simply structure to gather the trigger, turnon and 1/efflumi.
Definition: TriggerLumi.h:17
Jet.h
DAS::TriggerLumi::h
TH1 * h
just for some control plots (to show the contributions from the different triggers to the total spect...
Definition: TriggerLumi.h:20
Ntupliser_cfg.jets
string jets
Definition: Ntupliser_cfg.py:41
DAS::TriggerLumi::turnon
int turnon
determined with getTriggerCurves and getTriggerTurnons
Definition: TriggerLumi.h:18
DAS::TriggerLumi::TriggerLumi
TriggerLumi(int trigger)
Definition: TriggerLumi.cc:17
DAS::TriggerLumi::weight
float weight
obtained from JSON files after CRAB
Definition: TriggerLumi.h:19
DAS::GetLumiFromFiles
std::map< int, TriggerLumi > GetLumiFromFiles(const std::filesystem::path &lumi_file, const std::filesystem::path &turnon_file)
path to text file with turn-on points
DAS::TriggerLumi::Fill
void Fill(const std::vector< RecJet > &jets)
Definition: TriggerLumi.cc:25