source: JEM-EUSO/esaf_cc_at_lal/packages/simulation/detector/electronics/include/MacroCellHit.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.3 KB
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// class MacroCellHit
3// $Id: MacroCellHit.hh 2104 2005-09-22 12:13:11Z naumov $
4// M.Pallavicini - created
5
6#ifndef _MACROCELLHIT_H_
7#define _MACROCELLHIT_H_
8
9#include "EusoMapping.hh"
10
11typedef Int_t ChannelUniqueId;
12
13class MacroCellHit {
14private:
15    // dummy empty ctor needed by rootcInt_t
16    MacroCellHit() : fRow(-1), fCol(-1), fHits(0), fGtu(-1), fUid(0) {}
17public:
18    // ctor
19    MacroCellHit(Int_t r, Int_t c, Int_t h, Int_t g, ChannelUniqueId id ) :
20       fRow(r), fCol(c), fHits(h), fGtu(g), fUid(id) {}
21   
22    virtual ~MacroCellHit() {};
23    virtual void Dump() const;
24
25    inline void SetHits(Int_t val) {fHits=val;}
26    inline Int_t Hits() const {return fHits;}
27    inline Int_t Row() const {return fRow;}
28    inline Int_t Col() const {return fCol;}
29    inline Int_t Gtu() const {return fGtu;}
30    inline ChannelUniqueId UniqueId() const {return fUid;}
31
32    inline Double_t GetThetaFOV() const {return EusoMapping::Get()->GetThetaFOV(fUid);}
33    inline Double_t GetPhiFOV() const {return EusoMapping::Get()->GetPhiFOV(fUid);}
34   
35private:
36    Int_t fRow;
37    Int_t fCol;
38    Int_t fHits;
39    Int_t fGtu;
40    ChannelUniqueId fUid; 
41
42    ClassDef(MacroCellHit,0)
43};
44
45// contiguity operator
46// returns true if 2 hits are nearby in space
47Bool_t operator % (const MacroCellHit&, const MacroCellHit&);
48
49#endif
Note: See TracBrowser for help on using the repository browser.