Skip to content

Commit e644972

Browse files
Merge pull request #185 from brownd1978/merge
Add collections from merged paths
2 parents f53ea21 + 9e9210e commit e644972

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

examples/nominal_example.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ physics.analyzers.Mu2eEventDisplay.showCRV : true
2222
physics.analyzers.Mu2eEventDisplay.showPS : false
2323
physics.analyzers.Mu2eEventDisplay.showTS : false
2424
physics.analyzers.Mu2eEventDisplay.showDS : false
25-
physics.analyzers.Mu2eEventDisplay.addCRVBars : true
25+
physics.analyzers.Mu2eEventDisplay.addCRVBars : false
2626
physics.analyzers.Mu2eEventDisplay.addKalInter : true
2727
physics.analyzers.Mu2eEventDisplay.addCrystalHits : true
2828
physics.analyzers.Mu2eEventDisplay.filler.addHelixSeeds : false

fcl/prolog.fcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ REveDis : {
5959
producers: {
6060
MergeKK : {
6161
module_type : MergeKalSeeds
62-
KalSeedCollections : ["KKDeM", "KKDeP", "KKUeM", "KKUeP", "KKDmuM", "KKDmuP", "KKUmuM", "KKUmuP", "KKLine", "KKOffSpill" ]
62+
KalSeedCollections : ["KKDeM", "KKDeP", "KKUeM", "KKUeP", "KKDmuM", "KKDmuP", "KKUmuM", "KKUmuP", "KKLine", "KKCentralHelix",
63+
"KKDe", "KKUe", "KKDmu", "KKUmu" ]
6364
}
6465
}
6566
filters : {

src/REveMu2eDataInterface.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,9 @@ void REveMu2eDataInterface::FillKinKalTrajectory(REX::REveManager *&eveMng, bool
885885
if(seedcol!=0){
886886
for(auto const& kseedptr : *seedcol){
887887
auto const& kseed = *kseedptr;
888+
unsigned nhits = kseed.hits().size();
888889
unsigned nactive =0;
889-
for (auto const& hit : kseed.hits()){ if (hit.strawHitState() >= WireHitState::inactive) ++nactive; }
890+
for (auto const& hit : kseed.hits()){ if (hit.strawHitState() > WireHitState::inactive) ++nactive; }
890891
// use t0 to define the reference segment
891892
double t0;
892893
kseed.t0Segment(t0);
@@ -905,7 +906,7 @@ void REveMu2eDataInterface::FillKinKalTrajectory(REX::REveManager *&eveMng, bool
905906
<< "cx " << lh.cx() << " mm "
906907
<< "cy " << lh.cy() << " mm "
907908
<< "phi0 " << lh.phi0() << " rad " << std::endl
908-
<< "N hits " << nactive << " fit cons. " << kseed.fitConsistency() << std::endl;
909+
<< "N hits (,active)" << nhits << "," << nactive << " fit cons. " << kseed.fitConsistency() << std::endl;
909910
// << "track arrival time " << t1 << std::endl;
910911
AddKinKalTrajectory<LHPT>(trajectory,scene,j, ksstream.str(), t1, t2);
911912
if(addTrkHits) AddTrkStrawHit<LHPT>(kseed, scene, trajectory);

src/REveMu2eMainWindow.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ void REveMu2eMainWindow::GeomDrawerNominal(TGeoNode* node, REX::REveTrans& trans
356356
}
357357

358358
void REveMu2eMainWindow::GeomDrawerExtracted(TGeoNode* node, REX::REveTrans& trans, REX::REveElement* beamlineholder, REX::REveElement* trackerholder, REX::REveElement* caloholder, REX::REveElement* crystalsholder, REX::REveElement* crvholder, REX::REveElement* targetholder, int maxlevel, int level, GeomOptions geomOpt, std::vector<std::pair<std::string, std::vector<float>>>& offsets){
359-
double x_crvex = 0; double y_crvex = 0; double z_crvex = 0; double x_crvt1 = 0; double y_crvt1 = 0; double z_crvt1 = 0; double x_crvt2 = 0; double y_crvt2 = 0; double z_crvt2 = 0;
359+
double x_crvex = 0; double y_crvex = 0; double z_crvex = 0; double x_crvt1 = 0; double y_crvt1 = 0; double z_crvt1 = 0; double x_crvt2 = 0; double y_crvt2 = 0; double z_crvt2 = 0;
360360
for(unsigned int i = 0; i < offsets.size(); i++){
361361
if(offsets[i].first.find("World") != string::npos){
362362
x_world = offsets[i].second[0];
@@ -426,7 +426,7 @@ void REveMu2eMainWindow::GeomDrawerExtracted(TGeoNode* node, REX::REveTrans& tra
426426
}
427427
}
428428
// everything else needs to be shifted such that its relative to the tracker center at 0,0,0
429-
429+
430430
if(geomOpt.showCalo){
431431
static std::vector <std::string> substrings_disk {"caloDisk"};
432432
for(auto& i: substrings_disk){
@@ -446,7 +446,7 @@ void REveMu2eMainWindow::GeomDrawerExtracted(TGeoNode* node, REX::REveTrans& tra
446446
}
447447
}
448448
if(geomOpt.showCRV and geomOpt.extracted){
449-
449+
450450
static std::vector <std::string> substrings_ex {"CRSmotherLayer_CRV_EX"};
451451
shift.at(0) = x_crvex - x_trk;
452452
shift.at(1) = y_crvex - y_trk;
@@ -460,7 +460,7 @@ void REveMu2eMainWindow::GeomDrawerExtracted(TGeoNode* node, REX::REveTrans& tra
460460
shift.at(0) = x_crvt1 - x_trk;
461461
shift.at(1) = y_crvt1 - y_trk;
462462
shift.at(2) = z_crvt1 - z_trk;
463-
463+
464464
for(auto& i: substrings_t1){
465465
showNodesByName(node,i,kFALSE, 0, trans, crvholder, maxlevel, level, false, false, shift, false, true, drawconfigf.getInt("CRVColor"));
466466
}

0 commit comments

Comments
 (0)