Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaCherenkov.h
Go to the documentation of this file.
1#ifndef Podd_THaCherenkov_h_
2#define Podd_THaCherenkov_h_
3
5// //
6// THaCherenkov //
7// //
8// Generic Cherenkov detector. //
9// //
11
12#include "THaPidDetector.h"
13#include "DetectorData.h"
14
15class TClonesArray;
16
18
19public:
20 explicit THaCherenkov( const char* name, const char* description = "",
21 THaApparatus* a = nullptr );
22 THaCherenkov(); // for ROOT I/O
23 virtual ~THaCherenkov();
24
25 // THaCherenkov now uses THaDetectorBase::Decode()
26 virtual void Clear( Option_t* ="" );
29 Data_t GetAsum() const { return fASUM_c; }
30
31protected:
32
33 Podd::PMTData* fPMTData; // PMT ADC & TDC calibration and per-event data
34 Data_t fASUM_p; // Sum of ADC minus pedestal values of channels
35 Data_t fASUM_c; // Sum of corrected ADC amplitudes of channels
36
37 virtual Int_t StoreHit( const DigitizerHitInfo_t& hitinfo, UInt_t data );
38 virtual void PrintDecodedData( const THaEvData& evdata ) const;
39
40 virtual Int_t DefineVariables( EMode mode = kDefine );
41 virtual Int_t ReadDatabase( const TDatime& date );
42
43 ClassDef(THaCherenkov,0) //Generic Cherenkov class
44};
45
47
48#endif
#define kDefine
Definition BdataLoc.cxx:38
int Int_t
unsigned int UInt_t
Double_t Data_t
Definition DataType.h:13
const char Option_t
#define ClassDef(name, id)
char name[80]
virtual Int_t ReadDatabase(const TDatime &date)
virtual void PrintDecodedData(const THaEvData &evdata) const
virtual Int_t CoarseProcess(TClonesArray &tracks)
virtual Int_t FineProcess(TClonesArray &tracks)
virtual Int_t DefineVariables(EMode mode=kDefine)
Podd::PMTData * fPMTData
virtual void Clear(Option_t *="")
virtual Int_t StoreHit(const DigitizerHitInfo_t &hitinfo, UInt_t data)
Data_t GetAsum() const
virtual ~THaCherenkov()
TArc a
void tracks()