Hall-D Software
alpha
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DRebuildFromRawFADC_factory.cc
Go to the documentation of this file.
1
/*
2
* DRebuildFromRawFADC_factory.cc
3
*
4
* Created on: May 26, 2017
5
* Author: Hovanes Egiyan
6
*/
7
8
#include <JANA/JEventLoop.h>
9
10
#include <
TAC/DRebuildFromRawFADC_factory.h
>
11
#include <
TAC/DTACHit_factory.h
>
12
#include <
TAC/HitRebuilderByFit.h
>
13
#include <
TAC/WaveformErfcFunctor.h
>
14
15
using namespace
std;
16
17
template
<>
18
jerror_t
DRebuildFromRawFADC_factory
<
DTACHit_factory
,
19
HitRebuilderByFit<WaveformErfcFunctor>
>::init(
void
) {
20
DTACHit_factory::init
();
21
this->setTimeScaleADC(this->getTimeScaleADC() * 64);
// Time scale for a single FADC hit
22
23
return
NOERROR;
24
}
25
26
//template<>
27
//jerror_t DRebuildFromRawFADC_factory<DTACHit_factory,
28
// HitRebuilderByFit<WaveformErfcFunctor>>::brun(
29
// jana::JEventLoop *eventLoop, int32_t runnumber) {
30
// DTACHit_factory::brun(eventLoop, runnumber);
31
//
32
//// // load scale factors
33
//// map<string, double> shapeParameters;
34
////
35
//// double riseTime = 0.8;
36
//// double decayTime = 2.6;
37
////
38
//// if (eventLoop->GetCalib("/TAC/pulse_shape", shapeParameters))
39
//// jout << "Error loading /TAC/pulse_shape !" << endl;
40
////
41
//// if (shapeParameters.find("riseTime") != shapeParameters.end())
42
//// riseTime = shapeParameters["riseTime"];
43
//// else
44
//// jerr << "Unable to get riseTime from /TAC/pulse_shape !" << endl;
45
////
46
//// if (shapeParameters.find("decayTime") != shapeParameters.end())
47
//// decayTime = shapeParameters["decayTime"];
48
//// else
49
//// jerr << "Unable to get decayTime from /TAC/pulse_shape !" << endl;
50
//
51
//// hitBuilder = new HitRebuilderByFit<WaveformErfcFunctor>(
52
//// this->getTimeScaleADC(), this->getADCTimeOffset(),
53
//// this->getTimeBaseADC(), riseTime, decayTime);
54
// hitBuilder = new HitRebuilderByFit<WaveformErfcFunctor>(eventLoop);
55
//
56
// return NOERROR;
57
//}
58
DRebuildFromRawFADC_factory
Definition:
DRebuildFromRawFADC_factory.h:40
HitRebuilderByFit
Definition:
HitRebuilderByFit.h:38
WaveformErfcFunctor.h
DRebuildFromRawFADC_factory.h
DTACHit_factory
Definition:
DTACHit_factory.h:24
HitRebuilderByFit.h
DTACHit_factory::init
virtual jerror_t init(void) override
Called once at program start.
Definition:
DTACHit_factory.cc:37
DTACHit_factory.h
libraries
TAC
DRebuildFromRawFADC_factory.cc
Generated on Fri Jul 26 2019 14:01:20 for Hall-D Software by
1.8.5