BmnRoot
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;
19 TClonesArray* aMcTracks;
20 TClonesArray* aExpDigits;
21 TClonesArray* aExpDigitsT0;
22 TClonesArray* aExpDigitsT0_2;
24 TClonesArray* aTofHits;
25 TClonesArray* aTofCont;
26
27 TFile* fileCont;
28 TTree* treeCont;
29
30 Bool_t fDoTest;
31 Bool_t fDoMergeHits;
32 Bool_t fUseMCData;
33 Bool_t fOnlyPrimary;
34 TString fTestFlnm;
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);
43 Int_t CompressHits();
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
BmnTask.
Definition BmnTask.h:13
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)
TClonesArray * aExpDigits
<— MC input
virtual InitStatus Init()
virtual void Finish()
virtual void Exec(Option_t *option)
TClonesArray * aTofHits
<— The T0 time is stored in 'BmnTrigInfo.' branch in Run9
virtual ~BmnTof1HitProducerIdeal()
BmnTrigInfoDst * aExpTrigInfo
<— Exp input for run8 SRC
TClonesArray * aExpDigitsT0
<— Exp input
ClassDef(BmnTof1HitProducerIdeal, 1)
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
Defines unique identifiers (enum) for all BM@N detector systems.