HighLAND
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
AnaTrueParticleB Class Reference

Representation of a true Monte Carlo trajectory/particle. More...

#include <BaseDataClasses.hxx>

Inheritance diagram for AnaTrueParticleB:
AnaTrueObjectC AnaTrueParticle AnaTrueParticleIO

Public Member Functions

virtual AnaTrueParticleBClone ()
 Clone this object.
 
void Print () const
 Dump the object to screen.
 
- Public Member Functions inherited from AnaTrueObjectC
void Print () const
 Dump the object to screen.
 

Public Attributes

Int_t PDG
 The PDG code of this particle.
 
Int_t ParentID
 The ID of this particle's immediate parent, or 0 if there is no parent.
 
Int_t ParentPDG
 The PDG code of this particle's immediate parent, or 0 if there is no parent.
 
Int_t GParentPDG
 The PDG code of this particle's grandparent, or 0 if there is no grandparent.
 
Float_t Position [4]
 The initial position of the true particle.
 
Float_t PositionEnd [4]
 The end position of the true particle.
 
Float_t Direction [3]
 The initial direction of the true particle.
 
Float_t Momentum
 The initial momentum of the true particle.
 
Float_t Charge
 The true charge of the particle.
 
Int_t VertexID
 The TruthVertexID of the AnaTrueVertexB of the interaction that created this AnaTrueParticleB.
 
AnaTrueVertexBTrueVertex
 Pointer to the AnaTrueVertexB of the interaction that created this AnaTrueParticleB.
 
AnaDetCrossingB ** DetCrossings
 
int nDetCrossings
 The number of DetCrossing objects.
 
std::vector< AnaDetCrossingB * > DetCrossingsVect
 A copy of DetCrossings but using an std::vector, which can be saved into a tree.
 
- Public Attributes inherited from AnaTrueObjectC
Int_t ID
 The ID of the trueObj, which corresponds to the ID of the TTruthParticle that created it.
 

Protected Member Functions

 AnaTrueParticleB (const AnaTrueParticleB &truePart)
 Copy constructor is protected, as Clone() should be used to copy this object. More...
 
- Protected Member Functions inherited from AnaTrueObjectC
 AnaTrueObjectC (const AnaTrueObjectC &trueObj)
 Copy constructor is protected, as Clone() should be used to copy this object.
 

Detailed Description

Representation of a true Monte Carlo trajectory/particle.

Definition at line 147 of file BaseDataClasses.hxx.

Constructor & Destructor Documentation

§ AnaTrueParticleB()

AnaTrueParticleB::AnaTrueParticleB ( const AnaTrueParticleB truePart)
protected

Copy constructor is protected, as Clone() should be used to copy this object.

store for each subdetector if the true truePart enter the active volume of the subdetector i what is the entrance position of the subdetector i " " " exit " "

Definition at line 497 of file BaseDataClasses.cxx.

497  :AnaTrueObjectC(truePart){
498 //********************************************************************
499 
500  PDG = truePart.PDG;
501  ParentID = truePart.ParentID;
502  ParentPDG = truePart.ParentPDG;
503  GParentPDG = truePart.GParentPDG;
504 
505  anaUtils::CopyArray(truePart.Position, Position, 4);
506  anaUtils::CopyArray(truePart.PositionEnd, PositionEnd, 4);
507  anaUtils::CopyArray(truePart.Direction, Direction, 3);
508 
509  Momentum = truePart.Momentum;
510  Charge = truePart.Charge;
511  VertexID = truePart.VertexID;
512  TrueVertex = truePart.TrueVertex;
513 
514  /// store for each subdetector
515  /// if the true truePart enter the active volume of the subdetector i
516  /// what is the entrance position of the subdetector i
517  /// " " " exit " "
518 
519  anaUtils::CreateArray(DetCrossings, truePart.nDetCrossings);
520  for (Int_t i=0;i<truePart.nDetCrossings;i++){
521  DetCrossings[i] = truePart.DetCrossings[i]->Clone();
522  }
523  nDetCrossings = truePart.nDetCrossings;
524 
525  DetCrossingsVect.clear();
526 }
AnaTrueVertexB * TrueVertex
Pointer to the AnaTrueVertexB of the interaction that created this AnaTrueParticleB.
int nDetCrossings
The number of DetCrossing objects.
Int_t GParentPDG
The PDG code of this particle&#39;s grandparent, or 0 if there is no grandparent.
Float_t Momentum
The initial momentum of the true particle.
virtual AnaDetCrossingB * Clone()
Clone this object.
Int_t VertexID
The TruthVertexID of the AnaTrueVertexB of the interaction that created this AnaTrueParticleB.
AnaDetCrossingB ** DetCrossings
Int_t PDG
The PDG code of this particle.
Int_t ParentPDG
The PDG code of this particle&#39;s immediate parent, or 0 if there is no parent.
std::vector< AnaDetCrossingB * > DetCrossingsVect
A copy of DetCrossings but using an std::vector, which can be saved into a tree.
Int_t ParentID
The ID of this particle&#39;s immediate parent, or 0 if there is no parent.
Float_t PositionEnd[4]
The end position of the true particle.
Float_t Position[4]
The initial position of the true particle.
Float_t Charge
The true charge of the particle.
Float_t Direction[3]
The initial direction of the true particle.

Member Data Documentation

§ DetCrossings

AnaDetCrossingB** AnaTrueParticleB::DetCrossings

Vector of detector crossings. These are in the order in which the detectors were crossed.

Definition at line 203 of file BaseDataClasses.hxx.


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