CMS 3D CMS Logo

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 GetFirmwareVersion () const
 
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 SetFirmwareVersion (unsigned version)
 
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.

Referenced by getWriteInstance().

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 76 of file EndCapParamsHelper.h.

References write_.

76 { assert(write_); }
L1TMuonEndCapParams * write_
unsigned l1t::EndCapParamsHelper::GetFirmwareVersion ( ) const
inline

Definition at line 60 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::firmwareVersion_, and read_.

60 {return read_->firmwareVersion_;}
const L1TMuonEndCapParams * read_
unsigned l1t::EndCapParamsHelper::GetPtAssignVersion ( ) const
inline

Definition at line 59 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PtAssignVersion_, and read_.

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

Definition at line 70 of file EndCapParamsHelper.h.

References read_.

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

Definition at line 61 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt1_, and read_.

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

Definition at line 62 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt2_, and read_.

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

Definition at line 63 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt3_, and read_.

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

Definition at line 64 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt4_, print(), and read_.

64 {return read_->PhiMatchWindowSt4_;};
const L1TMuonEndCapParams * read_
L1TMuonEndCapParams* l1t::EndCapParamsHelper::getWriteInstance ( )
inline
void EndCapParamsHelper::print ( std::ostream &  myStr) const

Definition at line 40 of file EndCapParamsHelper.cc.

Referenced by GetSt4PhiMatchWindow().

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::SetFirmwareVersion ( unsigned  version)
inline
void l1t::EndCapParamsHelper::SetPtAssignVersion ( unsigned  version)
inline
void l1t::EndCapParamsHelper::SetSt1PhiMatchWindow ( int  window)
inline

Definition at line 54 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt1_, svgfig::window(), and write_.

Referenced by L1TMuonEndCapParamsESProducer::L1TMuonEndCapParamsESProducer().

L1TMuonEndCapParams * write_
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
Definition: svgfig.py:642
void l1t::EndCapParamsHelper::SetSt2PhiMatchWindow ( int  window)
inline

Definition at line 55 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt2_, svgfig::window(), and write_.

Referenced by L1TMuonEndCapParamsESProducer::L1TMuonEndCapParamsESProducer().

L1TMuonEndCapParams * write_
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
Definition: svgfig.py:642
void l1t::EndCapParamsHelper::SetSt3PhiMatchWindow ( int  window)
inline

Definition at line 56 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt3_, svgfig::window(), and write_.

Referenced by L1TMuonEndCapParamsESProducer::L1TMuonEndCapParamsESProducer().

L1TMuonEndCapParams * write_
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
Definition: svgfig.py:642
void l1t::EndCapParamsHelper::SetSt4PhiMatchWindow ( int  window)
inline

Definition at line 57 of file EndCapParamsHelper.h.

References L1TMuonEndCapParams::PhiMatchWindowSt4_, svgfig::window(), and write_.

Referenced by L1TMuonEndCapParamsESProducer::L1TMuonEndCapParamsESProducer().

L1TMuonEndCapParams * write_
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
Definition: svgfig.py:642
void EndCapParamsHelper::useCopy ( )
private

Definition at line 28 of file EndCapParamsHelper.cc.

Referenced by getWriteInstance(), and 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 80 of file EndCapParamsHelper.h.

L1TMuonEndCapParams* l1t::EndCapParamsHelper::write_
private