Commit affd142c authored by Kevin Connor Nash's avatar Kevin Connor Nash
Browse files

first MPA+SSA commit. Working MPA,SSA latency scan as well as PS stub latency

parent 1f589e1e
......@@ -14,10 +14,6 @@ void LatencyScan::Initialize(uint32_t pStartLatency, uint32_t pLatencyRange)
#ifdef __USE_ROOT__
fDQMHistogramLatencyScan.book(fResultFile, *fDetectorContainer, fSettingsMap);
#endif
ReadoutChip* cFirstReadoutChip = static_cast<ReadoutChip*>(fDetectorContainer->at(0)->at(0)->at(0)->at(0));
cWithCBC = (cFirstReadoutChip->getFrontEndType() == FrontEndType::CBC3);
cWithSSA = (cFirstReadoutChip->getFrontEndType() == FrontEndType::SSA);
cWithMPA = (cFirstReadoutChip->getFrontEndType() == FrontEndType::MPA);
for(auto cBoard: *fDetectorContainer)
{
......@@ -395,33 +391,7 @@ std::map<HybridContainer*, uint8_t> LatencyScan::ScanStubLatency(uint8_t pStartL
{
for(auto cOpticalGroup: *cBoard)
{
for(auto cHybrid: *cOpticalGroup) { cNStubs += countStubs(cHybrid, cEvent, "hybrid_stub_latency", cLat);
std::vector<PCluster> pclus = static_cast<D19cMPAEvent*>(cEvent)->GetPixelClusters(cHybrid->getId(), 1);
pclus.size();
std::vector<SCluster> sclus = static_cast<D19cMPAEvent*>(cEvent)->GetStripClusters(cHybrid->getId(), 1);
sclus.size();
std::vector<Stub> stubs = static_cast<D19cMPAEvent*>(cEvent)->StubVector(cHybrid->getId(), 1);
stubs.size();
//std::cout << "pclus "<<pclus.size()<< " sclus "<< sclus.size() <<" stubs "<<stubs.size()<<std::endl;
/*for( auto& pc: pclus)
{
std::cout << "pclus fAddress "<<unsigned(pc.fAddress) << " fZpos "<<unsigned(pc.fZpos) << " fWidth "<<unsigned(pc.fWidth)<<std::endl<< std::endl;
}
for( auto& sc: sclus)
{
std::cout << "sclus fAddress "<<unsigned(sc.fAddress)<< " fWidth "<<unsigned(sc.fWidth)<< std::endl;
}*/
}
for(auto cHybrid: *cOpticalGroup) { cNStubs += countStubs(cHybrid, cEvent, "hybrid_stub_latency", cLat); }
}
}
LOG(INFO) << "Stub Latency " << +cLat << " Stubs " << cNStubs << " Events " << cEvents.size();
......
......@@ -73,9 +73,6 @@ class LatencyScan : public Tool
uint32_t fNCbc;
uint8_t fTestPulseAmplitude;
uint32_t trigSource;
bool cWithCBC = true;
bool cWithSSA = false;
bool cWithMPA = false;
const uint32_t fTDCBins = 8;
int convertLatencyPhase(uint32_t pStartLatency, uint32_t cLatency, uint32_t cPhase)
......
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