KaliVeda
Toolkit for HIC analysis
|
Improved calorimetry of hot nuclei.
Created by KVClassFactory on Mon Apr 14 15:01:51 2008 Author: eric bonnet,,,
This is an extension of the KVCaloBase basic calorimetry, with several operating modes.
Mode distinguishing light and heavy particles depending on Z. Activated by calling UseChargeDiff(Int_t FragmentMinimumCharge,Double_t ParticleFactor) FragmentMinimumCharge is discriminating parameter :
In method SumUp we have
and the different contributions are stored in the ingredients list:
N.B. : If calculated neutron multiplicity Mneu<0, we set Mneu=0 and add a parameter 'Aexcess' = TMath::Abs(Mneu) In this case calorimetry is performed without considering free neutrons.
All informations are stored in ingredients list:
When free neutrons are considered, the temperature is calculated as part of the method. If not, you can call method DeduceTemperature(Double_t LevelDensityParameter) which gives the temperature according to the Fermi gas formula:
You must call Calculate() before using any variables calculated by this class This method returns kTRUE if all went well. Methods:
__must__ be called before Fill()-ing the variable
Definition at line 133 of file KVCalorimetry.h.
#include <KVCalorimetry.h>
Public Member Functions | |
KVCalorimetry (const Char_t *nom) | |
Constructeur avec un nom. | |
KVCalorimetry (void) | |
Createur par default. | |
virtual | ~KVCalorimetry (void) |
Destructeur. | |
void | Calculate () |
void | DeduceTemperature (Double_t LevelDensityParameter) |
void | IncludeFreeNeutrons (Double_t AsurZ, Double_t NeutronMeanEnergyFactor, Double_t LevelDensityParameter) |
void | Init () |
void | SetAsurZ (Double_t value) |
protected method, set the value of AsurZ parameter | |
void | UseChargeDiff (Int_t FragmentMinimumCharge, Double_t ParticleFactor) |
Public Member Functions inherited from KVCaloBase | |
KVCaloBase () | |
KVCaloBase (const Char_t *nom) | |
virtual | ~KVCaloBase (void) |
void | AddNeutrons (Int_t mult, Double_t mke) |
virtual void | Copy (TObject &obj) const |
Methode de Copy. | |
Double_t | GetIngValue (const KVString &name) const |
const KVNameValueList & | GetList (Option_t *opt="ing") const |
virtual Char_t | GetValueType (Int_t) const |
std::vector< Double_t > | GetValueVector (void) const |
On retourne un tableau rassemblant l'ensemble des ingredients. | |
void | Print (Option_t *opt="") const |
void | Reset () |
Public Member Functions inherited from KVVarGlob | |
KVVarGlob () | |
KVVarGlob (const Char_t *nom) | |
virtual | ~KVVarGlob (void) |
void | AddSelection (const KVParticleCondition &sel) |
Double_t | AsDouble () const |
void | Copy (TObject &obj) const |
void | DefineNewFrame (KVEvent *e) const |
void | Fill (const KVNucleus *c) |
void | Fill2 (const KVNucleus *n1, const KVNucleus *n2) |
virtual void | FillN (const KVEvent *) |
const TString & | GetFrame () const |
Int_t | GetNameIndex (const Char_t *name) const |
Double_t | GetNormalization () const |
Int_t | GetNumberOfBranches () const |
virtual Int_t | GetNumberOfValues () const |
TString | GetOptionString (const Char_t *opt) const |
Double_t | GetParameter (const Char_t *par) const |
Double_t | GetValue (const Char_t *name) const |
Double_t | GetValue (Int_t i) const |
Double_t | GetValue (void) const |
virtual TString | GetValueName (Int_t i) const |
const KVNameValueList & | GetValueNameList () const |
Bool_t | HasValue (const Char_t *name) const |
bool | IsDefiningNewFrame () const |
virtual Bool_t | IsGlobalVariable () const |
Bool_t | IsNBody () const |
Bool_t | IsOneBody () const |
Bool_t | IsOptionGiven (const Char_t *opt) |
Bool_t | IsParameterSet (const Char_t *par) |
bool | IsSelectingEvents () const |
Bool_t | IsTwoBody () const |
void | ListInit () |
operator double () const | |
Double_t | operator() (const Char_t *name) const |
Double_t | operator() (Int_t i) const |
Double_t | operator() (void) const |
void | Print (Option_t *="") const |
void | SetDefineGroup (const KVString &groupname="") |
void | SetEventSelection (const EventSelector &f) |
void | SetFrame (const Char_t *ref) |
void | SetMaxNumBranches (Int_t n) |
void | SetNewFrameDefinition (const FrameSetter &f) |
virtual void | SetNormalization (Double_t norm) |
void | SetOption (const Char_t *option, const Char_t *value) |
void | SetParameter (const Char_t *par, Double_t value) |
void | SetSelection (const KVParticleCondition &sel) |
bool | TestEventSelection () const |
void | UnsetOption (const Char_t *opt) |
void | UnsetParameter (const Char_t *par) |
Public Member Functions inherited from KVBase | |
KVBase () | |
Default constructor. | |
KVBase (const Char_t *name, const Char_t *title="") | |
Ctor for object with given name and type. | |
KVBase (const KVBase &) | |
copy ctor | |
virtual | ~KVBase () |
virtual void | Clear (Option_t *opt="") |
Clear object properties : name, type/title, number, label. | |
const Char_t * | GetLabel () const |
UInt_t | GetNumber () const |
UInt_t | GetNumberOfObjects () const |
virtual TObject * | GetObject () const |
virtual const Char_t * | GetType () const |
Bool_t | HasLabel () const |
virtual Bool_t | IsCalled (const Char_t *name) const |
Bool_t | IsLabelled (const Char_t *l) const |
virtual Bool_t | IsType (const Char_t *typ) const |
virtual void | List () |
KVBase & | operator= (const KVBase &) |
copy assignment operator | |
Double_t | ProtectedGetX (const TF1 *func, Double_t val, int &status, Double_t xmin=0.0, Double_t xmax=0.0) const |
void | SetLabel (const Char_t *lab) |
virtual void | SetNumber (UInt_t num) |
virtual void | SetType (const Char_t *str) |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
void | Clear (Option_t *option="") override |
TObject * | Clone (const char *newname="") const override |
Int_t | Compare (const TObject *obj) const override |
void | Copy (TObject &named) const override |
virtual void | FillBuffer (char *&buffer) |
const char * | GetName () const override |
const char * | GetTitle () const override |
ULong_t | Hash () const override |
TClass * | IsA () const override |
Bool_t | IsSortable () const override |
void | ls (Option_t *option="") const override |
TNamed & | operator= (const TNamed &rhs) |
void | Print (Option_t *option="") const override |
virtual void | SetName (const char *name) |
virtual void | SetNameTitle (const char *name, const char *title) |
virtual void | SetTitle (const char *title="") |
virtual Int_t | Sizeof () const |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TObject | |
TObject () | |
TObject (const TObject &object) | |
virtual | ~TObject () |
void | AbstractMethod (const char *method) const |
virtual void | AppendPad (Option_t *option="") |
virtual void | Browse (TBrowser *b) |
ULong_t | CheckedHash () |
virtual const char * | ClassName () const |
virtual void | Delete (Option_t *option="") |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *option="") |
virtual void | DrawClass () const |
virtual TObject * | DrawClone (Option_t *option="") const |
virtual void | Dump () const |
virtual void | Error (const char *method, const char *msgfmt,...) const |
virtual void | Execute (const char *method, const char *params, Int_t *error=nullptr) |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr) |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
virtual TObject * | FindObject (const char *name) const |
virtual TObject * | FindObject (const TObject *obj) const |
virtual Option_t * | GetDrawOption () const |
virtual const char * | GetIconName () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
virtual Option_t * | GetOption () const |
virtual UInt_t | GetUniqueID () const |
virtual Bool_t | HandleTimer (TTimer *timer) |
Bool_t | HasInconsistentHash () const |
virtual void | Info (const char *method, const char *msgfmt,...) const |
virtual Bool_t | InheritsFrom (const char *classname) const |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
virtual void | Inspect () const |
void | InvertBit (UInt_t f) |
Bool_t | IsDestructed () const |
virtual Bool_t | IsEqual (const TObject *obj) const |
virtual Bool_t | IsFolder () const |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
void | MayNotUse (const char *method) const |
virtual Bool_t | Notify () |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *vp) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, void *vp) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
virtual void | Paint (Option_t *option="") |
virtual void | Pop () |
virtual Int_t | Read (const char *name) |
virtual void | RecursiveRemove (TObject *obj) |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
virtual void | SetDrawOption (Option_t *option="") |
virtual void | SetUniqueID (UInt_t uid) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const |
Private Member Functions | |
void | ComputeTemperature () const |
void | fill (const KVNucleus *) |
void | init_KVCalorimetry () |
void | SetFragmentMinimumCharge (Double_t value) |
protected method, set the value of FragmentMinimumCharge parameter | |
void | SetLevelDensityParameter (Double_t value) |
protected method, set the value of LevelDensityParameter parameter | |
void | SetNeutronMeanEnergyFactor (Double_t value) |
void | SetParticleFactor (Double_t value) |
protected method, set the value of ParticleFactor parameter | |
void | SumUp () |
Private Attributes | |
Bool_t | kchargediff |
= kTRUE -> distinction entre particule et fragment | |
Bool_t | kfree_neutrons_included |
= kTRUE -> Estimation des neutrons libre est faite | |
Bool_t | ktempdeduced |
= kTRUE -> calcul de la temperature | |
Additional Inherited Members | |
Public Types inherited from KVVarGlob | |
enum | { kOneBody , kTwoBody , kNBody } |
Public Types inherited from KVBase | |
enum | EKaliVedaBits { kIsKaliVedaObject = BIT(23) } |
Public Types inherited from TObject | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
Static Public Member Functions inherited from KVVarGlob | |
static void | MakeClass (const Char_t *classname, const Char_t *classdesc, int type=kOneBody) |
Static Public Member Functions inherited from KVBase | |
static Bool_t | AreEqual (Double_t x, Double_t y, Long64_t maxdif=1) |
Comparison between two 64-bit floating-point values. | |
static void | BackupFileWithDate (const Char_t *path) |
static void | CombineFiles (const Char_t *file1, const Char_t *file2, const Char_t *newfilename, Bool_t keep=kTRUE) |
static void | Deprecated (const char *method, const char *advice) |
static Bool_t | FindClassSourceFiles (const Char_t *class_name, KVString &imp_file, KVString &dec_file, const Char_t *dir_name=".") |
static Bool_t | FindExecutable (TString &exec, const Char_t *path="$(PATH)") |
static const Char_t * | FindFile (const Char_t *search, TString &wfil) |
static const Char_t * | GetBINDIRFilePath (const Char_t *namefile="") |
static const Char_t * | GetDATABASEFilePath () |
static const Char_t * | GetDATADIRFilePath (const Char_t *namefile="") |
static Bool_t | GetDataSetEnv (const Char_t *dataset, const Char_t *type, Bool_t defval) |
static const Char_t * | GetDataSetEnv (const Char_t *dataset, const Char_t *type, const Char_t *defval) |
static Double_t | GetDataSetEnv (const Char_t *dataset, const Char_t *type, Double_t defval) |
static const Char_t * | GetETCDIRFilePath (const Char_t *namefile="") |
static const Char_t * | GetExampleFilePath (const Char_t *library, const Char_t *namefile) |
Return full path to example file for given library (="KVMultiDet", "BackTrack", etc.) | |
static const Char_t * | GetINCDIRFilePath (const Char_t *namefile="") |
static const Char_t * | GetKVBuildDate () |
Returns KaliVeda build date. | |
static const Char_t * | GetKVBuildDir () |
Returns top-level directory used for build. | |
static const Char_t * | GetKVBuildTime () |
Returns KaliVeda build time. | |
static const Char_t * | GetKVBuildType () |
Returns KaliVeda build type (cmake build: Release, Debug, RelWithDebInfo, ...) | |
static const Char_t * | GetKVBuildUser () |
Returns username of person who performed build. | |
static const Char_t * | GetKVSourceDir () |
Returns top-level directory of source tree used for build. | |
static const Char_t * | GetKVVersion () |
Returns KaliVeda version string. | |
static const Char_t * | GetLIBDIRFilePath (const Char_t *namefile="") |
static const Char_t * | GetListOfPlugins (const Char_t *base) |
static const Char_t * | GetListOfPluginURIs (const Char_t *base) |
static const Char_t * | GetPluginURI (const Char_t *base, const Char_t *plugin) |
static void | GetTempFileName (TString &base) |
static const Char_t * | GetTEMPLATEDIRFilePath (const Char_t *namefile="") |
static const Char_t * | GetWORKDIRFilePath (const Char_t *namefile="") |
static const Char_t * | gitBranch () |
Returns git branch of sources. | |
static const Char_t * | gitCommit () |
Returns last git commit of sources. | |
static void | InitEnvironment () |
static bool | is_gnuinstall () |
static Bool_t | IsThisAPlugin (const TString &uri, TString &base) |
static TPluginHandler * | LoadPlugin (const Char_t *base, const Char_t *uri="0") |
static Bool_t | OpenContextMenu (const char *method, TObject *obj, const char *alt_method_name="") |
static void | OpenTempFile (TString &base, std::ofstream &fp) |
static void | PrintSplashScreen () |
Prints welcome message and infos on version etc. | |
static Bool_t | SearchAndOpenKVFile (const Char_t *name, KVSQLite::database &dbfile, const Char_t *kvsubdir="") |
static Bool_t | SearchAndOpenKVFile (const Char_t *name, std::ifstream &file, const Char_t *kvsubdir="", KVLockfile *locks=0) |
static Bool_t | SearchAndOpenKVFile (const Char_t *name, std::ofstream &file, const Char_t *kvsubdir="", KVLockfile *locks=0) |
static Bool_t | SearchKVFile (const Char_t *name, TString &fullpath, const Char_t *kvsubdir="") |
static const Char_t * | WorkingDirectory () |
Static Public Member Functions inherited from TNamed | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Longptr_t | GetDtorOnly () |
static Bool_t | GetObjectStat () |
static void | SetDtorOnly (void *obj) |
static void | SetObjectStat (Bool_t stat) |
Public Attributes inherited from TObject | |
kBitMask | |
kCanDelete | |
kCannotPick | |
kHasUUID | |
kInconsistent | |
kInvalidObject | |
kIsOnHeap | |
kIsReferenced | |
kMustCleanup | |
kNoContextMenu | |
kNotDeleted | |
kObjInCanvas | |
kOverwrite | |
kSingleKey | |
kWriteDelete | |
kZombie | |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
void | MakeZombie () |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
Protected Attributes inherited from TObject | |
kOnlyPrepStep | |
KVCalorimetry::KVCalorimetry | ( | void | ) |
Createur par default.
Definition at line 21 of file KVCalorimetry.cpp.
KVCalorimetry::KVCalorimetry | ( | const Char_t * | nom | ) |
Constructeur avec un nom.
Definition at line 36 of file KVCalorimetry.cpp.
|
virtual |
Destructeur.
Definition at line 48 of file KVCalorimetry.cpp.
Realisation de la calorimétrie Calcul de l'energie d'excitation, temperature (optionnel), de l'energie moyenne des neutrons (optionnel) appel de SumUp() Cette methode retourne kTRUE si tout s'est bien passee, kFALSE si il y a un probleme dans la resolution du polynome d'ordre 2
Optionnel : le calcul de la temperature peut etre egalement fait si la methode DeduceTemperature(Double_t LevelDensityParameter) a ete appelee elle est obtenue via la formule : Exci = Asum/[LevelDensityParameter] * T*T
Info("Calculate","Debut");
Reimplemented from KVCaloBase.
Definition at line 423 of file KVCalorimetry.cpp.
|
private |
Definition at line 495 of file KVCalorimetry.cpp.
The temperature will be computed, the parameter LevelDensityParameter is needed in the formula : Exci = Asum/[LevelDensityParameter] * T*T (resolved in Calculate() method)
this method is automaticaly called by the IncludeFreeNeutrons method
NOTE : when this method is called, Reset of the object are called also it has to be called before the first Fill
Definition at line 179 of file KVCalorimetry.cpp.
Remplissage des energies, masse, charge et defaut de masse Pour l'energie cinetique, si l'utilisateur a utilise en amont la methode KVVarGlob::SetFrame(const Char_t*), c'est dans ce repere que les energies sont sommees (a condition que chaque KVNucleus possede le repere avec un nom identique)
Reimplemented from KVCaloBase.
Definition at line 252 of file KVCalorimetry.cpp.
void KVCalorimetry::IncludeFreeNeutrons | ( | Double_t | AsurZ, |
Double_t | NeutronMeanEnergyFactor, | ||
Double_t | LevelDensityParameter | ||
) |
Free neutrons are taken into account AsurZ parameter, allow to evaluate the number of free neutrons Mn = [AsurZ]*Zsum - Asum (done by the method SumUp)
then the parameters NeutronMeanEnergyFactor, LevelDensityParameter are used in the formula : Asum/[LevelDensityParameter] * T*T + Qi - \Sigma Ek - [NeutronMeanEnergyFactor]*Mn*T - \Sigma Q = 0 which is resolved in Calculate() method
NOTE : when this method is called, Reset of the object are called also it has to be called before the first Fill
Definition at line 210 of file KVCalorimetry.cpp.
Init() is called by KVGVList::MakeBranches(), so this is the latest they can be set up. Depending on options chosen by user, list of branches will be very different.
Example: with kchargediff=true: 0 | Zpart | 3.000000000 1 | Apart | 7.000000000 2 | Ekpart | 10.0000000 3 | Qpart | 17.37470000 4 | Mpart | 2.000000000 5 | Zfrag | 7.000000000 6 | Afrag | 16.00000000 7 | Ekfrag | 40.0000000 8 | Qfrag | 5.683700000 9 | Mfrag | 1.000000000 10 | Zsum* | 13.00000000 same as KVCaloBase 11 | Asum | 30.00000000 12 | Eksum* | 60.0000000 13 | Qsum* | 40.43310000 14 | Msum* | 5.000000000 15 | Qini* | -15.8724000 16 | Exci* | 116.3055000 or with kfree_neutrons_included = true: <Zsum*=55> <Asum*=130> <Eksum*=0> <Qsum*=-81.4084> <Msum*=2> <Aexcess=20> <Aneu=0> <Qneu=0> <Mneu=0> <Qini*=-86.9004> <Temp=0.64997> <Exci*=5.492> <Ekneu=0> or with both options: <Zfrag=54> <Afrag=129> <Ekfrag=0> <Qfrag=-88.6974> <Mfrag=1> <Zpart=1> <Apart=1> <Ekpart=0> <Qpart=7.289> <Mpart=1> <Zsum*=56> <Asum*=131> <Eksum*=0> <Qsum*=-74.1194> <Msum*=3> <Aexcess=19> <Aneu=0> <Qneu=0> <Mneu=0> <Qini*=-86.683> <Temp=0.979313> <Exci*=12.5636> <Ekneu=0>
Reimplemented from KVCaloBase.
Definition at line 568 of file KVCalorimetry.cpp.
|
private |
protected method Private initialisation method called by all constructors. All member initialisations should be done here.
Definition at line 61 of file KVCalorimetry.cpp.
protected method, set the value of AsurZ parameter
Definition at line 110 of file KVCalorimetry.cpp.
protected method, set the value of FragmentMinimumCharge parameter
Definition at line 80 of file KVCalorimetry.cpp.
protected method, set the value of LevelDensityParameter parameter
Definition at line 100 of file KVCalorimetry.cpp.
protected method, set the value of NeutronMeanEnergyFactor parameter value = 1.0 : surface emission value = 1.5 : volume emission
Definition at line 122 of file KVCalorimetry.cpp.
protected method, set the value of ParticleFactor parameter
Definition at line 90 of file KVCalorimetry.cpp.
|
privatevirtual |
protected method Appele par Calculate pour mettre a jour les differents ingredients de la calorimetrie :
Reimplemented from KVCaloBase.
Definition at line 327 of file KVCalorimetry.cpp.
Make a difference between particle with a charge (GetZ) greater (fragments) or smaller (particles) than FragmentMinimumCharge.
When sum on charge (Zsum), mass (Asum), energy (Eksum), are performed, two partial sums are done, respect to the previous distinction and particle ones will be multiply by ParticleFactor
for example, for the kinetic energy, it gives at the end : Eksum = \Sigma Ek(Z>=[FragmentMinimumCharge]) + [ParticleFactor]*\Sigma Ek(Z<[FragmentMinimumCharge]) this operation is done in the SumUp() method
NOTE : when this method is called, Reset of the object are called also it has to be called before the first Fill
Definition at line 146 of file KVCalorimetry.cpp.
|
private |
= kTRUE -> distinction entre particule et fragment
Definition at line 138 of file KVCalorimetry.h.
|
private |
= kTRUE -> Estimation des neutrons libre est faite
Definition at line 137 of file KVCalorimetry.h.
|
private |
= kTRUE -> calcul de la temperature
Definition at line 139 of file KVCalorimetry.h.