source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/common/root/include/EChipTriggPars.hh @ 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: 3.8 KB
Line 
1// $Id: EChipTriggPars.hh 2264 2005-10-24 14:30:39Z pesce $
2// Author: Roberto Pesce   2005/09/28
3
4/*****************************************************************************
5 * ESAF: Euso Simulation and Analysis Framework                              *
6 *                                                                           *
7 *  Id: EChipTriggPars                                                       *
8 *  Package: <packagename>                                                   *
9 *  Coordinator: <coordinator>                                               *
10 *                                                                           *
11 *****************************************************************************/
12
13#ifndef __ECHIPTRIGGPARS_HH__
14#define __ECHIPTRIGGPARS_HH__
15
16#include "ETriggPars.hh"
17#include "TString.h"
18#include "TRef.h"
19#include "Etypes.hh"
20#include "EFillable.hh"
21
22////////////////////////////////////////////////////////////////////////////////
23//                                                                            //
24// EChipTriggPars                                                             //
25//                                                                            // 
26// <brief class description>                                                  // 
27//                                                                            // 
28////////////////////////////////////////////////////////////////////////////////
29
30class EChipTriggPars : public ETriggPars {
31public:
32    EChipTriggPars();
33    // ctor
34   
35    EChipTriggPars(const EChipTriggPars&);
36    // copy ctor
37   
38    virtual ~EChipTriggPars();
39    // dtor
40
41    virtual void Copy(TObject&) const;
42    // copy
43
44    virtual void Clear( Option_t* ="" );
45    // clear
46
47    // getters
48    //inline TString GetName() const { return fName; }
49   
50    inline Int_t GetThresholdNumber() const { return fThreshold; }
51    // return only the number in fThreshold; if the threshold is absolute is the true
52    // threshold used by the trigger engine
53
54    Int_t GetThreshold( Int_t );
55    // return the true threshold used by the trigger engine for a given microcell
56    // it compute the threshold using mean background value in Run Parameters
57
58    inline Bool_t HasRelativeThreshold() const { return fHasRelativeThreshold; }
59    inline Int_t GetMinTrackLength() const { return fMinTrackLength; }
60    inline Int_t GetMaxTrackLength() const { return fMaxTrackLength; }
61    inline Int_t GetMinTriggerTrackLength() const { return fMinTriggerTrackLength; }
62    inline Int_t GetMinTriggerTwoLength() const { return fMinTriggerTwoLength; }
63    inline Int_t GetMaxTwoLength() const { return fMaxTwoLength; }
64    inline Bool_t OnlyWithSignal() const { return fOnlyWithSignal; }
65    inline Bool_t AcceptHole() const { return fAcceptHole; }
66       
67    // setters
68    inline void SetThreshold( Int_t t ) { fThreshold=t; }
69    inline void SetHasRelativeThreshold( Bool_t r ) { fHasRelativeThreshold=r; }
70    inline void SetMinTrackLength( Int_t l ) { fMinTrackLength=l; }
71    inline void SetMaxTrackLength( Int_t l ) { fMaxTrackLength=l; }
72    inline void SetMinTriggerTrackLength( Int_t l ) { fMinTriggerTrackLength=l; }
73    inline void SetMinTriggerTwoLength( Int_t l ) { fMinTriggerTwoLength=l; }
74    inline void SetMaxTwoLength( Int_t l ) { fMaxTwoLength=l; }
75    inline void SetOnlyWithSignal( Bool_t v ) { fOnlyWithSignal=v; }
76    inline void SetAcceptHole( Bool_t v ) { fAcceptHole=v; }
77       
78private:
79    Int_t fThreshold;
80    Bool_t fHasRelativeThreshold;
81
82    Int_t fMinTrackLength;
83    Int_t fMaxTrackLength;
84
85    Int_t fMinTriggerTrackLength;
86    Int_t fMinTriggerTwoLength;
87
88    Int_t fMaxTwoLength;
89
90    Bool_t fOnlyWithSignal;
91    Bool_t fAcceptHole;
92
93    TRef fRunParsRef; // reference to the run parameters
94
95    ClassDef(EChipTriggPars,1)
96
97};
98
99#endif  /* __ECHIPTRIGGPARS_HH__ */
100
Note: See TracBrowser for help on using the repository browser.