test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1Trigger
L1TMuonEndCap
src
EndCapParamsHelper.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1TMuonEndCap/interface/EndCapParamsHelper.h
"
2
3
#include <iostream>
4
5
using namespace
l1t;
6
using namespace
std;
7
8
const
EndCapParamsHelper
*
EndCapParamsHelper::readFromEventSetup
(
const
L1TMuonEndCapParams
* es){
9
return
new
EndCapParamsHelper
(es);
10
}
11
12
EndCapParamsHelper
*
EndCapParamsHelper::readAndWriteFromEventSetup
(
const
L1TMuonEndCapParams
* es){
13
EndCapParamsHelper
*
x
=
new
EndCapParamsHelper
(es);
14
x->
useCopy
();
15
return
x;
16
}
17
18
EndCapParamsHelper::EndCapParamsHelper
(
L1TMuonEndCapParams
*
w
) {
19
write_ =
w
;
20
check_write();
21
we_own_write_ =
false
;
22
//write_->m_version = VERSION;
23
read_ = write_;
24
}
25
26
EndCapParamsHelper::EndCapParamsHelper
(
const
L1TMuonEndCapParams
* es) {read_ = es; write_=
NULL
;}
27
28
void
EndCapParamsHelper::useCopy
(){
29
write_ =
new
L1TMuonEndCapParams
(*read_);
30
we_own_write_ =
true
;
31
read_ = write_;
32
}
33
34
EndCapParamsHelper::~EndCapParamsHelper
() {
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
}
EndCapParamsHelper.h
l1t::EndCapParamsHelper
Definition:
EndCapParamsHelper.h:39
w
const double w
Definition:
UKUtility.cc:23
l1t::EndCapParamsHelper::useCopy
void useCopy()
Definition:
EndCapParamsHelper.cc:28
l1t::EndCapParamsHelper::~EndCapParamsHelper
~EndCapParamsHelper()
Definition:
EndCapParamsHelper.cc:34
l1t::EndCapParamsHelper::readAndWriteFromEventSetup
static EndCapParamsHelper * readAndWriteFromEventSetup(const L1TMuonEndCapParams *es)
Definition:
EndCapParamsHelper.cc:12
L1TMuonEndCapParams
Definition:
L1TMuonEndCapParams.h:15
NULL
#define NULL
Definition:
scimark2.h:8
l1t::EndCapParamsHelper::print
void print(std::ostream &) const
Definition:
EndCapParamsHelper.cc:40
x
T x() const
Cartesian x coordinate.
Definition:
Basic3DVectorLD.h:127
l1t::EndCapParamsHelper::readFromEventSetup
static const EndCapParamsHelper * readFromEventSetup(const L1TMuonEndCapParams *es)
Definition:
EndCapParamsHelper.cc:8
l1t::EndCapParamsHelper::EndCapParamsHelper
EndCapParamsHelper(L1TMuonEndCapParams *w)
Definition:
EndCapParamsHelper.cc:18
Generated for CMSSW Reference Manual by
1.8.5