SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Det. Search
Who's who?
Meetings
FAQ
Images
Archive
Systems
Performance
Intern. region
Vertex Tracker
Drift chamber
DIRC
Calorimeter
IFR
LST
Magnet
Electronics
Trigger
Operations
Run Coordination
Contact Experts
Shift Takers Info
Operations Manual
Electronic Logbook
Ops Hypernews
Shift Signup
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)
Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

L1DInject< opcode > Class Template Reference

#include <L1DInject.hh>

Inheritance diagram for L1DInject< opcode >:

odfInject odfRequest odfRoutine odfEntry List of all members.

Public Member Functions

virtual ~L1DInject ()
 L1DInject (odfTask *task)
 Commands are attached to an odfTask.

odfTask * task ()
 odfInject pure virtual methods, returns the odfTask who will execute that command

unsigned clinksA () const
 odfInject pure virtual methods, returns the 16 bit pattern of the "A" Clink

unsigned clinksB () const
 odfInject pure virtual methods, returns the 16 bit pattern of the "B" Clink (not used with trigger boards)

odfCmnd::OpCode opCode () const
 odfInject pure virtual methods, returns the opcode

odfCmnd::Tag tag () const
odfRequest::Directions done ()
void issue (unsigned long link)
 send the command to the corresponding Clink pattern


Private Attributes

odfTask * _task
 pointer to the odfTask who will execute the command

unsigned _clinksA
 storage of the C-link pattern for the Dataflow call to the clinksA() method

unsigned _clinksB
 storage of the C-link pattern for the Dataflow call to the clinksB() method

odfSemaphore _barrier
 the semaphore is used to ensure that the object will still exist when done is called


Detailed Description

template<odfCmnd::OpCode opcode>
class L1DInject< opcode >

Template class for injecting command to the board The template argument is the opcode of the command

Definition at line 22 of file L1DInject.hh.


Constructor & Destructor Documentation

template<odfCmnd::OpCode opcode>
virtual L1DInject< opcode >::~L1DInject   [inline, virtual]
 

Definition at line 25 of file L1DInject.hh.

template<odfCmnd::OpCode opcode>
L1DInject< opcode >::L1DInject odfTask *    task
 

Commands are attached to an odfTask.

Definition at line 11 of file L1DInject.cc.


Member Function Documentation

template<odfCmnd::OpCode opcode>
unsigned L1DInject< opcode >::clinksA   const [inline, virtual]
 

odfInject pure virtual methods, returns the 16 bit pattern of the "A" Clink

Implements odfRequest.

Definition at line 32 of file L1DInject.hh.

template<odfCmnd::OpCode opcode>
unsigned L1DInject< opcode >::clinksB   const [inline, virtual]
 

odfInject pure virtual methods, returns the 16 bit pattern of the "B" Clink (not used with trigger boards)

Implements odfRequest.

Definition at line 34 of file L1DInject.hh.

template<odfCmnd::OpCode opcode>
odfRequest::Directions L1DInject< opcode >::done   [inline, virtual]
 

odfInject pure virtual methods, executed after the command has been sent. This is not executed by the same thread so any L1DInject object should be somehow permanent (static or else)

Implements odfRequest.

Definition at line 46 of file L1DInject.hh.

template<odfCmnd::OpCode opcode>
void L1DInject< opcode >::issue unsigned long    link [inline]
 

send the command to the corresponding Clink pattern

Definition at line 49 of file L1DInject.hh.

template<odfCmnd::OpCode opcode>
odfCmnd::OpCode L1DInject< opcode >::opCode   const [inline, virtual]
 

odfInject pure virtual methods, returns the opcode

Implements odfInject.

Definition at line 36 of file L1DInject.hh.

template<odfCmnd::OpCode opcode>
odfCmnd::Tag L1DInject< opcode >::tag   const [inline, virtual]
 

odfInject pure virtual methods, returns the tag or "sub-command bits", apparently not used in the trigger boards at injection

Implements odfInject.

Definition at line 40 of file L1DInject.hh.

template<odfCmnd::OpCode opcode>
odfTask* L1DInject< opcode >::task   [inline, virtual]
 

odfInject pure virtual methods, returns the odfTask who will execute that command

Implements odfRequest.

Definition at line 30 of file L1DInject.hh.


Member Data Documentation

template<odfCmnd::OpCode opcode>
odfSemaphore L1DInject< opcode >::_barrier [private]
 

the semaphore is used to ensure that the object will still exist when done is called

Definition at line 59 of file L1DInject.hh.

Referenced by L1DInject< odfCmnd::opcode20 >::done(), and L1DInject< odfCmnd::opcode20 >::issue().

template<odfCmnd::OpCode opcode>
unsigned L1DInject< opcode >::_clinksA [private]
 

storage of the C-link pattern for the Dataflow call to the clinksA() method

Definition at line 55 of file L1DInject.hh.

Referenced by L1DInject< odfCmnd::opcode20 >::clinksA(), and L1DInject< odfCmnd::opcode20 >::issue().

template<odfCmnd::OpCode opcode>
unsigned L1DInject< opcode >::_clinksB [private]
 

storage of the C-link pattern for the Dataflow call to the clinksB() method

Definition at line 57 of file L1DInject.hh.

Referenced by L1DInject< odfCmnd::opcode20 >::clinksB(), and L1DInject< odfCmnd::opcode20 >::issue().

template<odfCmnd::OpCode opcode>
odfTask* L1DInject< opcode >::_task [private]
 

pointer to the odfTask who will execute the command

Definition at line 53 of file L1DInject.hh.

Referenced by L1DInject< odfCmnd::opcode20 >::task().


The documentation for this class was generated from the following files:
Generated on Thu Jun 5 20:55:51 2003 for L1DctTeststand by doxygen1.3-rc3