Belle II Software  release-05-01-25
EventTimeFinder.cc
1 //-----------------------------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------------------------
4 // Filename : EventTimeFinder.cc
5 // Section : TRG CDC
6 // Owner : Yoshihito IWASAKI
7 // Email : yoshihito.iwasaki@kek.jp
8 //-----------------------------------------------------------------------------
9 // Description : A class to find an event timing
10 //-----------------------------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------------------------
13 
14 #define TRG_SHORT_NAMES
15 #define TRGCDC_SHORT_NAMES
16 
17 #include "trg/trg/Debug.h"
18 #include "trg/trg/Channel.h"
19 #include "trg/trg/Utilities.h"
20 #include "trg/cdc/TRGCDC.h"
21 #include "trg/cdc/Cell.h"
22 #include "trg/cdc/Wire.h"
23 #include "trg/cdc/WireHit.h"
24 #include "trg/cdc/Segment.h"
25 #include "trg/cdc/SegmentHit.h"
26 #include "trg/cdc/EventTimeFinder.h"
27 #include "trg/cdc/FrontEnd.h"
28 #include "trg/cdc/Merger.h"
29 
30 using namespace std;
31 
32 namespace Belle2 {
38 //...For debug : yi...
39 // vector<TRGSignalVector * > dbgIn;
40 // vector<TRGSignalVector * > dbgOut;
41 
42  TRGCDCEventTimeFinder::TRGCDCEventTimeFinder(const std::string& name,
43  const TRGClock& systemClock,
44  const TRGClock& dataClock,
45  const TRGClock& userClockInput,
46  const TRGClock& userClockOutput)
47  : TRGBoard(name, systemClock, dataClock, userClockInput, userClockOutput)
48  {
49  // _tisb(0),
50  // _tosbE(0),
51  // _tosbT(0) {
52  }
53 
55  {
56  }
57 
58  void
60  {
61  std::vector<const TRGCDCTrackSegmentFinder*>::push_back(a);
62  }
63 
64  void
66  {
67 
68  const string sn = "ETF::simulate : " + name();
70 
71  //...Delete old objects...
72  for (unsigned i = 0; i < nOutput(); i++) {
73  if (output(i))
74  if (output(i)->signal())
75  delete output(i)->signal();
76  }
78  }
79 
81 } // namespace Belle2
Belle2::TRGBoard
A class to represent a trigger board.
Definition: Board.h:30
Belle2::TRGCDCEventTimeFinder::simulate
void simulate(void)
Firmware simulation. yi.
Definition: EventTimeFinder.cc:65
Belle2::TRGBoard::name
const std::string & name(void) const
returns name.
Definition: Board.h:114
Belle2::TRGChannel::signal
TRGSignalBundle * signal(void) const
returns signal.
Definition: Channel.h:99
Belle2::TRGCDCEventTimeFinder::~TRGCDCEventTimeFinder
~TRGCDCEventTimeFinder()
Destructor.
Definition: EventTimeFinder.cc:54
Belle2::TRGBoard::output
TRGChannel * output(unsigned i) const
returns output channel i.
Definition: Board.h:170
Belle2::TRGCDCTrackSegmentFinder
a class of TrackSegmentFinder in TRGCDC
Definition: TrackSegmentFinder.h:41
Belle2::TRGBoard::nOutput
unsigned nOutput(void) const
returns output channels.
Definition: Board.h:185
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGCDCEventTimeFinder::push_back
void push_back(const TRGCDCTrackSegmentFinder *)
push back the TRGCDCTrackSegmentFinder pointer
Definition: EventTimeFinder.cc:59
Belle2::TRGDebug::leaveStage
static void leaveStage(const std::string &stageName)
Declare that you leave a stage.
Definition: Debug.cc:39
Belle2::TRGDebug::enterStage
static void enterStage(const std::string &stageName)
Declare that you enter new stage.
Definition: Debug.cc:29
Belle2::TRGClock
A class to represent a digitized signal. Unit is nano second.
Definition: Clock.h:43