70 G4ThreeVector WireBasis1, WireBasis2;
72 if (Orientation == 0) {
74 WireBasis1 = G4ThreeVector(0, 1, 0);
75 WireBasis2 = G4ThreeVector(0, 0, 1);
77 else if (Orientation == 1) {
79 WireBasis1 = G4ThreeVector(1, 0, 0);
80 WireBasis2 = G4ThreeVector(0, 0, 1);
82 else if (Orientation == 2) {
84 WireBasis1 = G4ThreeVector(0, 1, 0);
85 WireBasis2 = G4ThreeVector(0, 0, 1);
89 <<
"Unrecognized wireplane orientation. Options are 1=Xdrift, 2=Ydrift, 3=Zdrift\n";
91 for (
size_t i = 0; i != InputVectors.size(); ++i) {
92 if (InputVectors.at(i).size() != 3) {
94 <<
"Unrecognized wireplane parameter format. Expected vector(3)'s with v[0] = wire " 95 "angle, v[1] = wire pitch, v[2] = wire diameter\n";
98 double theta = InputVectors[i][0] * 3.142 / 180.;
99 fWireDirections.push_back(cos(theta) * WireBasis1 + sin(theta) * WireBasis2);
100 fDPRatios.push_back(InputVectors[i][2] / InputVectors[i][1]);
std::vector< double > fDPRatios
std::vector< G4ThreeVector > fWireDirections
G4ThreeVector fPlaneNormal
cet::coded_exception< error, detail::translate > exception