-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEventCalculator_cfA.h
3521 lines (3372 loc) · 155 KB
/
EventCalculator_cfA.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// -*- C++ -*-
#ifndef EVENTCALCULATOR_H
#define EVENTCALCULATOR_H
#include "CrossSectionTable.h"
//Pile-up reweighting stuff
//NOTE: Grab this header from PhysicsTools/Utilities/interface/LumiReweightingStandAlone.h
#include "LumiReweightingStandAlone.h"
#include "Lumi3DReWeighting.h"
//JES on the fly
#include "JetCorrectorParameters.h"
#include "FactorizedJetCorrector.h"
#include "JetCorrectionUncertainty.h"
#include "TLorentzVector.h"
#include "TMath.h"
#include "TGraphAsymmErrors.h"
#include "TBranch.h"
#include "TChain.h"
#include <set>
//#include "BasicLoopCU.h" //get all of the tree-related variables
namespace jmt { //hack since I don't have a header file for MiscUtil.cxx
class eventID;
}
//for PDFs
//there's an include file that we should use instead but this is easier
namespace LHAPDF {
void initPDFSet(int nset, const std::string& filename, int member=0);
int numberPDF(int nset);
void usePDFMember(int nset, int member);
double xfx(int nset, double x, double Q, int fl);
double getXmin(int nset, int member);
double getXmax(int nset, int member);
double getQ2min(int nset, int member);
double getQ2max(int nset, int member);
void extrapolate(bool extrapolate=true);
}
class TRandom3;
//global constants
const double mW_ = 80.399;
const double mZ_ = 91.2;
const double mtop_ = 172.0;
const double lumi_ = 1.; //fix to 1/pb and scale MC later (e.g. in drawReducedTrees)
class cellECAL {
public:
cellECAL(double,double,int);
double eta;
double phi;
int status;
};
class triggerData {
public:
triggerData() ;
bool pass;
int prescale;
int version;
};
class smsMasses {
public:
smsMasses(int m0=0,int m12=0,int mthird=0);
smsMasses(const smsMasses & other);
int first() {return mparent;}
int second() {return mlsp;}
bool operator== (const smsMasses & other) const;
bool operator!= (const smsMasses & other) const;
bool operator< (const smsMasses & other) const;
void print() const;
int mparent; //aka mgluino
int mlsp; //aka mlsp
int mintermediate; //aka chargino
} ;
class EventCalculator {
public:
//enums for configuration
enum scanType {kNotScan=0, kmSugra, kSMS, kpmssm};
enum METType {kPFMET=0,kPFMETTypeI};
enum jetType {kPF2PAT=0, kRECOPF};
enum isoType {kIso0=0,kIsoup,kIsodown};
enum JESType {kJES0=0,kJESup,kJESdown,kJESFLY};
enum JERType {kJER0=0,kJERbias,kJERup,kJERdown,kJERra2};
enum METuncType {kMETunc0=0,kMETuncDown,kMETuncUp};
enum PUuncType {kPUunc0=0,kPUuncDown,kPUuncUp};
enum BTagEffType {kBTagEff0=0,kBTagEffup,kBTagEffdown,kBTagEff02,kBTagEffup2,kBTagEffdown2,kBTagEff03,kBTagEffup3,kBTagEffdown3,kBTagEff05,kBTagEffup5,kBTagEffdown5};
enum HLTEffType {kHLTEff0=0,kHLTEffup,kHLTEffdown};
enum BTaggerType {kSSVM=0, kTCHET, kSSVHPT, kTCHPT, kTCHPM, kCSVT, kCSVM, kCSVL,Nbtaggers};
enum BTagEffModifier {kBTagModifier0=0,kLFdown,kLFup,kHFdown,kHFup}; //ugg...not in love with this design
EventCalculator(const TString & sampleName, const std::vector<std::string> inputFiles, jetType theJetType, METType theMETType, isoType theIsoType);
~EventCalculator();
//setters
void setBTaggerType(BTaggerType btaggertype) {theBTaggerType_ = btaggertype;}
void setOptions( const TString & opt);
//loop over events
void reducedTree(TString outputpath);
TString slimNameSubstitution(TString & currentFileName) ;
bool slim();
void slimCheck();
//PDFs
float getPDFweight(const int ipdfset, const int imember );
void plotBTagEffMC();
void fillSMShist();
void debugSMS();
//load external list of event ID's
void loadEventList( std::set<jmt::eventID> & veid, const TString & what);
bool inEventList(const std::set<jmt::eventID> & thelist);
// functions that calculate stuff
double getWeight(Long64_t nentries);
Long64_t getNEventsGenerated(TString sample="");
Long64_t getNEventsGeneratedExtended();
float getPUWeight(reweight::LumiReWeighting lumiWeights);
float PU_sumpt(int index,bool highpt);
float getMuonRelIso(const unsigned int k);
float getElectronRelIso(const unsigned int k, const bool use2012id);
bool isGoodMuon(const unsigned int imuon, const bool disableRelIso, const float ptthreshold,int & lossCode);
bool isGoodElectron(const unsigned int iele, const bool disableRelIso, const float ptthreshold, const bool use2012id,const bool tkBugFix,int &lossCode);
unsigned int countEle(const float ptthreshold,const bool use2012id,const bool tkBugFix,const bool disableRelIso,const int ttbarDecayCode,int & lostLeptonCode,const float genEta,const float genPhi) ;
bool isCleanMuon(const unsigned int imuon, const float ptthreshold,const bool disableRelIso,int & lossCode);
unsigned int countMu(const float ptthreshold,const bool disableRelIso,const int ttbarDecayCode, int & lostLeptonCode,const float genEta,const float genPhi);
bool isGoodMuon(const unsigned int imuon, const bool disableRelIso=false, const float ptthreshold=10) {
int lossCode=-1; return isGoodMuon(imuon,disableRelIso,ptthreshold,lossCode);}
bool isGoodRecoMuon(const unsigned int imuon, const bool disableRelIso=false, const float ptthreshold=10);
bool isGoodElectron(const unsigned int iele, const bool disableRelIso=false, const float ptthreshold=10, const bool use2012id=true,const bool tkBugFix=true) {
int code=-1; return isGoodElectron(iele,disableRelIso,ptthreshold,use2012id,tkBugFix,code);}
unsigned int countEle(const float ptthreshold=10,const bool use2012id=true,const bool tkBugFix=true,const bool disableRelIso=false) {
int code=-1; return countEle(ptthreshold,use2012id,tkBugFix,disableRelIso,-1,code,-99,-99);}
bool isCleanMuon(const unsigned int imuon, const float ptthreshold=10) {
int code=-1; return isCleanMuon(imuon,ptthreshold,false,code);}
unsigned int countMu(const float ptthreshold=10,const bool disableRelIso=false) {int code=-1; return countMu(ptthreshold,disableRelIso,-1,code,-99,-99);}
//for MET-Reweighting
bool isGoodTightMuon(const unsigned int imuon, const bool disableRelIso=false, const float ptthreshold=25);
bool isCleanTightMuon(const unsigned int imuon, const float ptthreshold=25);
unsigned int countTightMu(const float ptthreshold=25);
bool isIndirectTau( unsigned int ijet, const int maxmult) ;
int countIndirectTau( const int maxmult );
bool isGoodTau(const unsigned int itau, const float pTthreshold=20, const float etaMax=2.4, const TString & wp="Loose");
float getTauPt( unsigned int itau );
unsigned int countTau(const TString & wp);
float getWCandMass(int j1,int j2,int j3,int j4) ;
int countIsoPFCands(const float minpt, const float maxiso) ;
int countIsoTracks(const float minpt, const float miniso, const float maxdr, float & thept, float & theeta, float & thephi, const bool leptondisambiguation=false);
bool isQualityTrack(const int trackindex) ;
float mostIsolatedTrackValue(const float minpt, const float maxdr, float & d0,float & thept);
bool trackIsGoodElectron(const unsigned int tkidx);
bool trackIsGoodMuon(const unsigned int tkidx);
int getMaxTOBTECjetDeltaMult(int & TOBTECjetChMult);
TString stripTriggerVersion(const TString & fullname, int & version);
bool passHLT(std::map<TString,triggerData> & triggerlist, bool alwaysPassMc);
// bool passUtilityHLT(int &version, int &prescale); //deprecated
bool passUtilityPrescaleModuleHLT();
float getHLTeff(const float ht,const float met,const int nelectrons,const int nmuons) ;
int countGoodPV();
bool isGoodPV(unsigned int ipv);
bool passPV() ;
void setPVvar(float (&pv)[60], TString which);
int findNearestPVinZ();
float getHT(float ptthreshold=50);
float getST(float jetthreshold=50,float leptonthreshold=10);
float getMET(); ULong64_t lastevent_;
float getMETphi();
float getMHT();
float getMHTphi();
float getMHTphi(int ignoredJet);
// void getTransverseThrustVariables(float & thrust, float & thrustPhi, bool addMET);
void getSphericity(float & sph, bool addMET, bool addLeptons, float jetthreshold);
std::vector<unsigned int> jetsetToVector(const std::vector<unsigned int> & goodjets, const std::set<unsigned int> & myset) ;
void jjResonanceFinder(float & mjj1, float & mjj2, int & ngoodMC,const float ptcut=30);//simple first try
void hadronicTopFinder_DeltaR(float & mjjb1, float & mjjb2, float & topPT1, float & topPT2);
void printDecay();
void findGluonSplitting(int & ngl_lf,int & ngl_c,int & ngl_b,int & index_q1, int & index_q2) ;
void findGluonSplittingReco(int & nlf,int & nc,int & nb);
int jjResonance_mcTruthCheck(int jj1, int jj2);
//two ways to find deltaR between b jets
float deltaRBestTwoBjets(int & jetindex1, int & jetindex2 );
float deltaRClosestTwoBjets(int & jetindex1, int & jetindex2,const float ptcut=50 ) ;
TLorentzVector getLorentzVector( const unsigned int ijet) ;
float getDeltaPhi_hb(int j_index_1,int j_index_2) ;
unsigned int getNthGoodJet(unsigned int goodJetN, float mainpt, float maineta, bool mainid);
double getMinDeltaPhiMET(unsigned int maxjets,float ptthreshold=50,float etacut=2.4,bool useJetId=true,bool usePUbeta=true);
double getTransverseMETError(unsigned int thisJet);
double getDeltaPhiMET(unsigned int n, float ptThreshold = 50, bool bjetsonly = false);
double getDeltaPhiMETN_deltaT(unsigned int ijet, float otherpt, float othereta, bool otherid, bool dataJetRes, bool keith);
double getDeltaPhiMETN_deltaT(unsigned int ijet) { return getDeltaPhiMETN_deltaT(ijet,30,2.4,true,false,false); } //overloaded
double getDeltaPhiMETN( unsigned int goodJetN, float mainpt, float maineta, bool mainid, float otherpt, float othereta, bool otherid, bool dataJetRes, bool keith, bool useArcsin ); //Ben
double getDeltaPhiMETN( unsigned int goodJetN ) {return getDeltaPhiMETN(goodJetN,50,2.4,true,30,2.4,true,false,false,false); }; //Ben, overloaded
double getMinDeltaPhiMETN(unsigned int maxjets, float mainmt, float maineta, bool mainid, float otherpt, float othereta, bool otherid, bool dataJetRes, bool keith, bool includeLeptons=false, bool useArcsin=false ); //Ben
double getMinDeltaPhiMETN(unsigned int maxjets) {return getMinDeltaPhiMETN(maxjets,50,2.4,true,30,2.4,true,false,false,false,false); }; //Ben, overloaded
double getTransverseMETSignificance(unsigned int thisJet);
double getMaxTransverseMETSignificance(unsigned int maxjets);
double getMinTransverseMETSignificance(unsigned int maxjets);
double getMinDeltaPhiMET30(unsigned int maxjets, bool bjetsonly = false);
double getMinDeltaPhiMET30_eta5(unsigned int maxjets);
double getMinDeltaPhiMET30_eta5_noId(unsigned int maxjets);
double getMaxDeltaPhiMET(unsigned int maxjets,const float ptthreshold=50,const float etamax=2.4, const bool usejetid=true);
double getMaxDeltaPhiMET30(unsigned int maxjets);
double getMaxDeltaPhiMET30_eta5(unsigned int maxjets);
double getMaxDeltaPhiMET30_eta5_noId(unsigned int maxjets);
double getDeltaPhiMETN_electron_deltaT(unsigned int ielectron, float otherpt, float othereta, bool otherid, bool dataJetRes, bool keith);
double getDeltaPhiMETN_muon_deltaT(unsigned int imuon, float otherpt, float othereta, bool otherid, bool dataJetRes, bool keith);
double getDeltaPhiMETN_electron( const unsigned int ielectron, float otherpt, float othereta, bool otherid, bool dataJetRes, bool keith, bool useArcsin) ;
double getDeltaPhiMETN_muon( const unsigned int imuon, float otherpt, float othereta, bool otherid, bool dataJetRes, bool keith, bool useArcsin) ;
float getMaxJetMis(unsigned int rank, unsigned int maxjets, float jetpt);
float getMaxJetFracMis(unsigned int rank, unsigned int maxjets, float jetpt);
float getDeltaPhiMETJetMaxMis(float jetpt);
float getDeltaPhiStar(int & badjet,const float ptthreshold=30);
double getMinDeltaPhiMETMuons(unsigned int maxmuons);
void getCorrectedMET(float& correctedMET, float& correctedMETPhi);
void getUncorrectedMET(float& uncorrectedMET, float& uncorrectedMETPhi);
int doPBNR(); //particle based noise rejection
//functions that are mostly used internally
ULong64_t getRunNumber() {return run;}
ULong64_t getLumiSection() {return lumiblock;}
ULong64_t getEventNumber() {return event;}
bool isCleanJet(const unsigned int ijet);
bool isGoodJet(const unsigned int ijet, const float pTthreshold=50, const float etaMax=2.4, const bool jetid=true,const bool usebeta=true); //subset of isCleanJet
bool isGoodJet10(unsigned int ijet) {return isGoodJet(ijet,10,2.4,true);}
bool isGoodJet30(unsigned int ijet) {return isGoodJet(ijet,30,2.4,true);}
bool isGoodJetMHT(unsigned int ijet, const float ptthreshold=30);
bool passBTagger(int ijet, BTaggerType btagger=Nbtaggers );
float getCosHel( TLorentzVector d1, TLorentzVector d2) ;
unsigned int nGoodJets(const float ptthreshold=50, const float etaMax=2.4);
unsigned int nPUJets(const float ptthreshold, const float etaMax=2.4);
// unsigned int nGoodJets(TH2D* count,TH2D* unc,TH2D* l2l3); //for a test
unsigned int nGoodJets30();
unsigned int nGoodBJets(float ptthreshold=50, BTaggerType btagger=Nbtaggers);
unsigned int nTrueBJets();
void getSmearedUnclusteredMET(float & myMET, float & myMETphi);
void getUnclusteredMET(float & theUncMET, float & theUncMETphi);
float getJERbiasFactor(unsigned int ijet);
float getJESUncertainty( unsigned int ijet, bool addL2L3toJES );
float getJetPt( unsigned int ijet, bool addL2L3toJES=false );
float getJetEnergy( const unsigned int ijet) ;
float getUncorrectedJetPt( unsigned int ijet, bool addL2L3toJES=false );
float getJetPx( unsigned int ijet ) ;
float getJetPy( unsigned int ijet ) ;
float getJetPz( unsigned int ijet ) ;
bool jetPassLooseID( unsigned int ijet );
float getJetCSV( unsigned int ijet );
float jetPtOfN(unsigned int n);
float jetGenPtOfN(unsigned int n);
float jetPhiOfN(unsigned int n);
float jetGenPhiOfN(unsigned int n);
float jetEtaOfN(unsigned int n);
float jetGenEtaOfN(unsigned int n);
float jetEnergyOfN(unsigned int n);
int jetFlavorOfN(unsigned int n);
float jetChargedHadronFracOfN(unsigned int n);
int jetChargedHadronMultOfN(unsigned int n);
int jetNeutralHadronMultOfN(unsigned int n);
int jetMuMultOfN(unsigned int n);
float bjetPtOfN(unsigned int n);
float bjetPhiOfN(unsigned int n);
float bjetEtaOfN(unsigned int n);
float bjetEnergyOfN(unsigned int n);
float bjetBestCSV(unsigned int n,const float ptthreshold);
float bjetCSVOfN(unsigned int n);
int bjetFlavorOfN(unsigned int n);
float bjetChargedHadronFracOfN(unsigned int n);
int bjetChargedHadronMultOfN(unsigned int n);
float elePtOfN(unsigned int n, const float ptthreshold=10);
float eleEtaOfN(unsigned int n, const float ptthreshold=10);
float elePhiOfN(unsigned int n, const float ptthreshold=10);
int eleChargeOfN(unsigned int n, const float ptthreshold=10) ;
int muonChargeOfN(unsigned int n, const float ptthreshold=10) ;
float muonPtOfN(unsigned int n, const float ptthreshold=10);
float muonEtaOfN(unsigned int n, const float ptthreshold=10);
float muonPhiOfN(unsigned int n, const float ptthreshold=10);
float muonIsoOfN(unsigned int n, const float ptthreshold=10);
float muonChHadIsoOfN(unsigned int n, const float ptthreshold=10);
float muonPhotonIsoOfN(unsigned int n, const float ptthreshold=10);
float muonNeutralHadIsoOfN(unsigned int n, const float ptthreshold=10);
float getBestZCandidate(const float pt_threshold1,const float pt_threshold2);
float getBestZeeCandidate(const float pt_threshold1,const float pt_threshold2);
float getBestZmmCandidate(const float pt_threshold1,const float pt_threshold2);
float tauPtOfN(unsigned int n);
float tauEtaOfN(unsigned int n);
float recoMuonPtOfN(unsigned int n, const float ptthreshold=10);
float recoMuonEtaOfN(unsigned int n, const float ptthreshold=10);
float recoMuonPhiOfN(unsigned int n, const float ptthreshold=10);
float recoMuonIsoOfN(unsigned int n, const float ptthreshold=10);
float recoMuonMinDeltaPhiJetOfN(unsigned int n, const float ptthreshold=10);
float getRelIsoForIsolationStudyEle();
float getRelIsoForIsolationStudyMuon();
float getDeltaThetaT();
float getMT_Wlep(const float pttreshold=10);
float getMT_bMET();
float getMT_jetMET();
float getMT_bMET_bestCSV(int& jetId,int & topId);
std::pair<float,float> getMT_bMET_maxmin();
void calcTopDecayVariables(float & wmass, float & tmass, float & wcoshel, float & tcoshel);
void calcCosHel(unsigned int j1i, unsigned int j2i, unsigned int j3i, float & wcoshel,float &tcoshel);
float getMaxDelPhi(int h1j1, int h1j2, int h2j1, int h2j2);
std::pair<float,float> getJERAdjustedMHTxy(int ignoredJet=-1);
//MC tools
unsigned int getSUSYnb();
SUSYProcess getSUSYProcess(float & pt1, float & phi1, float & pt2, float & phi2); //momenta of the SUSY mothers
void SusyDalitz( float * msq12, float * msq23, float * pgl, float * ptop,float * ptopbar,float * pchi);
float getISRweight(float isrpt,int sigmavar);
// std::pair<int,int> getSMSmasses();
smsMasses getSMSmasses();
float getLeadingSoftLeptonPt() ;
int getNquarksFromSusy(unsigned int quarkFlavor,unsigned int SusyParentId);
std::vector<float> getGenWbInvMass();
double checkPdfWeightSanity( double a) ;
// void getPdfWeights(const TString & pdfset, Float_t * pdfWeights, TH1D * sumofweights) ;
int findTop(int& top1, int& top2);
int WDecayType(const int Wparent,int& Wdaughter);
int findW(int& W, int& Wdaughter, int parent, bool fromtop);
int muonMatch(const int trueMuon);
int electronMatch(const int trueElectron);
int tauMatch(const int trueTau);
int daughterMatch(const int Wdaughter, const int WdecayType);
int getTTbarDecayType(int & leptonicTop, float & leptonEta, float & leptonPhi,float & leptonPt,int & hadWcode);
int getTauDecayType(int tauid);
int findJetMatchGenTau();
float getMinDeltaRToJet(const float eta, const float phi, int &jetflavor);
void fillGenTopInfo(const int ttbarDecayCode, const int leptonicTop, float &genTopPtLep,float & genWPtLep,float & genTopPtHad,float & genWPtHad);
float getMinDeltaRLeptonToJet();
//return the 4-vectors of the true bbbb in hh->bbbb signal events
void genLevelHiggs(TLorentzVector (&bbbb)[2][2] ) ;
//'truehiggs' are the indices of the jets on the jet list that DR-match the true hh->bbbb quarks
// fill higgsMbb1/2 with the best *pair* of hh candidates (using 125 GeV mass)
void higgs125massPairs(float & higgsMbb1,float & higgsMbb2,const std::vector< std::pair<int,int> > & truehiggs ) ;
void higgs125massPairsAllJets(float & higgsMbb1,float & higgsMbb2);
//this is *the* higgs-finding algorithm
std::pair<float,float> minDeltaMassPairs(float & higgsMbb1,float & higgsMbb2 ,int & h1jet1,int & h1jet2,int & h2jet1,int & h2jet2,bool & tiebreak) ;
void massPairsMinDiffAllJets(float & higgsMbb1,float & higgsMbb2,int & h1jet1,int & h1jet2,int & h2jet1,int & h2jet2);
float mbbHighPt( BTaggerType tagger ) ;
bool jetPartonMatchGood(TLorentzVector gen, int ijet) ;
bool higgsRecoCorrect(TLorentzVector (&bbbb)[2][2], int hj1, int hj2);
void massPairsDeltaSort(float & higgsMbb1,float & higgsMbb2);
float getBestH125(); //return jet invariant mass pair closest to 125 GeV
std::vector< std::pair<int,int> > matchRecoJetsToHiggses(TLorentzVector (&bbbb)[2][2]);
// int getWDecayType(int& WdecayType, int& W, int& Wdaughter, bool fromtop);
double getCrossSection();
double getScanCrossSection( SUSYProcess p);
float getBtagWeightCSV_TnotM(BTagEffModifier variation); //CSV 2T+!M weigting
float getBtagWeightCSV_LMT(BTagEffModifier variation); // new CSV L+M+T b-tag weighting
int getJetTagCatIndex(const int ijet); //helper for getBtagWeightCSV_LMT()
float getBtagEffWeight(); //alternative b-tag weighting implementation
float getBtagWeight(); //yet another (from btv)
double getBtagSF(const int flavor, const float pt, int eta) ;//in development. not for production
float getBtagSF(const int flavor,const float pt,const float jet_eta,const int tagcat, BTagEffModifier variation); // for L+M+T reweighting
float getBtagEffMC(const int flavor, const float pt) ;//currently used only in test code
float getBtagEffMC(const int jet_flavor, const float pt, const float jet_eta, const int tagcat) ; //for L+M+T weighting
float getBtagSFerr_b(const float pt, const int tagcat);
int nGoodBJets_Tweaked() ;
float getTopPtWeight(float & topPt);
float getTopPtWeight_official();
//the standard jet-tag probability method that we have been using
void calculateTagProb(float &Prob0, float &ProbGEQ1, float &Prob1, float &ProbGEQ2, float & Prob2, float &ProbGEQ3,
float & Prob3, float &ProbGEQ4,
float extraSFb=1, float extraSFc=1, float extraSFl=1, BTagEffModifier modifier=kBTagModifier0);
void calculateTagProb_ewk(float &Prob2b, float &Prob3b, float &Prob4b);
void BTagSF_recipe2a(int &nbtag0, int &nbtag2, int &nbtag3, int &nbtag4, BTagEffModifier modifier, bool raw=false);
//btag stuff
float jetTagEff(unsigned int ijet, TH1D* h_btageff, TH1D* h_ctageff, TH1D* h_ltageff,
const float extraSFb, const float extraSFc, const float extraSFl,const BTagEffModifier modifier=kBTagModifier0);
//other stuff
double getDeltaPhi(double a, double b);
bool isSampleRealData();
bool isSampleQCD() { return sampleName_.Contains("qcd",TString::kIgnoreCase);}
// void loadBEFailEvents(std::vector<int> &vrun, std::vector<int> &vlumi, std::vector<int> &vevent);
void dumpEvent ();
TString getSampleNameOutputString();
//PU Jet rejection stuff
//Declare them global to use them as needed
//Goes against the design, I know. Sorry Josh.
std::vector<float> pujet_beta;
std::vector<float> pujet_betaStar;
std::vector<float> pujet_betaClassic;
std::vector<float> pujet_betaStarClassic;
std::vector<float> pujet_MVAfull;
std::vector<float> pujet_MVAcut;
std::vector<int> pujet_MVAfullID;
std::vector<int> pujet_MVAcutID;
void extractPUJetVars_Beta(std::vector<float> & beta, TString which );
void extractPUJetVars_MVA(std::vector<float> & bdt, std::vector<int> & discrim, TString which );
//bookkeeping
TString getCutDescriptionString();
protected:
double calc_mNj( std::vector<unsigned int> jNi );
double calc_mNj( unsigned int j1i, unsigned int j2i);
double calc_mNj( unsigned int j1i, unsigned int j2i, unsigned int j3i);
//FASTSIM b-tagging efficiencies
float bJetFastsimSF(const TString & what, int flavor,float pt);
float get_AN_12_175_Table2_Value(const float pt);
float get_AN_12_175_Table3_Value(const float pt);
float get_AN_12_175_Table4_Value(const float pt);
float get_AN_12_175_Table5_Value(const float pt);
float get_AN_12_175_Table6_Value(const float pt);
float get_AN_12_175_Table8_Value(const float pt);
float get_AN_12_175_Table2_Error(const float pt);
float get_AN_12_175_Table10_Value(const float pt);
float get_AN_12_175_Table10_Error(const float pt);
float get_AN_12_175_Table11_Value(const float pt);
float get_AN_12_175_Table12_Value(const float pt);
float get_AN_12_175_Table13_Value(const float pt);
float get_AN_12_175_Table14_Value(const float pt);
float get_AN_12_175_Table16_Value(const float pt);
float get_AN_12_175_Table18_Value(const float pt);
float get_AN_12_175_Table18_Error(const float pt);
float get_AN_12_175_Table19_Value(const float pt);
float get_AN_12_175_Table20_Value(const float pt);
float get_AN_12_175_Table21_Value(const float pt);
float get_AN_12_175_Table22_Value(const float pt);
float get_AN_12_175_Table24_Value(const float pt);
int getPtBinIndex(const float pt) ;
void loadTriggerHistos() ;
float getTrigWeightMu(const float HT,const float MET);
float getTrigWeightEl(const float HT,const float MET) ;
float getTrigWeight0L(const float HT,const float MET) ;
private:
TString sampleName_;
bool sampleIsSignal_;
int cfAversion_;
//configuration options
scanType theScanType_;
METType theMETType_;
jetType theJetType_;
isoType theIsoType_;
JESType theJESType_;
JERType theJERType_;
METuncType theMETuncType_;
PUuncType thePUuncType_;
BTagEffType theBTagEffType_;
HLTEffType theHLTEffType_;
BTaggerType theBTaggerType_;
CrossSectionTable * crossSectionTanb40_10_;
CrossSectionTable * crossSectionTanb40_05_;
CrossSectionTable * crossSectionTanb40_20_;
CrossSectionTable * crossSectionpMSSM_;
TFile *smsCrossSectionFile_;
//2012 trig eff
TFile *f_trigeff_;
//http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/SusyAnalysis/RA2b/Statistics/3Dcode/reducedTree.h?revision=1.1&view=markup
TH1F *hnum_ht400to500_0L;
TH1F *hnum_ht500to800_0L;
TH1F *hnum_ht800to1000_0L;
TH1F *hnum_ht1000toInf_0L;
TH1F *hnum_ht400to500_ele;
TH1F *hnum_ht500to800_ele;
TH1F *hnum_ht800to1000_ele;
TH1F *hnum_ht1000toInf_ele;
TH1F *hnum_ht400to500_mu;
TH1F *hnum_ht500to800_mu;
TH1F *hnum_ht800to1000_mu;
TH1F *hnum_ht1000toInf_mu;
TH1F *hden_ht400to500_0L;
TH1F *hden_ht500to800_0L;
TH1F *hden_ht800to1000_0L;
TH1F *hden_ht1000toInf_0L;
TH1F *hden_ht400to500_ele;
TH1F *hden_ht500to800_ele;
TH1F *hden_ht800to1000_ele;
TH1F *hden_ht1000toInf_ele;
TH1F *hden_ht400to500_mu;
TH1F *hden_ht500to800_mu;
TH1F *hden_ht800to1000_mu;
TH1F *hden_ht1000toInf_mu;
//stuff for the btag probability
TFile *f_tageff_;
TString assembleBTagEffFilename(bool cutnametail=false);
void loadJetTagEffMaps();
void loadDataJetRes();
float getDataJetRes(float pt, float eta);
TFile *fDataJetRes_;
//stuff for JES pT caching
jmt::eventID * cachedEvent_; //for stupid technical reasons this has to be a pointer
std::map<unsigned int, float> jetPtCache_;
TH1D *hEta0_0p5_;
TH1D *hEta0p5_1_;
TH1D *hEta1_1p5_;
TH1D *hEta1p5_2_;
TH1D *hEta2_2p5_;
TH1D *hEta2p5_3_;
TH1D *hEta3_5_;
//ecal dead cell
std::vector<cellECAL> badECAL_;
void loadECALStatus();
bool passBadECALFilter(TString nearmettype = "METphi", double nearmetphicut=0.5,TString nearecaltype ="deadCell", double nearecalRcut=0.3,int nbadcellsthr=10, int badcellstatusth=10);
float passBadECALFilter_worstMis(TString nearmettype = "METphi", double nearmetphicut=0.5,TString nearecaltype ="deadCell", double nearecalRcut=0.3, int nbadcellsthr=10, int badcellstatusth=10, TString mistype ="abs");
bool jetNearMET(unsigned int i, TString type, double nearmetphicut);
bool jetNearBadECALCell(unsigned int i, TString type, double nearecalRcut, int nbadcellsthr, int badcellstatusthr);
bool passBadJetFilter();
TString getOptPiece(const TString &key, const TString & opt);
//JES on-the-fly stuff
JetCorrectorParameters *ResJetPar_;
JetCorrectorParameters *L3JetPar_;
JetCorrectorParameters *L2JetPar_;
JetCorrectorParameters *L1JetPar_;
std::vector<JetCorrectorParameters> vPar_;
FactorizedJetCorrector *JetCorrector_;
JetCorrectionUncertainty *jecUnc_;
TDatime* starttime_;
void startTimer() { starttime_ = new TDatime();}
void stopTimer(const Long64_t ntotal);
//hold human-readable names for configuration options
void initEnumNames();
std::map<METType, TString> theMETNames_;
std::map<jetType, TString> theJetNames_;
std::map<isoType, TString> theIsoNames_;
std::map<JESType, TString> theJESNames_;
std::map<JERType, TString> theJERNames_;
std::map<METuncType, TString> theMETuncNames_;
std::map<PUuncType, TString> thePUuncNames_;
std::map<BTagEffType, TString> theBTagEffNames_;
std::map<HLTEffType, TString> theHLTEffNames_;
std::map<BTaggerType, TString> theBTaggerNames_;
// void checkConsistency();
void loadSusyScanCrossSections();
unsigned int getSeed();
//void changeVariables(TRandom3* random, double jetLossProbability, int& nLostJets); //FIXME CFA
//void resetVariables(); //FIXME CFA
bool recalculatedVariables_;
TStopwatch* watch_; //not used for everyday running; just for testing
float minHiggsJetPt_;
// ==== BEGIN giant copy/paste of cfA variables =============================================================
// generated from ra2b skimmed v71 -- (new higgs skim/slim)
// http://cms2.physics.ucsb.edu/cfA/T_s-channel_TuneZ2star_8TeV-powheg-tauola_Summer12_DR53X-PU_S10_START53_V7A-v1_AODSIM_UCSB1860ra2b_v71s/T_s-channel_TuneZ2star_8TeV-powheg-tauola_Summer12_DR53X-PU_S10_START53_V7A-v1_AODSIM_UCSB1860ra2b_v71s.h
std::vector<float> *trigger_prescalevalue;
std::vector<std::string> *trigger_name;
std::vector<float> *trigger_decision;
std::vector<std::string> *trigger_lastfiltername;
std::vector<float> *L1trigger_bit;
std::vector<float> *L1trigger_techTrigger;
std::vector<float> *L1trigger_prescalevalue;
std::vector<std::string> *L1trigger_name;
std::vector<std::string> *L1trigger_alias;
std::vector<float> *L1trigger_decision;
std::vector<float> *L1trigger_decision_nomask;
std::vector<float> *els_conversion_dist;
std::vector<float> *els_conversion_dcot;
std::vector<float> *els_PFchargedHadronIsoR03;
std::vector<float> *els_PFphotonIsoR03;
std::vector<float> *els_PFneutralHadronIsoR03;
std::vector<bool> *els_hasMatchedConversion;
std::vector<float> *pf_els_PFchargedHadronIsoR03;
std::vector<float> *pf_els_PFphotonIsoR03;
std::vector<float> *pf_els_PFneutralHadronIsoR03;
std::vector<bool> *pf_els_hasMatchedConversion;
Int_t trk_nTOBTEC;
Float_t trk_ratioAllTOBTEC;
Float_t trk_ratioJetTOBTEC;
Int_t hbhefilter_decision;
Int_t trackingfailurefilter_decision;
Int_t cschalofilter_decision;
Int_t ecalTPfilter_decision;
Int_t ecalBEfilter_decision;
Int_t scrapingVeto_decision;
Int_t greedymuonfilter_decision;
Int_t inconsistentPFmuonfilter_decision;
Int_t hcallaserfilter_decision;
Int_t ecallaserfilter_decision;
Int_t eenoisefilter_decision;
Int_t eebadscfilter_decision;
Int_t trackercoherentnoisefilter1_decision;
Int_t trackercoherentnoisefilter2_decision;
Int_t trackertoomanyclustersfilter_decision;
Int_t trackertoomanytripletsfilter_decision;
Int_t trackertoomanyseedsfilter_decision;
Int_t passprescalePFHT350filter_decision;
Int_t passprescaleHT250filter_decision;
Int_t passprescaleHT300filter_decision;
Int_t passprescaleHT350filter_decision;
Int_t passprescaleHT400filter_decision;
Int_t passprescaleHT450filter_decision;
Int_t passprescaleJet30MET80filter_decision;
Float_t MPT;
Float_t genHT;
std::vector<float> *jets_AK5PFclean_corrL2L3;
std::vector<float> *jets_AK5PFclean_corrL2L3Residual;
std::vector<float> *jets_AK5PFclean_corrL1FastL2L3;
std::vector<float> *jets_AK5PFclean_corrL1L2L3;
std::vector<float> *jets_AK5PFclean_corrL1FastL2L3Residual;
std::vector<float> *jets_AK5PFclean_corrL1L2L3Residual;
std::vector<float> *jets_AK5PFclean_Uncert;
std::vector<std::vector<float> > *PU_zpositions;
std::vector<std::vector<float> > *PU_sumpT_lowpT;
std::vector<std::vector<float> > *PU_sumpT_highpT;
std::vector<std::vector<int> > *PU_ntrks_lowpT;
std::vector<std::vector<int> > *PU_ntrks_highpT;
std::vector<int> *PU_NumInteractions;
std::vector<int> *PU_bunchCrossing;
std::vector<float> *PU_TrueNumInteractions;
Float_t rho_kt6PFJetsForIsolation2011;
Float_t rho_kt6PFJetsForIsolation2012;
Float_t pfmets_fullSignif;
Float_t pfmets_fullSignifCov00;
Float_t pfmets_fullSignifCov10;
Float_t pfmets_fullSignifCov11;
Float_t softjetUp_dMEx;
Float_t softjetUp_dMEy;
std::vector<float> *pdfweights_cteq;
std::vector<float> *pdfweights_mstw;
std::vector<float> *pdfweights_nnpdf;
std::vector<float> *photon_chIsoValues;
std::vector<float> *photon_phIsoValues;
std::vector<float> *photon_nhIsoValues;
std::vector<bool> *photon_passElectronVeto;
std::vector<std::vector<float> > *puJet_rejectionBeta;
std::vector<std::vector<float> > *puJet_rejectionMVA;
Float_t pfmets_fullSignif_2012;
Float_t pfmets_fullSignifCov00_2012;
Float_t pfmets_fullSignifCov10_2012;
Float_t pfmets_fullSignifCov11_2012;
Float_t pfmets_fullSignif_2012_dataRes;
Float_t pfmets_fullSignifCov00_2012_dataRes;
Float_t pfmets_fullSignifCov10_2012_dataRes;
Float_t pfmets_fullSignifCov11_2012_dataRes;
std::vector<float> *isotk_pt;
std::vector<float> *isotk_phi;
std::vector<float> *isotk_eta;
std::vector<float> *isotk_iso;
std::vector<float> *isotk_dzpv;
std::vector<int> *isotk_charge;
// List of branches
TBranch *b_trigger_prescalevalue; //!
TBranch *b_trigger_name; //!
TBranch *b_trigger_decision; //!
TBranch *b_trigger_lastfiltername; //!
TBranch *b_L1trigger_bit; //!
TBranch *b_L1trigger_techTrigger; //!
TBranch *b_L1trigger_prescalevalue; //!
TBranch *b_L1trigger_name; //!
TBranch *b_L1trigger_alias; //!
TBranch *b_L1trigger_decision; //!
TBranch *b_L1trigger_decision_nomask; //!
TBranch *b_els_conversion_dist; //!
TBranch *b_els_conversion_dcot; //!
TBranch *b_els_PFchargedHadronIsoR03; //!
TBranch *b_els_PFphotonIsoR03; //!
TBranch *b_els_PFneutralHadronIsoR03; //!
TBranch *b_els_hasMatchedConversion; //!
TBranch *b_pf_els_PFchargedHadronIsoR03; //!
TBranch *b_pf_els_PFphotonIsoR03; //!
TBranch *b_pf_els_PFneutralHadronIsoR03; //!
TBranch *b_pf_els_hasMatchedConversion; //!
TBranch *b_Ctrk_nTOBTEC; //!
TBranch *b_trk_ratioAllTOBTEC; //!
TBranch *b_trk_ratioJetTOBTEC; //!
TBranch *b_hbhefilter_decision; //!
TBranch *b_trackingfailurefilter_decision; //!
TBranch *b_cschalofilter_decision; //!
TBranch *b_ecalTPfilter_decision; //!
TBranch *b_ecalBEfilter_decision; //!
TBranch *b_scrapingVeto_decision; //!
TBranch *b_greedymuonfilter_decision; //!
TBranch *b_inconsistentPFmuonfilter_decision; //!
TBranch *b_hcallaserfilter_decision; //!
TBranch *b_ecallaserfilter_decision; //!
TBranch *b_eenoisefilter_decision; //!
TBranch *b_eebadscfilter_decision; //!
TBranch *b_trackercoherentnoisefilter1 ; //!
TBranch *b_trackercoherentnoisefilter2 ; //!
TBranch *b_trackertoomanyclustersfilter; //!
TBranch *b_trackertoomanytripletsfilter; //!
TBranch *b_trackertoomanyseedsfilter ; //!
TBranch *b_passprescalePFHT350filter_decision; //!
TBranch *b_passprescaleHT250filter_decision; //!
TBranch *b_passprescaleHT300filter_decision; //!
TBranch *b_passprescaleHT350filter_decision; //!
TBranch *b_passprescaleHT400filter_decision; //!
TBranch *b_passprescaleHT450filter_decision; //!
TBranch *b_passprescaleJet30MET80filter_decision; //!
TBranch *b_MPT; //!
TBranch *b_genHT; //!
TBranch *b_jets_AK5PFclean_corrL2L3; //!
TBranch *b_jets_AK5PFclean_corrL2L3Residual; //!
TBranch *b_jets_AK5PFclean_corrL1FastL2L3; //!
TBranch *b_jets_AK5PFclean_corrL1L2L3; //!
TBranch *b_jets_AK5PFclean_corrL1FastL2L3Residual; //!
TBranch *b_jets_AK5PFclean_corrL1L2L3Residual; //!
TBranch *b_jets_AK5PFclean_Uncert; //!
TBranch *b_PU_zpositions; //!
TBranch *b_PU_sumpT_lowpT; //!
TBranch *b_PU_sumpT_highpT; //!
TBranch *b_PU_ntrks_lowpT; //!
TBranch *b_PU_ntrks_highpT; //!
TBranch *b_PU_NumInteractions; //!
TBranch *b_PU_bunchCrossing; //!
TBranch *b_PU_TrueNumInteractions; //!
TBranch *b_rho_kt6PFJetsForIsolation2011; //!
TBranch *b_rho_kt6PFJetsForIsolation2012; //!
TBranch *b_pfmets_fullSignif; //!
TBranch *b_pfmets_fullSignifCov00; //!
TBranch *b_pfmets_fullSignifCov10; //!
TBranch *b_pfmets_fullSignifCov11; //!
TBranch *b_softjetUp_dMEx; //!
TBranch *b_softjetUp_dMEy; //!
TBranch *b_pdfweights_cteq; //!
TBranch *b_pdfweights_mstw; //!
TBranch *b_pdfweights_nnpdf; //!
TBranch *b_photon_chIsoValues; //!
TBranch *b_photon_phIsoValues; //!
TBranch *b_photon_nhIsoValues; //!
TBranch *b_photon_passElectronVeto; //!
TBranch *b_puJet_rejectionBeta; //!
TBranch *b_puJet_rejectionMVA; //!
TBranch *b_pfmets_fullSignif_2012; //!
TBranch *b_pfmets_fullSignifCov00_2012; //!
TBranch *b_pfmets_fullSignifCov10_2012; //!
TBranch *b_pfmets_fullSignifCov11_2012; //!
TBranch *b_pfmets_fullSignif_2012_dataRes; //!
TBranch *b_pfmets_fullSignifCov00_2012_dataRes; //!
TBranch *b_pfmets_fullSignifCov10_2012_dataRes; //!
TBranch *b_pfmets_fullSignifCov11_2012_dataRes; //!
TBranch *b_isotk_pt; //!
TBranch *b_isotk_phi; //!
TBranch *b_isotk_eta; //!
TBranch *b_isotk_iso; //!
TBranch *b_isotk_dzpv; //!
TBranch *b_isotk_charge; //!
// Declaration of leaf types
UInt_t NbeamSpot;
std::vector<float> *beamSpot_x;
std::vector<float> *beamSpot_y;
std::vector<float> *beamSpot_z;
std::vector<float> *beamSpot_x0Error;
std::vector<float> *beamSpot_y0Error;
std::vector<float> *beamSpot_z0Error;
std::vector<float> *beamSpot_sigmaZ;
std::vector<float> *beamSpot_sigmaZ0Error;
std::vector<float> *beamSpot_dxdz;
std::vector<float> *beamSpot_dxdzError;
std::vector<float> *beamSpot_dydz;
std::vector<float> *beamSpot_dydzError;
std::vector<float> *beamSpot_beamWidthX;
std::vector<float> *beamSpot_beamWidthY;
std::vector<float> *beamSpot_beamWidthXError;
std::vector<float> *beamSpot_beamWidthYError;
UInt_t Nels;
std::vector<float> *els_energy;
std::vector<float> *els_et;
std::vector<float> *els_eta;
std::vector<float> *els_phi;
std::vector<float> *els_pt;
std::vector<float> *els_px;
std::vector<float> *els_py;
std::vector<float> *els_pz;
std::vector<float> *els_status;
std::vector<float> *els_theta;
std::vector<float> *els_gen_id;
std::vector<float> *els_gen_phi;
std::vector<float> *els_gen_pt;
std::vector<float> *els_gen_pz;
std::vector<float> *els_gen_px;
std::vector<float> *els_gen_py;
std::vector<float> *els_gen_eta;
std::vector<float> *els_gen_theta;
std::vector<float> *els_gen_et;
std::vector<float> *els_gen_mother_id;
std::vector<float> *els_gen_mother_phi;
std::vector<float> *els_gen_mother_pt;
std::vector<float> *els_gen_mother_pz;
std::vector<float> *els_gen_mother_px;
std::vector<float> *els_gen_mother_py;
std::vector<float> *els_gen_mother_eta;
std::vector<float> *els_gen_mother_theta;
std::vector<float> *els_gen_mother_et;
std::vector<float> *els_tightId;
std::vector<float> *els_looseId;
std::vector<float> *els_robustTightId;
std::vector<float> *els_robustLooseId;
std::vector<float> *els_robustHighEnergyId;
std::vector<float> *els_simpleEleId95relIso;
std::vector<float> *els_simpleEleId90relIso;
std::vector<float> *els_simpleEleId85relIso;
std::vector<float> *els_simpleEleId80relIso;
std::vector<float> *els_simpleEleId70relIso;
std::vector<float> *els_simpleEleId60relIso;
std::vector<float> *els_simpleEleId95cIso;
std::vector<float> *els_simpleEleId90cIso;
std::vector<float> *els_simpleEleId85cIso;
std::vector<float> *els_simpleEleId80cIso;
std::vector<float> *els_simpleEleId70cIso;
std::vector<float> *els_simpleEleId60cIso;
std::vector<float> *els_cIso;
std::vector<float> *els_tIso;
std::vector<float> *els_ecalIso;
std::vector<float> *els_hcalIso;
std::vector<float> *els_chi2;
std::vector<float> *els_charge;
std::vector<float> *els_caloEnergy;
std::vector<float> *els_hadOverEm;
std::vector<float> *els_hcalOverEcalBc;
std::vector<float> *els_eOverPIn;
std::vector<float> *els_eSeedOverPOut;
std::vector<float> *els_sigmaEtaEta;
std::vector<float> *els_sigmaIEtaIEta;
std::vector<float> *els_scEnergy;
std::vector<float> *els_scRawEnergy;
std::vector<float> *els_scSeedEnergy;
std::vector<float> *els_scEta;
std::vector<float> *els_scPhi;
std::vector<float> *els_scEtaWidth;
std::vector<float> *els_scPhiWidth;
std::vector<float> *els_scE1x5;
std::vector<float> *els_scE2x5Max;
std::vector<float> *els_scE5x5;
std::vector<float> *els_isEB;
std::vector<float> *els_isEE;
std::vector<float> *els_dEtaIn;
std::vector<float> *els_dPhiIn;
std::vector<float> *els_dEtaOut;
std::vector<float> *els_dPhiOut;
std::vector<float> *els_numvalhits;
std::vector<float> *els_numlosthits;
std::vector<float> *els_basicClustersSize;
std::vector<float> *els_tk_pz;
std::vector<float> *els_tk_pt;
std::vector<float> *els_tk_phi;
std::vector<float> *els_tk_eta;
std::vector<float> *els_d0dum;
std::vector<float> *els_dz;
std::vector<float> *els_vx;
std::vector<float> *els_vy;
std::vector<float> *els_vz;
std::vector<float> *els_ndof;
std::vector<float> *els_ptError;
std::vector<float> *els_d0dumError;
std::vector<float> *els_dzError;
std::vector<float> *els_etaError;
std::vector<float> *els_phiError;
std::vector<float> *els_tk_charge;
std::vector<float> *els_core_ecalDrivenSeed;
std::vector<float> *els_n_inner_layer;
std::vector<float> *els_n_outer_layer;
std::vector<float> *els_ctf_tk_id;
std::vector<float> *els_ctf_tk_charge;
std::vector<float> *els_ctf_tk_eta;
std::vector<float> *els_ctf_tk_phi;
std::vector<float> *els_fbrem;
std::vector<float> *els_shFracInnerHits;
std::vector<float> *els_dr03EcalRecHitSumEt;
std::vector<float> *els_dr03HcalTowerSumEt;
std::vector<float> *els_dr03HcalDepth1TowerSumEt;
std::vector<float> *els_dr03HcalDepth2TowerSumEt;
std::vector<float> *els_dr03TkSumPt;
std::vector<float> *els_dr04EcalRecHitSumEt;
std::vector<float> *els_dr04HcalTowerSumEt;
std::vector<float> *els_dr04HcalDepth1TowerSumEt;
std::vector<float> *els_dr04HcalDepth2TowerSumEt;
std::vector<float> *els_dr04TkSumPt;
std::vector<float> *els_cpx;
std::vector<float> *els_cpy;
std::vector<float> *els_cpz;
std::vector<float> *els_vpx;
std::vector<float> *els_vpy;
std::vector<float> *els_vpz;
std::vector<float> *els_cx;
std::vector<float> *els_cy;
std::vector<float> *els_cz;
std::vector<float> *els_PATpassConversionVeto;
UInt_t Njets_AK5PF;
std::vector<float> *jets_AK5PF_status;
std::vector<float> *jets_AK5PF_phi;
std::vector<float> *jets_AK5PF_pt;
std::vector<float> *jets_AK5PF_pz;
std::vector<float> *jets_AK5PF_px;
std::vector<float> *jets_AK5PF_py;
std::vector<float> *jets_AK5PF_eta;
std::vector<float> *jets_AK5PF_theta;
std::vector<float> *jets_AK5PF_et;
std::vector<float> *jets_AK5PF_energy;