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
|
#ifndef AlphaTVarProducer_h
#define AlphaTVarProducer_h
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DataFormats/JetReco/interface/CaloJetCollection.h"
#include "DataFormats/METReco/interface/CaloMETFwd.h"
#include "TLorentzVector.h"
#include <vector>
class AlphaTVarProducer : public edm::global::EDProducer<> {
public:
explicit AlphaTVarProducer(const edm::ParameterSet &);
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override;
private:
double CalcAlphaT(const std::vector<TLorentzVector> &) const;
static double CalcHT(const std::vector<TLorentzVector> &);
static double CalcMHT(const std::vector<TLorentzVector> &);
static double deltaHt(const std::vector<double> &);
static double alphaT(const double, const double, const double);
edm::InputTag inputJetTag_; // input tag identifying product
// define Token(-s)
edm::EDGetTokenT<reco::CaloJetCollection> inputJetTagToken_;
};
#endif // AlphaTVarProducer_h
|