test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
29  write_ = new L1TMuonEndCapParams(*read_);
30  we_own_write_ = true;
31  read_ = write_;
32 }
33 
35  if (we_own_write_ && write_) delete write_;
36 }
37 
38 
39 // print all the L1 GT stable parameters
40 void EndCapParamsHelper::print(std::ostream& myStr) const {
41  myStr << "\nL1T EndCap Parameters \n" << std::endl;
42 }
const double w
Definition: UKUtility.cc:23
static EndCapParamsHelper * readAndWriteFromEventSetup(const L1TMuonEndCapParams *es)
#define NULL
Definition: scimark2.h:8
void print(std::ostream &) const
T x() const
Cartesian x coordinate.
static const EndCapParamsHelper * readFromEventSetup(const L1TMuonEndCapParams *es)
EndCapParamsHelper(L1TMuonEndCapParams *w)