source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/common/root/src/ELblTrackSegment.cc @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 2.7 KB
Line 
1// $Id: ELblTrackSegment.cc 2167 2005-10-10 16:21:14Z ejudd $
2// Author: E.Judd   2005/07/21
3
4/*****************************************************************************
5 * ESAF: Euso Simulation and Analysis Framework                              *
6 *                                                                           *
7 *  Id: ELblTrackSegment                                                     *
8 *  Package: <packagename>                                                   *
9 *  Coordinator: <coordinator>                                               *
10 *                                                                           *
11 *****************************************************************************/
12
13//_____________________________________________________________________________
14//
15// ELblTrackSegment
16//
17// Contains all the information about an individual track found by the LBL trigger
18//
19//   Config file parameters
20//   ======================
21//
22//   <parameter name>: <parameter description>
23//   -Valid options: <available options>
24//
25
26#include "ELblTrackSegment.hh"
27
28ClassImp(ELblTrackSegment)
29
30//_____________________________________________________________________________
31ELblTrackSegment::ELblTrackSegment() {
32    //
33    // Constructor
34    //
35
36    Clear();
37
38}
39
40//_____________________________________________________________________________
41ELblTrackSegment::~ELblTrackSegment() {
42    //
43    // Destructor
44    //
45}
46
47//_____________________________________________________________________________
48ELblTrackSegment::ELblTrackSegment( const ELblTrackSegment& other ) : TObject() {
49    //
50    // Copy Constructor
51    //
52    other.Copy(*this);
53}
54
55//_____________________________________________________________________________
56void ELblTrackSegment::Copy( TObject& other ) const {
57    //
58    // Copy method
59    //
60    TObject::Copy(other);
61
62    ((ELblTrackSegment&)other).fCellId = fCellId;
63    ((ELblTrackSegment&)other).fChipUid = fChipUid;
64    ((ELblTrackSegment&)other).fGtuStart = fGtuStart;
65    ((ELblTrackSegment&)other).fGtuEnd = fGtuEnd;
66    ((ELblTrackSegment&)other).fRowStart = fRowStart;
67    ((ELblTrackSegment&)other).fRowEnd = fRowEnd;
68    ((ELblTrackSegment&)other).fColStart = fColStart;
69    ((ELblTrackSegment&)other).fColEnd = fColEnd;
70    ((ELblTrackSegment&)other).fNumSegs = fNumSegs;
71    ((ELblTrackSegment&)other).fSum = fSum;
72    ((ELblTrackSegment&)other).fTriggerID = fTriggerID;
73}
74
75//_____________________________________________________________________________
76void ELblTrackSegment::Clear( Option_t* opt ) {
77    //
78    // Clear method
79    //
80    fCellId = -1;
81    fChipUid = -1;
82    fGtuStart = -1;
83    fGtuEnd = -1;
84    fRowStart = -1;
85    fRowEnd = -1;
86    fColStart = -1;
87    fColEnd = -1;
88    fNumSegs = 0;
89    fSum = 0;
90    fTriggerID = -1;
91}
Note: See TracBrowser for help on using the repository browser.