FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
detectors
mdt
MdtDigi
PndMdtPointsToWaveform.h
Go to the documentation of this file.
1
//----------------------------------------------------------------------
2
// File and Version Information:
3
// $Id: Exp $
4
//
5
// Description:
6
// Class PndMdtPointsToWaveform. Module to take the point list for the
7
// mdt induced current.
8
//
9
//
10
// Author List:
11
// Jifeng Hu, hu@to.infn.it, Torino University
12
//----------------------------------------------------------------------
13
//#pragma once
14
#ifndef PndMdtPointsToWaveform_H
15
#define PndMdtPointsToWaveform_H
16
17
#include <
PndPersistencyTask.h
>
18
#include "
PndMdtWaveform.h
"
19
#include "TVector3.h"
20
#include <TFile.h>
21
#include <TTree.h>
22
23
class
TClonesArray;
24
//class PndMdtDigiPar;
25
//class PndMdtGeoPar;
26
class
PndMdtWaveformWriteoutBuffer
;
27
class
PndMdtParamDigi
;
28
class
PndMdtIGeometry
;
29
30
class
PndMdtPointsToWaveform
:
public
PndPersistencyTask
31
{
32
33
public
:
34
35
// Constructors
36
37
PndMdtPointsToWaveform
(Int_t
verbose
=0,
Bool_t
storewaves=kTRUE);
38
39
// Destructor
40
41
virtual
~PndMdtPointsToWaveform
();
42
44
virtual
InitStatus
Init
();
45
46
48
virtual
void
Exec
(Option_t* opt);
49
50
void
SetStorageOfData
(
Bool_t
val
);
// Method to specify whether waveforms are stored or not.
51
52
void
RunTimeBased
(){
fTimeOrderedWaveform
= kTRUE;}
53
54
void
FinishTask
();
55
private
:
56
TClonesArray*
fMcTrackArray
;
57
59
TClonesArray*
fPointArray
;
60
61
/* output array for general sim */
62
TClonesArray*
fWaveformArray
;
63
64
/* output array for time-based sim */
65
Bool_t
fTimeOrderedWaveform
;
66
PndMdtWaveformWriteoutBuffer
*
fDataBuffer
;
67
68
PndMdtParamDigi
*
fParamDigiModel
;
69
PndMdtIGeometry
*
fGeoIF
;
70
71
// PndMdtDigiPar* fDigiPar; /** Digitisation parameter container **/
72
// PndMdtGeoPar* fGeoPar; /** Geometry parameter container **/
74
virtual
void
SetParContainers
();
75
virtual
void
exec_t
();
76
virtual
void
exec_e
();
77
Int_t
PdgToIndex
(Int_t pdg);
78
80
Int_t
fVerbose
;
81
//counters for task
82
Int_t
HowManyPoint
;
83
Int_t
nWaveformProduced
;
84
85
PndMdtPointsToWaveform
(
const
PndMdtPointsToWaveform
&
L
);
86
PndMdtPointsToWaveform
&
operator=
(
const
PndMdtPointsToWaveform
&);
87
88
Bool_t
Digitize
(
PndMdtWaveform
* theWf,
Double_t
& time,
Double_t
& amp,
Bool_t
isWire);
89
90
struct
key
91
{
92
key
(){}
93
key
(Int_t _tid, Int_t _detid) :
TrkID
(_tid),
DetID
(_detid){}
94
bool
operator <
(
const
key
& rhs)
const
{
95
if
(
TrkID
< rhs.
TrkID
)
return
true
;
96
if
(
TrkID
== rhs.
TrkID
)
return
DetID
< rhs.
DetID
;
97
return
false
;
98
}
99
bool
operator ==
(
const
key
& rhs)
const
{
100
return
TrkID
== rhs.
TrkID
&&
DetID
== rhs.
DetID
;
101
}
102
Int_t
TrkID
;
//track id
103
Int_t
DetID
;
//detector id
104
};
105
106
TFile*
fFile
;
107
TTree*
tTree
;
108
Double_t
fWirpT
;
109
Double_t
fStripT
;
110
Double_t
fEvtT
;
111
Double_t
fLength
;
112
Double_t
fDis
;
113
Int_t
fMod
;
114
Int_t
fPid
;
115
116
ClassDef
(
PndMdtPointsToWaveform
,2);
117
};
118
119
#endif
120
121
122
123
124
PndMdtPointsToWaveform::Init
virtual InitStatus Init()
Definition:
PndMdtPointsToWaveform.cxx:55
PndMdtIGeometry
Definition:
PndMdtIGeometry.h:18
PndMdtPointsToWaveform::exec_t
virtual void exec_t()
Definition:
PndMdtPointsToWaveform.cxx:310
PndMdtWaveform
Definition:
PndMdtWaveform.h:23
PndMdtPointsToWaveform::tTree
TTree * tTree
Definition:
PndMdtPointsToWaveform.h:107
PndMdtPointsToWaveform::Digitize
Bool_t Digitize(PndMdtWaveform *theWf, Double_t &time, Double_t &, Bool_t isWire)
Definition:
PndMdtPointsToWaveform.cxx:467
PndMdtPointsToWaveform::fDataBuffer
PndMdtWaveformWriteoutBuffer * fDataBuffer
Definition:
PndMdtPointsToWaveform.h:66
PndPersistencyTask.h
PndMdtPointsToWaveform::FinishTask
void FinishTask()
Definition:
PndMdtPointsToWaveform.cxx:452
PndMdtPointsToWaveform::fPid
Int_t fPid
Definition:
PndMdtPointsToWaveform.h:114
val
Double_t val[nBoxes][nFEBox]
Definition:
createCalib.C:11
PndMdtPointsToWaveform::fParamDigiModel
PndMdtParamDigi * fParamDigiModel
Definition:
PndMdtPointsToWaveform.h:68
PndMdtPointsToWaveform::fPointArray
TClonesArray * fPointArray
Definition:
PndMdtPointsToWaveform.h:59
verbose
#define verbose
Definition:
PndRadMapBoxMesh.cxx:15
PndMdtPointsToWaveform::nWaveformProduced
Int_t nWaveformProduced
Definition:
PndMdtPointsToWaveform.h:83
PndMdtPointsToWaveform::PdgToIndex
Int_t PdgToIndex(Int_t pdg)
Definition:
PndMdtPointsToWaveform.cxx:493
PndMdtPointsToWaveform::SetParContainers
virtual void SetParContainers()
Definition:
PndMdtPointsToWaveform.cxx:431
PndMdtPointsToWaveform::HowManyPoint
Int_t HowManyPoint
Definition:
PndMdtPointsToWaveform.h:82
PndMdtPointsToWaveform::key::operator==
bool operator==(const key &rhs) const
Definition:
PndMdtPointsToWaveform.h:99
PndMdtWaveform.h
PndMdtPointsToWaveform::fGeoIF
PndMdtIGeometry * fGeoIF
Definition:
PndMdtPointsToWaveform.h:69
PndMdtPointsToWaveform::PndMdtPointsToWaveform
PndMdtPointsToWaveform(Int_t verbose=0, Bool_t storewaves=kTRUE)
Definition:
PndMdtPointsToWaveform.cxx:36
PndMdtPointsToWaveform
Definition:
PndMdtPointsToWaveform.h:30
PndMdtPointsToWaveform::fMcTrackArray
TClonesArray * fMcTrackArray
Definition:
PndMdtPointsToWaveform.h:56
PndMdtPointsToWaveform::fDis
Double_t fDis
Definition:
PndMdtPointsToWaveform.h:112
PndMdtPointsToWaveform::fWaveformArray
TClonesArray * fWaveformArray
Definition:
PndMdtPointsToWaveform.h:62
PndMdtPointsToWaveform::key
Definition:
PndMdtPointsToWaveform.h:90
PndMdtPointsToWaveform::fEvtT
Double_t fEvtT
Definition:
PndMdtPointsToWaveform.h:110
PndMdtPointsToWaveform::RunTimeBased
void RunTimeBased()
Definition:
PndMdtPointsToWaveform.h:52
PndMdtPointsToWaveform::key::key
key()
Definition:
PndMdtPointsToWaveform.h:92
PndMdtWaveformWriteoutBuffer
Definition:
PndMdtWaveformWriteoutBuffer.h:22
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
PndMdtPointsToWaveform::fVerbose
Int_t fVerbose
Definition:
PndMdtPointsToWaveform.h:80
PndMdtPointsToWaveform::ClassDef
ClassDef(PndMdtPointsToWaveform, 2)
PndMdtPointsToWaveform::fMod
Int_t fMod
Definition:
PndMdtPointsToWaveform.h:113
PndMdtPointsToWaveform::fFile
TFile * fFile
Definition:
PndMdtPointsToWaveform.h:106
PndMdtPointsToWaveform::fStripT
Double_t fStripT
Definition:
PndMdtPointsToWaveform.h:109
PndMdtPointsToWaveform::operator=
PndMdtPointsToWaveform & operator=(const PndMdtPointsToWaveform &)
PndPersistencyTask
Definition:
PndPersistencyTask.h:22
PndMdtParamDigi
Definition:
PndMdtParamDigi.h:27
PndMdtPointsToWaveform::Exec
virtual void Exec(Option_t *opt)
Definition:
PndMdtPointsToWaveform.cxx:134
PndMdtPointsToWaveform::exec_e
virtual void exec_e()
Definition:
PndMdtPointsToWaveform.cxx:141
PndMdtPointsToWaveform::~PndMdtPointsToWaveform
virtual ~PndMdtPointsToWaveform()
Definition:
PndMdtPointsToWaveform.cxx:50
PndMdtPointsToWaveform::fWirpT
Double_t fWirpT
Definition:
PndMdtPointsToWaveform.h:108
PndMdtPointsToWaveform::SetStorageOfData
void SetStorageOfData(Bool_t val)
Definition:
PndMdtPointsToWaveform.cxx:447
PndMdtPointsToWaveform::fTimeOrderedWaveform
Bool_t fTimeOrderedWaveform
Definition:
PndMdtPointsToWaveform.h:65
PndMdtPointsToWaveform::fLength
Double_t fLength
Definition:
PndMdtPointsToWaveform.h:111
PndMdtPointsToWaveform::key::operator<
bool operator<(const key &rhs) const
Definition:
PndMdtPointsToWaveform.h:94
PndMdtPointsToWaveform::key::key
key(Int_t _tid, Int_t _detid)
Definition:
PndMdtPointsToWaveform.h:93
Bool_t
Bool_t
Definition:
SimCompleteLinkDef.h:6
L
int L[6]
Definition:
RhoRhoPHOTOSUserTreeAnalysis.C:16
PndMdtPointsToWaveform::key::DetID
Int_t DetID
Definition:
PndMdtPointsToWaveform.h:103
PndMdtPointsToWaveform::key::TrkID
Int_t TrkID
Definition:
PndMdtPointsToWaveform.h:102
Generated on Wed Apr 3 2019 10:02:54 for FairRoot/PandaRoot by
1.8.5