forked from cms-sw/cmssw
/
CaloTowerFromL1TCreatorForTauHLT.h
64 lines (56 loc) · 2.12 KB
/
CaloTowerFromL1TCreatorForTauHLT.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
#ifndef CaloTowerCreator_CaloTowerFromL1TCreatorForTauHLT_h
#define CaloTowerCreator_CaloTowerFromL1TCreatorForTauHLT_h
/** \class CaloTowerFromL1TCreatorForTauHLT
*
* Framework module that produces a collection
* of calo towers in the region of interest for Tau HLT reconnstruction,
* depending on tau type trigger:
* Tau1 - take location of 1st L1 Tau
* Tau2 - take location of 2nd L1 Tau; if does not exists,
* take location of 1st Calo Tower
* ETau - take L1 Tau candidate which is not collinear
* to HLT (or L1) electron candidate.
*
* \author A. Nikitenko. IC. based on L. Lista and J. Mans
*
*/
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "DataFormats/CaloTowers/interface/CaloTower.h"
#include "DataFormats/L1Trigger/interface/Tau.h"
#include <string>
namespace edm {
class ParameterSet;
}
class CaloTowerFromL1TCreatorForTauHLT : public edm::global::EDProducer<> {
public:
/// constructor from parameter set
CaloTowerFromL1TCreatorForTauHLT( const edm::ParameterSet & );
/// destructor
~CaloTowerFromL1TCreatorForTauHLT();
///
static void fillDescriptions( edm::ConfigurationDescriptions& desc );
private:
/// process one event
void produce( edm::StreamID sid, edm::Event& evt, const edm::EventSetup& stp ) const override;
/// bunch crossing
const int mBX;
/// verbosity
const int mVerbose;
/// label of source collection
const edm::EDGetTokenT<CaloTowerCollection> mtowers_token;
/// use only towers in cone mCone around L1 candidate for regional jet reco
const double mCone;
/// label of tau trigger type analysis
const edm::EDGetTokenT<l1t::TauBxCollection> mTauTrigger_token;
/// imitator of L1 seeds
//edm::InputTag ml1seeds;
/// ET threshold
const double mEtThreshold;
/// E threshold
const double mEThreshold;
//
const int mTauId;
};
#endif