1 |
// -*- C++ -*-
|
2 |
#ifndef Cut_Flow
|
3 |
#define Cut_Flow
|
4 |
//
|
5 |
// Package: CutFlow
|
6 |
// Class: CutFlow
|
7 |
//
|
8 |
/**\class CutFlow CutFlow.h LJMet/Utils/interface/CutFlow.h
|
9 |
|
10 |
Description: times various aspects of data processing
|
11 |
|
12 |
Implementation:
|
13 |
Keep this class as simple and fast as possible
|
14 |
*/
|
15 |
//
|
16 |
// Original Author: "Gennadiy Kukartsev"
|
17 |
// Created: Tue Oct 6 13:39:12 CDT 2009
|
18 |
// $Id: CutFlow.h,v 1.1 2009/10/08 22:51:48 kukartse Exp $
|
19 |
//
|
20 |
//
|
21 |
|
22 |
|
23 |
#include <memory>
|
24 |
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
25 |
#include "FWCore/Framework/interface/EDAnalyzer.h"
|
26 |
#include "FWCore/Framework/interface/Event.h"
|
27 |
#include "FWCore/Framework/interface/MakerMacros.h"
|
28 |
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
29 |
#include "LJMet/Utils/interface/MeanCounter.h"
|
30 |
|
31 |
|
32 |
class CutFlow : public edm::EDAnalyzer {
|
33 |
public:
|
34 |
explicit CutFlow(const edm::ParameterSet&);
|
35 |
~CutFlow();
|
36 |
|
37 |
|
38 |
private:
|
39 |
virtual void beginJob() ;
|
40 |
virtual void analyze(const edm::Event&, const edm::EventSetup&);
|
41 |
virtual void endJob() ;
|
42 |
MeanCounter * c_total;
|
43 |
MeanCounter * c_1;
|
44 |
MeanCounter * c_2;
|
45 |
MeanCounter * c_3;
|
46 |
MeanCounter * c_4;
|
47 |
MeanCounter * c_5;
|
48 |
|
49 |
bool is_trigger(std::string mLabel, const edm::Event& iEvent);
|
50 |
bool is_muon(std::string mLabel,
|
51 |
double mPt,
|
52 |
double mEta,
|
53 |
int mNHits,
|
54 |
double mD0,
|
55 |
double mChi2Ndof,
|
56 |
double mEmVeto,
|
57 |
double mHadVeto,
|
58 |
double mRelIso,
|
59 |
const edm::Event& iEvent);
|
60 |
};
|
61 |
|
62 |
#endif
|