L1Trigger
L1TNtuples
interface
L1AnalysisEvent.h
Go to the documentation of this file.
1
#ifndef __L1Analysis_L1AnalysisEvent_H__
2
#define __L1Analysis_L1AnalysisEvent_H__
3
4
//-------------------------------------------------------------------------------
5
// Created 06/01/2010 - A.C. Le Bihan
6
//
7
//
8
// Original code : L1Trigger/L1TNtuples/L1NtupleProducer
9
//-------------------------------------------------------------------------------
10
11
#include "
FWCore/Utilities/interface/EDGetToken.h
"
12
13
#include "
FWCore/Framework/interface/Event.h
"
14
#include "
DataFormats/Common/interface/TriggerResults.h
"
15
#include "
FWCore/Common/interface/TriggerNames.h
"
16
17
#include "
PhysicsTools/Utilities/interface/LumiReWeighting.h
"
18
19
#include "
L1AnalysisEventDataFormat.h
"
20
21
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
22
#include "
SimDataFormats/PileupSummaryInfo/interface/PileupSummaryInfo.h
"
23
24
#include <string>
25
26
namespace
L1Analysis
{
27
class
L1AnalysisEvent
{
28
public
:
29
L1AnalysisEvent
(
std::string
puMCFile
,
30
std::string
puMCHist
,
31
std::string
puDataFile
,
32
std::string
puDataHist
,
33
bool
useAvgVtx
,
34
double
maxWeight,
35
edm::ConsumesCollector
&&);
36
~L1AnalysisEvent
();
37
38
//void Print(std::ostream &os = std::cout) const;
39
void
Set
(
const
edm::Event
&
e
,
const
edm::EDGetTokenT<edm::TriggerResults>
& hlt_);
40
void
Reset
() {
event_
.
Reset
(); }
41
L1AnalysisEventDataFormat
*
getData
() {
return
&
event_
; }
42
43
// ---- General L1AnalysisEvent information.
44
45
private
:
46
bool
fillHLT_
;
47
bool
doPUWeights_
;
48
49
bool
useAvgVtx_
;
50
double
maxAllowedWeight_
;
51
52
edm::LumiReWeighting
lumiWeights_
;
53
54
edm::EDGetTokenT<std::vector<PileupSummaryInfo>
>
pileupSummaryInfoToken_
;
55
L1Analysis::L1AnalysisEventDataFormat
event_
;
56
};
57
}
// namespace L1Analysis
58
#endif
L1Analysis::L1AnalysisEvent::Reset
void Reset()
Definition:
L1AnalysisEvent.h:40
L1Analysis::L1AnalysisEvent::pileupSummaryInfoToken_
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupSummaryInfoToken_
Definition:
L1AnalysisEvent.h:54
TriggerNames.h
LumiReWeighting.h
L1AnalysisEventDataFormat.h
L1Analysis::L1AnalysisEvent::useAvgVtx_
bool useAvgVtx_
Definition:
L1AnalysisEvent.h:49
Event.h
TriggerResults.h
L1Analysis::L1AnalysisEventDataFormat
Definition:
L1AnalysisEventDataFormat.h:16
L1Analysis::L1AnalysisEvent::L1AnalysisEvent
L1AnalysisEvent(std::string puMCFile, std::string puMCHist, std::string puDataFile, std::string puDataHist, bool useAvgVtx, double maxWeight, edm::ConsumesCollector &&)
Definition:
L1AnalysisEvent.cc:10
edm::LumiReWeighting
Definition:
LumiReWeighting.h:105
L1Analysis::L1AnalysisEvent::getData
L1AnalysisEventDataFormat * getData()
Definition:
L1AnalysisEvent.h:41
l1EventTree_cfi.useAvgVtx
useAvgVtx
Definition:
l1EventTree_cfi.py:9
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
edm::EDGetTokenT< edm::TriggerResults >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
L1Analysis::L1AnalysisEvent::doPUWeights_
bool doPUWeights_
Definition:
L1AnalysisEvent.h:47
l1EventTree_cfi.puDataFile
puDataFile
Definition:
l1EventTree_cfi.py:6
EDGetToken.h
l1EventTree_cfi.puMCFile
puMCFile
Definition:
l1EventTree_cfi.py:5
L1Analysis::L1AnalysisEvent::Set
void Set(const edm::Event &e, const edm::EDGetTokenT< edm::TriggerResults > &hlt_)
Definition:
L1AnalysisEvent.cc:31
L1Analysis::L1AnalysisEvent::fillHLT_
bool fillHLT_
Definition:
L1AnalysisEvent.h:46
L1Analysis
Definition:
L1AnalysisBMTFInputs.h:18
l1EventTree_cfi.puMCHist
puMCHist
Definition:
l1EventTree_cfi.py:7
L1Analysis::L1AnalysisEvent::lumiWeights_
edm::LumiReWeighting lumiWeights_
Definition:
L1AnalysisEvent.h:52
L1Analysis::L1AnalysisEvent::maxAllowedWeight_
double maxAllowedWeight_
Definition:
L1AnalysisEvent.h:50
L1Analysis::L1AnalysisEvent::event_
L1Analysis::L1AnalysisEventDataFormat event_
Definition:
L1AnalysisEvent.h:55
L1Analysis::L1AnalysisEvent
Definition:
L1AnalysisEvent.h:27
edm::Event
Definition:
Event.h:73
ConsumesCollector.h
L1Analysis::L1AnalysisEvent::~L1AnalysisEvent
~L1AnalysisEvent()
Definition:
L1AnalysisEvent.cc:29
L1Analysis::L1AnalysisEventDataFormat::Reset
void Reset()
Definition:
L1AnalysisEventDataFormat.h:20
l1EventTree_cfi.puDataHist
puDataHist
Definition:
l1EventTree_cfi.py:8
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
PileupSummaryInfo.h
Generated for CMSSW Reference Manual by
1.8.14