StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DSMLayer_LD301_2009.cc
1 #include "DSMAlgo_LD301_2009.hh"
2 #include "DSMLayer_LD301_2009.hh"
3 
4 //DSMLayer_LD301_2009::DSMLayer_LD301_2009() : StDSMLayer(1)//<TriggerDataBlk>(1)
5 DSMLayer_LD301_2009::DSMLayer_LD301_2009() : DSMLayer<TriggerDataBlk>(1)
6 {
7  front().name = "LD301";
8 }
9 
10 bool DSMLayer_LD301_2009::read(const TriggerDataBlk& event)
11 {
12  L1_DSM_Data* L1data = (L1_DSM_Data*)((char*)&event+event.L1_DSM_ofl.offset);
13  copy_and_swap8(front().channels, L1data->lastDSM);
14  return true;
15 }
16 
17 void DSMLayer_LD301_2009::run()
18 {
19  DSMAlgo_LD301_2009()(front());
20 }