Cat
Public Member Functions | Public Attributes | List of all members
Run Class Reference

#include <include/Run.h>

Inheritance diagram for Run:

Public Member Functions

 Run ()
 Standard constructor. More...
 
 Run (std::vector< short >)
 
 Run (int, std::vector< short >)
 
virtual ~Run ()
 Destructor. More...
 
void decodeInfo ()
 
unsigned long number ()
 
unsigned long date ()
 
void setNumber (unsigned long run)
 
void setSpy (std::vector< short >)
 
void setDate (unsigned long date)
 
std::vector< int > spyEvt ()
 
std::vector< int > spyChannel ()
 
std::vector< short > spyRaw ()
 

Public Attributes

ClassDef(Run, 1) protected unsigned long m_date
 
std::vector< short > m_spyRaw
 
int m_spySize
 
std::vector< int > m_spyEvt
 
std::vector< int > m_spyChannel
 

Detailed Description

Author
Frederic Machefert
Date
2004-10-04

Definition at line 17 of file Run.h.

Constructor & Destructor Documentation

◆ Run() [1/3]

Run::Run ( )

Standard constructor.

◆ Run() [2/3]

Run::Run ( std::vector< short >  spyInfo)

Definition at line 31 of file Run.cpp.

References m_date, and setSpy().

31  {
32  setSpy ( spyInfo );
33  m_run = 0;
34  TDatime today;
35  m_date = today.GetDate();
36 }
void setSpy(std::vector< short >)
Definition: Run.cpp:57
ClassDef(Run, 1) protected unsigned long m_date
Definition: Run.h:68

◆ Run() [3/3]

Run::Run ( int  run,
std::vector< short >  spyInfo 
)

Definition at line 41 of file Run.cpp.

References m_date, shell::run(), and setSpy().

41  {
42  setSpy ( spyInfo );
43  m_run = run ;
44  TDatime today;
45  m_date = today.GetDate();
46 }
void setSpy(std::vector< short >)
Definition: Run.cpp:57
def run(processus, element, nevt)
Definition: shell.py:237
ClassDef(Run, 1) protected unsigned long m_date
Definition: Run.h:68

◆ ~Run()

Run::~Run ( )
virtual

Destructor.

Definition at line 52 of file Run.cpp.

52 {}

Member Function Documentation

◆ date()

unsigned long Run::date ( )
inline

Definition at line 33 of file Run.h.

References m_date.

Referenced by setDate().

33  {
34  return m_date;
35  }
ClassDef(Run, 1) protected unsigned long m_date
Definition: Run.h:68

◆ decodeInfo()

void Run::decodeInfo ( )

Definition at line 66 of file Run.cpp.

References images::index, m_spyChannel, m_spyEvt, m_spyRaw, and m_spySize.

Referenced by setSpy().

66  {
67  m_spyEvt.reserve( m_spySize);
68  m_spyChannel.reserve(m_spySize);
69  m_spyEvt.clear();
70  m_spyChannel.clear();
71  for (int index = 0 ; index < m_spySize ; ++index){
72  m_spyEvt.push_back(((m_spyRaw[index]>>0xF)&0xFF));
73  m_spyChannel.push_back(m_spyRaw[index]&0xF);
74  }
75 }
std::vector< int > m_spyEvt
Definition: Run.h:77
list index
Definition: images.py:1021
std::vector< int > m_spyChannel
Definition: Run.h:78
int m_spySize
Definition: Run.h:76
std::vector< short > m_spyRaw
Definition: Run.h:75

◆ number()

unsigned long Run::number ( )
inline

Definition at line 29 of file Run.h.

29  {
30  return m_run;
31  }

◆ setDate()

void Run::setDate ( unsigned long  date)
inline

Definition at line 44 of file Run.h.

References date(), and m_date.

44  {
45  m_date=date;
46  }
unsigned long date()
Definition: Run.h:33
ClassDef(Run, 1) protected unsigned long m_date
Definition: Run.h:68

◆ setNumber()

void Run::setNumber ( unsigned long  run)
inline

Definition at line 37 of file Run.h.

References shell::run(), and setSpy().

37  {
38  m_run=run;
39  }
def run(processus, element, nevt)
Definition: shell.py:237

◆ setSpy()

void Run::setSpy ( std::vector< short >  spyInfo)

Definition at line 57 of file Run.cpp.

References decodeInfo(), m_spyRaw, and m_spySize.

Referenced by Run(), and setNumber().

57  {
58  m_spyRaw = spyInfo ;
59  m_spySize= m_spyRaw.size();
60  decodeInfo();
61 }
int m_spySize
Definition: Run.h:76
void decodeInfo()
Definition: Run.cpp:66
std::vector< short > m_spyRaw
Definition: Run.h:75

◆ spyChannel()

std::vector< int > Run::spyChannel ( )
inline

Get accessor to member m_spyChannel

Returns
the current value of m_spyChannel

Definition at line 60 of file Run.h.

References m_spyChannel.

60  {
61  return m_spyChannel;
62  }
std::vector< int > m_spyChannel
Definition: Run.h:78

◆ spyEvt()

std::vector< int > Run::spyEvt ( )
inline

Get accessor to member m_spyEvt

Returns
the current value of m_spyEvt

Definition at line 52 of file Run.h.

References m_spyEvt.

52  {
53  return m_spyEvt;
54  }
std::vector< int > m_spyEvt
Definition: Run.h:77

◆ spyRaw()

std::vector< short > Run::spyRaw ( )
inline

Definition at line 64 of file Run.h.

References m_spyRaw.

64  {
65  return m_spyRaw;
66  }
std::vector< short > m_spyRaw
Definition: Run.h:75

Member Data Documentation

◆ m_date

ClassDef (Run,1) protected unsigned long Run::m_date

Definition at line 68 of file Run.h.

Referenced by ClassImp(), date(), Run(), and setDate().

◆ m_spyChannel

std::vector< int > Run::m_spyChannel

Definition at line 78 of file Run.h.

Referenced by decodeInfo(), and spyChannel().

◆ m_spyEvt

std::vector< int > Run::m_spyEvt

Definition at line 77 of file Run.h.

Referenced by decodeInfo(), and spyEvt().

◆ m_spyRaw

std::vector<short> Run::m_spyRaw

Definition at line 75 of file Run.h.

Referenced by decodeInfo(), setSpy(), and spyRaw().

◆ m_spySize

int Run::m_spySize

Definition at line 76 of file Run.h.

Referenced by ClassImp(), decodeInfo(), and setSpy().


The documentation for this class was generated from the following files: