Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:38

0001 // Copyright 2020, Jefferson Science Associates, LLC.
0002 // Subject to the terms in the LICENSE file found in the top-level directory.
0003 
0004 #ifndef _HIT_H_
0005 #define _HIT_H_
0006 
0007 #include <TObject.h>
0008 
0009 class Hit:public TObject{
0010 
0011 public:
0012 
0013     Hit(int _iw, int _iv, double _E, float _t):iw(_iw),iv(_iv),E(_E),t(_t){}
0014 
0015     int iw;
0016     int iv;
0017     double E;
0018     float t;
0019 
0020     // These members are here as examples. There are no limitations on what types
0021     // of objects can be members here other than what the ROOT TObject may impose.
0022     char my_char_t                   = 'C';       // will display as signed integer
0023     unsigned char my_unsigned_char_t = 128;       // will display as hex number
0024     unsigned long my_unsigned_long_t = 12345678;
0025     long my_long_t                   = -12345678;
0026     uint32_t my_uint32_t             = 32;
0027     uint64_t my_uint64_t             = 64;
0028     std::string my_string_t          = "dave";
0029     int32_t my_int32_t               = -32;
0030     int64_t my_int64_t               = -64;
0031 
0032     ClassDef(Hit,1) // n.b. make sure ROOT_GENERATE_DICTIONARY is in cmake file!
0033 };
0034 
0035 #endif // _HIT_H_