// --- ROOT system
#include <TBRIK.h>
-#include <TLorentzVector.h>
#include <TMath.h>
#include <TNode.h>
#include <TRandom.h>
ClassImp(AliZDCv2)
//_____________________________________________________________________________
-AliZDCv2::AliZDCv2() : AliZDC()
+AliZDCv2::AliZDCv2() :
+ AliZDC(),
+ fMedSensF1(0),
+ fMedSensF2(0),
+ fMedSensZP(0),
+ fMedSensZN(0),
+ fMedSensZEM(0),
+ fMedSensGR(0),
+ fMedSensPI(0),
+ fMedSensTDI(0),
+ fNalfan(0),
+ fNalfap(0),
+ fNben(0),
+ fNbep(0),
+ fZEMLength(0),
+ fpLostIT(0),
+ fpLostD1(0),
+ fpLostTDI(0),
+ fpDetected(0),
+ fnDetected(0)
{
//
// Default constructor for Zero Degree Calorimeter
//
- fMedSensF1 = 0;
- fMedSensF2 = 0;
- fMedSensZN = 0;
- fMedSensZP = 0;
- fMedSensZEM = 0;
- fMedSensGR = 0;
-
}
//_____________________________________________________________________________
AliZDCv2::AliZDCv2(const char *name, const char *title)
- : AliZDC(name,title)
+ : AliZDC(name,title),
+ fMedSensF1(0),
+ fMedSensF2(0),
+ fMedSensZP(0),
+ fMedSensZN(0),
+ fMedSensZEM(0),
+ fMedSensGR(0),
+ fMedSensPI(0),
+ fMedSensTDI(0),
+ fNalfan(90),
+ fNalfap(90),
+ fNben(18),
+ fNbep(28),
+ fZEMLength(0),
+ fpLostIT(0),
+ fpLostD1(0),
+ fpLostTDI(0),
+ fpDetected(0),
+ fnDetected(0)
+
+
{
//
// Standard constructor for Zero Degree Calorimeter
Int_t kDivZEM[3] = {92, 0, 20}; // Divisions for EM detector
Float_t kDimZEM0 = 2*kDivZEM[2]*(kDimZEMPb+kDimZEMAir+kFibRadZEM*(TMath::Sqrt(2.)));
fZEMLength = kDimZEM0;
-
+
}
//_____________________________________________________________________________
// name with the corresponding volume path. Needs to be syncronized with
// eventual changes in the geometry.
//
- Int_t modnum = 0;
TString volpath1 = "ALIC_1/ZDC_1/ZNEU_1";
TString volpath2 = "ALIC_1/ZDC_1/ZPRO_1";
//_____________________________________________________________________________
void AliZDCv2::Init()
{
- InitTables();
+ InitTables();
+ Int_t *idtmed = fIdtmed->GetArray();
Int_t i;
- Int_t *idtmed = fIdtmed->GetArray();
// Thresholds for showering in the ZDCs
i = 1; //tantalum
gMC->Gstpar(idtmed[i], "CUTGAM", .001);
fMedSensZEM = idtmed[5]; // Sensitive volume: ZEM passive material
fMedSensTDI = idtmed[6]; // Sensitive volume: TDI Cu shield
fMedSensPI = idtmed[7]; // Sensitive volume: beam pipes
- fMedSensGR = idtmed[12]; // Sensitive volume: air into the grooves
+ fMedSensGR = idtmed[12]; // Sensitive volume: air into the grooves
}
//_____________________________________________________________________________