StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_TLA_Maker.cxx
1 //*-- Author : Victor Perevoztchikov
2 //
3 // $Id: St_TLA_Maker.cxx,v 1.18 2007/10/27 17:42:59 fine Exp $
4 // $Log: St_TLA_Maker.cxx,v $
5 // Revision 1.18 2007/10/27 17:42:59 fine
6 // replace the obsolete class name
7 //
8 // Revision 1.17 2007/04/28 17:57:13 perev
9 // Redundant StChain.h removed
10 //
11 // Revision 1.16 2006/12/19 21:59:16 fine
12 // replace the class StMessMgr forward declaration with the real declaration and adjust St_TLA_Maker to show how to use logger
13 //
14 // Revision 1.15 2002/04/28 01:28:36 jeromel
15 // Reshaped comments for doxygen. Hopefully, users will propagate this good
16 // habit.
17 //
18 // Revision 1.14 2000/06/23 16:50:07 fisyak
19 // remove params
20 //
21 // Revision 1.13 1999/12/19 16:07:01 perev
22 // Add README
23 //
24 // Revision 1.12 1999/07/15 13:57:44 perev
25 // cleanup
26 //
27 // Revision 1.11 1999/07/10 22:59:16 fine
28 // Some comments have been introduced to show html docs
29 //
30 
31 
32 #include "St_TLA_Maker.h"
33 #include "TDataSetIter.h"
34 #include "StDAQMaker/StDAQReader.h"
35 
36 
37 ClassImp(St_TLA_Maker)
38 
39 //_____________________________________________________________________________
41 
48 St_TLA_Maker::St_TLA_Maker(const char *name):StMaker(name){
49  //
50 }
51 
52 
53 //_____________________________________________________________________________
55 
65  //
66 }
67 
68 
69 //_____________________________________________________________________________
72  // Create tables
73  // Create Histograms
74  return StMaker::Init();
75 }
76 
77 
78 //_____________________________________________________________________________
81  //
82  // PrintInfo();
83  //
84  int nArray; unsigned char *Array;
85 
86  TObjectSet *os = (TObjectSet*)GetDataSet("StDAQReader");
87  assert(os);
88  StDAQReader *dr = (StDAQReader*)os->GetObject();
89  StTPCReader *tr = dr->getTPCReader();
90  int sec=0;
91  for (sec=1;sec<=12;sec++){
92  int padrow;
93  for (padrow=1;padrow<20; padrow++) {
94  int maxpad = tr->getMaxPad(padrow);
95  int pad;
96  for (pad=1;pad<=maxpad; pad++) {
97  int ans = tr->getPedestals(sec,padrow,pad,nArray,Array);
98  if (ans<=0) continue;
99  if (!Array) continue;
100  { LOG_INFO << Form(" %d %d %d %d\n",sec,padrow,pad,nArray) << endm; }
101 
102  } } }
103 
104 
105  return kStOK;
106 }
virtual ~St_TLA_Maker()
This is TLA destructor.
virtual Int_t Make()
Make - this method is called in loop for each event.
Definition: Stypes.h:40
virtual base class for Maker
Definition: St_TLA_Maker.h:35
virtual Int_t Init()
Init - is a first method the top level StChain calls to initialize all its makers.
virtual TObject * GetObject() const
The depricated method (left here for the sake of the backward compatibility)
Definition: TObjectSet.h:56