-
Notifications
You must be signed in to change notification settings - Fork 2
/
DTTnPBaseAnalysis.h
56 lines (39 loc) · 1.1 KB
/
DTTnPBaseAnalysis.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
47
48
49
50
51
52
53
54
55
56
#ifndef DTTnPBaseAnalysis_h
#define DTTnPBaseAnalysis_h
#include "DTAnalyzer.h"
#include "DTTnPConfig.h"
#include "TLorentzVector.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TEfficiency.h"
#include <string>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <vector>
#include <bitset>
#include <regex>
#include <map>
class DTTnPBaseAnalysis : public DTAnalyzer
{
public:
DTTnPBaseAnalysis(const std::string & configFile);
~DTTnPBaseAnalysis() { };
void Loop() override;
protected:
void Init(TChain* chain) override { DTAnalyzer::Init(chain); };
void pharseConfig(const std::string & configFile);
std::vector<std::pair<Int_t,Int_t>> tnpSelection();
bool hasTrigger(const Int_t iTag);
Int_t nMatchedCh(const Int_t iMu, const Int_t iCh);
virtual void book();
virtual void fill(Int_t iMu) { };
virtual void endJob() { };
TagAndProbeConfig m_tnpConfig;
SampleConfig m_sampleConfig;
std::vector<std::string> * m_triggerFilterNames;
Int_t m_hltFilterId;
std::map<std::string, TH1*> m_plots;
std::map<std::string, TEfficiency*> m_effs;
};
#endif