14#include "FairDetector.h"
15#include "TClonesArray.h"
17#include "TLorentzVector.h"
18#include "FairDetector.h"
21#include "TVirtualMC.h"
25class BmnBC :
public FairDetector
36 BmnBC(
const char* name, Bool_t active);
78 virtual void Print(Option_t*)
const;
93 virtual void CopyClones(TClonesArray* cl1, TClonesArray* cl2, Int_t offset);
102 TVector3 posIn, TVector3 posOut,
103 TVector3 momIn, TVector3 momOut,
104 Double_t tof, Double_t length, Double_t eLoss, Int_t fStat,
105 Bool_t isPrimary, Double_t charge, Int_t pdgId, Double_t lightYield,
106 Double_t timeIn, Double_t timeOut, Double_t lengthtrack);
126 TClonesArray* fBCCollection;
129 Double32_t fLengthtrack;
133 void ResetParameters();
142inline void BmnBC::ResetParameters()
144 fTrackID = fVolumeID = 0;
145 fPosIn.SetXYZ(0.0, 0.0, 0.0);
146 fPosOut.SetXYZ(0.0, 0.0, 0.0);
147 fMomIn.SetXYZ(0.0, 0.0, 0.0);
148 fMomOut.SetXYZ(0.0, 0.0, 0.0);
149 fTime = fLength = fELoss = 0;
150 fTimeIn = fTimeOut = 0;
virtual void CopyClones(TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
virtual Bool_t ProcessHits(FairVolume *vol=0)
virtual void EndOfEvent()
virtual Bool_t CheckIfSensitive(std::string name)
virtual void ConstructGeometry()
virtual TClonesArray * GetCollection(Int_t iColl) const
virtual void Print(Option_t *) const
virtual void BeginEvent()
virtual void ConstructAsciiGeometry()
virtual void Initialize()
BmnBCPoint * AddHit(Int_t trackID, Int_t detID, Int_t copyNo, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Int_t fStat, Bool_t isPrimary, Double_t charge, Int_t pdgId, Double_t lightYield, Double_t timeIn, Double_t timeOut, Double_t lengthtrack)