All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
GeoDump Class Reference
Inheritance diagram for GeoDump:

Public Member Functions

 GeoDump (fhicl::ParameterSet const &p)
 
 GeoDump (GeoDump const &)=delete
 
 GeoDump (GeoDump &&)=delete
 
GeoDumpoperator= (GeoDump const &)=delete
 
GeoDumpoperator= (GeoDump &&)=delete
 
void analyze (art::Event const &e) override
 

Detailed Description

Definition at line 24 of file GeoDump_module.cc.

Constructor & Destructor Documentation

GeoDump::GeoDump ( fhicl::ParameterSet const &  p)
explicit

Definition at line 46 of file GeoDump_module.cc.

47  : EDAnalyzer{p} // ,
48  // More initializers here.
49 {
50  // Call appropriate consumes<>() for any products to be retrieved by this module.
51 }
pdgs p
Definition: selectors.fcl:22
GeoDump::GeoDump ( GeoDump const &  )
delete
GeoDump::GeoDump ( GeoDump &&  )
delete

Member Function Documentation

void GeoDump::analyze ( art::Event const &  e)
override

Definition at line 53 of file GeoDump_module.cc.

54 {
55  // Implementation of required member function here.
56  auto geop = lar::providerFrom<geo::Geometry>();
57 
58  std::cout << geop->Ncryostats() << " cryostats" << std::endl;
59  //for(auto const& cryostat : geop->Cryostats()) {
60  for(size_t c=0; c<geop->Ncryostats(); ++c) {
61  auto const& cryostat = geop->Cryostat(c);
62  std::cout<<"Cryostat " << cryostat.ID() << " ... " << cryostat.NTPC() << " TPCs and " << cryostat.NOpDet() << " opdets" << std::endl;
63  auto const& cryobox = cryostat.Boundaries();
64  std::cout<<" (" << cryobox.MinX() << "," << cryobox.MinY() << "," << cryobox.MinZ() << ")"
65  << " => ("
66  << cryobox.MaxX() << "," << cryobox.MaxY() << "," << cryobox.MaxZ() << ")" << std::endl;
67 
68  for(size_t t=0; t<geop->NTPC(); ++t) {
69  // Why there's no CryostatGeo::TPCs()?
70  if(!cryostat.HasTPC(t)) continue;
71  auto const& tpc = cryostat.TPC(t);
72  std::cout<<" TPC ID=" << t << " ... " << tpc.Nplanes() << " planes" << std::endl;
73  auto const& tpcbox = tpc.BoundingBox();
74  auto const& tpcabox = tpc.ActiveBoundingBox();
75  std::cout<<" BB (" << tpcbox.MinX() << "," << tpcbox.MinY() << "," << tpcbox.MinZ() << ")"
76  << " => ("
77  << tpcbox.MaxX() << "," << tpcbox.MaxY() << "," << tpcbox.MaxZ() << ")" << std::endl;
78  std::cout<<" Active BB (" << tpcabox.MinX() << "," << tpcabox.MinY() << "," << tpcabox.MinZ() << ")"
79  << " => ("
80  << tpcabox.MaxX() << "," << tpcabox.MaxY() << "," << tpcabox.MaxZ() << ")" << std::endl;
81 
82  for(size_t p=0; p<tpc.Nplanes(); ++p) {
83  auto const& plane = tpc.Plane(p);
84  std::cout<<" Plane ID=" << p << " ... " << plane.Nwires() << " wires, thetaZ=" << plane.ThetaZ() << std::endl;
85  }
86  }
87  for(size_t o=0; o<cryostat.NOpDet(); ++o) {
88  auto const& opdet = cryostat.OpDet(o);
89  std::cout << "OpDet ID="<<o<< " ... (" << opdet.GetCenter().x() << "," << opdet.GetCenter().y() << "," << opdet.GetCenter().z() << ")" << std::endl;
90  }
91  for(size_t opch=0; opch<geop->NOpChannels(); ++opch) {
92  std::cout << "OpChannel " << opch << " => OpDet " << geop->OpDetFromOpChannel(opch) << std::endl;
93  }
94  }
95  std::cout<<std::endl;
96 
97 }
pdgs p
Definition: selectors.fcl:22
BEGIN_PROLOG could also be cout
GeoDump& GeoDump::operator= ( GeoDump const &  )
delete
GeoDump& GeoDump::operator= ( GeoDump &&  )
delete

The documentation for this class was generated from the following file: