FairRoot/PandaRoot
|
#include <CbmPlane.h>
Public Member Functions | |
CbmPlane () | |
CbmPlane (const char *name, Bool_t active) | |
virtual | ~CbmPlane () |
virtual void | Initialize () |
virtual Bool_t | ProcessHits (FairVolume *vol=0) |
virtual void | EndOfEvent () |
virtual void | BeginEvent () |
virtual void | Register () |
virtual TClonesArray * | GetCollection (Int_t iColl) const |
virtual void | Print () const |
virtual void | Reset () |
virtual void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) |
virtual void | ConstructGeometry () |
CbmPlanePoint * | AddHit1 (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss, Double_t charge, Double_t mass, Bool_t preflag, Bool_t postflag, TString nam, Int_t evt) |
CbmPlanePoint * | AddHit2 (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss, Double_t charge, Double_t mass, Bool_t preflag, Bool_t postflag, TString nam, Int_t evt) |
CbmPlanePoint * | AddHit3 (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss, Double_t charge, Double_t mass, Bool_t preflag, Bool_t postflag, TString nam, Int_t evt) |
void | plane () |
Private Member Functions | |
void | ResetParameters () |
Private Attributes | |
Int_t | fTrackID |
Int_t | fVolumeID |
track index More... | |
TLorentzVector | fPosIn |
volume id More... | |
TLorentzVector | fPosOut |
TLorentzVector | fMomIn |
position More... | |
TLorentzVector | fMomOut |
Double32_t | fTime |
momentum More... | |
Double32_t | fLength |
time More... | |
Double32_t | fELoss |
length More... | |
Int_t | fPosIndex |
energy loss More... | |
Int_t | volDetector |
Double_t | fcharge |
MC volume ID of Plane. More... | |
Double_t | fmass |
Bool_t | fpreflag |
Bool_t | fpostflag |
TString | fcurrnam |
TString | fcurrnam2 |
TClonesArray * | fPlane1Collection |
TClonesArray * | fPlane2Collection |
Hit collection. More... | |
TClonesArray * | fPlane3Collection |
Hit collection. More... | |
Int_t | fevent |
Hit collection. More... | |
Definition at line 18 of file CbmPlane.h.
CbmPlane::CbmPlane | ( | ) |
Default constructor
Definition at line 34 of file CbmPlane.cxx.
References fPlane1Collection, fPlane2Collection, fPlane3Collection, fPosIndex, fpostflag, fpreflag, and volDetector.
CbmPlane::CbmPlane | ( | const char * | name, |
Bool_t | active | ||
) |
Standard constructor.
name | detetcor name |
active | sensitivity flag |
Definition at line 51 of file CbmPlane.cxx.
References fevent, fPlane1Collection, fPlane2Collection, fPlane3Collection, fPosIndex, fpostflag, fpreflag, and volDetector.
|
virtual |
CbmPlanePoint * CbmPlane::AddHit1 | ( | Int_t | trackID, |
Int_t | detID, | ||
TVector3 | posIn, | ||
TVector3 | posOut, | ||
TVector3 | momIn, | ||
TVector3 | momOut, | ||
Double_t | time, | ||
Double_t | length, | ||
Double_t | eLoss, | ||
Double_t | charge, | ||
Double_t | mass, | ||
Bool_t | preflag, | ||
Bool_t | postflag, | ||
TString | nam, | ||
Int_t | evt | ||
) |
Definition at line 363 of file CbmPlane.cxx.
References fPlane1Collection, fpostflag, and fpreflag.
Referenced by ProcessHits().
CbmPlanePoint * CbmPlane::AddHit2 | ( | Int_t | trackID, |
Int_t | detID, | ||
TVector3 | posIn, | ||
TVector3 | posOut, | ||
TVector3 | momIn, | ||
TVector3 | momOut, | ||
Double_t | time, | ||
Double_t | length, | ||
Double_t | eLoss, | ||
Double_t | charge, | ||
Double_t | mass, | ||
Bool_t | preflag, | ||
Bool_t | postflag, | ||
TString | nam, | ||
Int_t | evt | ||
) |
Definition at line 375 of file CbmPlane.cxx.
References fPlane2Collection, fpostflag, and fpreflag.
Referenced by ProcessHits().
CbmPlanePoint * CbmPlane::AddHit3 | ( | Int_t | trackID, |
Int_t | detID, | ||
TVector3 | posIn, | ||
TVector3 | posOut, | ||
TVector3 | momIn, | ||
TVector3 | momOut, | ||
Double_t | time, | ||
Double_t | length, | ||
Double_t | eLoss, | ||
Double_t | charge, | ||
Double_t | mass, | ||
Bool_t | preflag, | ||
Bool_t | postflag, | ||
TString | nam, | ||
Int_t | evt | ||
) |
Definition at line 385 of file CbmPlane.cxx.
References fPlane3Collection, fpostflag, and fpreflag.
Referenced by ProcessHits().
|
virtual |
Definition at line 98 of file CbmPlane.cxx.
|
virtual |
Virtual method Construct geometry
Definition at line 324 of file CbmPlane.cxx.
References Bool_t, fRun, CbmGeoPlanePar::GetGeoPassiveNodes(), CbmGeoPlanePar::GetGeoSensitiveNodes(), par, and rtdb.
|
virtual |
Virtual method CopyClones
Copies the hit collection with a given track index offset
cl1 | Origin |
cl2 | Target |
offset | Index offset |
Definition at line 315 of file CbmPlane.cxx.
|
virtual |
|
virtual |
Accessor to the hit collection
Definition at line 284 of file CbmPlane.cxx.
References fPlane1Collection.
|
virtual |
Virtual method Initialize Initialises detector. Stores volume IDs for Plane detector and mirror.
Definition at line 82 of file CbmPlane.cxx.
References CbmGeoPlanePar::GetGeoSensitiveNodes(), Initialize(), par, rtdb, and sim().
void CbmPlane::plane | ( | ) |
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 295 of file CbmPlane.cxx.
Referenced by EndOfEvent().
|
virtual |
Virtual method ProcessHits
Defines the action to be taken when a step is inside the active volume. Creates CbmPlanePoints and CbmPlaneMirrorPoints and adds them to the collections.
vol | Pointer to the active volume |
Definition at line 105 of file CbmPlane.cxx.
References AddHit1(), AddHit2(), AddHit3(), Bool_t, fcharge, fELoss, fevent, fLength, fmass, fMomIn, fMomOut, fPosIn, fPosOut, fpostflag, fpreflag, fTime, fTrackID, fVolumeID, and ResetParameters().
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 274 of file CbmPlane.cxx.
References fPlane1Collection, fPlane2Collection, and fPlane3Collection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 303 of file CbmPlane.cxx.
References fPlane1Collection, fPlane2Collection, fPlane3Collection, and fPosIndex.
Referenced by EndOfEvent().
|
inlineprivate |
|
private |
|
private |
Definition at line 137 of file CbmPlane.h.
|
private |
Definition at line 138 of file CbmPlane.h.
|
private |
length
Definition at line 130 of file CbmPlane.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Hit collection.
Definition at line 144 of file CbmPlane.h.
Referenced by CbmPlane(), EndOfEvent(), and ProcessHits().
|
private |
|
private |
Definition at line 134 of file CbmPlane.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
position
Definition at line 127 of file CbmPlane.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 127 of file CbmPlane.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 140 of file CbmPlane.h.
Referenced by AddHit1(), CbmPlane(), GetCollection(), Register(), Reset(), and ~CbmPlane().
|
private |
Hit collection.
Definition at line 141 of file CbmPlane.h.
Referenced by AddHit2(), CbmPlane(), Register(), and Reset().
|
private |
Hit collection.
Definition at line 142 of file CbmPlane.h.
Referenced by AddHit3(), CbmPlane(), Register(), and Reset().
|
private |
volume id
Definition at line 126 of file CbmPlane.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
|
private |
Definition at line 126 of file CbmPlane.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 135 of file CbmPlane.h.
Referenced by AddHit1(), AddHit2(), AddHit3(), CbmPlane(), ProcessHits(), and ResetParameters().
|
private |
Definition at line 135 of file CbmPlane.h.
Referenced by AddHit1(), AddHit2(), AddHit3(), CbmPlane(), ProcessHits(), and ResetParameters().
|
private |
momentum
Definition at line 128 of file CbmPlane.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 124 of file CbmPlane.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
track index
Definition at line 125 of file CbmPlane.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 132 of file CbmPlane.h.
Referenced by CbmPlane().