From 2a64278f58bd021bdce0c0fdd2a5fe866dc92632 Mon Sep 17 00:00:00 2001 From: hristov Date: Wed, 20 Feb 2002 13:40:32 +0000 Subject: [PATCH] Initialisation of static const moved to the implementation file --- TOF/AliTOFConstants.cxx | 61 ++++++++++++++++++++++------------------- TOF/AliTOFConstants.h | 57 +++++++++++++++++++------------------- 2 files changed, 61 insertions(+), 57 deletions(-) diff --git a/TOF/AliTOFConstants.cxx b/TOF/AliTOFConstants.cxx index 9d8cb95baf9..5e60db3a0e3 100644 --- a/TOF/AliTOFConstants.cxx +++ b/TOF/AliTOFConstants.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.3 2002/02/13 16:53:18 vicinanz +Added AliTOFhitT0 class + Revision 1.2 2001/11/22 11:30:30 hristov Correct log field @@ -40,33 +43,35 @@ Updated version of TOF digitization, N^2 problem solved (J.Chudoba) #include "AliTOFConstants.h" -const Int_t AliTOFConstants::fgkNStripA; -const Int_t AliTOFConstants::fgkNStripB; -const Int_t AliTOFConstants::fgkNStripC; -const Int_t AliTOFConstants::fgkNpadX; -const Int_t AliTOFConstants::fgkNpadZ; -const Int_t AliTOFConstants::fgkPadXSector; -const Int_t AliTOFConstants::fgkNSectors; -const Int_t AliTOFConstants::fgkNPlates; +const Int_t AliTOFConstants::fgkNStripA = 15; +const Int_t AliTOFConstants::fgkNStripB = 19; +const Int_t AliTOFConstants::fgkNStripC = 20; +const Int_t AliTOFConstants::fgkNpadX = 48; +const Int_t AliTOFConstants::fgkNpadZ = 2; +const Int_t AliTOFConstants::fgkPadXSector = + (fgkNStripA + 2*fgkNStripB + 2*fgkNStripC)*fgkNpadX*fgkNpadZ; +const Int_t AliTOFConstants::fgkNSectors = 18; +const Int_t AliTOFConstants::fgkNPlates = 5; -const Float_t AliTOFConstants::fgkrmin; -const Float_t AliTOFConstants::fgkrmax; -const Int_t AliTOFConstants::fgkmaxtoftree; -const Int_t AliTOFConstants::fgkmaxNstrip; -const Int_t AliTOFConstants::fgkPadXStrip; -const Float_t AliTOFConstants::fgkzlenA; -const Float_t AliTOFConstants::fgkzlenB; -const Float_t AliTOFConstants::fgkzlenC; -const Float_t AliTOFConstants::fgkXPad; -const Float_t AliTOFConstants::fgkZPad; -const Float_t AliTOFConstants::fgkMaxhZtof; -const Float_t AliTOFConstants::fgkSigmaForTail1; -const Float_t AliTOFConstants::fgkSigmaForTail2; -const Int_t AliTOFConstants::fgkTimeDiff; -const Float_t AliTOFConstants::fgkSpeedOfLight; -const Float_t AliTOFConstants::fgkPionMass; -const Float_t AliTOFConstants::fgkKaonMass; -const Float_t AliTOFConstants::fgkProtonMass; -const Float_t AliTOFConstants::fgkElectronMass; -const Float_t AliTOFConstants::fgkMuonMass; +const Float_t AliTOFConstants::fgkrmin = 370.; +const Float_t AliTOFConstants::fgkrmax = 399.; +const Int_t AliTOFConstants::fgkmaxtoftree = 5; +const Int_t AliTOFConstants::fgkmaxNstrip = 20; +const Int_t AliTOFConstants::fgkPadXStrip = fgkNpadX*fgkNpadZ; +const Float_t AliTOFConstants::fgkzlenA = 106.0; +const Float_t AliTOFConstants::fgkzlenB = 141.0; +const Float_t AliTOFConstants::fgkzlenC = 177.5; +const Float_t AliTOFConstants::fgkXPad = 2.5; +const Float_t AliTOFConstants::fgkZPad = 3.5; +const Float_t AliTOFConstants::fgkMaxhZtof = 371.5; +const Float_t AliTOFConstants::fgkSigmaForTail1= 2.; +const Float_t AliTOFConstants::fgkSigmaForTail2=0.5; +const Int_t AliTOFConstants::fgkTimeDiff = 25000; +const Float_t AliTOFConstants::fgkSpeedOfLight = 0.299792458; +const Float_t AliTOFConstants::fgkPionMass = 0.13957; +const Float_t AliTOFConstants::fgkKaonMass = 0.49368; +const Float_t AliTOFConstants::fgkProtonMass = 0.93827; +const Float_t AliTOFConstants::fgkElectronMass = 0.00051; +const Float_t AliTOFConstants::fgkMuonMass = 0.10566; ClassImp(AliTOFConstants) + diff --git a/TOF/AliTOFConstants.h b/TOF/AliTOFConstants.h index 906ed24644a..76dc4a911d3 100644 --- a/TOF/AliTOFConstants.h +++ b/TOF/AliTOFConstants.h @@ -23,43 +23,42 @@ class AliTOFConstants { public: // return number of chambers - static const Int_t fgkNStripA = 15; // number of strips in A type module - static const Int_t fgkNStripB = 19; // number of strips in B type module - static const Int_t fgkNStripC = 20; // number of strips in C type module - static const Int_t fgkNpadX = 48; // Number of pads in a strip along the X direction - static const Int_t fgkNpadZ = 2; // Number of pads in a strip along the Z direction - static const Int_t fgkPadXSector = - (fgkNStripA + 2*fgkNStripB + 2*fgkNStripC)*fgkNpadX*fgkNpadZ; - static const Int_t fgkNSectors = 18; - static const Int_t fgkNPlates = 5; + static const Int_t fgkNStripA; // number of strips in A type module + static const Int_t fgkNStripB; // number of strips in B type module + static const Int_t fgkNStripC; // number of strips in C type module + static const Int_t fgkNpadX; // Number of pads in a strip along the X direction + static const Int_t fgkNpadZ; // Number of pads in a strip along the Z direction + static const Int_t fgkPadXSector; + static const Int_t fgkNSectors; + static const Int_t fgkNPlates; - static const Float_t fgkrmin = 370.; // inner radius of the TOF detector (cm) - static const Float_t fgkrmax = 399.; // outer radius of the TOF detector (cm) - static const Int_t fgkmaxtoftree = 5; // numer of geom. levels: + static const Float_t fgkrmin; // inner radius of the TOF detector (cm) + static const Float_t fgkrmax; // outer radius of the TOF detector (cm) + static const Int_t fgkmaxtoftree; // numer of geom. levels: // 1 - sector, 2 - module(plate), 3 - strip, 4 - padZ, 5 - padX - static const Int_t fgkmaxNstrip = 20; //20 - max. number of strips, A - 15, B - 19, C - 20 - static const Int_t fgkPadXStrip = fgkNpadX*fgkNpadZ; // number of pads per strip - static const Float_t fgkzlenA = 106.0;// length (cm) of the A module, need for generation of add. noise - static const Float_t fgkzlenB = 141.0;// length (cm) of the B module, need for generation of add. noise - static const Float_t fgkzlenC = 177.5;// length (cm) of the C module, need for generation of add. noise - static const Float_t fgkXPad = 2.5; //size of a pad in the x direction (cm) - static const Float_t fgkZPad = 3.5; //size of a pad in the z direction (cm) - static const Float_t fgkMaxhZtof = 371.5;//max.half z-size of TOF (cm) - static const Float_t fgkSigmaForTail1= 2.;// sigma for simulation of tails in TDC (1) - static const Float_t fgkSigmaForTail2=0.5;// sigma for simulation of tails in TDC (2) + static const Int_t fgkmaxNstrip; //20 - max. number of strips, A - 15, B - 19, C - 20 + static const Int_t fgkPadXStrip; // number of pads per strip + static const Float_t fgkzlenA;// length (cm) of the A module, need for generation of add. noise + static const Float_t fgkzlenB;// length (cm) of the B module, need for generation of add. noise + static const Float_t fgkzlenC;// length (cm) of the C module, need for generation of add. noise + static const Float_t fgkXPad; //size of a pad in the x direction (cm) + static const Float_t fgkZPad; //size of a pad in the z direction (cm) + static const Float_t fgkMaxhZtof;//max.half z-size of TOF (cm) + static const Float_t fgkSigmaForTail1;// sigma for simulation of tails in TDC (1) + static const Float_t fgkSigmaForTail2;// sigma for simulation of tails in TDC (2) // if two signals ar eseparated less than fgkTimeDiff, they are merged // and considered as one - static const Int_t fgkTimeDiff = 25000; // time in ps, + static const Int_t fgkTimeDiff; // time in ps, // speed of light (used in reconstruction) given in 10^9 m/s - static const Float_t fgkSpeedOfLight = 0.299792458; // + static const Float_t fgkSpeedOfLight; // // mass values for pi/K/p/e/mu in [GeV/c^2] // used in reconstruction - static const Float_t fgkPionMass = 0.13957; // charged pion mass - static const Float_t fgkKaonMass = 0.49368; // charged kaon mass - static const Float_t fgkProtonMass = 0.93827; // proton mass - static const Float_t fgkElectronMass = 0.00051; // electron mass - static const Float_t fgkMuonMass = 0.10566; // muon mass + static const Float_t fgkPionMass; // charged pion mass + static const Float_t fgkKaonMass; // charged kaon mass + static const Float_t fgkProtonMass; // proton mass + static const Float_t fgkElectronMass; // electron mass + static const Float_t fgkMuonMass; // muon mass private: AliTOFConstants(){} -- 2.39.3