source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/simulation/detector/electronics/include/EChipTriggParsFiller.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: 2.8 KB
Line 
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
29class EChipTriggParsFiller : public ERunParsFiller {
30public:
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
49private:
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
Note: See TracBrowser for help on using the repository browser.