Skip to content

Commit cb84c17

Browse files
Merge branch 'main' into Mu2eDisplay
2 parents 737cb99 + e644972 commit cb84c17

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

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
@@ -58,7 +58,8 @@ REveDis : {
5858
producers: {
5959
MergeKK : {
6060
module_type : MergeKalSeeds
61-
KalSeedCollections : ["KKDeM", "KKDeP", "KKUeM", "KKUeP", "KKDmuM", "KKDmuP", "KKUmuM", "KKUmuP", "KKLine", "KKCentralHelix","KKDe", "KKUe", "KKDmu", "KKUmu" ]
61+
KalSeedCollections : ["KKDeM", "KKDeP", "KKUeM", "KKUeP", "KKDmuM", "KKDmuP", "KKUmuM", "KKUmuP", "KKLine", "KKCentralHelix",
62+
"KKDe", "KKUe", "KKDmu", "KKUmu" ]
6263
}
6364
}
6465
filters : {

src/REveMu2eDataInterface.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,9 @@ void REveMu2eDataInterface::FillKinKalTrajectory(REX::REveManager *&eveMng, bool
902902
if(seedcol!=0){
903903
for(auto const& kseedptr : *seedcol){
904904
auto const& kseed = *kseedptr;
905+
unsigned nhits = kseed.hits().size();
905906
unsigned nactive =0;
906-
for (auto const& hit : kseed.hits()){ if (hit.strawHitState() >= WireHitState::inactive) ++nactive; }
907+
for (auto const& hit : kseed.hits()){ if (hit.strawHitState() > WireHitState::inactive) ++nactive; }
907908
// use t0 to define the reference segment
908909
double t0;
909910
kseed.t0Segment(t0);
@@ -925,8 +926,6 @@ void REveMu2eDataInterface::FillKinKalTrajectory(REX::REveManager *&eveMng, bool
925926
<< "phi0 " << lh.phi0() << " rad " << std::endl
926927
<< "N hits " << nactive << " fit cons. " << kseed.fitConsistency() << std::endl
927928
<< "Instance " << names[j] << std::endl;
928-
// << "track arrival time " << t1 << std::endl;
929-
930929
AddKinKalTrajectory<LHPT>(trajectory,scene,j, ksstream.str(), t1, t2);
931930
if(addTrkHits) {
932931
AddTrkStrawHit<LHPT>(kseed, scene, trajectory,trackproducts);

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)