1 | // $Id: EChipTriggParsFiller.hh 2381 2005-11-17 09:11:46Z pesce $ |
---|
2 | // Author: R. Pesce 2005/10/21 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EChipTriggParsFiller * |
---|
8 | * Package: Electronics * |
---|
9 | * Coordinator: <coordinator> * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | #ifndef __ECHIPTRIGGPARSFILLER_HH__ |
---|
14 | #define __ECHIPTRIGGPARSFILLER_HH__ |
---|
15 | |
---|
16 | #include "euso.hh" |
---|
17 | #include "ERunParsFiller.hh" |
---|
18 | #include "Etypes.hh" |
---|
19 | |
---|
20 | //////////////////////////////////////////////////////////////////////////////// |
---|
21 | // // |
---|
22 | // EChipTriggParsFiller // |
---|
23 | // // |
---|
24 | // This is the interface class that fills the chip tracking trigger // |
---|
25 | // parameters in the rootfile. // |
---|
26 | // // |
---|
27 | //////////////////////////////////////////////////////////////////////////////// |
---|
28 | |
---|
29 | class EChipTriggParsFiller : public ERunParsFiller { |
---|
30 | public: |
---|
31 | EChipTriggParsFiller(); |
---|
32 | virtual ~EChipTriggParsFiller(); |
---|
33 | |
---|
34 | virtual void Fill( ERunParameters * ); |
---|
35 | |
---|
36 | // setters |
---|
37 | inline void SetName(const char* name) { fName=name; } |
---|
38 | inline void SetId(ETriggerTypeIdentifier id) { fId=id; } |
---|
39 | inline void SetRelativeThreshold(Bool_t b) { fRelativeThreshold=b; } |
---|
40 | inline void SetThreshold(Int_t t) { fThreshold=t; } |
---|
41 | inline void SetMinTrackLength(Int_t l) { fMinTrackLength=l; } |
---|
42 | inline void SetMaxTrackLength(Int_t l) { fMaxTrackLength=l; } |
---|
43 | inline void SetMinTriggerTrackLength(Int_t l) { fMinTriggerTrackLength=l; } |
---|
44 | inline void SetMinTriggerTwoLength(Int_t l) { fMinTriggerTwoLength=l; } |
---|
45 | inline void SetMaxTwoLength(Int_t l) { fMaxTwoLength=l; } |
---|
46 | inline void SetAcceptHole(Bool_t b) { fAcceptHole=b; } |
---|
47 | inline void SetOnlyWithSignal(Bool_t b) { fOnlyWithSignal=b; } |
---|
48 | |
---|
49 | private: |
---|
50 | const char* fName; |
---|
51 | ETriggerTypeIdentifier fId; |
---|
52 | |
---|
53 | Bool_t fRelativeThreshold; |
---|
54 | Int_t fThreshold; |
---|
55 | Int_t fMinTrackLength; |
---|
56 | Int_t fMaxTrackLength; |
---|
57 | Int_t fMinTriggerTrackLength; |
---|
58 | Int_t fMinTriggerTwoLength; |
---|
59 | Int_t fMaxTwoLength; |
---|
60 | Bool_t fAcceptHole; |
---|
61 | Bool_t fOnlyWithSignal; |
---|
62 | |
---|
63 | void Clear(); |
---|
64 | |
---|
65 | ClassDef(EChipTriggParsFiller,0) |
---|
66 | }; |
---|
67 | |
---|
68 | #endif /* __ECHIPTRIGGPARSDATAADDER_HH__ */ |
---|
69 | |
---|