L1Trigger
L1TNtuples
interface
L1AnalysisCaloTP.h
Go to the documentation of this file.
1
#ifndef __L1Analysis_L1AnalysisCaloTP_H__
2
#define __L1Analysis_L1AnalysisCaloTP_H__
3
4
//-------------------------------------------------------------------------------
5
// Created 06/01/2010 - A.C. Le Bihan
6
//
7
//
8
// Original code : L1Trigger/L1TNtuples/L1NtupleProducer
9
//-------------------------------------------------------------------------------
10
11
#include "
DataFormats/Common/interface/Handle.h
"
12
#include "
DataFormats/HcalDigi/interface/HcalDigiCollections.h
"
13
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
14
15
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
16
17
#include "
L1AnalysisCaloTPDataFormat.h
"
18
19
class
L1CaloEcalScale
;
20
class
L1CaloHcalScale
;
21
22
namespace
L1Analysis
{
23
class
L1AnalysisCaloTP
{
24
public
:
25
L1AnalysisCaloTP
();
26
L1AnalysisCaloTP
(
bool
verbose
);
27
~L1AnalysisCaloTP
();
28
29
// setup scales
30
void
setEcalScale
(
const
L1CaloEcalScale
* ecalScale) {
31
edm::LogInfo
(
"L1NTUPLE"
) <<
"Setting ECAL TP scale "
<< ecalScale << std::endl;
32
ecalScale_
= ecalScale;
33
}
34
35
void
setHcalScale
(
const
L1CaloHcalScale
* hcalScale) {
36
edm::LogInfo
(
"L1NTUPLE"
) <<
"Setting HCAL TP scale "
<< hcalScale << std::endl;
37
hcalScale_
= hcalScale;
38
}
39
40
void
SetHCAL
(
const
HcalTrigPrimDigiCollection
& hcalTPs);
41
42
void
SetECAL
(
const
EcalTrigPrimDigiCollection
& ecalTPs);
43
44
void
Reset
() {
tp_
.
Reset
(); }
45
46
L1AnalysisCaloTPDataFormat
*
getData
() {
return
&
tp_
; }
47
48
private
:
49
bool
verbose_
;
50
L1AnalysisCaloTPDataFormat
tp_
;
51
52
const
L1CaloEcalScale
*
ecalScale_
;
53
const
L1CaloHcalScale
*
hcalScale_
;
54
};
55
}
// namespace L1Analysis
56
#endif
L1Analysis::L1AnalysisCaloTP::hcalScale_
const L1CaloHcalScale * hcalScale_
Definition:
L1AnalysisCaloTP.h:53
Handle.h
L1Analysis::L1AnalysisCaloTP::tp_
L1AnalysisCaloTPDataFormat tp_
Definition:
L1AnalysisCaloTP.h:50
MessageLogger.h
L1CaloHcalScale
Definition:
L1CaloHcalScale.h:28
L1CaloEcalScale
Definition:
L1CaloEcalScale.h:28
L1Analysis::L1AnalysisCaloTP::setHcalScale
void setHcalScale(const L1CaloHcalScale *hcalScale)
Definition:
L1AnalysisCaloTP.h:35
edm::SortedCollection
Definition:
SortedCollection.h:49
L1Analysis::L1AnalysisCaloTP::SetECAL
void SetECAL(const EcalTrigPrimDigiCollection &ecalTPs)
Definition:
L1AnalysisCaloTP.cc:45
L1Analysis::L1AnalysisCaloTP::verbose_
bool verbose_
Definition:
L1AnalysisCaloTP.h:49
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:125
L1AnalysisCaloTPDataFormat.h
L1Analysis::L1AnalysisCaloTPDataFormat::Reset
void Reset()
Definition:
L1AnalysisCaloTPDataFormat.h:18
L1Analysis::L1AnalysisCaloTP::getData
L1AnalysisCaloTPDataFormat * getData()
Definition:
L1AnalysisCaloTP.h:46
L1Analysis::L1AnalysisCaloTP::SetHCAL
void SetHCAL(const HcalTrigPrimDigiCollection &hcalTPs)
Definition:
L1AnalysisCaloTP.cc:13
L1Analysis::L1AnalysisCaloTP::Reset
void Reset()
Definition:
L1AnalysisCaloTP.h:44
L1Analysis::L1AnalysisCaloTP::ecalScale_
const L1CaloEcalScale * ecalScale_
Definition:
L1AnalysisCaloTP.h:52
HcalDigiCollections.h
EcalDigiCollections.h
L1Analysis
Definition:
L1AnalysisBMTFInputs.h:18
verbose
static constexpr int verbose
Definition:
HLTExoticaSubAnalysis.cc:25
L1Analysis::L1AnalysisCaloTP::L1AnalysisCaloTP
L1AnalysisCaloTP()
Definition:
L1AnalysisCaloTP.cc:7
L1Analysis::L1AnalysisCaloTP
Definition:
L1AnalysisCaloTP.h:23
L1Analysis::L1AnalysisCaloTP::setEcalScale
void setEcalScale(const L1CaloEcalScale *ecalScale)
Definition:
L1AnalysisCaloTP.h:30
L1Analysis::L1AnalysisCaloTP::~L1AnalysisCaloTP
~L1AnalysisCaloTP()
Definition:
L1AnalysisCaloTP.cc:11
L1Analysis::L1AnalysisCaloTPDataFormat
Definition:
L1AnalysisCaloTPDataFormat.h:14
Generated for CMSSW Reference Manual by
1.8.16