Go to the documentation of this file.00001 #ifndef TtDilepLRSignalSelObservables_h
00002 #define TtDilepLRSignalSelObservables_h
00003
00004 #include "FWCore/Framework/interface/EventSetup.h"
00005 #include "FWCore/Framework/interface/Event.h"
00006 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00007 #include "FWCore/Utilities/interface/Exception.h"
00008
00009 #include <iostream>
00010 #include <string>
00011 #include <vector>
00012
00013 #include "AnalysisDataFormats/TopObjects/interface/TtDilepEvtSolution.h"
00014
00015 class TtDilepLRSignalSelObservables {
00016
00017 public:
00018
00019 TtDilepLRSignalSelObservables();
00020 ~TtDilepLRSignalSelObservables();
00021
00022 typedef std::pair<unsigned int,bool> IntBoolPair;
00023 std::vector< IntBoolPair > operator()(TtDilepEvtSolution&, const edm::Event & iEvent,
00024 bool matchOnly = false);
00025 void jetSource(const edm::InputTag & jetSource) {jetSource_ = jetSource;}
00026
00027 private:
00028
00029 typedef std::pair<unsigned int,double> IntDblPair;
00030
00031 double delta(double phi1, double phi2);
00032 void fillMinMax(double v1, double v2, int obsNbr,
00033 std::vector< IntDblPair > & varList, bool match1, bool match2,
00034 std::vector< IntBoolPair > & matchList);
00035
00036 edm::InputTag jetSource_;
00037
00038 std::vector< IntDblPair > evtselectVarVal;
00039 std::vector< IntBoolPair > evtselectVarMatch;
00040 int count1, count2, count3, count4, count5;
00041 };
00042
00043 #endif