Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
JMONITOR::JClusterBuilder Class Reference

Local coincidence cluster builder. More...

#include <JClusterBuilder.hh>

Inheritance diagram for JMONITOR::JClusterBuilder:
JTRIGGER::JBuildL1< JHitL1 > std::vector< JCluster > JDETECTOR::JModule JTRIGGER::JBuildL1Parameters JTRIGGER::JBuildHelper< JBuildL1< JHitL1 > > JLANG::JObjectID JDETECTOR::JModuleLocation JGEOMETRY3D::JPosition3D std::vector< JPMT > JLANG::JComparable< JObjectID, int > JLANG::JComparable< JFirst_t, JSecond_t > JGEOMETRY3D::JVector3D JMATH::JMath< JVector3D >

Classes

class  MinimalMultiplicityFunctor
 functor that compares the multiplicity of a JCluster to some fixed given multiplicity. More...
 

Public Types

typedef JHitL1 value_type
 

Public Member Functions

 JClusterBuilder (const double window, const bool combine)
 default constructor More...
 
 JClusterBuilder (const JDAQSuperFrame &frame, const JModule &module, const double window, const bool combine)
 constructor More...
 
void reset (const JDAQSuperFrame &frame, const JModule &module)
 This is a way to re-use the allocated memory. More...
 
vector< JCluster >::const_iterator begin_m (unsigned int multiplicity) const
 returns begin iterator for clusters with exactly the given multiplicity More...
 
vector< JCluster >::const_iterator end_m (unsigned int multiplicity) const
 returns end iterator for clusters with exactly the given multiplicity More...
 
vector< JCluster >::const_iterator begin_inclusive_m (unsigned int multiplicity) const
 returns begin iterator for clusters with at least the given multiplicity More...
 
vector< JCluster >::const_iterator end_inclusive_m (unsigned int multiplicity) const
 returns end iterator for clusters with at least the given multiplicity More...
 
unsigned int getNclusters (const unsigned int multiplicity) const
 return the number of clusters with exactly the given multiplicity More...
 
unsigned int getInclusiveNclusters (const unsigned int multiplicity) const
 return the number of clusters with at least the given multiplicity More...
 
template<class JElement_t , class JOutput_t >
void operator() (const JSuperFrame2D< JElement_t > &input, JOutput_t out) const
 Build hits from calibrated data. More...
 
template<class JOutput_t >
void operator() (const JDAQSuperFrame &input, const JModule &module, JOutput_t out) const
 Build hits from uncalibrated DAQ data. More...
 
void operator() (const JDAQTimeslice &timeslice, const JModuleRouter &router, JOutput_t out) const
 Build hits from uncalibrated DAQ data. More...
 
void operator() (const JDAQEvent &event, const JModuleRouter &router, bool snapshot, JOutput_t out) const
 Build hits from uncalibrated DAQ data. More...
 
void operator() (const JDAQEvent &event, const JModuleRouter &router, JOutput_t out) const
 Build hits from uncalibrated DAQ data. More...
 
const JPMTgetPMT (const int index) const
 Get PMT. More...
 
JPMTgetPMT (const int index)
 Get PMT. More...
 
void compile ()
 Compile position of module from the positions of the PMTs. More...
 
void rotate (const JRotation3D &R)
 Rotate module. More...
 
JPosition3Drotate (const JRotation3X &R)
 Rotate around X-axis. More...
 
JPosition3Drotate (const JRotation3Y &R)
 Rotate around Y-axis. More...
 
JPosition3Drotate (const JRotation3Z &R)
 Rotate around Z-axis. More...
 
JPosition3Drotate (const JQuaternion3D &Q)
 Rotate. More...
 
void rotate_back (const JRotation3D &R)
 Rotate back module. More...
 
JPosition3Drotate_back (const JRotation3X &R)
 Rotate back around X-axis. More...
 
JPosition3Drotate_back (const JRotation3Y &R)
 Rotate back around Y-axis. More...
 
JPosition3Drotate_back (const JRotation3Z &R)
 Rotate back around Z-axis. More...
 
void transform (const JRotation3D &R, const JVector3D &pos)
 Transformation of geometry (see method JGEOMETRY3D::JPosition3D::transform(const JRotation3D&, const JVector3D&)). More...
 
void transform (const JTransformation3D &T)
 Transformation of geometry. More...
 
JVector3Dtransform (const JMatrix3D &T)
 Transform. More...
 
JModuleset (const JVector3D &pos)
 Set position. More...
 
JModuleset (const double t0)
 Set time offset. More...
 
JModuleadd (const JVector3D &pos)
 Add position. More...
 
JModuleadd (const double t0)
 Add time offset. More...
 
JModulesub (const JVector3D &pos)
 Subtract position. More...
 
JModulesub (const double t0)
 Subtract time offset. More...
 
JModuleoperator+= (const JVector3D &pos)
 Add position. More...
 
JModuleoperator-= (const JVector3D &pos)
 Subtract position. More...
 
int getID () const
 Get identifier. More...
 
void setID (const int id)
 Set identifier. More...
 
bool less (const JObjectID &object) const
 Less than method. More...
 
bool less (const int id) const
 Less than method. More...
 
bool less (const JModuleLocation &location) const
 Less than method. More...
 
bool more (const int id) const
 More than method. More...
 
const JModuleLocationgetLocation () const
 Get location. More...
 
JModuleLocationgetLocation ()
 Get location. More...
 
void setLocation (const JModuleLocation &location)
 Set location. More...
 
std::string toString () const
 Convert module location to string. More...
 
std::string toString (const std::string &fmt, const std::string target="%") const
 Convert module loation to string. More...
 
int getString () const
 Get string number. More...
 
int getFloor () const
 Get floor number. More...
 
const JPosition3DgetPosition () const
 Get position. More...
 
JPosition3DgetPosition ()
 Get position. More...
 
void setPosition (const JVector3D &pos)
 Set position. More...
 
 operator JAngle3D () const
 Type conversion operator. More...
 
 operator JVersor3D () const
 Type conversion operator. More...
 
void transform_back (const JRotation3D &R, const JVector3D &pos)
 Transform back position. More...
 
double getDot (const JAngle3D &angle) const
 Get dot product. More...
 
double getDot (const JVersor3D &dir) const
 Get dot product. More...
 
double getDot (const JVersor3Z &dir) const
 Get dot product. More...
 
double getDot (const JVector3D &vector) const
 Get dot product. More...
 
 operator JVector2D () const
 Type conversion operator. More...
 
double getX () const
 Get x position. More...
 
double getY () const
 Get y position. More...
 
double getZ () const
 Get z position. More...
 
JVector3Dnegate ()
 Negate vector. More...
 
JVector3Dmul (const double factor)
 Scale vector. More...
 
JVector3Dmul (const JNullType &object)
 Multiply with object. More...
 
JVector3Ddiv (const double factor)
 Scale vector. More...
 
bool equals (const JVector3D &vector) const
 Check equality. More...
 
double getLengthSquared () const
 Get length squared. More...
 
double getLength () const
 Get length. More...
 
double getDistanceSquared (const JVector3D &pos) const
 Get squared of distance to point. More...
 
double getDistance (const JVector3D &pos) const
 Get distance to point. More...
 
JVector3Dcross (const JVector3D &first, const JVector3D &second)
 Get cross product. More...
 

Static Public Member Functions

static const JModulegetInstance ()
 Get reference to unique instance of this class object. More...
 

Public Attributes

double TMaxLocal_ns
 
bool combineL1
 

Protected Member Functions

void setEndIterators ()
 Use std::partition to sort the clusters in order of decreasing multiplicity. More...
 

Protected Attributes

const unsigned int max_multiplicity
 the highest allowed value for the multiplicity More...
 
vector< vector< JCluster >
::iterator
end_iterators
 iterators pointing to the first element whose multiplicity is lower than the index More...
 
int __id
 
int string
 
int floor
 
double __x
 
double __y
 
double __z
 

Detailed Description

Local coincidence cluster builder.

A coincidence cluster is defined as two or more hits on the same DOM within the defined time window.

Given a JDAQSuperframe (for the hits) and the corresponding JModule (for the timing) all the coincidence clusters are extracted and sorted by multiplicity.

Internally, the clusters are stored as a vector of JClusters

Parameters
frameJDAQSuperframe containing the hits
modulemodule corresponding to the JDAQSuperframe
windowtime window used for clustering

Definition at line 47 of file JClusterBuilder.hh.

Member Typedef Documentation

typedef JHitL1 JTRIGGER::JBuildL1< JHitL1 >::value_type
inherited

Definition at line 217 of file JBuildL1.hh.

Constructor & Destructor Documentation

JMONITOR::JClusterBuilder::JClusterBuilder ( const double  window,
const bool  combine 
)
inline

default constructor

Definition at line 52 of file JClusterBuilder.hh.

53  // order using std::partition
54  setEndIterators() ;
55  }
Template specialisation of L1 builder for JHitL1 data type.
Definition: JBuildL1.hh:209
void setEndIterators()
Use std::partition to sort the clusters in order of decreasing multiplicity.
JModule()
Default constructor.
Definition: JModule.hh:57
vector< vector< JCluster >::iterator > end_iterators
iterators pointing to the first element whose multiplicity is lower than the index ...
const unsigned int max_multiplicity
the highest allowed value for the multiplicity
JRange< T, JComparator_t > combine(const JRange< T, JComparator_t > &first, const JRange< T, JComparator_t > &second)
Combine ranges.
Definition: JRange.hh:590
JMONITOR::JClusterBuilder::JClusterBuilder ( const JDAQSuperFrame frame,
const JModule module,
const double  window,
const bool  combine 
)
inline

constructor

Definition at line 58 of file JClusterBuilder.hh.

59  // use the () operator of JBuildL1 to build L1s
60  (*this)(frame,module,back_inserter( *( (vector<JCluster>*)this) ) ) ;
61 
62  // order using std::partition
63  setEndIterators() ;
64  }
Template specialisation of L1 builder for JHitL1 data type.
Definition: JBuildL1.hh:209
void setEndIterators()
Use std::partition to sort the clusters in order of decreasing multiplicity.
JModule()
Default constructor.
Definition: JModule.hh:57
vector< vector< JCluster >::iterator > end_iterators
iterators pointing to the first element whose multiplicity is lower than the index ...
const unsigned int max_multiplicity
the highest allowed value for the multiplicity
JRange< T, JComparator_t > combine(const JRange< T, JComparator_t > &first, const JRange< T, JComparator_t > &second)
Combine ranges.
Definition: JRange.hh:590

Member Function Documentation

void JMONITOR::JClusterBuilder::reset ( const JDAQSuperFrame frame,
const JModule module 
)
inline

This is a way to re-use the allocated memory.

It behaves like the constructor, but new memory does not have to be allocated for vector<JCluster> all the time.

Definition at line 72 of file JClusterBuilder.hh.

72  {
73  static_cast<JModule>(*this) = module ;
74 
75  vector<JCluster>::clear() ; // vector is emptied, but memory stays allocated
76  (*this)(frame,module,back_inserter( *( (vector<JCluster>*)this) ) ) ;
77 
78  setEndIterators() ;
79  }
void setEndIterators()
Use std::partition to sort the clusters in order of decreasing multiplicity.
JModule()
Default constructor.
Definition: JModule.hh:57
vector<JCluster>::const_iterator JMONITOR::JClusterBuilder::begin_m ( unsigned int  multiplicity) const
inline

returns begin iterator for clusters with exactly the given multiplicity

Definition at line 82 of file JClusterBuilder.hh.

82  {
83  // restrict to allowed range
84  multiplicity = max( (unsigned int)0,multiplicity) ;
85  multiplicity = min(max_multiplicity,multiplicity) ;
86  return end_iterators[multiplicity+1] ;
87  }
vector< vector< JCluster >::iterator > end_iterators
iterators pointing to the first element whose multiplicity is lower than the index ...
const unsigned int max_multiplicity
the highest allowed value for the multiplicity
vector<JCluster>::const_iterator JMONITOR::JClusterBuilder::end_m ( unsigned int  multiplicity) const
inline

returns end iterator for clusters with exactly the given multiplicity

Definition at line 90 of file JClusterBuilder.hh.

90  {
91  // restrict to allowed range
92  multiplicity = max( (unsigned int)0,multiplicity) ;
93  multiplicity = min(max_multiplicity,multiplicity) ;
94  return end_iterators[multiplicity] ;
95  }
vector< vector< JCluster >::iterator > end_iterators
iterators pointing to the first element whose multiplicity is lower than the index ...
const unsigned int max_multiplicity
the highest allowed value for the multiplicity
vector<JCluster>::const_iterator JMONITOR::JClusterBuilder::begin_inclusive_m ( unsigned int  multiplicity) const
inline

returns begin iterator for clusters with at least the given multiplicity

Definition at line 98 of file JClusterBuilder.hh.

98  {
100  }
vector< vector< JCluster >::iterator > end_iterators
iterators pointing to the first element whose multiplicity is lower than the index ...
const unsigned int max_multiplicity
the highest allowed value for the multiplicity
vector<JCluster>::const_iterator JMONITOR::JClusterBuilder::end_inclusive_m ( unsigned int  multiplicity) const
inline

returns end iterator for clusters with at least the given multiplicity

Definition at line 103 of file JClusterBuilder.hh.

103  {
104  return end_m(multiplicity) ;
105  }
vector< JCluster >::const_iterator end_m(unsigned int multiplicity) const
returns end iterator for clusters with exactly the given multiplicity
unsigned int JMONITOR::JClusterBuilder::getNclusters ( const unsigned int  multiplicity) const
inline

return the number of clusters with exactly the given multiplicity

Definition at line 108 of file JClusterBuilder.hh.

108  {
109  return distance( begin_m(multiplicity), end_m(multiplicity) ) ;
110  }
vector< JCluster >::const_iterator end_m(unsigned int multiplicity) const
returns end iterator for clusters with exactly the given multiplicity
vector< JCluster >::const_iterator begin_m(unsigned int multiplicity) const
returns begin iterator for clusters with exactly the given multiplicity
unsigned int JMONITOR::JClusterBuilder::getInclusiveNclusters ( const unsigned int  multiplicity) const
inline

return the number of clusters with at least the given multiplicity

Definition at line 113 of file JClusterBuilder.hh.

113  {
114  return distance( begin_inclusive_m(multiplicity), end_inclusive_m(multiplicity) ) ;
115  }
vector< JCluster >::const_iterator end_inclusive_m(unsigned int multiplicity) const
returns end iterator for clusters with at least the given multiplicity
vector< JCluster >::const_iterator begin_inclusive_m(unsigned int multiplicity) const
returns begin iterator for clusters with at least the given multiplicity
void JMONITOR::JClusterBuilder::setEndIterators ( )
inlineprotected

Use std::partition to sort the clusters in order of decreasing multiplicity.

The end_iterators denote the boundaries.

Definition at line 123 of file JClusterBuilder.hh.

123  {
125  for( unsigned int m=max_multiplicity; m>0; --m ) {
126  end_iterators[m] = partition( vector<JCluster>::begin(), vector<JCluster>::end(), MinimalMultiplicityFunctor(m) ) ;
127  }
129  }
vector< vector< JCluster >::iterator > end_iterators
iterators pointing to the first element whose multiplicity is lower than the index ...
const unsigned int max_multiplicity
the highest allowed value for the multiplicity
template<class JElement_t , class JOutput_t >
void JTRIGGER::JBuildL1< JHitL1 >::operator() ( const JSuperFrame2D< JElement_t > &  input,
JOutput_t  out 
) const
inlineinherited

Build hits from calibrated data.

The output data are time sorted.

Parameters
inputinput L0 data
outoutput L1 data

Definition at line 261 of file JBuildL1.hh.

262  {
263  using namespace std;
264 
265  typedef JSuperFrameClone2D<JElement_t> JSuperFrameClone2D_t;
266 
267  vector <JElement_t> buffer;
268  JBuildL1<JElement_t> build(*this);
269 
270  build(JSuperFrame1D<JElement_t>::multiplex(input), back_inserter(buffer));
271 
272  JSuperFrameClone2D_t clone(input);
273 
274  for (typename vector<JElement_t>::const_iterator __p = buffer.begin(); __p != buffer.end(); ++__p) {
275 
276  JHitL1 hit(input.getModuleID());
277 
278  for (typename JSuperFrameClone2D_t::const_iterator i = clone.begin(); i != clone.end(); ++i) {
279 
280  for (typename JSuperFrameClone2D_t::value_type::const_iterator __q = i->fast_forward(*__p); JSuperFrameClone2D_t::getTimeDifference(*__p,*__q) <= TMaxLocal_ns; ++__q) {
281 
282  hit.push_back(JHitL0(i->getPMTIdentifier(),
283  i->getAxis(),
284  JSuperFrameClone2D_t::getJHit(*__q)));
285  }
286  }
287 
288  *out = hit.sort();
289  ++out;
290  }
291  }
int getModuleID() const
Get module identifier.
Data structure for L1 hit.
Definition: JHitL1.hh:34
Clone of JSuperFrame2D.
1-dimensional frame with time calibrated data from one optical module.
Template L1 hit builder.
Definition: JBuildL1.hh:76
Data structure for L0 hit.
Definition: JHitL0.hh:27
const JHitL1 & sort()
Sort L0 hits.
Definition: JHitL1.hh:97
template<class JOutput_t >
void JTRIGGER::JBuildL1< JHitL1 >::operator() ( const JDAQSuperFrame input,
const JModule module,
JOutput_t  out 
) const
inlineinherited

Build hits from uncalibrated DAQ data.

The time calibration is applied. The output data are time sorted.

Parameters
inputDAQ super frame
modulemodule
outoutput L1 data

Definition at line 305 of file JBuildL1.hh.

308  {
309  if (!input.empty()) {
310  (*this)(JSuperFrame2D<JHit>::demultiplex(input, module), out);
311  }
312  }
static JSuperFrame2D< JElement_t > demultiplex
Demultiplexer.
void JTRIGGER::JBuildHelper< JBuildL1< JHitL1 > >::operator() ( const JDAQTimeslice timeslice,
const JModuleRouter router,
JOutput_t  out 
) const
inlineinherited

Build hits from uncalibrated DAQ data.

The time calibration is applied. Note that the output data are not time sorted.

Parameters
timesliceDAQ time slice
routermodule router
outoutput data

Definition at line 57 of file JBuildHelper.hh.

60  {
61  for (JDAQTimeslice::const_iterator i = timeslice.begin(); i != timeslice.end(); ++i) {
62  if (router.hasModule(i->getModuleID())) {
63  static_cast<const JBuild_t&>(*this)(*i, router.getModule(i->getModuleID()), out);
64  }
65  }
66  }
void JTRIGGER::JBuildHelper< JBuildL1< JHitL1 > >::operator() ( const JDAQEvent event,
const JModuleRouter router,
bool  snapshot,
JOutput_t  out 
) const
inlineinherited

Build hits from uncalibrated DAQ data.

The time calibration is applied. Note that the output data are not time sorted.

Parameters
eventDAQ event
routermodule router
snapshotuse shapshot hits (else use triggered hits)
outoutput data

Definition at line 81 of file JBuildHelper.hh.

85  {
86  static_cast<const JBuild_t&>(*this)(JDAQTimeslice(event, snapshot), router, out);
87  }
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
void JTRIGGER::JBuildHelper< JBuildL1< JHitL1 > >::operator() ( const JDAQEvent event,
const JModuleRouter router,
JOutput_t  out 
) const
inlineinherited

Build hits from uncalibrated DAQ data.

The snapshot data of the DAQ event are used. The time calibration is applied. Note that the output data are not time sorted.

Parameters
eventDAQ event
routermodule router
outoutput data

Definition at line 102 of file JBuildHelper.hh.

105  {
106  static_cast<const JBuild_t&>(*this)(JDAQTimeslice(event, true), router, out);
107  }
Structure to store the ToT mean and standard deviation of the hits produced by a nanobeacon in a sour...
static const JModule& JDETECTOR::JModule::getInstance ( )
inlinestaticinherited

Get reference to unique instance of this class object.

This method returns a module with the standard configuration of PMTs.

Returns
reference to this class object

Definition at line 87 of file JModule.hh.

88  {
89  static JModule module;
90 
91  if (module.empty()) {
92 
93  module.push_back(JPMT( 1, JAxis3D(JVector3D(+0.000, +0.000, -0.200), JVersor3D(+0.000, +0.000, -1.000))));
94 
95  module.push_back(JPMT( 2, JAxis3D(JVector3D(+0.000, +0.105, -0.170), JVersor3D(+0.000, +0.527, -0.850))));
96  module.push_back(JPMT( 3, JAxis3D(JVector3D(+0.091, +0.053, -0.170), JVersor3D(+0.456, +0.263, -0.850))));
97  module.push_back(JPMT( 4, JAxis3D(JVector3D(+0.091, -0.053, -0.170), JVersor3D(+0.456, -0.263, -0.850))));
98  module.push_back(JPMT( 5, JAxis3D(JVector3D(+0.000, -0.105, -0.170), JVersor3D(+0.000, -0.527, -0.850))));
99  module.push_back(JPMT( 6, JAxis3D(JVector3D(-0.091, -0.053, -0.170), JVersor3D(-0.456, -0.263, -0.850))));
100  module.push_back(JPMT( 7, JAxis3D(JVector3D(-0.091, +0.053, -0.170), JVersor3D(-0.456, +0.263, -0.850))));
101 
102  module.push_back(JPMT( 8, JAxis3D(JVector3D(+0.083, +0.144, -0.111), JVersor3D(+0.416, +0.720, -0.555))));
103  module.push_back(JPMT( 9, JAxis3D(JVector3D(+0.166, +0.000, -0.111), JVersor3D(+0.832, +0.000, -0.555))));
104  module.push_back(JPMT(10, JAxis3D(JVector3D(+0.083, -0.144, -0.111), JVersor3D(+0.416, -0.720, -0.555))));
105  module.push_back(JPMT(11, JAxis3D(JVector3D(-0.083, -0.144, -0.111), JVersor3D(-0.416, -0.720, -0.555))));
106  module.push_back(JPMT(12, JAxis3D(JVector3D(-0.166, +0.000, -0.111), JVersor3D(-0.832, +0.000, -0.555))));
107  module.push_back(JPMT(13, JAxis3D(JVector3D(-0.083, +0.144, -0.111), JVersor3D(-0.416, +0.720, -0.555))));
108 
109  module.push_back(JPMT(14, JAxis3D(JVector3D(+0.000, +0.191, -0.059), JVersor3D(+0.000, +0.955, -0.295))));
110  module.push_back(JPMT(15, JAxis3D(JVector3D(+0.165, +0.096, -0.059), JVersor3D(+0.827, +0.478, -0.295))));
111  module.push_back(JPMT(16, JAxis3D(JVector3D(+0.165, -0.096, -0.059), JVersor3D(+0.827, -0.478, -0.295))));
112  module.push_back(JPMT(17, JAxis3D(JVector3D(+0.000, -0.191, -0.059), JVersor3D(+0.000, -0.955, -0.295))));
113  module.push_back(JPMT(18, JAxis3D(JVector3D(-0.165, -0.096, -0.059), JVersor3D(-0.827, -0.478, -0.295))));
114  module.push_back(JPMT(19, JAxis3D(JVector3D(-0.165, +0.096, -0.059), JVersor3D(-0.827, +0.478, -0.295))));
115 
116  module.push_back(JPMT(20, JAxis3D(JVector3D(+0.096, +0.165, +0.059), JVersor3D(+0.478, +0.827, +0.295))));
117  module.push_back(JPMT(21, JAxis3D(JVector3D(+0.191, +0.000, +0.059), JVersor3D(+0.955, +0.000, +0.295))));
118  module.push_back(JPMT(22, JAxis3D(JVector3D(+0.096, -0.165, +0.059), JVersor3D(+0.478, -0.827, +0.295))));
119  module.push_back(JPMT(23, JAxis3D(JVector3D(-0.096, -0.165, +0.059), JVersor3D(-0.478, -0.827, +0.295))));
120  module.push_back(JPMT(24, JAxis3D(JVector3D(-0.191, +0.000, +0.059), JVersor3D(-0.955, +0.000, +0.295))));
121  module.push_back(JPMT(25, JAxis3D(JVector3D(-0.096, +0.165, +0.059), JVersor3D(-0.478, +0.827, +0.295))));
122 
123  module.push_back(JPMT(26, JAxis3D(JVector3D(+0.000, +0.166, +0.111), JVersor3D(+0.000, +0.832, +0.555))));
124  module.push_back(JPMT(27, JAxis3D(JVector3D(+0.144, +0.083, +0.111), JVersor3D(+0.720, +0.416, +0.555))));
125  module.push_back(JPMT(28, JAxis3D(JVector3D(+0.144, -0.083, +0.111), JVersor3D(+0.720, -0.416, +0.555))));
126  module.push_back(JPMT(29, JAxis3D(JVector3D(+0.000, -0.166, +0.111), JVersor3D(+0.000, -0.832, +0.555))));
127  module.push_back(JPMT(30, JAxis3D(JVector3D(-0.144, -0.083, +0.111), JVersor3D(-0.720, -0.416, +0.555))));
128  module.push_back(JPMT(31, JAxis3D(JVector3D(-0.144, +0.083, +0.111), JVersor3D(-0.720, +0.416, +0.555))));
129  }
130 
131  return module;
132  }
Data structure for a composite optical module.
Definition: JModule.hh:47
Data structure for PMT geometry and calibration.
Definition: JPMT.hh:52
JVector3D()
Default constructor.
Definition: JVector3D.hh:39
const JPMT& JDETECTOR::JModule::getPMT ( const int  index) const
inlineinherited

Get PMT.

Parameters
indexreadout channel (TDC)
Returns
PMT at given index

Definition at line 141 of file JModule.hh.

142  {
143  return at(index);
144  }
JPMT& JDETECTOR::JModule::getPMT ( const int  index)
inlineinherited

Get PMT.

Parameters
indexreadout channel (TDC)
Returns
PMT at given index

Definition at line 153 of file JModule.hh.

154  {
155  return at(index);
156  }
void JDETECTOR::JModule::compile ( )
inlineinherited

Compile position of module from the positions of the PMTs.

Definition at line 162 of file JModule.hh.

163  {
164  if (!empty()) {
165 
166  JPosition3D pos;
167 
168  for (iterator i = begin(); i != end(); ++i) {
169  pos.add(i->getPosition());
170  }
171 
172  static_cast<JPosition3D&>(*this) = pos.div(size());
173  }
174  }
JPosition3D()
Default constructor.
Definition: JPosition3D.hh:47
void JDETECTOR::JModule::rotate ( const JRotation3D R)
inlineinherited

Rotate module.

Parameters
Rrotation matrix

Definition at line 182 of file JModule.hh.

183  {
184  static_cast<JPosition3D&>(*this).rotate(R);
185 
186  for (iterator i = this->begin(); i != this->end(); ++i) {
187  i->rotate(R);
188  }
189  }
JPosition3D()
Default constructor.
Definition: JPosition3D.hh:47
JPosition3D& JGEOMETRY3D::JPosition3D::rotate ( const JRotation3X R)
inlineinherited

Rotate around X-axis.

Parameters
Rrotation matrix
Returns
this position

Definition at line 213 of file JPosition3D.hh.

214  {
215  R.rotate(__y, __z);
216 
217  return *this;
218  }
void rotate(double &__x, double &__y) const
Rotate.
Definition: JRotation2D.hh:96
JPosition3D& JGEOMETRY3D::JPosition3D::rotate ( const JRotation3Y R)
inlineinherited

Rotate around Y-axis.

Parameters
Rrotation matrix
Returns
this position

Definition at line 241 of file JPosition3D.hh.

242  {
243  R.rotate(__x, __z);
244 
245  return *this;
246  }
void rotate(double &__x, double &__y) const
Rotate.
Definition: JRotation2D.hh:96
JPosition3D& JGEOMETRY3D::JPosition3D::rotate ( const JRotation3Z R)
inlineinherited

Rotate around Z-axis.

Parameters
Rrotation matrix
Returns
this position

Definition at line 269 of file JPosition3D.hh.

270  {
271  R.rotate(__x, __y);
272 
273  return *this;
274  }
void rotate(double &__x, double &__y) const
Rotate.
Definition: JRotation2D.hh:96
JPosition3D& JGEOMETRY3D::JPosition3D::rotate ( const JQuaternion3D Q)
inlineinherited

Rotate.

Parameters
Qquaternion
Returns
this position

Definition at line 297 of file JPosition3D.hh.

298  {
299  JQuaternion3D b(Q);
300  JQuaternion3D a;
301 
302  a.mul(getPosition(), b.conjugate());
303 
304  setPosition(b.mul(Q,a));
305 
306  return *this;
307  }
JQuaternion3D & mul(const double factor)
Scale quaternion.
const JPosition3D & getPosition() const
Get position.
Definition: JPosition3D.hh:129
Data structure for quaternion in three dimensions.
void setPosition(const JVector3D &pos)
Set position.
Definition: JPosition3D.hh:151
void JDETECTOR::JModule::rotate_back ( const JRotation3D R)
inlineinherited

Rotate back module.

Parameters
Rrotation matrix

Definition at line 197 of file JModule.hh.

198  {
199  static_cast<JPosition3D&>(*this).rotate_back(R);
200 
201  for (iterator i = this->begin(); i != this->end(); ++i) {
202  i->rotate_back(R);
203  }
204  }
JPosition3D()
Default constructor.
Definition: JPosition3D.hh:47
JPosition3D& JGEOMETRY3D::JPosition3D::rotate_back ( const JRotation3X R)
inlineinherited

Rotate back around X-axis.

Parameters
Rrotation matrix
Returns
this position

Definition at line 227 of file JPosition3D.hh.

228  {
229  R.rotate_back(__y, __z);
230 
231  return *this;
232  }
void rotate_back(double &__x, double &__y) const
Rotate back.
Definition: JRotation2D.hh:112
JPosition3D& JGEOMETRY3D::JPosition3D::rotate_back ( const JRotation3Y R)
inlineinherited

Rotate back around Y-axis.

Parameters
Rrotation matrix
Returns
this position

Definition at line 255 of file JPosition3D.hh.

256  {
257  R.rotate_back(__x, __z);
258 
259  return *this;
260  }
void rotate_back(double &__x, double &__y) const
Rotate back.
Definition: JRotation2D.hh:112
JPosition3D& JGEOMETRY3D::JPosition3D::rotate_back ( const JRotation3Z R)
inlineinherited

Rotate back around Z-axis.

Parameters
Rrotation matrix
Returns
this position

Definition at line 283 of file JPosition3D.hh.

284  {
285  R.rotate_back(__x, __y);
286 
287  return *this;
288  }
void rotate_back(double &__x, double &__y) const
Rotate back.
Definition: JRotation2D.hh:112
void JDETECTOR::JModule::transform ( const JRotation3D R,
const JVector3D pos 
)
inlineinherited

Transformation of geometry (see method JGEOMETRY3D::JPosition3D::transform(const JRotation3D&, const JVector3D&)).

Parameters
Rrotation matrix
posposition of origin (after rotation)

Definition at line 213 of file JModule.hh.

215  {
216  static_cast<JPosition3D&>(*this).transform(R, pos);
217 
218  for (iterator i = this->begin(); i != this->end(); ++i) {
219  i->transform(R, pos);
220  }
221  }
JPosition3D()
Default constructor.
Definition: JPosition3D.hh:47
void JDETECTOR::JModule::transform ( const JTransformation3D T)
inlineinherited

Transformation of geometry.

Parameters
Ttransformation

Definition at line 229 of file JModule.hh.

230  {
231  static_cast<JPosition3D&>(*this).transform(T.getRotation(), T.getPosition());
232 
233  for (iterator i = this->begin(); i != this->end(); ++i) {
234  i->transform(T);
235  }
236  }
JPosition3D()
Default constructor.
Definition: JPosition3D.hh:47
JVector3D& JGEOMETRY3D::JVector3D::transform ( const JMatrix3D T)
inlineinherited

Transform.

Parameters
Tmatrix
Returns
this vector

Definition at line 204 of file JVector3D.hh.

205  {
206  T.transform(__x, __y, __z);
207 
208  return *this;
209  }
JModule& JDETECTOR::JModule::set ( const JVector3D pos)
inlineinherited

Set position.

Parameters
posposition
Returns
this module

Definition at line 245 of file JModule.hh.

246  {
247  return add(pos - static_cast<JPosition3D&>(*this));
248  }
JModule & add(const JVector3D &pos)
Add position.
Definition: JModule.hh:257
JModule& JDETECTOR::JModule::set ( const double  t0)
inlineinherited

Set time offset.

Parameters
t0time offset [ns]
Returns
this module

Definition at line 293 of file JModule.hh.

294  {
295  for (iterator i = begin(); i != end(); ++i) {
296  i->setT0(t0);
297  }
298 
299  return *this;
300  }
JModule& JDETECTOR::JModule::add ( const JVector3D pos)
inlineinherited

Add position.

Parameters
posposition
Returns
this module

Definition at line 257 of file JModule.hh.

258  {
259  for (iterator i = begin(); i != end(); ++i) {
260  i->add(pos);
261  }
262 
263  JVector3D::add(pos);
264 
265  return *this;
266  }
JVector3D & add(const JVector3D &vector)
Add vector.
Definition: JVector3D.hh:140
JModule& JDETECTOR::JModule::add ( const double  t0)
inlineinherited

Add time offset.

Parameters
t0time offset [ns]
Returns
this module

Definition at line 309 of file JModule.hh.

310  {
311  for (iterator i = begin(); i != end(); ++i) {
312  i->addT0(t0);
313  }
314 
315  return *this;
316  }
JModule& JDETECTOR::JModule::sub ( const JVector3D pos)
inlineinherited

Subtract position.

Parameters
posposition
Returns
this module

Definition at line 275 of file JModule.hh.

276  {
277  for (iterator i = begin(); i != end(); ++i) {
278  i->sub(pos);
279  }
280 
281  JVector3D::sub(pos);
282 
283  return *this;
284  }
JVector3D & sub(const JVector3D &vector)
Subtract vector.
Definition: JVector3D.hh:156
JModule& JDETECTOR::JModule::sub ( const double  t0)
inlineinherited

Subtract time offset.

Parameters
t0time offset [ns]
Returns
this module

Definition at line 325 of file JModule.hh.

326  {
327  for (iterator i = begin(); i != end(); ++i) {
328  i->subT0(t0);
329  }
330 
331  return *this;
332  }
JModule& JDETECTOR::JModule::operator+= ( const JVector3D pos)
inlineinherited

Add position.

Parameters
posposition
Returns
this module

Definition at line 341 of file JModule.hh.

342  {
343  return this->add(pos);
344  }
JModule & add(const JVector3D &pos)
Add position.
Definition: JModule.hh:257
JModule& JDETECTOR::JModule::operator-= ( const JVector3D pos)
inlineinherited

Subtract position.

Parameters
posposition
Returns
this module

Definition at line 353 of file JModule.hh.

354  {
355  return this->sub(pos);
356  }
JModule & sub(const JVector3D &pos)
Subtract position.
Definition: JModule.hh:275
int JLANG::JObjectID::getID ( ) const
inlineinherited

Get identifier.

Returns
identifier

Definition at line 54 of file JObjectID.hh.

55  {
56  return __id;
57  }
void JLANG::JObjectID::setID ( const int  id)
inlineinherited

Set identifier.

Parameters
ididentifier

Definition at line 65 of file JObjectID.hh.

66  {
67  this->__id = id;
68  }
bool JLANG::JObjectID::less ( const JObjectID object) const
inlineinherited

Less than method.

Parameters
objectobject identifier
Returns
true if this identifier less than given identifier; else false

Definition at line 77 of file JObjectID.hh.

78  {
79  return this->getID() < object.getID();
80  }
int getID() const
Get identifier.
Definition: JObjectID.hh:54
bool JLANG::JObjectID::less ( const int  id) const
inlineinherited

Less than method.

Parameters
ididentifier
Returns
true if this identifier less than given identifier; else false

Definition at line 89 of file JObjectID.hh.

90  {
91  return this->getID() < id;
92  }
int getID() const
Get identifier.
Definition: JObjectID.hh:54
bool JDETECTOR::JModuleLocation::less ( const JModuleLocation location) const
inlineinherited

Less than method.

Parameters
locationmodule location
Returns
true if first location before second location; else false

Definition at line 156 of file JModuleLocation.hh.

157  {
158  if (this->getString() == location.getString())
159  return this->getFloor() < location.getFloor();
160  else
161  return this->getString() < location.getString();
162  }
int getFloor() const
Get floor number.
int getString() const
Get string number.
bool JLANG::JObjectID::more ( const int  id) const
inlineinherited

More than method.

Parameters
ididentifier
Returns
true if this identifier greater than given identifier; else false

Definition at line 101 of file JObjectID.hh.

102  {
103  return this->getID() > id;
104  }
int getID() const
Get identifier.
Definition: JObjectID.hh:54
const JModuleLocation& JDETECTOR::JModuleLocation::getLocation ( ) const
inlineinherited

Get location.

Returns
location

Definition at line 68 of file JModuleLocation.hh.

69  {
70  return static_cast<const JModuleLocation&>(*this);
71  }
Logical location of module.
JModuleLocation& JDETECTOR::JModuleLocation::getLocation ( )
inlineinherited

Get location.

Returns
location

Definition at line 79 of file JModuleLocation.hh.

80  {
81  return static_cast<JModuleLocation&>(*this);
82  }
Logical location of module.
void JDETECTOR::JModuleLocation::setLocation ( const JModuleLocation location)
inlineinherited

Set location.

Parameters
locationlocation

Definition at line 90 of file JModuleLocation.hh.

91  {
92  static_cast<JModuleLocation&>(*this) = location;
93  }
Logical location of module.
std::string JDETECTOR::JModuleLocation::toString ( ) const
inlineinherited

Convert module location to string.

Returns
string

Definition at line 101 of file JModuleLocation.hh.

102  {
103  return toString("% %");
104  }
std::string toString() const
Convert module location to string.
std::string JDETECTOR::JModuleLocation::toString ( const std::string &  fmt,
const std::string  target = "%" 
) const
inlineinherited

Convert module loation to string.

The targets target in the format string fmt are consecutively replaced by floor and string.

Parameters
fmtformat
targettarget
Returns
string

Definition at line 117 of file JModuleLocation.hh.

118  {
119  JLANG::JString buffer(fmt);
120 
121  buffer.replace(target, string, 1);
122  buffer.replace(target, floor, 1);
123 
124  return buffer;
125  }
Wrapper class around STL string class.
Definition: JString.hh:28
int JDETECTOR::JModuleLocation::getString ( ) const
inlineinherited

Get string number.

Returns
string number

Definition at line 133 of file JModuleLocation.hh.

134  {
135  return string;
136  }
int JDETECTOR::JModuleLocation::getFloor ( ) const
inlineinherited

Get floor number.

Returns
floor number

Definition at line 144 of file JModuleLocation.hh.

145  {
146  return floor;
147  }
const JPosition3D& JGEOMETRY3D::JPosition3D::getPosition ( ) const
inlineinherited

Get position.

Returns
position

Definition at line 129 of file JPosition3D.hh.

130  {
131  return static_cast<const JPosition3D&>(*this);
132  }
Data structure for position in three dimensions.
Definition: JPosition3D.hh:35
JPosition3D& JGEOMETRY3D::JPosition3D::getPosition ( )
inlineinherited

Get position.

Returns
position

Definition at line 140 of file JPosition3D.hh.

141  {
142  return static_cast<JPosition3D&>(*this);
143  }
Data structure for position in three dimensions.
Definition: JPosition3D.hh:35
void JGEOMETRY3D::JPosition3D::setPosition ( const JVector3D pos)
inlineinherited

Set position.

Parameters
posposition

Definition at line 151 of file JPosition3D.hh.

152  {
153  static_cast<JVector3D&>(*this) = pos;
154  }
Data structure for vector in three dimensions.
Definition: JVector3D.hh:32
JGEOMETRY3D::JPosition3D::operator JAngle3D ( ) const
inlineinherited

Type conversion operator.

Returns
angle

Definition at line 162 of file JPosition3D.hh.

163  {
164  return JAngle3D(getX(), getY(), getZ());
165  }
Data structure for angles in three dimensions.
Definition: JAngle3D.hh:30
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getX() const
Get x position.
Definition: JVector3D.hh:92
double getZ() const
Get z position.
Definition: JVector3D.hh:113
JGEOMETRY3D::JPosition3D::operator JVersor3D ( ) const
inlineinherited

Type conversion operator.

Returns
direction

Definition at line 173 of file JPosition3D.hh.

174  {
175  return JVersor3D(getX(), getY(), getZ());
176  }
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getX() const
Get x position.
Definition: JVector3D.hh:92
Data structure for normalised vector in three dimensions.
Definition: JVersor3D.hh:23
double getZ() const
Get z position.
Definition: JVector3D.hh:113
void JGEOMETRY3D::JPosition3D::transform_back ( const JRotation3D R,
const JVector3D pos 
)
inlineinherited

Transform back position.

The final position is obtained as follows:

  1. offset position with position pos;
  2. rotation of postion according matrix R;
Parameters
Rrotation matrix
posposition of origin (before rotation)

Definition at line 349 of file JPosition3D.hh.

351  {
352  // offset with respect to origin
353 
354  add(pos);
355 
356  // rotate back geometry to system with particle direction along z-axis
357 
358  rotate_back(R);
359  }
JPosition3D & rotate_back(const JRotation3D &R)
Rotate back.
Definition: JPosition3D.hh:199
JVector3D & add(const JVector3D &vector)
Add vector.
Definition: JVector3D.hh:140
double JGEOMETRY3D::JPosition3D::getDot ( const JAngle3D angle) const
inlineinherited

Get dot product.

Parameters
angleangle
Returns
dot product

Definition at line 368 of file JPosition3D.hh.

369  {
370  return
371  getX() * angle.getDX() +
372  getY() * angle.getDY() +
373  getZ() * angle.getDZ();
374  }
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getX() const
Get x position.
Definition: JVector3D.hh:92
double getZ() const
Get z position.
Definition: JVector3D.hh:113
double getDX() const
Get x direction.
Definition: JAngle3D.hh:105
double getDZ() const
Get z direction.
Definition: JAngle3D.hh:127
double getDY() const
Get y direction.
Definition: JAngle3D.hh:116
double JGEOMETRY3D::JPosition3D::getDot ( const JVersor3D dir) const
inlineinherited

Get dot product.

Parameters
dirdirection
Returns
dot product

Definition at line 383 of file JPosition3D.hh.

384  {
385  return
386  getX() * dir.getDX() +
387  getY() * dir.getDY() +
388  getZ() * dir.getDZ();
389  }
double getDY() const
Get y direction.
Definition: JVersor3D.hh:101
double getDX() const
Get x direction.
Definition: JVersor3D.hh:90
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getX() const
Get x position.
Definition: JVector3D.hh:92
double getZ() const
Get z position.
Definition: JVector3D.hh:113
double getDZ() const
Get z direction.
Definition: JVersor3D.hh:112
double JGEOMETRY3D::JPosition3D::getDot ( const JVersor3Z dir) const
inlineinherited

Get dot product.

Parameters
dirdirection
Returns
dot product

Definition at line 398 of file JPosition3D.hh.

399  {
400  return
401  getX() * dir.getDX() +
402  getY() * dir.getDY() +
403  getZ() * dir.getDZ();
404  }
double getDY() const
Get y direction.
Definition: JVersor3Z.hh:155
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getDX() const
Get x direction.
Definition: JVersor3Z.hh:144
double getX() const
Get x position.
Definition: JVector3D.hh:92
double getDZ() const
Get z direction.
Definition: JVersor3Z.hh:166
double getZ() const
Get z position.
Definition: JVector3D.hh:113
double JGEOMETRY3D::JVector3D::getDot ( const JVector3D vector) const
inlineinherited

Get dot product.

Parameters
vectorvector
Returns
dot product

Definition at line 278 of file JVector3D.hh.

279  {
280  return
281  getX() * vector.getX() +
282  getY() * vector.getY() +
283  getZ() * vector.getZ();
284  }
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getX() const
Get x position.
Definition: JVector3D.hh:92
double getZ() const
Get z position.
Definition: JVector3D.hh:113
JGEOMETRY3D::JVector3D::operator JVector2D ( ) const
inlineinherited

Type conversion operator.

Returns
JVector2D

Definition at line 81 of file JVector3D.hh.

82  {
83  return JVector2D(this->getX(), this->getY());
84  }
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getX() const
Get x position.
Definition: JVector3D.hh:92
double JGEOMETRY3D::JVector3D::getX ( ) const
inlineinherited

Get x position.

Returns
x position

Definition at line 92 of file JVector3D.hh.

93  {
94  return __x;
95  }
double JGEOMETRY3D::JVector3D::getY ( ) const
inlineinherited

Get y position.

Returns
y position

Definition at line 102 of file JVector3D.hh.

103  {
104  return __y;
105  }
double JGEOMETRY3D::JVector3D::getZ ( ) const
inlineinherited

Get z position.

Returns
z position

Definition at line 113 of file JVector3D.hh.

114  {
115  return __z;
116  }
JVector3D& JGEOMETRY3D::JVector3D::negate ( )
inlineinherited

Negate vector.

Returns
this vector

Definition at line 124 of file JVector3D.hh.

125  {
126  __x = -__x;
127  __y = -__y;
128  __z = -__z;
129 
130  return *this;
131  }
JVector3D& JGEOMETRY3D::JVector3D::mul ( const double  factor)
inlineinherited

Scale vector.

Parameters
factormultiplication factor
Returns
this vector

Definition at line 172 of file JVector3D.hh.

173  {
174  __x *= factor;
175  __y *= factor;
176  __z *= factor;
177 
178  return *this;
179  }
JVector3D & JMATH::JMath< JVector3D , JNullType >::mul ( const JNullType object)
inlineinherited

Multiply with object.

Parameters
objectobject
Returns
result object

Definition at line 273 of file JMath.hh.

274  {
275  return static_cast<JFirst_t&>(*this) = JCalculator<JFirst_t>::calculator.mul(static_cast<const JFirst_t&>(*this), object);
276  }
Auxiliary class for product evaluation of objects.
Definition: JCalculator.hh:18
JVector3D& JGEOMETRY3D::JVector3D::div ( const double  factor)
inlineinherited

Scale vector.

Parameters
factordivision factor
Returns
this vector

Definition at line 188 of file JVector3D.hh.

189  {
190  __x /= factor;
191  __y /= factor;
192  __z /= factor;
193 
194  return *this;
195  }
bool JGEOMETRY3D::JVector3D::equals ( const JVector3D vector) const
inlineinherited

Check equality.

Parameters
vectorvector
Returns
true if vectors are equal; else false

Definition at line 218 of file JVector3D.hh.

219  {
220  return (getX() == vector.getX() &&
221  getY() == vector.getY() &&
222  getZ() == vector.getZ());
223  }
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getX() const
Get x position.
Definition: JVector3D.hh:92
double getZ() const
Get z position.
Definition: JVector3D.hh:113
double JGEOMETRY3D::JVector3D::getLengthSquared ( ) const
inlineinherited

Get length squared.

Returns
square of length

Definition at line 231 of file JVector3D.hh.

232  {
233  return getX()*getX() + getY()*getY() + getZ()*getZ();
234  }
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getX() const
Get x position.
Definition: JVector3D.hh:92
double getZ() const
Get z position.
Definition: JVector3D.hh:113
double JGEOMETRY3D::JVector3D::getLength ( ) const
inlineinherited

Get length.

Returns
length

Definition at line 242 of file JVector3D.hh.

243  {
244  return sqrt(getLengthSquared());
245  }
double getLengthSquared() const
Get length squared.
Definition: JVector3D.hh:231
double JGEOMETRY3D::JVector3D::getDistanceSquared ( const JVector3D pos) const
inlineinherited

Get squared of distance to point.

Parameters
posposition
Returns
square of distance

Definition at line 254 of file JVector3D.hh.

255  {
256  return JVector3D(pos).sub(*this).getLengthSquared();
257  }
JVector3D()
Default constructor.
Definition: JVector3D.hh:39
double JGEOMETRY3D::JVector3D::getDistance ( const JVector3D pos) const
inlineinherited

Get distance to point.

Parameters
posposition
Returns
distance

Definition at line 266 of file JVector3D.hh.

267  {
268  return sqrt(getDistanceSquared(pos));
269  }
double getDistanceSquared(const JVector3D &pos) const
Get squared of distance to point.
Definition: JVector3D.hh:254
JVector3D& JGEOMETRY3D::JVector3D::cross ( const JVector3D first,
const JVector3D second 
)
inlineinherited

Get cross product.

Note that this vector should not overlap with the first or second vector,

Parameters
firstfirst vector
secondsecond vector
Returns
this vector

Definition at line 295 of file JVector3D.hh.

297  {
298  __x = first .getY() * second.getZ() - second.getY() * first .getZ();
299  __y = second.getX() * first .getZ() - first .getX() * second.getZ();
300  __z = first .getX() * second.getY() - second.getX() * first .getY();
301 
302  return *this;
303  }
double getY() const
Get y position.
Definition: JVector3D.hh:102
double getX() const
Get x position.
Definition: JVector3D.hh:92
double getZ() const
Get z position.
Definition: JVector3D.hh:113

Member Data Documentation

const unsigned int JMONITOR::JClusterBuilder::max_multiplicity
protected

the highest allowed value for the multiplicity

Definition at line 150 of file JClusterBuilder.hh.

vector< vector<JCluster>::iterator > JMONITOR::JClusterBuilder::end_iterators
protected

iterators pointing to the first element whose multiplicity is lower than the index

Definition at line 156 of file JClusterBuilder.hh.

double JTRIGGER::JBuildL1Parameters::TMaxLocal_ns
inherited

Definition at line 65 of file JBuildL1.hh.

bool JTRIGGER::JBuildL1Parameters::combineL1
inherited

Definition at line 66 of file JBuildL1.hh.

int JLANG::JObjectID::__id
protectedinherited

Definition at line 159 of file JObjectID.hh.

int JDETECTOR::JModuleLocation::string
protectedinherited

Definition at line 233 of file JModuleLocation.hh.

int JDETECTOR::JModuleLocation::floor
protectedinherited

Definition at line 234 of file JModuleLocation.hh.

double JGEOMETRY3D::JVector3D::__x
protectedinherited

Definition at line 306 of file JVector3D.hh.

double JGEOMETRY3D::JVector3D::__y
protectedinherited

Definition at line 307 of file JVector3D.hh.

double JGEOMETRY3D::JVector3D::__z
protectedinherited

Definition at line 308 of file JVector3D.hh.


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