Functions | Variables
geom.C File Reference

Go to the source code of this file.

Functions

void SetDrawOptions ()
 
void SetFarDetOptions ()
 
void SetIPNDOptions ()
 
void SetNearDetOptions ()
 
void FindCells (TGeoNode *planenode, TGeoNode *n, TGeoVolume *v)
 
void FindPlanes (TGeoNode *n, TGeoVolume *v)
 
void geom (int which=0)
 

Variables

int ncells = 0
 
int nplanes = 0
 

Function Documentation

void FindCells ( TGeoNode *  planenode,
TGeoNode *  n,
TGeoVolume *  v 
)

Definition at line 125 of file geom.C.

References om::cout, allTimeWatchdog::endl, MECModelEnuComparisons::i, ncells, nd, and Munits::nm.

Referenced by FindPlanes().

126 {
127  const char* nm = v->GetName();
128  if (strncmp(nm,"vCell",5)==0) {
129  ++ncells;
130  std::cout << "Found cell "
131  << planenode->GetName() << "\t"
132  << n->GetName() << "\t"
133  << ncells
134  << std::endl;
135  return;
136  }
137  int nd = v->GetNdaughters();
138  for (int i=0; i<nd; ++i) {
139  FindCells(planenode, v->GetNode(i), v->GetNode(i)->GetVolume());
140  }
141 }
static constexpr Double_t nm
Definition: Munits.h:133
void FindCells(TGeoNode *planenode, TGeoNode *n, TGeoVolume *v)
Definition: geom.C:125
OStream cout
Definition: OStream.cxx:6
int ncells
Definition: geom.C:124
void FindPlanes ( TGeoNode *  n,
TGeoVolume *  v 
)

Definition at line 146 of file geom.C.

References FindCells(), MECModelEnuComparisons::i, nd, Munits::nm, and nplanes.

147 {
148  const char* nm = v->GetName();
149  if (strncmp(nm,"vPlane",6)==0) {
150  ++nplanes;
151  FindCells(n, n, v);
152  return;
153  }
154 
155  int nd = v->GetNdaughters();
156  for (int i=0; i<nd; ++i) {
157  FindPlanes(v->GetNode(i), v->GetNode(i)->GetVolume());
158  }
159 }
static constexpr Double_t nm
Definition: Munits.h:133
void FindPlanes(TGeoNode *n, TGeoVolume *v)
Definition: geom.C:146
void FindCells(TGeoNode *planenode, TGeoNode *n, TGeoVolume *v)
Definition: geom.C:125
int nplanes
Definition: geom.C:145
void geom ( int  which = 0)

Definition at line 163 of file geom.C.

References fillBadChanDBTables::det, exit(), SetDrawOptions(), and make_template_knob_config::stderr.

Referenced by caf::AddCosmicTruthToVec(), fuzz::FuzzyKVertex::AddProng(), calib::ADCShapeFitAna::analyze(), calhit::CalHitAna::analyze(), calib::ThresholdAna::analyze(), chaninfo::CosmicEff::analyze(), comi::CosmicMetrics::analyze(), geo::GeometryTest::analyze(), align::AlignInspect::analyze(), dprf::ChannelPlots::analyze(), zcl::SMMTriggerAna::analyze(), slicer::S4DParamCalc::analyze(), dprf::TrackPlots::analyze(), mcchk::RockAna::analyze(), align::Alignment::analyze(), numue::NumuEAna::analyze(), pa::ClusterEva::analyze(), calib::AssessCalib::analyze(), comi::DataCheck::analyze(), bpfit::BPFdEdxHistoMaker::analyze(), calib::HitEfficiency::analyze(), zcl::MMCheater::analyze(), comi::NumiFilteringAna::analyze(), zcl::FmmTriggerAna::analyze(), zcl::FmmTrackerAna::analyze(), zcl::FmmTrackerValidation::analyze(), trk::KalmanTrackAna::analyze(), showere::ShowerEnergyAna::analyze(), hough::HoughValidate::analyze(), earms::ElasticArmsValidate::analyze(), cvn::CVNEventProngDump::analyze(), rockmuon::NDRockMuon::analyze(), remid::ReMIdDedxRock::analyze(), comi::NearlineAna::analyze(), remid::ReMIdDedxFD::analyze(), remid::ReMIdDedxStudies::analyze(), zcl::FastMMStudy::analyze(), bpfit::BPFTmvaTrainer::analyze(), ncs::Xbeam::analyze(), ncs::Xeff::analyze(), ncs::ROCKMRE::analyze(), slid::LIDTraining::analyze(), ncs::NCAna::analyze(), comi::Leana::AnaNHit(), chaninfo::BadChanValidate::BadChansFromDB(), chaninfo::BadChanValidate::BadChansFromOM(), comi::DataCheck::beginJob(), calib::ThresholdAna::beginRun(), slicer::Slicer4D::beginRun(), presel::RockPresel::beginRun(), wsnumu::WSNumu::beginRun(), presel::CosmicVeto::beginRun(), chaninfo::CosmicEff::beginRun(), presel::CosmicCVNVeto::beginRun(), presel::NuePresel::beginRun(), mcchk::CloseInTime::beginRun(), dprf::ChannelPlots::beginRun(), comi::NumiFiltering::beginRun(), dprf::TrackPlots::beginRun(), calib::FiberCalibration::beginRun(), numue::NumuEAna::beginRun(), comi::NumiFilteringAna::beginRun(), calib::HitEfficiency::beginRun(), calib::TimingCalibration::beginRun(), calib::DriftResponseCalc::beginRun(), ncid::MakeNCCosRej::beginRun(), calib::AttenFit::beginRun(), jmshower::NueSel::beginRun(), jmshower::NueSelLID::beginRun(), cosrej::MakeNueCosRej::beginRun(), comi::NearlineAna::beginRun(), photrans::ImprovedTransport::beginRun(), rsim::ReadoutSim::beginRun(), calib::DCMTimingOffset::beginRun(), jmshower::RecoJMShower::beginRun(), slicemergeviews::SliceMergeViews::beginRun(), tdslicer::TDSlicer::beginRun(), DataCheck::HardwareStatusCheck::beginSubRun(), comi::DataCheck::beginSubRun(), calib::BestPathEstimates(), slid::ParticleIDAlg::CalcAsymIneria(), geo::LiveGeometry::CellsToEdgeInMC(), bpfit::BreakPoint::ClampToDetector(), dt::Cand::ClosestToEndCell(), calib::AttenFit::ConsolidateViews(), trk::KalmanTrackAna::Containment(), skim::SkimmingUtils::CopyProngs(), skim::SkimmingUtils::CopyShowers(), skim::SkimmingUtils::CopySlice(), skim::SkimmingUtils::CopyTracks(), chaninfo::BadChanList::CountDCMHits(), dt::ViewMerger::CountUnexplainedOnLine(), util::CountXY(), rsim::ReadoutSim::CreateRawDigits(), lem::DefaultVertex(), geo::LiveGeometry::DistanceToEdgeInMC(), geo::LiveGeometry::DistToClosestBadRegion(), geo::LiveGeometry::DoWeEnterMC(), evd::HitTower::Draw(), evd::RawDataDrawer::Draw3DHitBoxes(), evd::GeometryDrawer::DrawBadBoxesPretty(), evd::GeometryDrawer::DrawHighlightCell(), evd::RecoBaseDrawer::DrawHoughResults2D(), evd::RecoBaseDrawer::DrawTrack2D(), skim::ParametersNumu::EarliestLatestHitPos(), mcchk::ShowerAnaCheck::EMMoliereRadius(), mcchk::ShowerAnaCheck::EMShowerWidth(), chaninfo::CosmicEff::endJob(), comi::CosmicMetrics::endJob(), calib::BetheBlochFit::endJob(), comi::DataCheck::endJob(), calib::AttenFit::endJob(), calib::DCMTimingOffset::endJob(), calib::FindOutliers::endRun(), calib::DriftResponseCalc::endRun(), comi::ChanOcc::endSubRun(), rsim::RecordNoiseSpectrumFile::endSubRun(), LightLevels::endSubRun(), dt::Cand::EstimateStraightLine(), util::EventBox(), calib::AttenFit::expFit(), rsim::IFPGAAlgorithm::FetchThresholds(), evd::GeometryDrawer::FiducialVolumeUser2D(), geo::LiveGeometry::FillBadBoxes(), dqsf::DQSpillFlags::FillCountVars(), dprf::ChannelPlots::FillFebRawPlots(), caf::FillHadClustVars(), bpfit::BreakPoint::FillHitList(), caf::FillSliceInfo(), caf::FillSliceVars(), filter::Filter::FillTruthVariables(), nuesand::FillNueSandbox::FillTruthVars(), util::RemoveBeamSpills::filter(), jmshower::RecoJMShowerFilter::filter(), util::RemoveBeamSpillsPrecise::filter(), comi::NumiFiltering::filter(), calib::TimingCalFilter::filter(), bsf::BremShowerFilter::filter(), showere::ShowerEnergyFilterMC::filter(), calib::FindBelowThresholdCalibCandidates(), lem::FindCellRobust(), vdt::VertexDT::FindMinMax(), bsf::BremShowerFilter::findShowerByReco(), bsf::BremShowerFilter::findShowerByTruth(), bpfit::DimuonFitter::FindVertexZ(), calib::FindZBoundaries(), calib::AttenFit::fit_channel_prof(), tut::TutProducer::FitPhoton(), bpfit::BreakPoint::FitTracks(), bpfit::DimuonFitter::FitView(), geo::LiveGeometry::FullNDProjectedCells(), numusand::NumuSandFxs::getActivity(), cosrej::CosRejFxs::getAngle(), numusand::NumuSandFxs::getAngle(), cosrej::CosRejFxs::getBBC(), geo::LiveGeometry::GetBCInfo(), evd::SliceNavigator::GetBounds(), evd::SliceNavigator::GetBox(), jmshower::RecoJMShower::GetCellDistToPoint(), jmshower::RecoJMShower::GetCellDistToTrk(), slid::ParticleIDAlg::GetCellNodePos(), jmshower::RecoJMShower::GetCellNodePos(), jmshower::RecoJMShower::GetCellTransDedx(), jmshower::RecoJMShower::GetCentroid(), evd::RecoBaseDrawer::GetClusterOutlinesConvexHull(), LSTME::SliceVars::getCoarseTiming(), GetCommandLineArgs(), cosrej::CosRejFxs::getCVVars(), nuesand::FillNueSandbox::GetdEdx(), geo::LiveGeometry::GetDetectorEdges(), skim::ParametersNumu::GetDetectorEdges(), nuesand::FillNueSandbox::GetECF(), cosrej::CosRejFxs::getFits(), jmshower::RecoJMShower::GetInterCellTransDedxProb(), jmshower::RecoJMShower::GetInterPlaneDedxProb(), evd::SimulationDrawer::GetLimits(), LSTME::SliceVars::getLowGain(), nuesand::FillNueSandbox::GetMincell(), numusand::NumuSandFxs::getMissingE(), photrans::ImprovedTransport::GetPosCorr(), ndreco::NDRecoFxs::getProngActivity(), ndreco::NDRecoFxs::getProngDedx(), geo::LiveGeometry::GetRHInfo(), evgen::CORSIKAGen::GetSample(), dt::Chunk::GetSegs(), GetTargetCodes(), ndreco::NDRecoFxs::getTrackActivity(), nuesand::FillNueSandbox::GetTrackAngle(), ndreco::NDRecoFxs::getTrackDedx(), jmshower::JMShower::GetTransHits(), jmshower::RecoJMShower::GetTrkCPlaneCell(), jmshower::RecoJMShower::GetTrkHitPath(), jmshower::RecoJMShower::GetTrkHitPos(), jmshower::RecoJMShower::GetTrkPlaneCell(), jmshower::RecoJMShower::GetTrkPlaneDistToEdge(), jmshower::RecoJMShower::GetTrkPlanePos(), calib::GetXYZD(), calib::HasXYAdjacents(), dt::DiscreteTracker::HighActivity(), rb::HitList::HitList(), dt::Chunk::HitsOnLine(), hough::HoughValidate::HoughLineToDetector(), chaninfo::BadChanList::InDroppedDCM(), bsf::BremShowerFilter::inFiducial(), qeef::QeFinder::Init(), trackinfo::TrackInfo::Init(), remid::RecoMuon::Init(), slid::SPIDAlg::Initialize(), slid::LIDAlg::Initialize(), geo::LiveGeometry::InMuonCatcher(), geo::LiveGeometry::InstrumentedDetBack(), geo::LiveGeometry::InstrumentedDetEnds(), geo::LiveGeometry::InstrumentedDetFront(), geo::LiveGeometry::InstrumentedDetLength(), cheat::BackTracker::InterceptsDetector(), chaninfo::BadChanList::IsBadUncached(), calib::RockMuonStopperSelection::IsContainedStopper(), comi::CosmicMetrics::IsEntering(), align::AlignInspect::IsGoodTrack(), align::Alignment::IsGoodTrack(), comi::Leana::IsPointOnEdge(), remid::RecoMuon::IsTrackContained(), trk::CosmicTrackAlg::IsTrackDownstreamFromTiming(), calib::RockMuonStopperSelection::IsTrulyContainedStopper(), calib::RockMuonStopperSelection::IsTrulyInFiducial(), calib::ThroughgoingSelection::IsTrulyUncontained(), calib::ThroughgoingSelection::IsUncontained(), filter::Filter::isVertexInFiducial(), chaninfo::BadChanList::LoadNewData(), calib::AttenFit::lowessFit(), main(), evtsum::EventSummary::MakeOutput(), trk::CosmicTrackAlg::MakeTrack(), calib::MakeZBoundaryMap(), lem::FindLEMMatches::MatchToVertex(), lem::LEM::MatchToVertex(), calib::AttenFit::MedianProfile(), rb::Cluster::MinMaxMeanXYZ(), comi::Leana::MuonCandidate(), chaninfo::BadChanList::NBadInSubRun(), numue::NumuEAlg::NumuEAlg(), evd::RecoBaseDrawer::OfflineChans2D(), skim::ParametersNumu::ParametersNumu(), skim::ParametersNumuCCpi::ParametersNumuCCpi(), calib::PathLengthInCell(), rb::Track::PlaneDirMap(), slid::ParticleIDAlg::PlaneHitCell(), slid::ParticleIDAlg::PlaneHitXYZ(), evgen::CORSIKAGen::populateNShowers(), geo::LiveGeometry::preBeginEvent(), chaninfo::BadChanList::preBeginEvent(), SliceLID::FillSliceLID::predict(), LSTME::FillLSTME::predictEnergy(), ddthelpers::print(), hough::HoughT::produce(), hv::HoughVertex::produce(), nuesand::FillNueSandbox::produce(), wsnumu::WSNumu::produce(), lem::LEMSummarizer::produce(), trackinfo::TrackInfo::produce(), nussand::FillNusSandbox::produce(), jmshower::JMTrackMerge::produce(), lem::Preselection::produce(), numusand::FillSandbox::produce(), presel::NuePresel::produce(), slid::SliceLIDBuilder::produce(), calib::FiberCalibration::produce(), lem::AlignLibToVtx::produce(), zcl::SPCluster::produce(), numue::NumuEnergy::produce(), lem::MakeLibrary::produce(), calib::TimingCalibration::produce(), comi::Cana::produce(), zcl::SMMCluster::produce(), jmshower::JMClusterMerge::produce(), zcl::FMMTracker::produce(), vdt::VertexDT::produce(), zcl::FmmTriggerEvd::produce(), calib::DriftResponseCalc::produce(), rwgt::MakeGENIEReweightTable::produce(), slid::LIDBuilder::produce(), jmshower::NueSel::produce(), evgen::CORSIKAGen::produce(), dqsf::DQSpillFlags::produce(), crvtx::CosmicRayVertex::produce(), cvn::RegCVNMapper::produce(), jmshower::NueSelLID::produce(), ncid::MakeNCCosRej::produce(), bpfit::BPFEnergyEstimator::produce(), bpfit::BPFPIdMaker::produce(), remid::RecoMuon::produce(), bpfit::BPFEnergyEstimatorOnly::produce(), g4rwgt::MakeG4WeightTable::produce(), cvn::CVNAddTrainingData::produce(), cosrej::MakeNueCosRej::produce(), rsim::ReadoutSim::produce(), ncid::NCNNKeras::produce(), geo::LiveGeometry::ProjectedAirDist(), geo::LiveGeometry::ProjectedCellsInMC(), geo::LiveGeometry::ProjectedCellsToEdge(), geo::LiveGeometry::ProjectedCellsToNextBadRegion(), geo::LiveGeometry::ProjectedDistanceInMC(), geo::LiveGeometry::ProjectedLiveCellsToEdge(), geo::LiveGeometry::ProjectedSteelDist(), geo::LiveGeometry::ProjectedWall(), evgen::CosmicsGen::ProjectToSurface(), evd::RawDataDrawer::RawDigit3D(), lem::GenFromLib::readNext(), cheat::BackTracker::Rebuild(), jmshower::RecoJMShower::RecoShowers(), calib::AttenFit::rolloffFit(), hough::MultiHoughT::Scrub(), earms::ElasticArmsHS::Scrub(), vdt::VertexDT::Scrub(), fuzz::FuzzyKVertex::Scrub(), LSTME::FillLSTME::selectModel(), geo::LiveGeometry::SetInstrumentation(), chaninfo::BadChanList::SetRandomBadChannels(), geo::LiveGeometry::SetupLiveGeo(), lem::MakeLibrary::SliceMeanPosEWeighted(), cosrej::MakeNueCosRej::SparsenessAsymmetry(), geo::GeometryTest::testCellId(), geo::GeometryTest::testCellIdFromPos(), geo::GeometryTest::testCellPos(), geo::GeometryTest::testFindCell(), geo::GeometryTest::testFindPlanes(), geo::GeometryTest::testProject(), geo::GeometryTest::testStepping(), geo::GeometryTest::testUniqueId(), rb::Prong::TotalLength(), numue::NumuEAna::TotalLengthInDetector(), cheat::RecoCheckAna::TotalLengthInDetector(), trk::KalmanTrackAna::TotalLengthInDetector(), dt::Chain::ToTrack(), calib::AttenCache::TranslateChannelData(), calib::AttenCache::TranslateChannelMC(), ncid::MakeNCCosRej::TransMomFraction(), ncid::NCNNKeras::TransMomFraction(), cosrej::MakeNueCosRej::TransMomFraction(), slid::NuEEnergyAlg::VertexEnergy(), lem::VertexToPlaneAndCell(), dt::View::View(), rb::Cluster::W(), rb::Prong::W(), rb::Track::W(), geo::LiveGeometry::XPositionAtTransition(), geo::LiveGeometry::YPositionAtTransition(), calib::ZBounds(), and dt::ViewMerger::ZipVerticalTracks().

164 {
165  gSystem->Load("libGeom");
166  gSystem->Load("libGdml");
167 
168  TString det = "fardet-12x12-28block-xtru-vacuum-stagger-pivoter";
169 
170  if (which==1) det = "ndos-2x3-6block-xtru-vacuum";
171  else if (which==2) det = "neardet-3x3-8block-xtru-vacuum-stagger";
172  else if (which==3) det = "fardet-12x12-28block-xtru-vacuum-stagger-pivoter";
173  else if (which==4) det = "neardet_scibar-box-air";
174  else if (which==5) det = "ndos-2x3-6block-xtru-air";
175  else if (which==6) det = "ndos-2x3-6block-box-air";
176  else if (which==7) det = "ndos-2x3-6block-box-vacuum";
177  else if (which==8) det = "ndos-2x3-6block-trap-air";
178  else if (which==9) det = "ndos-2x3-6block-trap-vacuum";
179  else if (which==10) det = "ndos-2x3-4block_nomc-xtru-vacuum";
180  else if (which==11) det = "ndos-2x3-6block_nomc-xtru-vacuum";
181  else if (which==12) det = "ndos-2x3-6block-xtru_nocutout-air";
182  else if (which==13) det = "neardet-2x3-6block-xtru-vacuum";
183  else if (which==14) det = "neardet-3x2-6block-box-vacuum";
184  else if (which==15) det = "neardet-3x3-6block-box-vacuum";
185  else if (which==16) det = "fardet-12x12-29block-xtru-vacuum";
186  else if (which==17) det = "testbeam-1x1-2block-xtru-vacuum";
187  else if (which==18) det = "testbeam-1x1-3block-xtru-vacuum";
188  else if (which==19) det = "testbeam-2x2-2block-xtru-vacuum";
189  else if (which==20) det = "testbeam-2x2-3block-xtru-vacuum";
190  else if(which != 0){
191  fprintf(stderr, "Specify a geometry by number (look at the source)\n");
192  exit(1);
193  }
194 
195  TGeoManager::Import(det+".gdml");
196  gGeoManager->DefaultColors();
197  SetDrawOptions();
198 // if (which==0) SetFarDetOptions();
199 // if (which==1) SetNearDetOptions();
200 // if (which==2) SetIPNDOptions();
201 // if (which==3) SetIPNDOptions();
202 // if (which==4) SetNearDetOptions();
203 
204  // SetDrawOptions(gGeoManager->GetVolume("vWorld"));
205 
206  // TList* mat = gGeoManager->GetListOfMaterials();
207  // TIter next(mat);
208  // TObject *obj;
209  // while (obj = next()) obj->Print();
210 
211  // FindPlanes(0, gGeoManager->GetVolume("vWorld"));
212  gGeoManager->CheckOverlaps(0.00001);
213  gGeoManager->PrintOverlaps();
214 
215  gGeoManager->SetMaxVisNodes(70000);
216  gGeoManager->GetVolume("vWorld")->Draw("ogl");
217  gGeoManager->SetVisOption(0);
218 
219  TFile *tf = new TFile(det+".root", "RECREATE");
220  gGeoManager->Write();
221  tf->Close();
222 }
Timing fit.
void SetDrawOptions()
Definition: geom.C:4
exit(0)
void SetDrawOptions ( )

Definition at line 4 of file geom.C.

References om::cout, allTimeWatchdog::endl, MECModelEnuComparisons::i, kBlue, kGreen, kOrange, kViolet, g4zmq::lc(), m, string, make_root_from_grid_output::tr, registry_explorer::v, and submit_nova_art::va.

Referenced by geom().

5 {
6  TObjArray* va = gGeoManager->GetListOfVolumes();
7  int nv = va->GetEntries();
8  for (int i=0; i<nv; ++i) {
9  TGeoVolume* v = (TGeoVolume*)va->At(i);
10  std::string m(v->GetMaterial()->GetName());
11  int lc, vi, tr, vd;
12  if (m == "Air") { lc = kWhite; vi = 0; tr = 0; vd = 1; }
13  else if (m == "Granite") { lc = kYellow-8; vi = 1; tr = 0; vd = 1; }
14  else if (m == "Dirt") { lc = kGreen-8; vi = 1; tr = 0; vd = 1; }
15  else if (m == "ShotRock") { lc = kOrange-9; vi = 1; tr = 0; vd = 1; }
16  else if (m == "BariteRock") { lc = kOrange-4; vi = 1; tr = 0; vd = 1; }
17  else if (m == "Concrete") { lc = kGray; vi = 1; tr = 0; vd = 1; }
18  else if (m == "PVC") { lc = kWhite; vi = 1; tr = 0; vd = 1; }
19  else if (m == "Scintillator") { lc = kBlue-9; vi = 1; tr = 0; vd = 1; }
20  else if (m == "Glue") { lc = kViolet-9; vi = 1; tr = 0; vd = 1; }
21  else if (m == "Steel") { lc = kOrange+4; vi = 1; tr = 0; vd = 1; }
22  else if (m == "PivoterSteel") { lc = kOrange+2; vi = 1; tr = 0; vd = 1; }
23  else {
24  std::cout << "'" << m << "' has no defaults" << std::endl;
25  lc = kOrange; vi = 1; tr = 0; vd = 1;
26  }
27  v->SetLineColor(lc);
28  v->SetVisibility(vi);
29  v->VisibleDaughters(vd);
30  v->SetTransparency(tr);
31  }
32 }
enum BeamMode kOrange
OStream cout
Definition: OStream.cxx:6
enum BeamMode kViolet
def lc(target="")
Definition: g4zmq.py:63
enum BeamMode kGreen
enum BeamMode kBlue
enum BeamMode string
void SetFarDetOptions ( )

Definition at line 36 of file geom.C.

37 {
38  gGeoManager->GetVolume("vPlaneV")->VisibleDaughters(0);
39  gGeoManager->GetVolume("vPlaneV")->SetVisibility(1);
40  gGeoManager->GetVolume("vPlaneV")->SetLineColor(kWhite);
41 
42  gGeoManager->GetVolume("vPlaneH")->VisibleDaughters(0);
43  gGeoManager->GetVolume("vPlaneH")->SetVisibility(1);
44  gGeoManager->GetVolume("vPlaneH")->SetLineColor(kGray);
45 }
void SetIPNDOptions ( )

Definition at line 49 of file geom.C.

References kBlue.

50 {
51  gGeoManager->GetVolume("vPlaneVIPND")->VisibleDaughters(1);
52  gGeoManager->GetVolume("vPlaneVIPND")->SetVisibility(1);
53  gGeoManager->GetVolume("vPlaneVIPND")->SetLineColor(kBlue);
54 
55  gGeoManager->GetVolume("vPlaneHIPND")->VisibleDaughters(1);
56  gGeoManager->GetVolume("vPlaneHIPND")->SetVisibility(1);
57  gGeoManager->GetVolume("vPlaneHIPND")->SetLineColor(kGray);
58 
59  gGeoManager->GetVolume("vDetEnclosure")->SetVisibility(1);
60 
61  /*
62  gGeoManager->GetVolume("vShedEWWall")->SetVisibility(1);
63  gGeoManager->GetVolume("vShedEWWall")->SetLineColor(kBlue);
64 
65  gGeoManager->GetVolume("vShedNWall")->SetVisibility(1);
66  gGeoManager->GetVolume("vShedNWall")->SetLineColor(kBlue);
67 
68  gGeoManager->GetVolume("vShedSWall")->SetVisibility(1);
69  gGeoManager->GetVolume("vShedSWall")->SetLineColor(kBlue);
70 
71  gGeoManager->GetVolume("vShedRoof")->SetVisibility(1);
72  gGeoManager->GetVolume("vShedRoof")->SetLineColor(kBlue);
73  */
74 
75  gGeoManager->GetVolume("vSuperBlockIPND")->VisibleDaughters(1);
76  gGeoManager->GetVolume("vSuperBlockIPND")->SetVisibility(1);
77  gGeoManager->GetVolume("vSuperBlockIPND")->SetLineColor(kBlue-5);
78 
79  gGeoManager->GetVolume("vPlaneV")->VisibleDaughters(0);
80  gGeoManager->GetVolume("vPlaneV")->SetVisibility(1);
81  gGeoManager->GetVolume("vPlaneV")->SetLineColor(kWhite);
82 
83  gGeoManager->GetVolume("vPlaneH")->VisibleDaughters(0);
84  gGeoManager->GetVolume("vPlaneH")->SetVisibility(1);
85  gGeoManager->GetVolume("vPlaneH")->SetLineColor(kGray);
86 
87  gGeoManager->GetVolume("vDetEnclosure")->VisibleDaughters(1);
88 
89 }
enum BeamMode kBlue
void SetNearDetOptions ( )

Definition at line 93 of file geom.C.

References kBlue, kGreen, kOrange, and kRed.

94 {
95 // gGeoManager->GetVolume("vPlaneVIPND")->VisibleDaughters(0);
96 // gGeoManager->GetVolume("vPlaneVIPND")->SetVisibility(1);
97 // gGeoManager->GetVolume("vPlaneVIPND")->SetLineColor(kWhite);
98 
99 // gGeoManager->GetVolume("vPlaneHIPND")->VisibleDaughters(0);
100 // gGeoManager->GetVolume("vPlaneHIPND")->SetVisibility(1);
101 // gGeoManager->GetVolume("vPlaneHIPND")->SetLineColor(kGray);
102 
103  gGeoManager->GetVolume("vPlaneV")->VisibleDaughters(0);
104  gGeoManager->GetVolume("vPlaneV")->SetVisibility(1);
105  gGeoManager->GetVolume("vPlaneV")->SetLineColor(kWhite);
106 
107  gGeoManager->GetVolume("vPlaneH")->VisibleDaughters(0);
108  gGeoManager->GetVolume("vPlaneH")->SetVisibility(1);
109  gGeoManager->GetVolume("vPlaneH")->SetLineColor(kGray);
110 
111  gGeoManager->GetVolume("vDetEnclosure")->VisibleDaughters(1);
112  gGeoManager->GetVolume("vDetEnclosure")->SetLineColor(kGreen);
113 
114  gGeoManager->GetVolume("vWestRockFill")->SetLineColor(kOrange);
115  gGeoManager->GetVolume("vMINOSTunnelWestRock")->SetLineColor(kGreen);
116  gGeoManager->GetVolume("vRockTop")->SetLineColor(kRed);
117  gGeoManager->GetVolume("vRockBase")->SetLineColor(kRed);
118  gGeoManager->GetVolume("vRockTop")->SetVisibility(1);
119  gGeoManager->GetVolume("vMINOSNorthWall")->SetLineColor(kBlue);
120 }
enum BeamMode kOrange
enum BeamMode kRed
enum BeamMode kGreen
enum BeamMode kBlue

Variable Documentation

int ncells = 0
int nplanes = 0