65 std::vector<TBox*> TPCBox;
66 std::vector<TLine*> Wires;
91 size_t const t = tpcid.TPC;
93 double local[3] = {0.,0.,0.};
94 double world[3] = {0.,0.,0.};
111 TPCBox.push_back(
new TBox(world[2]-tpc.
ActiveLength()/2.,
115 TPCBox.back()->SetFillStyle(0);
116 TPCBox.back()->SetLineStyle(2);
117 TPCBox.back()->SetLineWidth(2);
118 TPCBox.back()->SetLineColor(16);
134 auto view = vPlane.
View();
136 std::cout<<
" View type geo::kU"<<
std::endl;
138 std::cout<<
" View type geo::kV"<<
std::endl;
140 std::cout<<
" View type geo::kX"<<
std::endl;
142 std::cout<<
" View type geo::kY"<<
std::endl;
144 std::cout<<
" View type geo::kZ"<<
std::endl;
146 std::cout<<
" View "<<view<<
" uknown"<<
std::endl;
149 std::cout<<
" View is geo::kCollection"<<std::endl;
151 std::cout<<
" View is geo::kInduction"<<std::endl;
153 std::cout<<
" View signal type is unknown"<<
std::endl;
171 Wires.push_back(
new TLine(xyz0[2],xyz0[1],xyz1[2],xyz1[1]));
176 if( view ==
geo::kX ) {pitch = xyz0[0] - prval; prval = xyz0[0];}
177 else if(view ==
geo::kY){pitch = xyz0[1] - prval; prval = xyz0[1];}
178 else if(view ==
geo::kZ){pitch = xyz0[2] - prval; prval = xyz0[2];}
183 if(
w == 1 ){ refpitch = pitch; }
184 if(
w > 0 && fabs(pitch - refpitch) > 0.00001)
186 std::cerr<<
" Bad pitch : "<<t<<
" "<<
p<<
" "<<
w<<
" "<<
w-1<<
" "<<pitch<<
" "<<refpitch<<
std::endl;
CheckDPhaseGeometry(fhicl::ParameterSet const &p)
double ActiveHalfHeight() const
Half height (associated with y coordinate) of active TPC volume [cm].
CheckDPhaseGeometry & operator=(CheckDPhaseGeometry const &)=delete
Planes which measure X direction.
The data type to uniquely identify a Plane.
Geometry information for a single TPC.
Planes which measure Z direction.
SigType_t SignalType(geo::PlaneID const &pid) const
Returns the type of signal on the channels of specified TPC plane.
EDAnalyzer(fhicl::ParameterSet const &pset)
IteratorBox< TPC_id_iterator,&GeometryCore::begin_TPC_id,&GeometryCore::end_TPC_id > IterateTPCIDs() const
Enables ranged-for loops on all TPC IDs of the detector.
Planes which measure Y direction.
unsigned int Nwires(unsigned int p, unsigned int tpc=0, unsigned int cstat=0) const
Returns the total number of wires in the specified plane.
art framework interface to geometry description
double ThetaZ() const
Angle of the wires from positive z axis; .
View_t View() const
Which coordinate does this plane measure.
unsigned int Nplanes(unsigned int tpc=0, unsigned int cstat=0) const
Returns the total number of wire planes in the specified TPC.
#define DEFINE_ART_MODULE(klass)
Signal from induction planes.
void analyze(art::Event const &e) override
double ActiveHalfWidth() const
Half width (associated with x coordinate) of active TPC volume [cm].
Geometry information for a single wire plane.The plane is represented in the geometry by a solid whic...
The data type to uniquely identify a TPC.
double ActiveLength() const
Length (associated with z coordinate) of active TPC volume [cm].
unsigned int NTPC(unsigned int cstat=0) const
Returns the total number of TPCs in the specified cryostat.
std::string TPCInfo(std::string indent="", unsigned int verbosity=1) const
Returns a string with information about this TPC.
unsigned int Nwires() const
Number of wires in this plane.
void WireEndPoints(geo::WireID const &wireid, double *xyzStart, double *xyzEnd) const
Fills two arrays with the coordinates of the wire end points.
TPCGeo const & TPC(unsigned int const tpc=0, unsigned int const cstat=0) const
Returns the specified TPC.
PlaneGeo const & Plane(geo::View_t view) const
Return the plane in the tpc with View_t view.
LArSoft geometry interface.
void LocalToWorld(const double *tpc, double *world) const
Transform point from local TPC frame to world frame.
double WirePitch() const
Return the wire pitch (in centimeters). It is assumed constant.
QTextStream & endl(QTextStream &s)
Signal from collection planes.