-
Notifications
You must be signed in to change notification settings - Fork 0
/
PUTruthReweighting.h
46 lines (35 loc) · 1.17 KB
/
PUTruthReweighting.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
#ifndef PUTRUTHREWEIGHTING_H
#define PUTRUTHREWEIGHTING_H
#include "EventProcessor.h"
#include "TwoJetsPtBalanceEvent.h"
#include "CalibData.h"
#include "PUReweighting/LumiReweightingStandAlone.h"
#include <map>
class Parameters;
// -----------------------------------------------------------------
class PUTruthReweighting : public EventProcessor
{
public:
PUTruthReweighting(const std::string& configfile, Parameters* param);
virtual ~PUTruthReweighting();
protected:
virtual int preprocess(std::vector<Event*>& data,
std::vector<Event*>& control1,
std::vector<Event*>& control2);
virtual int postprocess(std::vector<Event*>& data,
std::vector<Event*>& control1,
std::vector<Event*>& control2) { return data.size();}
private:
std::vector <reweight::LumiReWeighting> LumiWeightsPerTrigger_;
int reweightEventVector(std::vector<Event*>& evtVector);
bool useMCReweightAll_;
std::string TruthWeightingDir_;
std::string TruthWeightingMCDistribution_;
std::map<double,int> controlTrigger_;
// std::map<double,double> weights_;
bool useSingleJetTriggers_;
std::vector<std::string> trignames_;
std::vector<double> trigthresholds_;
};
#endif