Main Page
Namespaces
Classes
Package Documentation
L1Trigger
L1TGlobal
src
PrescalesVetosHelper.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1TGlobal/interface/PrescalesVetosHelper.h
"
2
3
using namespace
l1t
;
4
5
6
const
PrescalesVetosHelper
*
PrescalesVetosHelper::readFromEventSetup
(
const
L1TGlobalPrescalesVetos
* es){
7
return
new
PrescalesVetosHelper
(es);
8
}
9
10
PrescalesVetosHelper
*
PrescalesVetosHelper::readAndWriteFromEventSetup
(
const
L1TGlobalPrescalesVetos
* es){
11
PrescalesVetosHelper
* x =
new
PrescalesVetosHelper
(es);
12
x->
useCopy
();
13
return
x;
14
}
15
16
PrescalesVetosHelper::PrescalesVetosHelper
(
L1TGlobalPrescalesVetos
*
w
) {
17
write_
=
w
;
18
check_write
();
19
we_own_write_
=
false
;
20
write_
->
version_
=
VERSION_
;
21
read_
=
write_
;
22
}
23
24
PrescalesVetosHelper::PrescalesVetosHelper
(
const
L1TGlobalPrescalesVetos
* es) {
read_
= es;
write_
=
nullptr
;}
25
26
void
PrescalesVetosHelper::useCopy
(){
27
write_
=
new
L1TGlobalPrescalesVetos
(*
read_
);
28
we_own_write_
=
true
;
29
read_
=
write_
;
30
}
31
32
PrescalesVetosHelper::~PrescalesVetosHelper
() {
33
if
(
we_own_write_
&&
write_
)
delete
write_
;
34
}
w
const double w
Definition:
UKUtility.cc:23
l1t::PrescalesVetosHelper::VERSION_
Definition:
PrescalesVetosHelper.h:36
l1t::PrescalesVetosHelper::PrescalesVetosHelper
PrescalesVetosHelper(L1TGlobalPrescalesVetos *w)
Definition:
PrescalesVetosHelper.cc:16
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::PrescalesVetosHelper::~PrescalesVetosHelper
~PrescalesVetosHelper()
Definition:
PrescalesVetosHelper.cc:32
l1t::PrescalesVetosHelper::useCopy
void useCopy()
Definition:
PrescalesVetosHelper.cc:26
PrescalesVetosHelper.h
l1t::PrescalesVetosHelper::readFromEventSetup
static const PrescalesVetosHelper * readFromEventSetup(const L1TGlobalPrescalesVetos *es)
Definition:
PrescalesVetosHelper.cc:6
l1t::PrescalesVetosHelper
Definition:
PrescalesVetosHelper.h:34
L1TGlobalPrescalesVetos::version_
unsigned int version_
Definition:
L1TGlobalPrescalesVetos.h:17
l1t::PrescalesVetosHelper::write_
L1TGlobalPrescalesVetos * write_
Definition:
PrescalesVetosHelper.h:68
L1TGlobalPrescalesVetos
Definition:
L1TGlobalPrescalesVetos.h:13
l1t::PrescalesVetosHelper::we_own_write_
bool we_own_write_
Definition:
PrescalesVetosHelper.h:69
l1t::PrescalesVetosHelper::read_
const L1TGlobalPrescalesVetos * read_
Definition:
PrescalesVetosHelper.h:67
l1t::PrescalesVetosHelper::readAndWriteFromEventSetup
static PrescalesVetosHelper * readAndWriteFromEventSetup(const L1TGlobalPrescalesVetos *es)
Definition:
PrescalesVetosHelper.cc:10
l1t::PrescalesVetosHelper::check_write
void check_write()
Definition:
PrescalesVetosHelper.h:65
Generated for CMSSW Reference Manual by
1.8.11