CMS 3D CMS Logo

EndCapParamsHelper.cc
Go to the documentation of this file.
2 
3 #include <iostream>
4 
5 using namespace l1t;
6 using namespace std;
7 
9  return new EndCapParamsHelper(es);
10 }
11 
14  x->useCopy();
15  return x;
16 }
17 
19  write_ = w;
20  check_write();
21  we_own_write_ = false;
22  //write_->m_version = VERSION;
23  read_ = write_;
24 }
25 
27  read_ = es;
28  write_ = nullptr;
29 }
30 
32  write_ = new L1TMuonEndCapParams(*read_);
33  we_own_write_ = true;
34  read_ = write_;
35 }
36 
38  if (we_own_write_ && write_)
39  delete write_;
40 }
41 
42 // print all the L1 GT stable parameters
43 void EndCapParamsHelper::print(std::ostream& myStr) const { myStr << "\nL1T EndCap Parameters \n" << std::endl; }
l1t::EndCapParamsHelper::useCopy
void useCopy()
Definition: EndCapParamsHelper.cc:31
l1t::EndCapParamsHelper::readFromEventSetup
static const EndCapParamsHelper * readFromEventSetup(const L1TMuonEndCapParams *es)
Definition: EndCapParamsHelper.cc:8
l1t::EndCapParamsHelper::~EndCapParamsHelper
~EndCapParamsHelper()
Definition: EndCapParamsHelper.cc:37
l1t::EndCapParamsHelper
Definition: EndCapParamsHelper.h:36
w
const double w
Definition: UKUtility.cc:23
l1t::EndCapParamsHelper::readAndWriteFromEventSetup
static EndCapParamsHelper * readAndWriteFromEventSetup(const L1TMuonEndCapParams *es)
Definition: EndCapParamsHelper.cc:12
l1t::EndCapParamsHelper::print
void print(std::ostream &) const
Definition: EndCapParamsHelper.cc:43
l1t
delete x;
Definition: CaloConfig.h:22
EndCapParamsHelper.h
L1TMuonEndCapParams
Definition: L1TMuonEndCapParams.h:15
std
Definition: JetResolutionObject.h:76
l1t::EndCapParamsHelper::EndCapParamsHelper
EndCapParamsHelper(L1TMuonEndCapParams *w)
Definition: EndCapParamsHelper.cc:18