FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PixelAltFindHits.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 /*
9  * PixelAltFindHits.h
10  *
11  * Created on: 18.02.2016
12  * Author: R. Karabowicz
13  */
14 
15 #ifndef PIXELALTFINDHITS_H
16 #define PIXELALTFINDHITS_H 1
17 
18 #include "FairTask.h"
19 #include "PixelPayload.h"
20 
21 #include <Rtypes.h>
22 
23 class TClonesArray;
24 class PixelDigiPar;
25 class FairGeoParSet;
26 
27 class PixelAltFindHits : public FairTask
28 {
29  public:
32 
34  PixelAltFindHits(Int_t iVerbose);
35 
37  PixelAltFindHits(const char* name, Int_t iVerbose);
38 
40  virtual ~PixelAltFindHits();
41 
43  virtual void Exec(Option_t* opt);
44 
45  virtual void GetParList(TList* tempList);
46  virtual void InitMQ(TList* tempList);
47  virtual void ExecMQ(TList* inputList, TList* outputList);
48  virtual void ExecMQ(PixelPayload::Digi* digiPalVector, int nofDigis, PixelPayload::Hit* hitPalVector, int& nofHits);
49 
50  private:
51  PixelDigiPar* fDigiPar;
52  FairGeoParSet* fGeoParSet;
53 
54  TClonesArray* fDigis;
55  TClonesArray* fHits;
57  Int_t fNDigis;
58  Int_t fNHits;
59 
60  Int_t fTNofEvents;
61  Int_t fTNofDigis;
62  Int_t fTNofHits;
63 
64  Int_t fFeCols; // Colums read per Frontend
65  Int_t fFeRows; // Rows read per Frontend
66  Int_t fMaxFEperCol; // max number of Frontend elemens per column
67  Double_t fPitchX; // Pixel cell size X
68  Double_t fPitchY; // Pixel cell size Y
69 
70  Int_t FindHit(Int_t detId,
71  Int_t feId,
72  Int_t col,
73  Int_t row,
74  Int_t index,
75  Double_t& posX,
76  Double_t& posY,
77  Double_t& posZ,
78  Double_t& errX,
79  Double_t& errY,
80  Double_t& errZ);
81 
83  virtual void SetParContainers();
84 
86  virtual InitStatus Init();
87 
89  virtual InitStatus ReInit();
90 
92  void Reset();
93 
95  virtual void Finish();
96 
98  PixelAltFindHits& operator=(const PixelAltFindHits&);
99 
100  ClassDef(PixelAltFindHits, 1);
101 };
102 
103 #endif
InitStatus
Definition: FairTask.h:33
virtual void Exec(Option_t *opt)
virtual void ExecMQ(TList *inputList, TList *outputList)
virtual void GetParList(TList *tempList)
Digitization Parameter Class for Pixel detector.
Definition: PixelDigiPar.h:24
virtual ~PixelAltFindHits()
virtual void InitMQ(TList *tempList)