CMS 3D CMS Logo

PrescalesVetosHelper.cc
Go to the documentation of this file.
2 
3 using namespace l1t;
4 
6  return new PrescalesVetosHelper(es);
7 }
8 
11  x->useCopy();
12  return x;
13 }
14 
16  write_ = w;
17  check_write();
18  we_own_write_ = false;
20  read_ = write_;
21 }
22 
24  read_ = es;
25  write_ = nullptr;
26 }
27 
30  we_own_write_ = true;
31  read_ = write_;
32 }
33 
35  if (we_own_write_ && write_)
36  delete write_;
37 }
T w() const
PrescalesVetosHelper(L1TGlobalPrescalesVetos *w)
delete x;
Definition: CaloConfig.h:22
static const PrescalesVetosHelper * readFromEventSetup(const L1TGlobalPrescalesVetos *es)
L1TGlobalPrescalesVetos * write_
float x
const L1TGlobalPrescalesVetos * read_
static PrescalesVetosHelper * readAndWriteFromEventSetup(const L1TGlobalPrescalesVetos *es)