-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRedTriggerTree.hh
More file actions
43 lines (35 loc) · 1.11 KB
/
RedTriggerTree.hh
File metadata and controls
43 lines (35 loc) · 1.11 KB
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
#ifndef RedTriggerTree_hh
#define RedTriggerTree_hh
#include "TFile.h"
#include "TTree.h"
class RedTriggerTree {
public:
RedTriggerTree(const char * filename = "trigger.root");
~RedTriggerTree();
//! fill the MC truth informations
void fillMcTruth(bool decayEE, bool decayMM, bool decayEM, bool promptEE, bool promptMM, bool promptEM);
//! fill the HLT electron triggers informations
void fillHLTElectrons(bool singleEle, bool singleEleRelaxed=false, bool singleEleOR=false);
//! fill the HLT muons triggers informations
void fillHLTMuons(bool singleMuon, bool singleMuonRelaxed=false, bool singleMuonOR=false);
//! effectively store the events in the tree
void store();
//! save in the ROOT file
void save();
private:
bool myDecayEE;
bool myDecayMM;
bool myDecayEM;
bool myPromptDecayEE;
bool myPromptDecayMM;
bool myPromptDecayEM;
bool myHLTSingleElectron;
// bool myHLTSingleElectronRelaxed;
// bool myHLTSingleElectronOR;
bool myHLTSingleMuon;
// bool myHLTSingleMuonRelaxed;
// bool myHLTSingleMuonOR;
TFile* myFile;
TTree* myTree;
};
#endif // RedTriggerTree_hh