CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MaterialEffectsSimulator.cc
Go to the documentation of this file.
1 
3 
4 #include <list>
5 
6 using std::list;
7 using std::pair;
8 
10  double density, double radLen) :
11  A(A), Z(Z), density(density), radLen(radLen)
12 {
13  _theUpdatedState.clear();
14 }
15 
17  // Don't delete the objects contained in the list
18  _theUpdatedState.clear();
19 }
20 
22  double radlen,
24 {
25 
26  _theUpdatedState.clear();
28 
29  radLengths = radlen;
30  if ( radLengths > 0. ) compute(Particle, random);
31 
32 }
33 
34 XYZVector
36 
37  double x = fabs(aVector.X());
38  double y = fabs(aVector.Y());
39  double z = fabs(aVector.Z());
40 
41  if ( x < y )
42  return x < z ?
43  XYZVector(0.,aVector.Z(),-aVector.Y()) :
44  XYZVector(aVector.Y(),-aVector.X(),0.);
45  else
46  return y < z ?
47  XYZVector(-aVector.Z(),0.,aVector.X()) :
48  XYZVector(aVector.Y(),-aVector.X(),0.);
49 
50 }
51 
const double Z[kNumberCalorimeter]
virtual void compute(ParticlePropagator &Particle, RandomEngineAndDistribution const *)=0
Overloaded in all material effects updtators.
XYZVector orthogonal(const XYZVector &) const
A vector orthogonal to another one (because it&#39;s not in XYZTLorentzVector)
void updateState(ParticlePropagator &myTrack, double radlen, RandomEngineAndDistribution const *)
Compute the material effect (calls the sub class)
TRandom random
Definition: MVATrainer.cc:138
math::XYZVector XYZVector
MaterialEffectsSimulator(double A=28.0855, double Z=14.0000, double density=2.329, double radLen=9.360)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
std::vector< RawParticle > _theUpdatedState
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run