/* History of cvs commits:
*
* $Log$
+ * Revision 1.50 2007/02/05 10:43:25 hristov
+ * Changes for correct initialization of Geant4 (Mihaela)
+ *
* Revision 1.49 2007/01/22 17:29:12 pavlinov
* EMCAL geometry can be created independently form anything now
*
// Default ctor
fName = "EMCAL" ;
InitConstants();
-
}
//____________________________________________________________________________
}
//____________________________________________________________________________
-void AliEMCAL::Init()
+void AliEMCAL::DefineMediumParameters()
{
- //EMCAL cuts
+ //
+ // EMCAL cuts (Geant3)
+ //
Int_t * idtmed = fIdtmed->GetArray() - 1599 ;
// --- Set decent energy thresholds for gamma and electron tracking
isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ;
// The scintillator of the CPV made of Polystyrene scintillator -> idtmed[1601]
- float deemax = 0.1; // maximum fractional energy loss in one step (0 < DEEMAX â\89¤ 1);i
+ float deemax = 0.1; // maximum fractional energy loss in one step (0 < DEEMAX â?¤ 1);i
AliMedium(2, "Scintillator$", 2, 1,
isxfld, sxmgmx, 10.0, 0.001, deemax, 0.001, 0.001, 0, 0) ;
fBirkC1 = 0.013/dP;
fBirkC2 = 9.6e-6/(dP * dP);
+ // Call just in case of Geant3; What to do in case of Geant4 ?
+ if(gMC->InheritsFrom("TGeant3")) DefineMediumParameters(); // Feb 20, 2007
}
//____________________________________________________________________________
void AliEMCAL::Digits2Raw()
/* History of cvs commits:
*
* $Log$
+ * Revision 1.41 2007/02/05 10:43:25 hristov
+ * Changes for correct initialization of Geant4 (Mihaela)
+ *
* Revision 1.40 2006/12/05 17:19:26 gustavo
* Updated AliEMCAL::Digits2Raw, reads first provisional RCU mapping files to make Raw data with new AliCaloAltroMapping and AliCaloRawStream
*
}
virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
virtual void CreateMaterials() ;
- // virtual void
virtual void Digits2Raw();
using AliDetector::Raw2Digits;
virtual AliEMCALGeometry * GetGeometry() const
{return AliEMCALGeometry::GetInstance(GetTitle(),"") ; }
virtual void Hits2SDigits();
- virtual void Init();
+ // virtual void Init();
virtual Int_t IsVersion(void) const = 0 ;
virtual AliTriggerDetector* CreateTriggerDetector() const
void FitRaw(Bool_t lowGainFlag, TGraph * gLowGain, TGraph * gHighGain, TF1* signalF, Double_t & energy, Double_t & time) ;
void InitConstants(); //initializes some params
+ void DefineMediumParameters(); // define tracking medium parameters
Int_t fBirkC0; // constants for Birk's Law implementation
Double_t fBirkC1; // constants for Birk's Law implementation