source: JEM-EUSO/esaf_cc_at_lal/packages/simulation/detector/electronics/include/ChipTrackSegment.hh @ 114

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

actual version of ESAF at CCin2p3

File size: 1.8 KB
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// $Id: ChipTrackSegment.hh 1505 2005-02-16 13:02:48Z pesce $
3// M. Pallavicini created Oct, 24 2003
4// Piece of track found by ChipTrackingTrgEngine
5//
6#ifndef __CHIPTRACKSEGMENT_HH_
7#define __CHIPTRACKSEGMENT_HH_
8
9#include <iostream>
10#include "euso.hh"
11
12class ChipTrackSegment {
13public:
14    // ctor
15    ChipTrackSegment();
16
17    // dtor
18    virtual ~ChipTrackSegment();
19   
20    inline Int_t GetChipUid() const { return fChipUid; }
21    inline Int_t GetGtuStart() const { return fGtuStart; }
22    inline Int_t GetGtuEnd() const { return fGtuEnd; }
23    inline Int_t GetCrossBorder() const { return fCrossBorder; }
24    inline Int_t GetTrackLength() const { return fTrackLength; }
25    inline Bool_t GetHasHole() const { return fHasHole; }
26    inline Bool_t GetTriggered() const { return fTriggered; }
27   
28    inline void SetChipUid(Int_t v) { fChipUid = v; }
29    inline void SetGtuStart(Int_t v) { fGtuStart = v; }
30    inline void SetGtuEnd(Int_t v) { fGtuEnd = v; }
31    inline void SetCrossBorder(Int_t v) { fCrossBorder = v; }
32    inline void SetTrackLength(Int_t v) { fTrackLength = v; }
33    inline void SetHasHole(Bool_t v) { fHasHole = v; }
34    inline void SetTriggered(Bool_t v) { fTriggered = v; }
35
36
37private: 
38    ClassDef(ChipTrackSegment,0)
39
40    // uid of chip where track occurred
41    Int_t fChipUid;       
42
43    // first gtu
44    Int_t fGtuStart;
45
46    // last gtu
47    Int_t fGtuEnd;
48
49    // true if track is touching the chip border
50    Bool_t fCrossBorder;
51
52    // length in number of pixels and gtu
53    Int_t fTrackLength;
54
55    // true if the track has a hole
56    Bool_t fHasHole;
57
58    // true if the track is a segment of a trigger track
59    Bool_t fTriggered;
60};
61   
62ostream& operator << (ostream& os, const ChipTrackSegment& seg); 
63
64#endif  /* __CHIPTRACKSEGMENT_HH_ */
65
Note: See TracBrowser for help on using the repository browser.