PandaRoot
PndMdtDigiProducer.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDMDTDIGIPRODUCER_H
14 #define PNDMDTDIGIPRODUCER_H 1
15 
16 #include "FairTask.h"
17 #include "PndMdtDigi.h"
18 #include "TVector3.h"
19 #include <vector>
20 
21 class TClonesArray;
22 
23 class PndMdtDigiProducer : public FairTask {
24 
25  public:
28 
31 
33  virtual InitStatus Init();
34 
36  virtual void Exec(Option_t *opt);
37 
38  PndMdtDigi *AddDigiBox(Int_t detID, TVector3 &pos, std::vector<Int_t> pointList);
39  PndMdtDigi *AddDigiStrip(Int_t detID, TVector3 &pos, std::vector<Int_t> pointList);
40 
41  void SetStripMode(Bool_t mode = kTRUE) { fStripMode = mode; };
42 
43  private:
44  Bool_t fStripMode;
45  Float_t fBarrelStart;
46  Float_t fEndcapStart;
47  Float_t fMFStart;
48 
50  TClonesArray *fPointArray;
51 
53  TClonesArray *fDigiBoxArray;
54  TClonesArray *fDigiStripArray;
55 
56  ClassDef(PndMdtDigiProducer, 1);
57 };
58 
59 #endif
virtual void Exec(Option_t *opt)
void SetStripMode(Bool_t mode=kTRUE)
virtual InitStatus Init()
PndMdtDigi * AddDigiBox(Int_t detID, TVector3 &pos, std::vector< Int_t > pointList)
PndMdtDigi * AddDigiStrip(Int_t detID, TVector3 &pos, std::vector< Int_t > pointList)