CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1DataEmulDigi Class Reference

#include <L1DataEmulDigi.h>

List of all members.

Public Member Functions

int cid () const
void data (unsigned int *d) const
L1MonitorDigi data () const
bool empty () const
L1MonitorDigi emul () const
 L1DataEmulDigi (int sid, int cid, double x1, double x2, double x3, int n)
 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)
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().

                               {
  reset();
}
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().

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().

                                                                    {
  reset();
  m_sid = sid; m_cid = cid;
  m_location[0]=x1; m_location[1]=x2; m_location[2]=x3;
  m_type = n; 
  m_data  [0]=dw; m_data  [1]=ew;
  m_rank  [0]=dr; m_rank  [1]=er;
  m_DEpair[0]=dm; m_DEpair[1]=em;
}
L1DataEmulDigi::~L1DataEmulDigi ( )

Definition at line 50 of file L1DataEmulDigi.cc.

{}

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().

{return m_cid;}
L1MonitorDigi L1DataEmulDigi::data ( ) const [inline]

Definition at line 46 of file L1DataEmulDigi.h.

References m_DEpair.

{return m_DEpair[0];}
void L1DataEmulDigi::data ( unsigned int *  d) const [inline]

Definition at line 44 of file L1DataEmulDigi.h.

References m_data.

Referenced by operator<<().

{d[0]=m_data[0]; d[1]=m_data[1];}
bool L1DataEmulDigi::empty ( ) const

Definition at line 4 of file L1DataEmulDigi.cc.

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

                                 {
  if(m_sid == m_null  || m_cid == m_null ) 
    return true;
  bool val = true;
  for(int i=0; i<2; i++) 
    val &= ( m_location[i]==m_null );
  return val;
}
L1MonitorDigi L1DataEmulDigi::emul ( ) const [inline]

Definition at line 47 of file L1DataEmulDigi.h.

References m_DEpair.

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

Definition at line 45 of file L1DataEmulDigi.h.

References m_rank.

Referenced by operator<<().

{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 L1TdeGCT::analyze(), L1TDEMON::analyze(), and L1DataEmulDigi().

                          {
  m_null = -99;
  m_sid = m_null; 
  m_cid = m_null;
  for(int i=0; i<3; i++) 
    m_location[i]=m_null;
  m_type = m_null; 
  std::fill(m_data,m_data+sizeof(m_data)/sizeof(m_data[0]),0);
  std::fill(m_rank,m_rank+sizeof(m_rank)/sizeof(m_rank[0]),m_null);
  L1MonitorDigi def;
  m_DEpair[0]=def;   m_DEpair[1]=def;
  return m_null;
}
void L1DataEmulDigi::setCid ( int  cid) [inline]

Definition at line 29 of file L1DataEmulDigi.h.

References cid(), and m_cid.

{m_cid = cid;}
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().

{m_data[0]=d; m_data[1]=e;}
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().

    {m_DEpair[0]=d; m_DEpair[1]=e; }
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().

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().

{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().

{m_sid = sid;}
void L1DataEmulDigi::setType ( int  n) [inline]

Definition at line 32 of file L1DataEmulDigi.h.

References m_type, and n.

{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().

{return m_sid;}
int L1DataEmulDigi::type ( ) const [inline]

Definition at line 43 of file L1DataEmulDigi.h.

References m_type.

Referenced by operator<<().

{return m_type;}
double L1DataEmulDigi::x1 ( ) const [inline]

Definition at line 40 of file L1DataEmulDigi.h.

References m_location.

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

{return m_location[0];}
double L1DataEmulDigi::x2 ( ) const [inline]

Definition at line 41 of file L1DataEmulDigi.h.

References m_location.

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

{return m_location[1];}
double L1DataEmulDigi::x3 ( ) const [inline]

Definition at line 42 of file L1DataEmulDigi.h.

References m_location.

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

{return m_location[2];}

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().

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().