-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdumptxt.C
24 lines (17 loc) · 963 Bytes
/
dumptxt.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "TString.h"
#include "TFile.h"
#include "TTree.h"
#include "TTreePlayer.h"
#include "TCut.h"
void dumptxt()
{
TString pathAndFile =TString("/scratch/bendavid/root/hggmvaMar19/appOutput_SMmet_Feb16.root");
TFile* file = TFile::Open(pathAndFile.Data());
TTree* tup = (TTree*) file->FindObjectAny("MITMVAtuple");
((TTreePlayer*)(tup->GetPlayer()))->SetScanRedirect(true);
((TTreePlayer*)(tup->GetPlayer()))->SetScanFileName("syncdump.txt");
tup->SetScanField(0);
TCut scancut = "proc==11 && pt1>(mass/3.0) && pt2>(mass/4.0) && pt1>(100.0/3.0) && pt2>(100.0/4.0) && mass > 100. && idmva1>-0.3 && idmva2>-0.3 && mass>100 && mass<180";
tup->Scan("run:lumi:evt:mass:ptgg:pt1/mass:pt2/mass:eta1:eta2:cos(phi1-phi2):vtxprob:res:reswrong:idmva1:idmva2:e1:e2:relresraw1:relresraw2:etcorecaliso1:etcorecaliso2:etcorhcaliso1:etcorhcaliso2:etcortrkiso1:etcortrkiso2:abstrkisocic1:abstrkisocic2:mva",scancut,"colsize=10");
return;
}