CMS 3D CMS Logo

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

#include <L1DataEmulDigi.h>

Public Member Functions

int cid () const
 
void data (unsigned int *d) const
 
L1MonitorDigi data () const
 
bool empty () const
 
L1MonitorDigi emul () const
 
 L1DataEmulDigi ()
 
 L1DataEmulDigi (int sid, int cid, double x1, double x2, double x3, int n)
 
 L1DataEmulDigi (int sid, int cid, double x1, double x2, double x3, int n, unsigned int dw, unsigned int ew, float dr, float er, L1MonitorDigi dm, L1MonitorDigi em)
 
void rank (float *r) const
 
int reset ()
 
void setCid (int cid)
 
void setData (unsigned int d, unsigned int e)
 
void setDEpair (L1MonitorDigi d, L1MonitorDigi e)
 
void setLocation (double x1, double x2, double x3)
 
void setRank (float d, float e)
 
void setSid (int sid)
 
void setType (int n)
 
int sid () const
 
int type () const
 
double x1 () const
 
double x2 () const
 
double x3 () const
 
 ~L1DataEmulDigi ()
 

Private Attributes

int m_cid
 
unsigned int m_data [2]
 
L1MonitorDigi m_DEpair [2]
 
double m_location [3]
 
int m_null
 
float m_rank [2]
 
int m_sid
 
int m_type
 

Detailed Description

Definition at line 17 of file L1DataEmulDigi.h.

Constructor & Destructor Documentation

L1DataEmulDigi::L1DataEmulDigi ( )

Definition at line 27 of file L1DataEmulDigi.cc.

References reset().

27  {
28  reset();
29 }
L1DataEmulDigi::L1DataEmulDigi ( int  sid,
int  cid,
double  x1,
double  x2,
double  x3,
int  n 
)

Definition at line 31 of file L1DataEmulDigi.cc.

References cid(), m_cid, m_location, m_sid, m_type, n, reset(), sid(), x1(), x2(), and x3().

31  {
32  reset();
33  m_sid = sid; m_cid = cid;
35  m_type = n;
36 }
int sid() const
int cid() const
double x2() const
double x1() const
double x3() const
double m_location[3]
L1DataEmulDigi::L1DataEmulDigi ( int  sid,
int  cid,
double  x1,
double  x2,
double  x3,
int  n,
unsigned int  dw,
unsigned int  ew,
float  dr,
float  er,
L1MonitorDigi  dm,
L1MonitorDigi  em 
)

Definition at line 38 of file L1DataEmulDigi.cc.

References cid(), m_cid, m_data, m_DEpair, m_location, m_rank, m_sid, m_type, n, reset(), sid(), x1(), x2(), and x3().

40  {
41  reset();
42  m_sid = sid; m_cid = cid;
44  m_type = n;
45  m_data [0]=dw; m_data [1]=ew;
46  m_rank [0]=dr; m_rank [1]=er;
47  m_DEpair[0]=dm; m_DEpair[1]=em;
48 }
int sid() const
unsigned int m_data[2]
int cid() const
double x2() const
double x1() const
L1MonitorDigi m_DEpair[2]
double x3() const
double m_location[3]
L1DataEmulDigi::~L1DataEmulDigi ( )

Definition at line 50 of file L1DataEmulDigi.cc.

50 {}

Member Function Documentation

int L1DataEmulDigi::cid ( ) const
inline

Definition at line 39 of file L1DataEmulDigi.h.

References m_cid.

Referenced by L1DataEmulDigi(), operator<<(), and setCid().

39 {return m_cid;}
void L1DataEmulDigi::data ( unsigned int *  d) const
inline

Definition at line 44 of file L1DataEmulDigi.h.

References m_data.

Referenced by operator<<().

44 {d[0]=m_data[0]; d[1]=m_data[1];}
unsigned int m_data[2]
L1MonitorDigi L1DataEmulDigi::data ( ) const
inline

Definition at line 46 of file L1DataEmulDigi.h.

References m_DEpair.

46 {return m_DEpair[0];}
L1MonitorDigi m_DEpair[2]
bool L1DataEmulDigi::empty ( ) const

Definition at line 4 of file L1DataEmulDigi.cc.

References i, m_cid, m_location, m_null, and m_sid.

Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

4  {
5  if(m_sid == m_null || m_cid == m_null )
6  return true;
7  bool val = true;
8  for(int i=0; i<2; i++)
9  val &= ( m_location[i]==m_null );
10  return val;
11 }
int i
Definition: DBlmapReader.cc:9
double m_location[3]
L1MonitorDigi L1DataEmulDigi::emul ( ) const
inline

Definition at line 47 of file L1DataEmulDigi.h.

References m_DEpair.

47 {return m_DEpair[1];}
L1MonitorDigi m_DEpair[2]
void L1DataEmulDigi::rank ( float *  r) const
inline

Definition at line 45 of file L1DataEmulDigi.h.

References m_rank.

Referenced by operator<<().

45 {r[0]=m_rank[0]; r[1]=m_rank[1];}
int L1DataEmulDigi::reset ( void  )

Definition at line 13 of file L1DataEmulDigi.cc.

References def, lumiContext::fill, i, m_cid, m_data, m_DEpair, m_location, m_null, m_rank, m_sid, and m_type.

Referenced by BeautifulSoup.BeautifulStoneSoup::__init__(), L1TdeGCT::analyze(), L1TDEMON::analyze(), and L1DataEmulDigi().

13  {
14  m_null = -99;
15  m_sid = m_null;
16  m_cid = m_null;
17  for(int i=0; i<3; i++)
19  m_type = m_null;
20  std::fill(m_data,m_data+sizeof(m_data)/sizeof(m_data[0]),0);
21  std::fill(m_rank,m_rank+sizeof(m_rank)/sizeof(m_rank[0]),m_null);
23  m_DEpair[0]=def; m_DEpair[1]=def;
24  return m_null;
25 }
int i
Definition: DBlmapReader.cc:9
string fill
Definition: lumiContext.py:319
unsigned int m_data[2]
L1MonitorDigi m_DEpair[2]
double m_location[3]
JetCorrectorParameters::Definitions def
Definition: classes.h:10
void L1DataEmulDigi::setCid ( int  cid)
inline

Definition at line 29 of file L1DataEmulDigi.h.

References cid(), and m_cid.

29 {m_cid = cid;}
int cid() const
void L1DataEmulDigi::setData ( unsigned int  d,
unsigned int  e 
)
inline

Definition at line 33 of file L1DataEmulDigi.h.

References alignCSCRings::e, and m_data.

Referenced by DEutils< T >::DEDigi().

33 {m_data[0]=d; m_data[1]=e;}
unsigned int m_data[2]
void L1DataEmulDigi::setDEpair ( L1MonitorDigi  d,
L1MonitorDigi  e 
)
inline

Definition at line 35 of file L1DataEmulDigi.h.

References alignCSCRings::e, and m_DEpair.

Referenced by DEutils< T >::DEDigi().

36  {m_DEpair[0]=d; m_DEpair[1]=e; }
L1MonitorDigi m_DEpair[2]
void L1DataEmulDigi::setLocation ( double  x1,
double  x2,
double  x3 
)
inline

Definition at line 30 of file L1DataEmulDigi.h.

References m_location, x1(), x2(), and x3().

31  { m_location[0]=x1; m_location[1]=x2; m_location[2]=x3;}
double x2() const
double x1() const
double x3() const
double m_location[3]
void L1DataEmulDigi::setRank ( float  d,
float  e 
)
inline

Definition at line 34 of file L1DataEmulDigi.h.

References alignCSCRings::e, and m_rank.

Referenced by DEutils< T >::DEDigi().

34 {m_rank[0]=d; m_rank[1]=e;}
void L1DataEmulDigi::setSid ( int  sid)
inline

Definition at line 28 of file L1DataEmulDigi.h.

References m_sid, and sid().

28 {m_sid = sid;}
int sid() const
void L1DataEmulDigi::setType ( int  n)
inline

Definition at line 32 of file L1DataEmulDigi.h.

References m_type, and n.

32 {m_type = n;}
int L1DataEmulDigi::sid ( ) const
inline

Definition at line 38 of file L1DataEmulDigi.h.

References m_sid.

Referenced by L1DataEmulDigi(), operator<<(), and setSid().

38 {return m_sid;}
int L1DataEmulDigi::type ( ) const
inline
double L1DataEmulDigi::x1 ( ) const
inline
double L1DataEmulDigi::x2 ( ) const
inline
double L1DataEmulDigi::x3 ( ) const
inline

Definition at line 42 of file L1DataEmulDigi.h.

References m_location.

Referenced by L1DataEmulDigi(), operator<<(), and setLocation().

42 {return m_location[2];}
double m_location[3]

Member Data Documentation

int L1DataEmulDigi::m_cid
private

Definition at line 55 of file L1DataEmulDigi.h.

Referenced by cid(), empty(), L1DataEmulDigi(), reset(), and setCid().

unsigned int L1DataEmulDigi::m_data[2]
private

Definition at line 58 of file L1DataEmulDigi.h.

Referenced by data(), L1DataEmulDigi(), reset(), and setData().

L1MonitorDigi L1DataEmulDigi::m_DEpair[2]
private

Definition at line 61 of file L1DataEmulDigi.h.

Referenced by data(), emul(), L1DataEmulDigi(), reset(), and setDEpair().

double L1DataEmulDigi::m_location[3]
private

Definition at line 56 of file L1DataEmulDigi.h.

Referenced by empty(), L1DataEmulDigi(), reset(), setLocation(), x1(), x2(), and x3().

int L1DataEmulDigi::m_null
private

Definition at line 60 of file L1DataEmulDigi.h.

Referenced by empty(), and reset().

float L1DataEmulDigi::m_rank[2]
private

Definition at line 59 of file L1DataEmulDigi.h.

Referenced by L1DataEmulDigi(), rank(), reset(), and setRank().

int L1DataEmulDigi::m_sid
private

Definition at line 54 of file L1DataEmulDigi.h.

Referenced by empty(), L1DataEmulDigi(), reset(), setSid(), and sid().

int L1DataEmulDigi::m_type
private

Definition at line 57 of file L1DataEmulDigi.h.

Referenced by L1DataEmulDigi(), reset(), setType(), and type().