HighLAND
Public Member Functions | List of all members
AnaTrueParticleIO Class Reference

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

#include <DataClassesIO.hxx>

Inheritance diagram for AnaTrueParticleIO:
AnaTrueParticle AnaTrueParticleB AnaTrueObjectC

Public Member Functions

 AnaTrueParticleIO (const AnaTrueParticle &)
 A constructor from the corresponding base class. More...
 
virtual void Define (OutputManager &man, const std::string &counter, const std::string &prefix="") const
 
virtual void Write (OutputManager &man, const Int_t trueVertexIndex, const std::string &prefix="") const
 
- Public Member Functions inherited from AnaTrueParticle
virtual AnaTrueParticleClone ()
 Clone this object.
 
void Print () const
 Dump the object to screen.
 
- Public Member Functions inherited from AnaTrueParticleB
void Print () const
 Dump the object to screen.
 
- Public Member Functions inherited from AnaTrueObjectC
void Print () const
 Dump the object to screen.
 

Additional Inherited Members

- Public Attributes inherited from AnaTrueParticle
Int_t PrimaryID
 
Float_t Purity
 The purity with which this particle was matched to a reconstructed object.
 
Int_t Bunch
 
Int_t VertexIndex
 
std::vector< AnaParticleB * > ReconParticles
 Vector of pointers to AnaParticle's associated with this true particle.
 
bool IsTruePrimaryPi0DecayPhoton
 Is this a true primary pi0 decay photon or the child of one?
 
bool IsTruePrimaryPi0DecayPhotonChild
 
- Public Attributes inherited from AnaTrueParticleB
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 inherited from AnaTrueParticle
 AnaTrueParticle (const AnaTrueParticle &track)
 Copy constructor is protected, as Clone() should be used to copy this object.
 
- Protected Member Functions inherited from AnaTrueParticleB
 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 59 of file DataClassesIO.hxx.

Constructor & Destructor Documentation

§ AnaTrueParticleIO()

AnaTrueParticleIO::AnaTrueParticleIO ( const AnaTrueParticle particle)

A constructor from the corresponding base class.

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 882 of file DataClassesIO.cxx.

882  {
883 //********************************************************************
884  // AnaTrueObjectC
885  ID = particle.ID;
886 
887  // AnaTrueParticleB
888  PDG = particle.PDG;
889  ParentID = particle.ParentID;
890  ParentPDG = particle.ParentPDG;
891  GParentPDG = particle.GParentPDG;
892 
893  anaUtils::CopyArray(particle.Position, Position, 4);
894  anaUtils::CopyArray(particle.PositionEnd, PositionEnd, 4);
895  anaUtils::CopyArray(particle.Direction, Direction, 3);
896 
897  Momentum = particle.Momentum;
898  Charge = particle.Charge;
899  VertexID = particle.VertexID;
900  TrueVertex = particle.TrueVertex;
901 
902  /// store for each subdetector
903  /// if the true truePart enter the active volume of the subdetector i
904  /// what is the entrance position of the subdetector i
905  /// " " " exit " "
906 
907  anaUtils::CreateArray(DetCrossings, particle.nDetCrossings);
908  for (Int_t i = 0; i < particle.nDetCrossings; i++){
909  DetCrossings[i] = new AnaDetCrossingIO(*particle.DetCrossings[i]);
910  }
911  nDetCrossings = particle.nDetCrossings;
912 
913  DetCrossingsVect.clear();
914 
915 
916 
917  // AnaTrueTrack
918  PrimaryID = particle.PrimaryID;
919  Purity = particle.Purity;
920  Bunch = particle.Bunch;
921  VertexIndex = particle.VertexIndex;
922 
924  IsTruePrimaryPi0DecayPhotonChild = particle.IsTruePrimaryPi0DecayPhotonChild;
925 
926  ReconParticles.clear();
927 
928  // The vector of "NReconTracks" should be filled with NULL to at least keep the size
929  // this is stored in the flat-trees
930  ReconParticles = std::vector<AnaParticleB*>(particle.ReconParticles.size(), NULL);
931 }
AnaTrueVertexB * TrueVertex
Pointer to the AnaTrueVertexB of the interaction that created this AnaTrueParticleB.
int nDetCrossings
The number of DetCrossing objects.
bool IsTruePrimaryPi0DecayPhoton
Is this a true primary pi0 decay photon or the child of one?
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.
std::vector< AnaParticleB * > ReconParticles
Vector of pointers to AnaParticle&#39;s associated with this true particle.
Int_t VertexID
The TruthVertexID of the AnaTrueVertexB of the interaction that created this AnaTrueParticleB.
Int_t ID
The ID of the trueObj, which corresponds to the ID of the TTruthParticle that created it...
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.
Representation of a detector crossing info for a trajectory/track.
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 Purity
The purity with which this particle was matched to a reconstructed object.
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.

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