Commit 11c23b25 authored by CLICdp user's avatar CLICdp user
Browse files

Printout of the Power pulsing timestamps.


Former-commit-id: 784b2c65ae32d3b4136bd8db6a06c1fcfef8b447
parent ded35f46
......@@ -264,10 +264,24 @@ bool Timepix3EventLoader::loadData(string detectorID, Pixels* devicedata, SpidrS
// 0x6 is power on
if(header2 == 0x6){
// const uint64_t time( (pixdata & 0x0000000FFFFFFFFF) << 12 );
// SpidrSignal* signal = new SpidrSignal("powerOn",time);
// spidrData->push_back(signal);
// if(debug) tcout<<"Turned on power! Time: "<<(double)time/(4096. * 40000000.)<<endl;
// New implementation from Adrian
const uint64_t time( (pixdata & 0x0000000FFFFFFFFF) << 12 );
SpidrSignal* signal = new SpidrSignal("powerOn",time);
spidrData->push_back(signal);
if(debug) tcout<<"Turned on power! Time: "<<(double)time/(4096. * 40000000.)<<endl;
const UChar_t tempbits = ((pixdata & 0x00F0000000000000) >> 52) & 0xF;
const UChar_t powerOn = ((tempbits & 0x2) >> 1);
const UChar_t shutterStop = ((tempbits & 0x1));
tcout<<"Shutter stop: "<<(double)shutterStop<<", power on: "<<(double)powerOn<<" Time: "<<(double)time/(4096. * 40000000.)<<endl;
tcout<<std::hex<<pixdata<<std::dec<<endl;
}
// 0x7 is power off
if(header2 == 0x7){
......
......@@ -15,7 +15,6 @@
// Algorithm list
#include "TestAlgorithm.h"
#include "Timepix3EventLoader.h"
#include "Timepix1EventLoader.h"
#include "Timepix3Clustering.h"
#include "Timepix1Clustering.h"
#include "Timepix3MaskCreator.h"
......@@ -60,7 +59,6 @@ int main(int argc, char *argv[]) {
// Algorithm list
Timepix3EventLoader* tpix3EventLoader = new Timepix3EventLoader(debug);
Timepix1EventLoader* tpix1EventLoader = new Timepix1EventLoader(debug);
Timepix3Clustering* tpix3Clustering = new Timepix3Clustering(debug);
Timepix1Clustering* tpix1Clustering = new Timepix1Clustering(debug);
TestAlgorithm* testAlgorithm = new TestAlgorithm(debug);
......@@ -81,7 +79,7 @@ int main(int argc, char *argv[]) {
// =========================================================================
// General parameters
parameters->reference = "Mim-osa02";
parameters->reference = "W0005_J02";
parameters->DUT = "CLi-CPix";
// parameters->reference = "W0013_G03";
// parameters->DUT = "W0019_L08";
......@@ -114,16 +112,16 @@ int main(int argc, char *argv[]) {
// Initialise the analysis object and add algorithms to run
analysis = new Analysis(parameters);
// analysis->add(tpix1EventLoader);
analysis->add(fileReader);
analysis->add(tpix1Clustering);
analysis->add(spatialTracking);
analysis->add(correlator);
// analysis->add(tpix3EventLoader);
// analysis->add(tpix3Clustering);
// analysis->add(testAlgorithm);
// analysis->add(fileReader);
// analysis->add(tpix1Clustering);
// analysis->add(spatialTracking);
// analysis->add(correlator);
analysis->add(tpix3EventLoader);
analysis->add(tpix3Clustering);
analysis->add(testAlgorithm);
// analysis->add(basicTracking);
// analysis->add(dutAnalysis);
analysis->add(clicpixAnalysis);
// analysis->add(clicpixAnalysis);
// analysis->add(fileWriter);
if(parameters->align) analysis->add(alignment);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment