CMS 3D CMS Logo

PrescalesVetosFractHelper.cc
Go to the documentation of this file.
2 
3 using namespace l1t;
4 
6  return new PrescalesVetosFractHelper(es);
7 }
8 
10  const L1TGlobalPrescalesVetosFract* es) {
12  x->useCopy();
13  return x;
14 }
15 
17  write_ = w;
18  check_write();
19  we_own_write_ = false;
21  read_ = write_;
22 }
23 
25  read_ = es;
26  write_ = nullptr;
27 }
28 
31  we_own_write_ = true;
32  read_ = write_;
33 }
34 
36  if (we_own_write_ && write_)
37  delete write_;
38 }
T w() const
static PrescalesVetosFractHelper * readAndWriteFromEventSetup(const L1TGlobalPrescalesVetosFract *es)
PrescalesVetosFractHelper(L1TGlobalPrescalesVetosFract *w)
static const PrescalesVetosFractHelper * readFromEventSetup(const L1TGlobalPrescalesVetosFract *es)
delete x;
Definition: CaloConfig.h:22
L1TGlobalPrescalesVetosFract * write_
float x
const L1TGlobalPrescalesVetosFract * read_