CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
l1t::EndCapParamsHelper Class Reference

#include <EndCapParamsHelper.h>

Public Types

enum  { VERSION = 1 }
 

Public Member Functions

 EndCapParamsHelper (L1TMuonEndCapParams *w)
 
unsigned GetPtAssignVersion () const
 
const L1TMuonEndCapParamsgetReadInstance () const
 
int GetSt1PhiMatchWindow () const
 
int GetSt2PhiMatchWindow () const
 
int GetSt3PhiMatchWindow () const
 
int GetSt4PhiMatchWindow () const
 
L1TMuonEndCapParamsgetWriteInstance ()
 
void print (std::ostream &) const
 
void SetPtAssignVersion (unsigned version)
 
void SetSt1PhiMatchWindow (int window)
 
void SetSt2PhiMatchWindow (int window)
 
void SetSt3PhiMatchWindow (int window)
 
void SetSt4PhiMatchWindow (int window)
 
 ~EndCapParamsHelper ()
 

Static Public Member Functions

static EndCapParamsHelperreadAndWriteFromEventSetup (const L1TMuonEndCapParams *es)
 
static const EndCapParamsHelperreadFromEventSetup (const L1TMuonEndCapParams *es)
 

Private Member Functions

void check_write ()
 
 EndCapParamsHelper (const L1TMuonEndCapParams *es)
 
void useCopy ()
 

Private Attributes

const L1TMuonEndCapParamsread_
 
bool we_own_write_
 
L1TMuonEndCapParamswrite_
 

Detailed Description

Definition at line 39 of file EndCapParamsHelper.h.

Member Enumeration Documentation

anonymous enum
Enumerator
VERSION 

Definition at line 41 of file EndCapParamsHelper.h.

Constructor & Destructor Documentation

EndCapParamsHelper::~EndCapParamsHelper ( )

Definition at line 34 of file EndCapParamsHelper.cc.

34  {
35  if (we_own_write_ && write_) delete write_;
36 }
L1TMuonEndCapParams * write_
EndCapParamsHelper::EndCapParamsHelper ( L1TMuonEndCapParams w)

Definition at line 18 of file EndCapParamsHelper.cc.

References w.

18  {
19  write_ = w;
20  check_write();
21  we_own_write_ = false;
22  //write_->m_version = VERSION;
23  read_ = write_;
24 }
L1TMuonEndCapParams * write_
const double w
Definition: UKUtility.cc:23
const L1TMuonEndCapParams * read_
EndCapParamsHelper::EndCapParamsHelper ( const L1TMuonEndCapParams es)
private

Definition at line 26 of file EndCapParamsHelper.cc.

References NULL.

26 {read_ = es; write_=NULL;}
L1TMuonEndCapParams * write_
#define NULL
Definition: scimark2.h:8
const L1TMuonEndCapParams * read_

Member Function Documentation

void l1t::EndCapParamsHelper::check_write ( )
inlineprivate

Definition at line 74 of file EndCapParamsHelper.h.

References assert(), and write_.

74 { assert(write_); }
L1TMuonEndCapParams * write_
assert(m_qm.get())
unsigned l1t::EndCapParamsHelper::GetPtAssignVersion ( ) const
inline

Definition at line 58 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PtAssignVersion_, and read_.

58 {return read_->PtAssignVersion_;};
const L1TMuonEndCapParams * read_
const L1TMuonEndCapParams* l1t::EndCapParamsHelper::getReadInstance ( ) const
inline

Definition at line 68 of file EndCapParamsHelper.h.

References read_.

68 {return read_;}
const L1TMuonEndCapParams * read_
int l1t::EndCapParamsHelper::GetSt1PhiMatchWindow ( ) const
inline

Definition at line 59 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt1_, and read_.

59 {return read_->PhiMatchWindowSt1_;};
const L1TMuonEndCapParams * read_
int l1t::EndCapParamsHelper::GetSt2PhiMatchWindow ( ) const
inline

Definition at line 60 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt2_, and read_.

60 {return read_->PhiMatchWindowSt2_;};
const L1TMuonEndCapParams * read_
int l1t::EndCapParamsHelper::GetSt3PhiMatchWindow ( ) const
inline

Definition at line 61 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt3_, and read_.

61 {return read_->PhiMatchWindowSt3_;};
const L1TMuonEndCapParams * read_
int l1t::EndCapParamsHelper::GetSt4PhiMatchWindow ( ) const
inline

Definition at line 62 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt4_, and read_.

62 {return read_->PhiMatchWindowSt4_;};
const L1TMuonEndCapParams * read_
L1TMuonEndCapParams* l1t::EndCapParamsHelper::getWriteInstance ( )
inline

Definition at line 69 of file EndCapParamsHelper.h.

References write_.

Referenced by L1TMuonEndCapParamsESProducer::produce().

69 {return write_; }
L1TMuonEndCapParams * write_
void EndCapParamsHelper::print ( std::ostream &  myStr) const

Definition at line 40 of file EndCapParamsHelper.cc.

40  {
41  myStr << "\nL1T EndCap Parameters \n" << std::endl;
42 }
EndCapParamsHelper * EndCapParamsHelper::readAndWriteFromEventSetup ( const L1TMuonEndCapParams es)
static

Definition at line 12 of file EndCapParamsHelper.cc.

References useCopy(), and x().

12  {
14  x->useCopy();
15  return x;
16 }
EndCapParamsHelper(L1TMuonEndCapParams *w)
const EndCapParamsHelper * EndCapParamsHelper::readFromEventSetup ( const L1TMuonEndCapParams es)
static

Definition at line 8 of file EndCapParamsHelper.cc.

8  {
9  return new EndCapParamsHelper(es);
10 }
EndCapParamsHelper(L1TMuonEndCapParams *w)
void l1t::EndCapParamsHelper::SetPtAssignVersion ( unsigned  version)
inline
void l1t::EndCapParamsHelper::SetSt1PhiMatchWindow ( int  window)
inline
void l1t::EndCapParamsHelper::SetSt2PhiMatchWindow ( int  window)
inline
void l1t::EndCapParamsHelper::SetSt3PhiMatchWindow ( int  window)
inline
void l1t::EndCapParamsHelper::SetSt4PhiMatchWindow ( int  window)
inline
void EndCapParamsHelper::useCopy ( )
private

Definition at line 28 of file EndCapParamsHelper.cc.

Referenced by readAndWriteFromEventSetup().

28  {
30  we_own_write_ = true;
31  read_ = write_;
32 }
L1TMuonEndCapParams * write_
const L1TMuonEndCapParams * read_

Member Data Documentation

const L1TMuonEndCapParams* l1t::EndCapParamsHelper::read_
private
bool l1t::EndCapParamsHelper::we_own_write_
private

Definition at line 78 of file EndCapParamsHelper.h.

L1TMuonEndCapParams* l1t::EndCapParamsHelper::write_
private