babymaker  e95a6a9342d4604277fe7cc6149b6b5b24447d89
event_tools.hh
Go to the documentation of this file.
1 // Event level tools
2 
3 #ifndef H_EVENT_TOOLS
4 #define H_EVENT_TOOLS
5 
6 // System include files
7 #include <string>
8 #include <map>
9 #include <set>
10 
11 #include "FWCore/Framework/interface/ESHandle.h"
12 #include "DataFormats/PatCandidates/interface/Jet.h"
13 #include "DataFormats/JetReco/interface/GenJet.h"
14 #include "DataFormats/VertexReco/interface/Vertex.h"
15 #include "DataFormats/VertexReco/interface/VertexFwd.h" // For VertexCollection
16 
17 
18 #include "TString.h"
19 
21 
23 public:
24  bool isInJSON(std::string type, int run, int lumiblock);
25  bool hasGoodPV(edm::Handle<reco::VertexCollection> vtx);
26  bool passBeamHalo(int run, int event);
27  bool passFSMET(edm::Handle<pat::JetCollection> alljets, edm::Handle<edm::View <reco::GenJet> > genjets);
28  void fillBeamHaloMap(std::string eventList);
29 
30  const std::vector<std::vector<int> > VRunLumi2015nonblind;
31  const std::vector<std::vector<int> > VRunLumi2016json2p6;
32 
33  std::map<int, std::set<int> > badBeamHaloEvents;
34  bool doBeamHalo;
35 
36  static int type(const std::string &name);
37 
38  event_tools(TString outname);
39  ~event_tools();
40 };
41 
42 #endif
bool passBeamHalo(int run, int event)
Definition: event_tools.cc:41
bool isInJSON(std::string type, int run, int lumiblock)
Definition: event_tools.cc:20
void fillBeamHaloMap(std::string eventList)
Definition: event_tools.cc:78
std::map< int, std::set< int > > badBeamHaloEvents
Definition: event_tools.hh:33
bool hasGoodPV(edm::Handle< reco::VertexCollection > vtx)
Definition: event_tools.cc:29
const std::vector< std::vector< int > > VRunLumi2015nonblind
Definition: event_tools.hh:30
const std::vector< std::vector< int > > VRunLumi2016json2p6
Definition: event_tools.hh:31
bool doBeamHalo
Definition: event_tools.hh:34
tuple run
Parsing run from file name.
event_tools(TString outname)
Definition: event_tools.cc:297
bool passFSMET(edm::Handle< pat::JetCollection > alljets, edm::Handle< edm::View< reco::GenJet > > genjets)
Definition: event_tools.cc:50
static int type(const std::string &name)
Definition: event_tools.cc:104