ICP
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
isis2
instcontrol_temp
ICP
newicp
sim_muon_detector_card.cpp
Go to the documentation of this file.
1
#include "
stdafx.h
"
2
#include "
sim_muon_detector_card.h
"
3
#include "
vme_simulation.h
"
4
#include "
isisvme.h
"
5
#include "
dae_events.h
"
6
7
template
<
class
DetCardPolicy>
8
SIMMuonDetectorCard<DetCardPolicy>::SIMMuonDetectorCard
(
int
position,
VMESimulationIface
* vme,
bool
shared,
FaultMode
fault_mode,
DAEstatus
& status) :
9
SIMDetectorCard
(position, vme, shared, fault_mode, true, status)
10
{
11
setLoggerName
(
"SIMMuonDetectorCard"
);
12
firmware_version
fv;
13
memcpy(&fv, &
m_firmware
,
sizeof
(fv));
14
fv.
hard_type
= 0x3;
// muon detector card
15
memcpy(&
m_firmware
, &fv,
sizeof
(fv));
16
}
17
18
template
<
class
DetCardPolicy>
19
void
SIMMuonDetectorCard<DetCardPolicy>::printStatus
(std::ostream& os)
20
{
21
os <<
"SIMMuonDetector card at position "
<< m_position;
22
}
23
24
template
<
class
DetCardPolicy>
25
SIMMuonDetectorCard<DetCardPolicy>::~SIMMuonDetectorCard
()
26
{
27
}
28
29
template
<
class
DetCardPolicy>
30
void
SIMMuonDetectorCard<DetCardPolicy>::simulate
(
int
delay)
31
{
32
}
33
34
template
class
SIMMuonDetectorCard<DAE2DetCardPolicy>
;
35
template
class
SIMMuonDetectorCard<DAE3DetCardPolicy>
;
firmware_version::hard_type
unsigned hard_type
Definition:
dae2_card.h:21
SIMDAE2Card< DetCardPolicy >::m_firmware
isisU32_t m_firmware
Definition:
sim_dae2_card.h:91
SIMMuonDetectorCard::SIMMuonDetectorCard
SIMMuonDetectorCard(int position, VMESimulationIface *vme, bool shared, FaultMode fault_mode, DAEstatus &status)
Definition:
sim_muon_detector_card.cpp:8
SIMMuonDetectorCard::printStatus
virtual void printStatus(std::ostream &os)
Definition:
sim_muon_detector_card.cpp:19
sim_muon_detector_card.h
DAEstatus
Definition:
DAEstatus.h:121
stdafx.h
VMESimulationIface
Definition:
vme_simulation.h:23
SIMDetectorCard
Definition:
QxtrmSimulation.h:19
vme_simulation.h
SIMMuonDetectorCard::~SIMMuonDetectorCard
virtual ~SIMMuonDetectorCard()
Definition:
sim_muon_detector_card.cpp:25
firmware_version
Definition:
dae2_card.h:16
dae_events.h
ISIS::Base::setLoggerName
void setLoggerName(const std::string &logger_name)
Definition:
IsisBase.h:17
SIMMuonDetectorCard
Definition:
sim_muon_detector_card.h:8
SIMMuonDetectorCard::simulate
virtual void simulate(int delay)
Definition:
sim_muon_detector_card.cpp:30
FaultMode
FaultMode
Definition:
sim_dae2_card.h:10
isisvme.h
Generated by
1.8.5