PandaRoot
PndEmcApdHitProducer.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 // -------------------------------------------------------------------------
14 // ----- PndEmcApdHitProducer header file -----
15 // ----- Created 07/04/08 by S.Spataro -----
16 // -------------------------------------------------------------------------
17 //#pragma once
18 #ifndef PNDEMCAPDHITPRODUCER_H
19 #define PNDEMCAPDHITPRODUCER_H
20 
21 #include <PndPersistencyTask.h>
22 #include "PndEmcApdHit.h"
23 #include "TVector3.h"
24 #include "TArrayI.h"
25 #include <map>
26 #include <string>
27 #include "PndEmcStructure.h"
28 
29 class TClonesArray;
30 class TObjectArray;
31 
33 
34  public:
35  typedef std::map<Int_t, Float_t> mapper;
36 
39 
42 
44  virtual InitStatus Init();
45 
47  virtual void Exec(Option_t *opt);
48 
49  // PndEmcApdHit* AddHit(Int_t trackID, Int_t detID, Float_t energy, Float_t time); // not implemented
50 
51  PndEmcApdHit *AddHit(Int_t trackID, Int_t detID, Float_t energy, Float_t time, Int_t npoint, Int_t pointIndex[10]);
52 
53  // PndEmcApdHit* AddHit(Int_t trackID, Int_t detID, Float_t energy, Float_t time,std::vector<PndEmcApdPoint*> pointList); // not implemented
54  // void CreateStructure();
55 
56  private:
58  TClonesArray *fPointArray;
59 
61  TClonesArray *fDigiArray;
62 
63  TObjArray *fVolumeArray;
64 
66  Int_t fMapVersion;
67 
68  mapper emcX;
69  mapper emcY;
70  mapper emcZ;
71 
72  PndEmcStructure *fEmcStr;
73 
75  PndEmcApdHitProducer &operator=(const PndEmcApdHitProducer &) { return *this; }
76 
77  ClassDef(PndEmcApdHitProducer, 1);
78 };
79 
80 #endif
std::map< Int_t, Float_t > mapper
virtual void Exec(Option_t *opt)
geometry helper class
PndEmcApdHit * AddHit(Int_t trackID, Int_t detID, Float_t energy, Float_t time, Int_t npoint, Int_t pointIndex[10])
virtual InitStatus Init()