ARTEMIS-CRIB
 
Loading...
Searching...
No Matches
TDetectParticleProcessor.h
Go to the documentation of this file.
1/**
2 * @file TDetectParticleProcessor.h
3 * @brief
4 * @author Kodai Okawa <okawa@cns.s.u-tokyo.ac.jp>
5 * @date 2023-08-01 22:34:15
6 * @note last modified: 2025-01-08 10:34:55
7 * @details
8 */
9
10#ifndef _CRIB_TDETECTPARTICLEPROCESSOR_H_
11#define _CRIB_TDETECTPARTICLEPROCESSOR_H_
12
13#include <TGeoManager.h>
14#include <TProcessor.h>
15#include <TSrim.h> // TSrim library
16
17namespace art::crib {
18class TDetectParticleProcessor;
19} // namespace art::crib
20
21class TClonesArray;
22
24 public:
27
28 void Init(TEventCollection *col) override;
29 void Process() override;
30
31 protected:
37 TClonesArray **fInData; //!
38 TClonesArray **fInTrackData; //!
39 TClonesArray *fOutData; //!
40 TGeoManager **fInGeom; //!
41
42 TClonesArray **fDetectorPrm; //!
43 TClonesArray **fTargetPrm; //!
44
46 TString fTargetName;
48
49 DoubleVec_t fEResolution; //! x 100 = %, index=telescope id
50 DoubleVec_t fTResolution; //! x 100 = %, index=telescope id
51
52 TSrim *srim;
53
54 const Double_t c = 299.792458; // mm/ns
55
56 private:
57 std::vector<TString> GetUniqueElements(const std::vector<TString> &input);
58 Int_t GetStripID(Double_t pos, Int_t max_strip, Double_t size);
59
62
63 ClassDefOverride(TDetectParticleProcessor, 1)
64};
65
66#endif // end of #ifndef _TDETECTPARTICLEPROCESSOR_H_
DoubleVec_t fTResolution
x 100 = %, index=telescope id
void Init(TEventCollection *col) override
TDetectParticleProcessor & operator=(const TDetectParticleProcessor &rhs)=delete
TDetectParticleProcessor(const TDetectParticleProcessor &rhs)=delete
Int_t GetStripID(Double_t pos, Int_t max_strip, Double_t size)
std::vector< TString > GetUniqueElements(const std::vector< TString > &input)
TSrim * srim
x 100 = %, index=telescope id
return to the guide