BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnTof1HitProducerIdeal.h
Go to the documentation of this file.
1#ifndef BMN_TOF1_HIT_PRODUCER_IDEAL_H
2#define BMN_TOF1_HIT_PRODUCER_IDEAL_H 1
3
4#include "BmnDetectorList.h"
5#include "BmnTask.h"
6#include "BmnTrigInfoDst.h"
7#include "TClonesArray.h"
8#include "TH1D.h"
9#include "TH2D.h"
10#include "TList.h"
11#include "TVector3.h"
12
13#include <iostream>
14
16{
17 protected:
18 TClonesArray* aMcPoints; //! <--- MC input
19 TClonesArray* aMcTracks; //! <--- MC input
20 TClonesArray* aExpDigits; //! <--- Exp input
21 TClonesArray* aExpDigitsT0; //! <--- Exp input
22 TClonesArray* aExpDigitsT0_2; //! <--- Exp input for run8 SRC
23 BmnTrigInfoDst* aExpTrigInfo; //! <--- The T0 time is stored in 'BmnTrigInfo.' branch in Run9
24 TClonesArray* aTofHits; //! ---> output
25 TClonesArray* aTofCont; //! ---> output
26
29
35
36 void AddHit(Int_t detUID,
37 const TVector3& posHit,
38 const TVector3& posHitErr,
39 Int_t pointIndex,
40 Int_t trackIndex,
41 Double_t time,
42 Int_t Idd);
44 Int_t MergeHitsOnStrip(); // save only the fastest hit in the strip
45
46 public:
47 BmnTof1HitProducerIdeal(const char* name = "TOF1 Ideal HitProducer",
48 Bool_t useMCdata = true,
49 Int_t verbose = 1,
50 Bool_t DoTest = false,
51 Bool_t DoMergeHits = false);
53
54 virtual InitStatus Init();
55 virtual void Exec(Option_t* option);
56 virtual void Finish();
57
58 void SetOnlyPrimary(Bool_t opt) { fOnlyPrimary = opt; }
59 void Dump(const char* comment = nullptr, std::ostream& out = std::cout) const;
60 void SetTestFlnm(const char* flnm) { fTestFlnm = flnm; };
61
63};
64
65#endif
bool Bool_t
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
BmnTask()
Default constructor.
Definition BmnTask.cxx:3
void Dump(const char *comment=nullptr, std::ostream &out=std::cout) const
void AddHit(Int_t detUID, const TVector3 &posHit, const TVector3 &posHitErr, Int_t pointIndex, Int_t trackIndex, Double_t time, Int_t Idd)
virtual void Exec(Option_t *option)
TClonesArray * aExpDigits
<— MC input
TClonesArray * aTofHits
<— The T0 time is stored in 'BmnTrigInfo.' branch in Run9
BmnTrigInfoDst * aExpTrigInfo
<— Exp input for run8 SRC
TClonesArray * aExpDigitsT0
<— Exp input
BmnTof1HitProducerIdeal(const char *name="TOF1 Ideal HitProducer", Bool_t useMCdata=true, Int_t verbose=1, Bool_t DoTest=false, Bool_t DoMergeHits=false)
TClonesArray * aExpDigitsT0_2
<— Exp input
void SetTestFlnm(const char *flnm)
TClonesArray * aTofCont
---> output
TClonesArray * aMcTracks
<— MC input