![]() |
FairShip
|
Thin vacuum planes that record every track entering them. More...
#include <ScoringPlane.h>
Classes | |
| struct | Plane |
| colour of the planes in the event display More... | |
Public Member Functions | |
| void | AddPlane (const char *name, Double_t x, Double_t y, Double_t z, Double_t sizeX, Double_t sizeY, Double_t sizeZ, const std::vector< Int_t > &absPdgCodes={}, Bool_t keepTracks=kTRUE) |
| Bool_t | ProcessHits (FairVolume *=nullptr) override |
| void | ConstructGeometry () override |
| Public Member Functions inherited from SHiP::Detector< PointType > | |
| Detector ()=default | |
| ~Detector () override=default | |
| Detector (const char *Name, Bool_t Active, Int_t detID) | |
| Detector (const char *Name, Bool_t Active) | |
| template<typename... Args> | |
| PointType * | AddHit (Args &&... args) |
| void | Initialize () override |
| void | Reset () override |
| void | EndOfEvent () override |
| void | Register () override |
| TClonesArray * | GetCollection (Int_t iColl) const override |
| void | UpdatePointTrackIndices (const std::vector< Int_t > &indexMap) override |
| Update track indices in point collection after track filtering. | |
| void | SetSpecialPhysicsCuts () override |
| void | FinishPrimary () override |
| void | FinishRun () override |
| void | BeginPrimary () override |
| void | PostTrack () override |
| void | PreTrack () override |
| void | BeginEvent () override |
| void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) override |
| Public Member Functions inherited from ISTLPointContainer | |
| virtual | ~ISTLPointContainer ()=default |
Protected Attributes | |
| Color_t | fLineColor = kGray |
| Protected Attributes inherited from SHiP::Detector< PointType > | |
| Int_t | fEventID |
| Int_t | fTrackID |
| event index | |
| Int_t | fVolumeID |
| track index | |
| TLorentzVector | fPos |
| volume id | |
| TLorentzVector | fMom |
| position at entrance | |
| Double_t | fTime |
| momentum at entrance | |
| Double_t | fLength |
| time | |
| Double_t | fELoss |
| length | |
| std::vector< PointType > * | fDetPoints = nullptr |
| energy loss | |
| TGeoVolume * | fDetector = nullptr |
Private Attributes | |
| std::vector< Plane > | fPlanes |
Thin vacuum planes that record every track entering them.
Shared by CaloScoringPlane and UpstreamTaggerScoringPlane, which differ only in their point type (and so their output branch) and detector ID.
Every track entering a plane produces one point holding the MC-truth position, momentum, time and PDG code, with zero energy loss. No energy deposit is required (the medium is vacuum), so neutral particles are recorded too. Position, momentum and time are those at the end of the track's first step in the plane. A track crossing a plane twice (e.g. back-scattered) gives two points; the sign of Pz tells the direction.
The point detector ID is the copy number of the plane: its index + 1, in the order the planes were added. A plane can be restricted to some species, given by their absolute PDG codes.
A point counts towards keeping its track in MCTrack (ShipStack::AddPoint, MCTracksWithHitsOnly) unless the plane is added with keepTracks = false; then the points of tracks that are not kept for another reason get track ID -2, as for other secondaries below the energy cut.
Definition at line 51 of file ScoringPlane.h.
|
inline |
Adds a plane: the name of its volume, its centre and full sizes (cm), if not empty the absolute PDG codes of the only particles it records, and whether its points keep their tracks in MCTrack
Definition at line 58 of file ScoringPlane.h.
|
inlineoverridevirtual |
Create the detector geometry
Implements SHiP::Detector< PointType >.
Definition at line 113 of file ScoringPlane.h.
|
inlineoverride |
Definition at line 66 of file ScoringPlane.h.
|
protected |
Definition at line 144 of file ScoringPlane.h.
|
private |
Definition at line 154 of file ScoringPlane.h.