23 #ifndef KVD_RECPRC_CNXN
24 #define KVD_RECPRC_CNXN 1
26 #ifndef KVD_NORECPRC_CNXN
27 #define KVD_NORECPRC_CNXN 0
236 #if ROOT_VERSION_CODE >= ROOT_VERSION(3,4,0)
314 if (ELoss > 0)
return ELoss;
316 if (ELoss < 0) ELoss = 0;
337 -1.,
Bool_t transmission = kTRUE);
353 const Char_t* type)
const;
438 return (
s ?
s->GetValue(params) : 0);
446 if (
s)
s->SetValue(val);
461 return (
s ?
s->GetInverseValue(value, input, params) : 0);
828 if (opt[0] ==
'P')
return FiredP(opt + 1);
836 else event.ResetBit(
id);
842 if (!strcmp(opt,
"all"))
return (ok ==
fFiredMask);
871 else event.ResetBit(
id);
877 if (!strcmp(opt,
"all"))
return (ok ==
fFiredMask);
Binary_t< UChar_t > Binary8_t
#define ClassDef(name, id)
GANIL VXI/VME acquisition parameter.
Bool_t Fired(Option_t *what="") const
Base class for all detector calibrations.
Output signal data produced by a detector.
Base class for detector geometry description, interface to energy-loss calculations.
void SetNameOfArray(const TString &n)
KVMaterial * GetAbsorber(const Char_t *name) const
virtual KVDetectorSignal * GetDetectorSignal(const TString &type) const
static KVDetector * MakeDetector(const Char_t *name, Float_t thick)
TString fKVDetectorFiredACQParameterListFormatString
virtual const Char_t * GetArrayName()
TGeoHMatrix * GetActiveLayerMatrix() const
void IncrementIdentifiedParticles(Int_t n=1)
virtual Bool_t IsSimMode() const
virtual Bool_t IsOK() const
Int_t fCalWarning
just a counter so that missing calibrator warning is given only once
void SetMatrix(const TGeoHMatrix *m)
KVPosition fEWPosition
position of entrance window i.e. first volume in detector geometry
Bool_t AddDetectorSignalExpression(const TString &type, const KVString &_expr)
virtual Double_t GetMaxDeltaE(Int_t Z, Int_t A)
virtual void SetSimMode(Bool_t on=kTRUE)
const Char_t * GetMaterialName() const
KVUniqueNameList fParentStrucList
list of geometry structures which directly contain this detector
Int_t GetNumberOfAbsorberLayers() const
void IncrementUnidentifiedParticles(Int_t n=1)
virtual void GetVerticesInOwnFrame(TVector3 *, Double_t, Double_t)
virtual Double_t GetERes(Int_t Z, Int_t A, Double_t Einc)
virtual Double_t GetELostByParticle(KVNucleus *, TVector3 *norm=0)
Double_t ELossActive(Double_t *x, Double_t *par)
TList * GetTelescopesForIdentification()
virtual void AddIDTelescope(TObject *idt)
Add ID telescope to list of telescopes to which detector belongs.
KVList * GetAlignedIDTelescopes()
KVList * fCalibrators
list of associated calibrator objects
KVGeoStrucElement * GetParentStructure(const Char_t *type, const Char_t *name="") const
virtual Short_t GetCalcACQParam(KVACQParam *, Double_t) const
KVGroup * GetGroup() const
void AddDetectorSignal(KVDetectorSignal *ds)
void GetRandomAngles(Double_t &th, Double_t &ph, Option_t *t="isotropic")
Bool_t fDetecting
=kTRUE if detector is "detecting", =kFALSE if not
virtual Double_t GetRange(Int_t Z, Int_t A, Double_t Einc)
virtual void SetEnergyLoss(Double_t e) const
Bool_t ReplaceCalibrator(const Char_t *type, KVCalibrator *cal, const KVNameValueList &opts="")
virtual void SetPedestal(const Char_t *, Float_t)
Set value of pedestal associated to parameter with given name.
KVList * GetHits() const
Return the list of particles hitting this detector in an event.
virtual Double_t GetTotalDeltaE(Int_t Z, Int_t A, Double_t Einc)
virtual TGeoVolume * GetGeoVolume()
virtual Double_t GetEnergy() const
Int_t GetNHits() const
Return the number of particles hitting this detector in an event.
virtual TF1 * GetEResFunction(Int_t Z, Int_t A)
virtual void SetSegment(UShort_t s)
TVector3 GetSurfaceNormal() const
Binary8_t fFiredMask
bitmask used by Fired to determine which parameters to take into account
virtual const Char_t * GetFiredACQParameterListFormatString() const
KVList * GetListOfCalibrators() const
virtual Double_t GetEIncOfMaxDeltaE(Int_t Z, Int_t A)
void RemoveHit(KVNucleus *part)
Double_t GetSinTheta() const
virtual TGraph * DrawPunchThroughEsurAVsZ(Int_t massform=KVNucleus::kBetaMass)
Double_t GetDetectorSignalValue(const TString &type, const KVNameValueList ¶ms="") const
Double_t GetSolidAngle() const
void AddAbsorber(KVMaterial *)
virtual Double_t GetEnergyLoss() const
virtual Double_t GetEResAfterDetector() const
virtual void SetACQParams()
KVList * GetIDTelescopes()
KVList * fIDTelescopes
list of ID telescopes to which detector belongs
void SetShape(TGeoBBox *s)
TVector3 GetRandomPointOnSurface() const
void AddParentStructure(KVGeoStrucElement *elem)
Bool_t IsSingleLayer() const
Double_t GetTheta() const
Double_t fEResforEinc
used by GetIncidentEnergy & GetCorrectedEnergy
KVList * fIDTelAlign
list of ID telescopes made of this detector and all aligned detectors placed in front of it
TGeoHMatrix * GetMatrix() const
virtual Int_t GetIndex() const
virtual Int_t FindZmin(Double_t ELOSS=-1., Char_t mass_formula=-1)
TF1 * fELossF
parametric function dE in active layer vs. incident energy
TList * fAlignedDetectors[2]
stores lists of aligned detectors in both directions
void SetDetectorSignalValue(const TString &type, Double_t val) const
virtual void Clear(Option_t *opt="")
const KVPosition & GetEntranceWindow() const
KVMaterial * GetAbsorber(Int_t i) const
Returns pointer to the i-th absorber in the detector (i=0 first absorber, i=1 second,...
void remove_signal_for_calibrator(KVCalibrator *K)
Binary8_t GetFiredBitmask() const
KVList * fAbsorbers
list of absorbers making up the detector
TVector3 GetVolumeCentre() const
TList * fIDTele4Ident
list of ID telescopes used for particle ID
TF1 * fEResF
parametric function Eres residual energy after all layers of detector
virtual void DeduceACQParameters(KVEvent *, KVNumberList &)
virtual Double_t GetSmallestEmaxValid(Int_t Z, Int_t A)
TVector3 GetActiveLayerSurfaceCentre() const
virtual Float_t GetACQData(const Char_t *) const
Bool_t HasSameStructureAs(const KVDetector *) const
void SetThickness(Double_t thick)
virtual void AddToGeometry()
KVList * fACQParams
list of raw data parameters read from coders
virtual Double_t GetIncidentEnergy(Int_t Z, Int_t A, Double_t delta_e=-1.0, enum SolType type=kEmax)
virtual void ReadDefinitionFromFile(const Char_t *)
Double_t GetTotalThicknessInCM()
Bool_t IsCalibrated() const
void AddACQParam(KVACQParam *)
Add given acquisition parameter to this detector.
void SetDetecting(Bool_t yes=kTRUE)
virtual TF1 * GetELossFunction(Int_t Z, Int_t A)
Double_t GetSurfaceArea(int npoints=100000) const
void SetActiveLayer(KVMaterial *actif)
Bool_t BelongsToUnidentifiedParticle() const
Double_t RangeDet(Double_t *x, Double_t *par)
virtual Bool_t Fired(Option_t *opt="any") const
KVMaterial * GetActiveLayer() const
const Char_t * GetNameOfArray() const
virtual void RemoveCalibrators()
virtual Double_t GetEntranceWindowSurfaceArea()
Return surface area of first layer of detector in cm2.
virtual TGraph * DrawPunchThroughEnergyVsZ(Int_t massform=KVNucleus::kBetaMass)
KVUniqueNameList fDetSignals
list of signals associated with detector
virtual Double_t GetPunchThroughEnergy(Int_t Z, Int_t A)
Int_t fUnidentP
temporary counters, determine state of identified/unidentified particle flags
TF1 * fRangeF
parametric function range of particles in detector
virtual void SetFiredBitmask(KVString &)
virtual void SetEnergy(Double_t e) const
virtual Double_t GetParticleEIncFromERes(KVNucleus *, TVector3 *norm=0)
virtual void SetEResAfterDetector(Double_t e)
virtual Double_t GetCalibratedEnergy() const
KVGeoDetectorNode fNode
positioning information relative to other detectors
void SetActiveLayerMatrix(const TGeoHMatrix *)
UShort_t fSegment
used in particle reconstruction
UShort_t GetSegment() const
virtual Bool_t IsDetecting() const
TVector3 GetSurfaceCentre() const
virtual void Copy(TObject &obj) const
virtual KVACQParam * GetACQParam(const Char_t *) const
Double_t GetInverseDetectorSignalValue(const TString &output, Double_t value, const TString &input, const KVNameValueList ¶ms="") const
void RemoveParentStructure(KVGeoStrucElement *elem)
const KVSeqCollection & GetListOfDetectorSignals() const
virtual Float_t GetPedestal(const Char_t *) const
Access pedestal value associated to parameter with given name.
KVList * fParticles
list of particles hitting detector in an event
virtual TList * GetAlignedDetectors(UInt_t direction=1)
KVGeoDetectorNode * GetNode()
Bool_t HasDetectorSignalValue(const TString &type) const
Double_t GetDistance() const
Bool_t fSimMode
=kTRUE when using to simulate detector response, =kFALSE when analysing data
TString fNameOfArray
name of multidetector array this detector is part of
virtual Bool_t FiredP(Option_t *opt="any") const
Bool_t BelongsToIdentifiedParticle() const
void SetEntranceWindowMatrix(const TGeoHMatrix *)
Set ROOT geometry global matrix transformation to coordinate frame of entrance window.
virtual Double_t GetDeltaE(Int_t Z, Int_t A, Double_t Einc)
Double_t EResDet(Double_t *x, Double_t *par)
TGeoBBox * GetActiveLayerShape() const
KVList * GetListOfAbsorbers() const
virtual Double_t GetDepthInTelescope() const
Double_t fDepthInTelescope
used to store depth of detector in parent telescope
virtual void Reset(Option_t *opt="")
Double_t fGain
gain of amplifier
TVector3 GetActiveLayerVolumeCentre() const
const TVector3 GetCentreOfEntranceWindow() const
KVMaterial * fActiveLayer
The active absorber in the detector.
void AddHit(KVNucleus *part)
KVCalibrator * GetCalibrator(const Char_t *name, const Char_t *type) const
virtual Double_t GetIncidentEnergyFromERes(Int_t Z, Int_t A, Double_t Eres)
Int_t fIdentP
temporary counters, determine state of identified/unidentified particle flags
Double_t GetMisalignmentAngle() const
KVList * GetACQParamList() const
void SetKVDetectorFiredACQParameterListFormatString()
virtual Bool_t IsPresent() const
virtual Double_t GetDeltaEFromERes(Int_t Z, Int_t A, Double_t Eres)
TVector3 GetRandomDirection(Option_t *t="isotropic")
void SetEntranceWindowShape(TGeoBBox *)
Set ROOT geometry shape of entrance window.
Bool_t fPresent
=kTRUE if detector is present, =kFALSE if it has been removed
void ResetAlignedDetectors(UInt_t direction=1)
virtual void DetectParticle(KVNucleus *, TVector3 *norm=0)
void SetActiveLayerShape(TGeoBBox *)
Set ROOT geometry shape of active layer volume.
void SetAnalysed(Bool_t b=kTRUE)
void SetGain(Double_t gain)
TString fFName
dynamically generated full name of detector
virtual void Print(Option_t *option="") const
Bool_t fSingleLayer
=kTRUE if detector has a single absorber layer
virtual Double_t GetLinearRange(Int_t Z, Int_t A, Double_t Einc)
virtual TF1 * GetRangeFunction(Int_t Z, Int_t A)
virtual Double_t GetCorrectedEnergy(KVNucleus *, Double_t e=-1., Bool_t transmission=kTRUE)
void init()
default initialisations
Bool_t AddCalibrator(KVCalibrator *cal, const KVNameValueList &opts="")
Double_t GetCosTheta() const
Double_t fTotThickness
used to store value calculated by GetTotalThicknessInCM
void SetPresent(Bool_t yes=kTRUE)
TGeoBBox * GetShape() const
virtual void SetMaterial(const Char_t *type)
Base class container for multi-particle events.
Information on relative positions of detectors & particle trajectories.
Base class describing elements of array geometry.
Group of detectors which can be treated independently of all others in array.
Extended TList class which owns its objects by default.
Description of physical materials used to construct detectors; interface to range tables.
virtual void SetEnergyLoss(Double_t e) const
virtual Double_t GetThickness() const
virtual Double_t GetEnergyLoss() const
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
Description of properties and kinematics of atomic nuclei.
Strings used to represent a set of ranges of values.
Base class used for handling geometry in a multidetector array.
virtual void GetRandomAngles(Double_t &th, Double_t &ph, Option_t *t="isotropic")
virtual TVector3 GetRandomDirection(Option_t *t="isotropic")
virtual void SetShape(TGeoBBox *)
virtual Double_t GetSolidAngle(void) const
virtual Double_t GetTheta() const
Bool_t ROOTGeo() const
Returns kTRUE if ROOT geometry is used, kFALSE if not.
virtual TVector3 GetSurfaceCentre() const
virtual TGeoHMatrix * GetMatrix() const
virtual Double_t GetPhi() const
virtual Double_t GetDistance(void) const
virtual TVector3 GetVolumeCentre() const
virtual Double_t GetSurfaceArea(int npoints=100000) const
virtual Double_t GetSinTheta() const
virtual TVector3 GetSurfaceNormal() const
virtual Double_t GetMisalignmentAngle() const
virtual void SetMatrix(const TGeoHMatrix *)
virtual TGeoBBox * GetShape() const
virtual Double_t GetCosTheta() const
virtual TVector3 GetDirection()
virtual TVector3 GetRandomPointOnSurface() const
KaliVeda extensions to ROOT collection classes.
virtual void Clear(Option_t *option="")
T * get_object(const char *name) const
virtual void SetCleanup(Bool_t enable=kTRUE)
virtual TObject * FindObjectByType(const Char_t *) const
virtual void Add(TObject *obj)
virtual TObject * FindObjectWithNameAndType(const Char_t *name, const Char_t *type) const
virtual TObject * Remove(TObject *obj)
Remove object from list.
virtual TObject * FindObject(const char *name) const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Optimised list in which named objects can only be placed once.
virtual void Add(TObject *obj)
virtual Int_t GetEntries() const
virtual const char * GetName() const
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
const char * Data() const