StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DSMLayer_EM201_2009.cc
1 #include "DSMAlgo_EM201_2009.hh"
2 #include "DSMLayer_B101_2009.hh"
3 #include "DSMLayer_E101_2009.hh"
4 #include "DSMLayer_EM201_2009.hh"
5 
6 #include "DSMAlgo_EM201_2013.hh"
7 #include "DSMAlgo_EM201_2013_a.hh"
8 
9 //DSMLayer_EM201_2009::DSMLayer_EM201_2009() : StDSMLayer(1) //DSMLayer<TriggerDataBlk>(1)
10 DSMLayer_EM201_2009::DSMLayer_EM201_2009() : DSMLayer<TriggerDataBlk>(1)
11 {
12  front().name = "EM201";
13 }
14 
15 bool DSMLayer_EM201_2009::read(const TriggerDataBlk& event)
16 {
17  L1_DSM_Data* L1data = (L1_DSM_Data*)((char*)&event+event.L1_DSM_ofl.offset);
18  copy_and_swap8(front().channels, L1data->EMC);
19  return true;
20 }
21 
22 void DSMLayer_EM201_2009::write(DSMLayer<TriggerDataBlk>& layer)
23 {
24  layer[0].channels[3] = front().output;
25 }
26 
27 void DSMLayer_EM201_2009::run()
28 {
29  DSMAlgo_EM201_2009()(front());
30 }