-
Notifications
You must be signed in to change notification settings - Fork 184
/
TrkrHit.h
54 lines (46 loc) · 1.23 KB
/
TrkrHit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* @file trackbase/TrkrHit.h
* @author D. McGlinchey
* @date 4 June 2018
* @brief Base class for hit object
*/
#ifndef TRACKBASE_TRKRHIT_H
#define TRACKBASE_TRKRHIT_H
#include "TrkrDefs.h"
#include <phool/PHObject.h>
#include <climits>
#include <cmath>
#include <iostream>
/**
* @brief Base class for hit object
*
* This is the empty virtual base class for a hit object.
* Each subsystem should implement an inherited version
* which contains the actual storage information.
*/
class TrkrHit : public PHObject
{
public:
//! dtor
~TrkrHit() override {}
// PHObject virtual overloads
void identify(std::ostream& os = std::cout) const override
{
os << "TrkrHit base class" << std::endl;
}
void Reset() override {}
int isValid() const override { return 0; }
// these set and get the energy before digitization
virtual void addEnergy(const double) {}
virtual double getEnergy() { return 0; }
// after digitization, these are the adc values
virtual void setAdc(const unsigned int) {}
virtual unsigned int getAdc() { return 0; }
/*
virtual void setCrossing(const short int) {}
virtual short int getCrossing() { return 0;}
*/
protected:
ClassDefOverride(TrkrHit, 1);
};
#endif // TRACKBASE_TRKRHIT_H