BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnDch Class Reference

DCH.h. More...

#include <BmnDch.h>

Inheritance diagram for BmnDch:
Collaboration diagram for BmnDch:

Public Member Functions

 BmnDch (const char *name, Bool_t active)
 BmnDch ()
virtual ~BmnDch ()
virtual Bool_t ProcessHits (FairVolume *vol=0)
virtual void EndOfEvent ()
virtual void Register ()
virtual TClonesArray * GetCollection (Int_t iColl) const
virtual void Print (Option_t *) const
virtual void Reset ()
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
virtual void ConstructGeometry ()
virtual void ConstructAsciiGeometry ()
virtual void ConstructGDMLGeometry (TGeoMatrix *)
void ExpandNodeForGdml (TGeoNode *node)
virtual Bool_t CheckIfSensitive (std::string name)
 BmnDch (const char *name, Bool_t active)
 BmnDch ()
virtual ~BmnDch ()
virtual Bool_t ProcessHits (FairVolume *vol=0)
virtual void EndOfEvent ()
virtual void Register ()
virtual TClonesArray * GetCollection (Int_t iColl) const
virtual void Print (Option_t *) const
virtual void Reset ()
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
virtual void ConstructGeometry ()
virtual void ConstructAsciiGeometry ()
virtual void ConstructGDMLGeometry (TGeoMatrix *)
void ExpandNodeForGdml (TGeoNode *node)
virtual Bool_t CheckIfSensitive (std::string name)

Public Attributes

map< TString, TGeoMedium * > fFixedMedia

Private Member Functions

int DistAndPoints (TVector3 p3, TVector3 p4, TVector3 &pa, TVector3 &pb)
 Hit collection.
TVector3 GlobalToLocal (TVector3 &global)
TVector3 LocalToGlobal (TVector3 &local)
BmnDchPoint * AddHit (Int_t trackID, Int_t detID, TVector3 pos, Double_t radius, TVector3 mom, Double_t time, Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t fPdgId, TVector3 trackPos)
void ResetParameters ()
 BmnDch (const BmnDch &)=delete
BmnDch operator= (const BmnDch &)=delete
int DistAndPoints (TVector3 p3, TVector3 p4, TVector3 &pa, TVector3 &pb)
 Hit collection.
TVector3 GlobalToLocal (TVector3 &global)
TVector3 LocalToGlobal (TVector3 &local)
BmnDchPoint * AddHit (Int_t trackID, Int_t detID, TVector3 pos, Double_t radius, TVector3 mom, Double_t time, Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t fPdgId, TVector3 trackPos)
void ResetParameters ()
 BmnDch (const BmnDch &)=delete
BmnDch operator= (const BmnDch &)=delete

Private Attributes

Int_t fTrackID
Int_t fVolumeID
 track index
Int_t fPlaneNumber
 volume id
TVector3 fPos
 plane number
TVector3 fPosLocal
 position
TLorentzVector fMom
 position local to gas chamber
Double32_t fTime
 momentum
Double32_t fLength
 time
Double32_t fELoss
 length
Int_t fIsPrimary
 energy loss
Double_t fCharge
 is track primary?
Double_t fRadius
 track charge
Int_t fPdgId
 hit radius
Int_t fwheel
 pdg id of particle
TVector3 fPosIn
TVector3 fPosOut
 entry position in global frame
TVector3 fPosInTmp
 exit position in global frame
Int_t fTrackIDTmp
 entry position in global frame
Int_t fwheelTmp
 track index
Int_t fPosIndex
TClonesArray * fPointCollection

Detailed Description

Defines the active detector DCH. Constructs the geometry and registers MCPoints.

Definition at line 24 of file BmnDch.h.

Constructor & Destructor Documentation

◆ BmnDch() [1/6]

BmnDch::BmnDch ( const char * name,
Bool_t active )

Definition at line 41 of file BmnDch.cxx.

References fPointCollection, fPosIndex, and ResetParameters().

Referenced by BmnDch(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BmnDch() [2/6]

BmnDch::BmnDch ( )

Definition at line 31 of file BmnDch.cxx.

References fPointCollection, fPosIndex, and ResetParameters().

Here is the call graph for this function:

◆ ~BmnDch() [1/2]

BmnDch::~BmnDch ( )
virtual

Definition at line 51 of file BmnDch.cxx.

References fPointCollection.

◆ BmnDch() [3/6]

BmnDch::BmnDch ( const BmnDch & )
privatedelete

References BmnDch().

Here is the call graph for this function:

◆ BmnDch() [4/6]

BmnDch::BmnDch ( const char * name,
Bool_t active )

◆ BmnDch() [5/6]

BmnDch::BmnDch ( )

◆ ~BmnDch() [2/2]

virtual BmnDch::~BmnDch ( )
virtual

◆ BmnDch() [6/6]

BmnDch::BmnDch ( const BmnDch & )
privatedelete

References BmnDch().

Here is the call graph for this function:

Member Function Documentation

◆ AddHit() [1/2]

BmnDchPoint * BmnDch::AddHit ( Int_t trackID,
Int_t detID,
TVector3 pos,
Double_t radius,
TVector3 mom,
Double_t time,
Double_t length,
Double_t eLoss,
Int_t isPrimary,
Double_t charge,
Int_t fPdgId,
TVector3 trackPos )
private

Definition at line 546 of file BmnDch.cxx.

References fPointCollection, and TObjArray::GetEntriesFast().

Referenced by ProcessHits().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddHit() [2/2]

BmnDchPoint * BmnDch::AddHit ( Int_t trackID,
Int_t detID,
TVector3 pos,
Double_t radius,
TVector3 mom,
Double_t time,
Double_t length,
Double_t eLoss,
Int_t isPrimary,
Double_t charge,
Int_t fPdgId,
TVector3 trackPos )
private

References fPdgId.

◆ CheckIfSensitive() [1/2]

Bool_t BmnDch::CheckIfSensitive ( std::string name)
virtual

Definition at line 531 of file BmnDch.cxx.

References TString::Contains().

Here is the call graph for this function:

◆ CheckIfSensitive() [2/2]

virtual Bool_t BmnDch::CheckIfSensitive ( std::string name)
virtual

◆ ConstructAsciiGeometry() [1/2]

void BmnDch::ConstructAsciiGeometry ( )
virtual

Definition at line 242 of file BmnDch.cxx.

References TObjArray::AddLast(), BmnDchGeoPar::GetGeoPassiveNodes(), BmnDchGeoPar::GetGeoSensitiveNodes(), and TListIter::Next().

Referenced by ConstructGeometry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructAsciiGeometry() [2/2]

virtual void BmnDch::ConstructAsciiGeometry ( )
virtual

◆ ConstructGDMLGeometry() [1/2]

void BmnDch::ConstructGDMLGeometry ( TGeoMatrix * )
virtual

Definition at line 380 of file BmnDch.cxx.

References ExpandNodeForGdml(), TGDMLParse::GDMLReadFile(), TGeoMedium::GetId(), TNamed::GetName(), and m.

Referenced by ConstructGeometry().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructGDMLGeometry() [2/2]

virtual void BmnDch::ConstructGDMLGeometry ( TGeoMatrix * )
virtual

◆ ConstructGeometry() [1/2]

void BmnDch::ConstructGeometry ( )
virtual

Definition at line 223 of file BmnDch.cxx.

References ConstructAsciiGeometry(), ConstructGDMLGeometry(), TString::Data(), and TString::EndsWith().

Here is the call graph for this function:

◆ ConstructGeometry() [2/2]

virtual void BmnDch::ConstructGeometry ( )
virtual

◆ CopyClones() [1/2]

void BmnDch::CopyClones ( TClonesArray * cl1,
TClonesArray * cl2,
Int_t offset )
virtual

Definition at line 204 of file BmnDch.cxx.

References TObjArray::At(), fPosIndex, TObjArray::GetEntriesFast(), and i.

Here is the call graph for this function:

◆ CopyClones() [2/2]

virtual void BmnDch::CopyClones ( TClonesArray * cl1,
TClonesArray * cl2,
Int_t offset )
virtual

◆ DistAndPoints() [1/2]

int BmnDch::DistAndPoints ( TVector3 p3,
TVector3 p4,
TVector3 & pa,
TVector3 & pb )
private

Definition at line 60 of file BmnDch.cxx.

Referenced by ProcessHits().

Here is the caller graph for this function:

◆ DistAndPoints() [2/2]

int BmnDch::DistAndPoints ( TVector3 p3,
TVector3 p4,
TVector3 & pa,
TVector3 & pb )
private

◆ EndOfEvent() [1/2]

void BmnDch::EndOfEvent ( )
virtual

Definition at line 163 of file BmnDch.cxx.

References fPointCollection, fPosIndex, and Print().

Here is the call graph for this function:

◆ EndOfEvent() [2/2]

virtual void BmnDch::EndOfEvent ( )
virtual

◆ ExpandNodeForGdml() [1/2]

void BmnDch::ExpandNodeForGdml ( TGeoNode * node)

This should not happen. This means that somebody uses material in GDML that is not in the media.geo file. Most probably this is the sign to the user to check materials' names in the CATIA model.

Recursevly go down the tree of nodes

Definition at line 421 of file BmnDch.cxx.

References TObjArray::At(), ExpandNodeForGdml(), fFixedMedia, TObjArray::GetEntriesFast(), TGeoMedium::GetId(), TGeoMaterial::GetIndex(), TGeoMedium::GetMaterial(), TGeoVolume::GetMaterial(), TGeoVolume::GetMedium(), TNamed::GetName(), TGeoVolume::GetNdaughters(), TGeoVolume::GetNodes(), TGeoNode::GetVolume(), i, TGeoVolume::IsAssembly(), m, and TGeoVolume::SetMedium().

Referenced by ConstructGDMLGeometry(), and ExpandNodeForGdml().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExpandNodeForGdml() [2/2]

void BmnDch::ExpandNodeForGdml ( TGeoNode * node)

References fFixedMedia.

◆ GetCollection() [1/2]

TClonesArray * BmnDch::GetCollection ( Int_t iColl) const
virtual

Definition at line 178 of file BmnDch.cxx.

References fPointCollection.

◆ GetCollection() [2/2]

virtual TClonesArray * BmnDch::GetCollection ( Int_t iColl) const
virtual

◆ GlobalToLocal() [1/2]

TVector3 BmnDch::GlobalToLocal ( TVector3 & global)
private

Definition at line 70 of file BmnDch.cxx.

References TVector3::GetXYZ().

Here is the call graph for this function:

◆ GlobalToLocal() [2/2]

TVector3 BmnDch::GlobalToLocal ( TVector3 & global)
private

◆ LocalToGlobal() [1/2]

TVector3 BmnDch::LocalToGlobal ( TVector3 & local)
private

Definition at line 81 of file BmnDch.cxx.

References TVector3::GetXYZ().

Referenced by ProcessHits().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LocalToGlobal() [2/2]

TVector3 BmnDch::LocalToGlobal ( TVector3 & local)
private

◆ operator=() [1/2]

BmnDch BmnDch::operator= ( const BmnDch & )
privatedelete

References BmnDch().

Here is the call graph for this function:

◆ operator=() [2/2]

BmnDch BmnDch::operator= ( const BmnDch & )
privatedelete

References BmnDch().

Here is the call graph for this function:

◆ Print() [1/2]

void BmnDch::Print ( Option_t * ) const
virtual

Definition at line 186 of file BmnDch.cxx.

References fPointCollection, and i.

Referenced by EndOfEvent().

Here is the caller graph for this function:

◆ Print() [2/2]

virtual void BmnDch::Print ( Option_t * ) const
virtual

◆ ProcessHits() [1/2]

Bool_t BmnDch::ProcessHits ( FairVolume * vol = 0)
virtual

◆ ProcessHits() [2/2]

virtual Bool_t BmnDch::ProcessHits ( FairVolume * vol = 0)
virtual

◆ Register() [1/2]

void BmnDch::Register ( )
virtual

Definition at line 172 of file BmnDch.cxx.

References fPointCollection.

◆ Register() [2/2]

virtual void BmnDch::Register ( )
virtual

◆ Reset() [1/2]

void BmnDch::Reset ( )
virtual

Definition at line 197 of file BmnDch.cxx.

References fPointCollection, and ResetParameters().

Here is the call graph for this function:

◆ Reset() [2/2]

virtual void BmnDch::Reset ( )
virtual

◆ ResetParameters() [1/2]

void BmnDch::ResetParameters ( )
inlineprivate

Definition at line 133 of file BmnDch.h.

References fELoss, fLength, fMom, fPos, fPosIndex, fPosInTmp, fTime, fTrackID, fTrackIDTmp, fVolumeID, fwheel, and fwheelTmp.

Referenced by BmnDch(), BmnDch(), ProcessHits(), and Reset().

Here is the caller graph for this function:

◆ ResetParameters() [2/2]

void BmnDch::ResetParameters ( )
private

Member Data Documentation

◆ fCharge

Double_t BmnDch::fCharge
private

Definition at line 92 of file BmnDch.h.

Referenced by CheckIfSensitive(), and ProcessHits().

◆ fELoss

Double32_t BmnDch::fELoss
private

Definition at line 90 of file BmnDch.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fFixedMedia

map< TString, TGeoMedium * > BmnDch::fFixedMedia

Definition at line 67 of file BmnDch.h.

Referenced by ExpandNodeForGdml().

◆ fIsPrimary

Int_t BmnDch::fIsPrimary
private

Definition at line 91 of file BmnDch.h.

Referenced by CheckIfSensitive(), and ProcessHits().

◆ fLength

Double32_t BmnDch::fLength
private

Definition at line 89 of file BmnDch.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fMom

TLorentzVector BmnDch::fMom
private

Definition at line 87 of file BmnDch.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fPdgId

Int_t BmnDch::fPdgId
private

Definition at line 94 of file BmnDch.h.

Referenced by AddHit(), CheckIfSensitive(), and ProcessHits().

◆ fPlaneNumber

Int_t BmnDch::fPlaneNumber
private

Definition at line 84 of file BmnDch.h.

Referenced by CheckIfSensitive(), and ProcessHits().

◆ fPointCollection

TClonesArray * BmnDch::fPointCollection
private

◆ fPos

TVector3 BmnDch::fPos
private

Definition at line 85 of file BmnDch.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fPosIn

TVector3 BmnDch::fPosIn
private

Definition at line 96 of file BmnDch.h.

Referenced by CheckIfSensitive(), and ProcessHits().

◆ fPosIndex

Int_t BmnDch::fPosIndex
private

Definition at line 103 of file BmnDch.h.

Referenced by BmnDch(), BmnDch(), CheckIfSensitive(), CopyClones(), EndOfEvent(), and ResetParameters().

◆ fPosInTmp

TVector3 BmnDch::fPosInTmp
private

Definition at line 99 of file BmnDch.h.

Referenced by CheckIfSensitive(), and ResetParameters().

◆ fPosLocal

TVector3 BmnDch::fPosLocal
private

Definition at line 86 of file BmnDch.h.

Referenced by CheckIfSensitive().

◆ fPosOut

TVector3 BmnDch::fPosOut
private

Definition at line 97 of file BmnDch.h.

Referenced by CheckIfSensitive(), and ProcessHits().

◆ fRadius

Double_t BmnDch::fRadius
private

Definition at line 93 of file BmnDch.h.

Referenced by CheckIfSensitive().

◆ fTime

Double32_t BmnDch::fTime
private

Definition at line 88 of file BmnDch.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fTrackID

Int_t BmnDch::fTrackID
private

Definition at line 82 of file BmnDch.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fTrackIDTmp

Int_t BmnDch::fTrackIDTmp
private

Definition at line 100 of file BmnDch.h.

Referenced by CheckIfSensitive(), and ResetParameters().

◆ fVolumeID

Int_t BmnDch::fVolumeID
private

Definition at line 83 of file BmnDch.h.

Referenced by CheckIfSensitive(), ProcessHits(), and ResetParameters().

◆ fwheel

Int_t BmnDch::fwheel
private

Definition at line 95 of file BmnDch.h.

Referenced by CheckIfSensitive(), and ResetParameters().

◆ fwheelTmp

Int_t BmnDch::fwheelTmp
private

Definition at line 101 of file BmnDch.h.

Referenced by CheckIfSensitive(), and ResetParameters().


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