ClassImp(AliTOF)
//_____________________________________________________________________________
-AliTOF::AliTOF()
+AliTOF::AliTOF():
+ fFGeom(0x0),
+ fDTask(0x0),
+ fReTask(0x0),
+ fSDigits(0x0),
+ fNSDigits(0),
+ fReconParticles(0x0),
+ fIdSens(-1),
+ fTZero(kFALSE),
+ fTOFGeometry(0x0)
{
//
// Default constructor
//
- fFGeom = 0x0;
- fDTask = 0x0;
- fReTask = 0x0;
+ fDigits = 0;
fIshunt = 0;
- fSDigits = 0 ;
- fNSDigits = 0;
- fDigits = 0 ;
- fReconParticles = 0x0;
- fName="TOF";
- fTZero = kFALSE;
- fTOFGeometry = 0;
+ fName = "TOF";
}
//_____________________________________________________________________________
AliTOF::AliTOF(const char *name, const char *title, Option_t *option)
- : AliDetector(name,title)
+ :
+ AliDetector(name,title),
+ fFGeom(0x0),
+ fDTask(0x0),
+ fReTask(0x0),
+ fSDigits(0x0),
+ fNSDigits(0),
+ fReconParticles(0x0),
+ fIdSens(-1),
+ fTZero(kFALSE),
+ fTOFGeometry(0x0)
{
//
// AliTOF standard constructor
// Initialization of hits, sdigits and digits array
// added option for time zero analysis
- fFGeom = 0x0; //skowron
- fDTask = 0x0;
- fReTask = 0x0;
- fReconParticles= 0x0;
+ //skowron
fTOFGeometry = new AliTOFGeometry();
if (strstr(option,"tzero")){
fHits = new TClonesArray("AliTOFhitT0", 1000);
fTZero = kTRUE;
- //AliWarning("tzero option requires AliTOFv4T0/AliTOFv5T0 as TOF version (check Your Config.C)");
+ // AliWarning("tzero option requires AliTOFv4T0/AliTOFv5T0 as TOF version (check Your Config.C)");
}else{
fHits = new TClonesArray("AliTOFhit", 1000);
fTZero = kFALSE;
fIshunt = 0;
fSDigits = new TClonesArray("AliTOFSDigit", 1000);
fDigits = new TClonesArray("AliTOFdigit", 1000);
- fNSDigits = 0;
-
- fFGeom = 0x0;
- fDTask = 0x0;
- fReTask = 0x0;
- fReconParticles = 0x0;
//
// Digitization parameters
}
//_____________________________________________________________________________
AliTOF::AliTOF(const AliTOF &source)
- :AliDetector()
+ :AliDetector(),
+ fFGeom(0x0),
+ fDTask(0x0),
+ fReTask(0x0),
+ fSDigits(0x0),
+ fNSDigits(0),
+ fReconParticles(0x0),
+ fIdSens(-1),
+ fTZero(kFALSE),
+ fTOFGeometry(0x0)
{
// copy constructor
/*
$Log$
+Revision 1.9 2006/08/10 14:46:54 decaro
+TOF raw data format: updated version
+
Revision 1.8 2006/05/04 19:41:42 hristov
Possibility for partial TOF geometry (S.Arcelli)
ClassImp(AliTOFAlignment)
//_____________________________________________________________________________
-AliTOFAlignment::AliTOFAlignment():TTask("AliTOFAlignment","") {
+AliTOFAlignment::AliTOFAlignment():
+ TTask("AliTOFAlignment",""),
+ fNTOFAlignObj(0),
+ fTOFAlignObjArray(0x0)
+ {
//AliTOFalignment main Ctor
- fNTOFAlignObj=0;
- fTOFAlignObjArray=0x0;
}
//_____________________________________________________________________________
-AliTOFAlignment::AliTOFAlignment(const AliTOFAlignment &t):TTask("AliTOFAlignment",""){
+AliTOFAlignment::AliTOFAlignment(const AliTOFAlignment &t):
+ TTask("AliTOFAlignment",""),
+ fNTOFAlignObj(0),
+ fTOFAlignObjArray(0x0)
+{
//AliTOFAlignment copy Ctor
fNTOFAlignObj=t.fNTOFAlignObj;
/*
$Log$
+Revision 1.6 2006/04/20 22:30:49 hristov
+Coding conventions (Annalisa)
+
Revision 1.5 2006/04/16 22:29:05 hristov
Coding conventions (Annalisa)
//________________________________________________________________
-AliTOFCal::AliTOFCal():TObject(){
+AliTOFCal::AliTOFCal():
+ TObject(),
+ fNSector(0),
+ fNPlate(0),
+ fNStripA(0),
+ fNStripB(0),
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fnpad(0),
+ fGeom(0x0),
+ fPads(0x0)
+{
//main ctor
- fGeom = 0x0;
- fNSector = 0;
- fNPlate = 0;
- fNStripA = 0;
- fNStripB = 0;
- fNStripC = 0;
- fNpadZ = 0;
- fNpadX = 0;
- fnpad = 0;
- fPads = 0x0;
gROOT->GetListOfBrowsables()->Add(this);
}
//________________________________________________________________
-AliTOFCal::AliTOFCal(AliTOFGeometry *geom):TObject(){
+AliTOFCal::AliTOFCal(AliTOFGeometry *geom):
+ TObject(),
+ fNSector(0),
+ fNPlate(0),
+ fNStripA(0),
+ fNStripB(0),
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fnpad(0),
+ fGeom(geom),
+ fPads(0x0)
+{
//ctor with geom
- fGeom = geom;
fNSector = fGeom->NSectors();
fNPlate = fGeom->NPlates();
fNStripA = fGeom->NStripA();
fNpadZ = fGeom->NpadZ();
fNpadX = fGeom->NpadX();
fnpad = fNSector*(2*(fNStripC+fNStripB)+fNStripA)*fNpadZ*fNpadX;
- fPads = 0x0;
gROOT->GetListOfBrowsables()->Add(this);
}
//________________________________________________________________
AliTOFCal::AliTOFCal(const AliTOFCal& cal):
- TObject(cal)
- {
+ TObject(cal),
+ fNSector(0),
+ fNPlate(0),
+ fNStripA(0),
+ fNStripB(0),
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fnpad(0),
+ fGeom(0x0),
+ fPads(0x0)
+{
//copy ctor
fNSector = cal.fNSector;
fNPlate = cal.fNPlate;
/*
$Log$
+Revision 1.6 2006/04/20 22:30:49 hristov
+Coding conventions (Annalisa)
+
Revision 1.5 2006/04/16 22:29:05 hristov
Coding conventions (Annalisa)
//________________________________________________________________
-AliTOFCalPadZ::AliTOFCalPadZ(){
- fCh = 0;
- fNpadX=0;
+ AliTOFCalPadZ::AliTOFCalPadZ():
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0)
+{
+ //fCh = 0;
+ //fNpadX=0;
}
//________________________________________________________________
AliTOFCalPadZ::AliTOFCalPadZ(AliTOFChannel *ch):
+ fNpadX(0),
+ fGeom(0x0),
fCh(ch)
{
- fNpadX = 0;
+ //fNpadX = 0;
}
//________________________________________________________________
-AliTOFCalPadZ::AliTOFCalPadZ(AliTOFGeometry *geom){
+AliTOFCalPadZ::AliTOFCalPadZ(AliTOFGeometry *geom):
+ fNpadX(0),
+ fGeom(geom),
+ fCh(0)
+{
//ctor with TOF geometry
- fCh = 0;
- fGeom = geom;
+ //fCh = 0;
+ //fGeom = geom;
fNpadX = fGeom->NpadX();
}
//________________________________________________________________
AliTOFCalPadZ::AliTOFCalPadZ(AliTOFGeometry *geom,AliTOFChannel *ch):
+ fNpadX(0),
+ fGeom(geom),
fCh(ch)
{
//ctor with TOF geometry and cal channel
}
//________________________________________________________________
-AliTOFCalPadZ::AliTOFCalPadZ(const AliTOFCalPadZ &source)
- :TObject()
+AliTOFCalPadZ::AliTOFCalPadZ(const AliTOFCalPadZ &source):
+ TObject(),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0)
{
// copy constructor
/*
$Log$
+Revision 1.6 2006/04/20 22:30:49 hristov
+Coding conventions (Annalisa)
+
Revision 1.5 2006/04/16 22:29:05 hristov
Coding conventions (Annalisa)
//________________________________________________________________
-AliTOFCalPlateA::AliTOFCalPlateA(){
+AliTOFCalPlateA::AliTOFCalPlateA():
+ fNStripA(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
+{
//main ctor
- fCh = 0;
- fGeom= 0x0;
- fNStripA = 0;
- fNpadZ = 0;
- fNpadX = 0;
}
//________________________________________________________________
-AliTOFCalPlateA::AliTOFCalPlateA(AliTOFChannel *ch) : fCh(ch)
+AliTOFCalPlateA::AliTOFCalPlateA(AliTOFChannel *ch) :
+ fNStripA(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(ch)
{
//ctor with channel
- fGeom= 0x0;
- fNStripA = 0;
- fNpadZ = 0;
- fNpadX = 0;
}
//________________________________________________________________
-AliTOFCalPlateA::AliTOFCalPlateA(AliTOFGeometry *geom){
+AliTOFCalPlateA::AliTOFCalPlateA(AliTOFGeometry *geom):
+ fNStripA(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
+ fCh(0x0)
+{
//ctor with geom
- fCh = 0;
- fGeom = geom;
fNStripA = fGeom->NStripA();
fNpadZ = fGeom->NpadZ();
fNpadX = fGeom->NpadX();
}
//________________________________________________________________
-AliTOFCalPlateA::AliTOFCalPlateA(AliTOFGeometry *geom, AliTOFChannel *ch): fCh(ch)
+AliTOFCalPlateA::AliTOFCalPlateA(AliTOFGeometry *geom, AliTOFChannel *ch):
+ fNStripA(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
+ fCh(ch)
{
//ctor with geom and channel
- fGeom = geom;
fNStripA = fGeom->NStripA();
fNpadZ = fGeom->NpadZ();
fNpadX = fGeom->NpadX();
//________________________________________________________________
AliTOFCalPlateA::AliTOFCalPlateA(const AliTOFCalPlateA& pl):
- TObject(pl)
+ TObject(pl),
+ fNStripA(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
{
//copy ctor
fCh = pl.fCh;
/*
$Log$
+Revision 1.6 2006/04/20 22:30:49 hristov
+Coding conventions (Annalisa)
+
Revision 1.5 2006/04/16 22:29:05 hristov
Coding conventions (Annalisa)
//________________________________________________________________
-AliTOFCalPlateB::AliTOFCalPlateB(){
+AliTOFCalPlateB::AliTOFCalPlateB():
+ fNStripB(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
+{
//main ctor
- fCh = 0;
- fGeom= 0x0;
- fNStripB = 0;
- fNpadZ = 0;
- fNpadX = 0;
}
//________________________________________________________________
-AliTOFCalPlateB::AliTOFCalPlateB(AliTOFChannel *ch) : fCh(ch)
+AliTOFCalPlateB::AliTOFCalPlateB(AliTOFChannel *ch) :
+ fNStripB(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(ch)
{
//ctor with channel
- fGeom= 0x0;
- fNStripB = 0;
- fNpadZ = 0;
- fNpadX = 0;
}
//________________________________________________________________
-AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom){
+AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom):
+ fNStripB(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
+ fCh(0x0)
+{
//ctor with geom
- fCh = 0;
- fGeom = geom;
fNStripB = fGeom->NStripB();
fNpadZ = fGeom->NpadZ();
fNpadX = fGeom->NpadX();
}
//________________________________________________________________
-AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom, AliTOFChannel *ch): fCh(ch)
+AliTOFCalPlateB::AliTOFCalPlateB(AliTOFGeometry *geom, AliTOFChannel *ch):
+ fNStripB(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
+ fCh(ch)
{
//ctor with channel and geom
- fGeom = geom;
fNStripB = fGeom->NStripB();
fNpadZ = fGeom->NpadZ();
fNpadX = fGeom->NpadX();
//________________________________________________________________
AliTOFCalPlateB::AliTOFCalPlateB(const AliTOFCalPlateB& pl):
- TObject(pl)
+ TObject(pl),
+ fNStripB(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
{
//copy ctor
fCh = pl.fCh;
/*
$Log$
+Revision 1.6 2006/04/20 22:30:49 hristov
+Coding conventions (Annalisa)
+
Revision 1.5 2006/04/16 22:29:05 hristov
Coding conventions (Annalisa)
//________________________________________________________________
-AliTOFCalPlateC::AliTOFCalPlateC(){
+AliTOFCalPlateC::AliTOFCalPlateC():
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
+{
//main ctor
- fCh = 0;
- fGeom= 0x0;
- fNStripC = 0;
- fNpadZ = 0;
- fNpadX = 0;
}
//________________________________________________________________
-AliTOFCalPlateC::AliTOFCalPlateC(AliTOFChannel *ch) : fCh(ch)
+AliTOFCalPlateC::AliTOFCalPlateC(AliTOFChannel *ch) :
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(ch)
{
//ctor with channel
- fGeom= 0x0;
- fNStripC = 0;
- fNpadZ = 0;
- fNpadX = 0;
}
//________________________________________________________________
-AliTOFCalPlateC::AliTOFCalPlateC(AliTOFGeometry *geom){
+AliTOFCalPlateC::AliTOFCalPlateC(AliTOFGeometry *geom):
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
+ fCh(0x0)
+{
//ctor with geom
- fCh = 0;
- fGeom = geom;
fNStripC = fGeom->NStripC();
fNpadZ = fGeom->NpadZ();
fNpadX = fGeom->NpadX();
}
//________________________________________________________________
-AliTOFCalPlateC::AliTOFCalPlateC(AliTOFGeometry *geom, AliTOFChannel *ch): fCh(ch)
+AliTOFCalPlateC::AliTOFCalPlateC(AliTOFGeometry *geom, AliTOFChannel *ch):
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
+ fCh(ch)
{
//ctor with channel and geom
- fGeom = geom;
fNStripC = fGeom->NStripC();
fNpadZ = fGeom->NpadZ();
fNpadX = fGeom->NpadX();
//________________________________________________________________
AliTOFCalPlateC::AliTOFCalPlateC(const AliTOFCalPlateC& pl):
- TObject(pl)
+ TObject(pl),
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
{
//copy ctor
fCh = pl.fCh;
/*
$Log$
+Revision 1.6 2006/04/20 22:30:49 hristov
+Coding conventions (Annalisa)
+
Revision 1.5 2006/04/16 22:29:05 hristov
Coding conventions (Annalisa)
//________________________________________________________________
-AliTOFCalSector::AliTOFCalSector(){
+AliTOFCalSector::AliTOFCalSector():
+ fNPlate(0),
+ fNStripA(0),
+ fNStripB(0),
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
+{
//main ctor
- fCh = 0;
- fGeom=0x0;
- fNPlate=0;
- fNStripA=0;
- fNStripB=0;
- fNStripC=0;
- fNpadZ=0;
- fNpadX=0;
gROOT->GetListOfBrowsables()->Add(this);
}
//________________________________________________________________
AliTOFCalSector::AliTOFCalSector(AliTOFChannel *ch):
+ fNPlate(0),
+ fNStripA(0),
+ fNStripB(0),
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
fCh(ch)
{
//ctor with channel
- fGeom=0x0;
- fNPlate=0;
- fNStripA=0;
- fNStripB=0;
- fNStripC=0;
- fNpadZ=0;
- fNpadX=0;
gROOT->GetListOfBrowsables()->Add(this);
}
//________________________________________________________________
-AliTOFCalSector::AliTOFCalSector(AliTOFGeometry *geom){
+AliTOFCalSector::AliTOFCalSector(AliTOFGeometry *geom):
+ fNPlate(0),
+ fNStripA(0),
+ fNStripB(0),
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
+ fCh(0x0)
+{
//ctor with geom
- fCh = 0;
- fGeom= geom;
fNPlate = fGeom->NPlates();
fNStripA = fGeom->NStripA();
fNStripB = fGeom->NStripB();
//________________________________________________________________
AliTOFCalSector::AliTOFCalSector(AliTOFGeometry *geom,AliTOFChannel *ch):
+ fNPlate(0),
+ fNStripA(0),
+ fNStripB(0),
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
fCh(ch)
{
// ctor with channel and geom
- fGeom= geom;
fNPlate = fGeom->NPlates();
fNStripA = fGeom->NStripA();
fNStripB = fGeom->NStripB();
//________________________________________________________________
AliTOFCalSector::AliTOFCalSector(const AliTOFCalSector& sec):
- TObject(sec)
+ TObject(sec),
+ fNPlate(0),
+ fNStripA(0),
+ fNStripB(0),
+ fNStripC(0),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
{
//copy ctor
fCh = sec.fCh;
/*
$Log$
+Revision 1.6 2006/04/20 22:30:49 hristov
+Coding conventions (Annalisa)
+
Revision 1.5 2006/04/16 22:29:05 hristov
Coding conventions (Annalisa)
//________________________________________________________________
-AliTOFCalStrip::AliTOFCalStrip(){
+AliTOFCalStrip::AliTOFCalStrip():
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
+{
//main ctor
- fCh = 0;
- fGeom= 0x0;
- fNpadZ = 0;
- fNpadX = 0;
}
//________________________________________________________________
AliTOFCalStrip::AliTOFCalStrip(AliTOFChannel *ch):
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
fCh(ch)
{
// ctor with channel
- fGeom= 0x0;
- fNpadZ = 0;
- fNpadX = 0;
}
//________________________________________________________________
-AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom){
+AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom):
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
+ fCh(0x0)
+{
//ctor with geom
- fCh = 0;
- fGeom = geom;
fNpadZ = fGeom->NpadZ();
fNpadX = fGeom->NpadX();
}
//________________________________________________________________
AliTOFCalStrip::AliTOFCalStrip(AliTOFGeometry *geom,AliTOFChannel *ch):
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(geom),
fCh(ch)
{
//ctor with channel and geom
- fGeom = geom;
fNpadZ = fGeom->NpadZ();
fNpadX = fGeom->NpadX();
}
//________________________________________________________________
AliTOFCalStrip::AliTOFCalStrip(const AliTOFCalStrip& strip):
- TObject(strip)
+ TObject(strip),
+ fNpadZ(0),
+ fNpadX(0),
+ fGeom(0x0),
+ fCh(0x0)
{
//copy ctor
fCh = strip.fCh;
/*
$Log$
+Revision 1.2 2006/02/13 17:22:26 arcelli
+just Fixing Log info
+
Revision 1.1 2006/02/13 16:10:48 arcelli
Add classes for TOF Calibration (C.Zampolli)
{}
//________________________________________________________________
AliTOFChSim::AliTOFChSim(const AliTOFChSim& channel) :
- TObject(channel)
+ TObject(channel),
+ fSlewedStatus(kFALSE),
+ fSpectrum(-1)
{
// copy constructor
fSlewedStatus = channel.fSlewedStatus;
/*
$Log$
+Revision 1.2 2006/02/13 17:22:26 arcelli
+just Fixing Log info
+
Revision 1.1 2006/02/13 16:10:48 arcelli
Add classes for TOF Calibration (C.Zampolli)
//________________________________________________________________
AliTOFChannel::AliTOFChannel(const AliTOFChannel& channel) :
- TObject(channel)
+ TObject(channel),
+ fStatus(kFALSE),
+ fDelay(0)
{
// copy constructor
/*
$Log$
+Revision 1.11 2006/08/10 14:46:54 decaro
+TOF raw data format: updated version
+
Revision 1.10.1 2006/06/28 A.De Caro
Update TOF raw data format
according to the final version
ClassImp(AliTOFDDLRawData)
//---------------------------------------------------------------------------
-AliTOFDDLRawData::AliTOFDDLRawData()
+AliTOFDDLRawData::AliTOFDDLRawData():
+ fVerbose(0),
+ fIndex(-1),
+ fTOFgeometry(0),
+ fTOFdigitMap(new AliTOFDigitMap()),
+ fTOFdigitArray(0x0),
+ fTOFrawStream(new AliTOFRawStream())
{
//Default constructor
- fIndex=-1;
- fVerbose=0;
- fTOFgeometry = 0;
- fTOFdigitMap = new AliTOFDigitMap();
}
//----------------------------------------------------------------------------
-AliTOFDDLRawData::AliTOFDDLRawData(AliTOFGeometry *tofGeom)
+AliTOFDDLRawData::AliTOFDDLRawData(AliTOFGeometry *tofGeom):
+ fVerbose(0),
+ fIndex(-1),
+ fTOFgeometry(tofGeom),
+ fTOFdigitMap(new AliTOFDigitMap()),
+ fTOFdigitArray(0x0),
+ fTOFrawStream(new AliTOFRawStream())
{
//Constructor
- fIndex=-1;
- fVerbose=0;
- fTOFgeometry = tofGeom;
- fTOFdigitMap = new AliTOFDigitMap();
- fTOFdigitArray = 0x0;
- fTOFrawStream = new AliTOFRawStream();
}
//----------------------------------------------------------------------------
AliTOFDDLRawData::AliTOFDDLRawData(const AliTOFDDLRawData &source) :
- TObject(source) {
+ TObject(source),
+ fVerbose(0),
+ fIndex(-1),
+ fTOFgeometry(0),
+ fTOFdigitMap(new AliTOFDigitMap()),
+ fTOFdigitArray(0x0),
+ fTOFrawStream(new AliTOFRawStream())
+ {
//Copy Constructor
this->fIndex=source.fIndex;
this->fVerbose=source.fVerbose;
ClassImp(AliTOFDigitMap)
-AliTOFDigitMap::AliTOFDigitMap()
+AliTOFDigitMap::AliTOFDigitMap():
+ fNSector(-1),
+ fNplate(-1),
+ fNstrip(-1),
+ fNpx(-1),
+ fNpz(-1),
+ fMaxIndex(-1),
+ fDigitMap(0x0),
+ fTOFGeometry(new AliTOFGeometry())
{
//
// Default ctor
//
- fDigitMap = 0;
-
- fTOFGeometry = new AliTOFGeometry();
fNSector = AliTOFGeometry::NSectors();
fNplate = AliTOFGeometry::NPlates();
}
////////////////////////////////////////////////////////////////////////
-AliTOFDigitMap::AliTOFDigitMap(const AliTOFDigitMap & /*digitMap*/)
-:TObject()
+AliTOFDigitMap::AliTOFDigitMap(const AliTOFDigitMap & /*digitMap*/):
+ TObject(),
+ fNSector(-1),
+ fNplate(-1),
+ fNstrip(-1),
+ fNpx(-1),
+ fNpz(-1),
+ fMaxIndex(-1),
+ fDigitMap(0x0),
+ fTOFGeometry(new AliTOFGeometry())
{
//
// Dummy copy constructor
ClassImp(AliTOFDigitizer)
//___________________________________________
- AliTOFDigitizer::AliTOFDigitizer() :AliDigitizer()
+ AliTOFDigitizer::AliTOFDigitizer() :
+ AliDigitizer(),
+ fGeom(0x0),
+ fDigits(0x0),
+ fSDigitsArray(0x0),
+ fhitMap(0x0)
{
// Default ctor - don't use it
- fDigits=0;
- fSDigitsArray=0;
- fhitMap=0;
- fGeom=0x0;
}
//___________________________________________
-AliTOFDigitizer::AliTOFDigitizer(AliRunDigitizer* manager)
- :AliDigitizer(manager)
+AliTOFDigitizer::AliTOFDigitizer(AliRunDigitizer* manager):
+ AliDigitizer(manager),
+ fGeom(0x0),
+ fDigits(0x0),
+ fSDigitsArray(0x0),
+ fhitMap(0x0)
{
//ctor with RunDigitizer
- fDigits=0;
- fSDigitsArray=0;
- fhitMap=0;
- fGeom=0x0;
}
//------------------------------------------------------------------------
-AliTOFDigitizer::AliTOFDigitizer(const AliTOFDigitizer &source)
- :AliDigitizer(source)
+AliTOFDigitizer::AliTOFDigitizer(const AliTOFDigitizer &source):
+ AliDigitizer(source),
+ fDigits(0),
+ fSDigitsArray(0),
+ fhitMap(0),
+ fGeom(0x0)
{
// copy constructor
this->fDigits=source.fDigits;
/*
$Log$
+Revision 1.16 2006/04/20 22:30:50 hristov
+Coding conventions (Annalisa)
+
Revision 1.15 2006/04/16 22:29:05 hristov
Coding conventions (Annalisa)
const Float_t AliTOFGeometry::fgkTdcBin = 24.4; // time-window for the TDC bins [ps]
//_____________________________________________________________________________
-AliTOFGeometry::AliTOFGeometry()
+AliTOFGeometry::AliTOFGeometry():
+ fNStripC(19), // number of strips in C type module
+ fZlenA(106.0), // length (cm) of the A module
+ fZlenB(141.0), // length (cm) of the B module
+ fZlenC(177.5), // length (cm) of the C module
+ fMaxhZtof(371.5), // Max half z-size of TOF (cm)
+ fRmin(370.), // Inner radius of the TOF (cm)
+ fRmax(399.), // Outer radius of the TOF (cm)
+ fxTOF(371.), // Inner radius of the TOF for Reconstruction (cm)
+ fHoles(0), // Flag for Holes
+ fPhiSec(20.) // sector Phi width (deg)
{
//
// AliTOFGeometry default constructor
//
-
- fNStripC = 19; // number of strips in C type module
- fZlenA = 106.0; // length (cm) of the A module
- fZlenB = 141.0; // length (cm) of the B module
- fZlenC = 177.5; // length (cm) of the C module
- fMaxhZtof = 371.5; // Max half z-size of TOF (cm)
-
- fxTOF = 371.; // Inner radius of the TOF for Reconstruction (cm)
- fRmin = 370.; // Inner radius of the TOF (cm)
- fRmax = 399.; // Outer radius of the TOF (cm)
-
Init();
}
ClassImp(AliTOFHitMap)
-AliTOFHitMap::AliTOFHitMap()
+AliTOFHitMap::AliTOFHitMap():
+ fNSector(-1),
+ fNplate(-1),
+ fNstrip(-1),
+ fNpx(-1),
+ fNpz(-1),
+ fSDigits(0x0),
+ fMaxIndex(-1),
+ fHitMap(0x0),
+ fTOFGeometry(0x0)
{
//
// Default ctor
//
- fHitMap = 0;
- fSDigits = 0;
}
////////////////////////////////////////////////////////////////////////
-AliTOFHitMap::AliTOFHitMap(TClonesArray *dig, AliTOFGeometry *tofGeom)
+AliTOFHitMap::AliTOFHitMap(TClonesArray *dig, AliTOFGeometry *tofGeom):
+ fNSector(-1),
+ fNplate(-1),
+ fNstrip(-1),
+ fNpx(-1),
+ fNpz(-1),
+ fSDigits(dig),
+ fMaxIndex(-1),
+ fHitMap(0x0),
+ fTOFGeometry(tofGeom)
{
//
// ctor
// of course, these constants must not be hardwired
// change later
- fTOFGeometry = tofGeom;
-
fNSector = AliTOFGeometry::NSectors();
fNplate = AliTOFGeometry::NPlates();
fNstrip = fTOFGeometry->NStripC();//fTOFGeometry->NMaxNstrip();
fNpz = AliTOFGeometry::NpadZ();
fMaxIndex=fNSector*fNplate*fNstrip*fNpx*fNpz;
fHitMap = new Int_t[fMaxIndex];
- fSDigits = dig;
Clear();
}
////////////////////////////////////////////////////////////////////////
AliTOFHitMap::AliTOFHitMap(const AliTOFHitMap & /*hitMap*/)
-:TObject()
+ :TObject(),
+ fNSector(-1),
+ fNplate(-1),
+ fNstrip(-1),
+ fNpx(-1),
+ fNpz(-1),
+ fSDigits(0x0),
+ fMaxIndex(-1),
+ fHitMap(0x0),
+ fTOFGeometry(0x0)
{
//
// Dummy copy constructor
/*
$Log$
+Revision 1.7 2006/08/10 14:46:54 decaro
+TOF raw data format: updated version
+
Revision 1.6.1 2006/06/28 A. De Caro, R. Preghenella:
Update TOF raw data format
according to the final version
//_____________________________________________________________________________
-AliTOFRawStream::AliTOFRawStream(AliRawReader* rawReader)
+AliTOFRawStream::AliTOFRawStream(AliRawReader* rawReader):
+ fRawReader(0x0),
+ fDDL(-1),
+ fTRM(-1),
+ fTDC(-1),
+ fTRMchain(-1),
+ fTDCchannel(-1),
+ fTof(-1),
+ fToT(-1),
+ fErrorFlag(-1),
+
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadX(-1),
+ fPadZ(-1),
+ fTOFGeometry(new AliTOFGeometryV5()),
+ fWordType(-1),
+ fSlotID(-1),
+ fACQ(-1),
+ fPSbit(-1),
+ fTime(-1),
+ fTDCerrorFlag(-1),
+ fInsideDRM(kFALSE),
+ fInsideTRM(kFALSE),
+ fInsideLTM(kFALSE),
+ fInsideTRMchain0(kFALSE),
+ fInsideTRMchain1(kFALSE),
+ fLeadingOrphane(kFALSE)
{
//
// create an object to read TOF raw digits
//
fRawReader = rawReader;
+ /*
fDDL = -1;
fTRM = -1;
fTDC = -1;
fStrip = -1;
fPadX = -1;
fPadZ = -1;
-
fTOFGeometry = new AliTOFGeometryV5();
-
+ */
fRawReader->Select("TOF");
-
+ /*
fWordType = -1;
fSlotID = -1;
fACQ = -1;
fInsideTRMchain0 = kFALSE;
fInsideTRMchain1 = kFALSE;
fLeadingOrphane = kFALSE;
-
+ */
}
//_____________________________________________________________________________
-AliTOFRawStream::AliTOFRawStream()
+AliTOFRawStream::AliTOFRawStream():
+ fRawReader(0x0),
+ fDDL(-1),
+ fTRM(-1),
+ fTDC(-1),
+ fTRMchain(-1),
+ fTDCchannel(-1),
+ fTof(-1),
+ fToT(-1),
+ fErrorFlag(-1),
+
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadX(-1),
+ fPadZ(-1),
+ fTOFGeometry(new AliTOFGeometryV5()),
+ fWordType(-1),
+ fSlotID(-1),
+ fACQ(-1),
+ fPSbit(-1),
+ fTime(-1),
+ fTDCerrorFlag(-1),
+ fInsideDRM(kFALSE),
+ fInsideTRM(kFALSE),
+ fInsideLTM(kFALSE),
+ fInsideTRMchain0(kFALSE),
+ fInsideTRMchain1(kFALSE),
+ fLeadingOrphane(kFALSE)
{
//
// default ctr
//
-
+ /*
fRawReader = 0x0;
fDDL = -1;
fTRM = -1;
fStrip = -1;
fPadX = -1;
fPadZ = -1;
-
fTOFGeometry = new AliTOFGeometryV5();
-
fWordType = -1;
fSlotID = -1;
fACQ = -1;
fInsideTRMchain0 = kFALSE;
fInsideTRMchain1 = kFALSE;
fLeadingOrphane = kFALSE;
-
+ */
}
//_____________________________________________________________________________
AliTOFRawStream::AliTOFRawStream(const AliTOFRawStream& stream) :
- TObject(stream)
+ TObject(stream),
+ fRawReader(0x0),
+ fDDL(-1),
+ fTRM(-1),
+ fTDC(-1),
+ fTRMchain(-1),
+ fTDCchannel(-1),
+ fTof(-1),
+ fToT(-1),
+ fErrorFlag(-1),
+
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadX(-1),
+ fPadZ(-1),
+ fTOFGeometry(new AliTOFGeometryV5()),
+ fWordType(-1),
+ fSlotID(-1),
+ fACQ(-1),
+ fPSbit(-1),
+ fTime(-1),
+ fTDCerrorFlag(-1),
+ fInsideDRM(kFALSE),
+ fInsideTRM(kFALSE),
+ fInsideLTM(kFALSE),
+ fInsideTRMchain0(kFALSE),
+ fInsideTRMchain1(kFALSE),
+ fLeadingOrphane(kFALSE)
{
//
// copy constructor
ClassImp(AliTOFSDigit)
////////////////////////////////////////////////////////////////////////
- AliTOFSDigit::AliTOFSDigit()
+AliTOFSDigit::AliTOFSDigit():
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fNDigits(0),
+ fTdc(0x0),
+ fAdc(0x0),
+ fTracks(0x0)
{
//
// default ctor
//
- fNDigits = 0;
- fTdc = 0;
- fAdc = 0;
- fTracks = 0;
}
////////////////////////////////////////////////////////////////////////
-AliTOFSDigit::AliTOFSDigit(Int_t tracknum, Int_t *vol,Float_t *digit)
-:TObject()
+AliTOFSDigit::AliTOFSDigit(Int_t tracknum, Int_t *vol,Float_t *digit):
+ TObject(),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fNDigits(0),
+ fTdc(0x0),
+ fAdc(0x0),
+ fTracks(0x0)
{
//
// Constructor of digit object
}
////////////////////////////////////////////////////////////////////////
-AliTOFSDigit::AliTOFSDigit(const AliTOFSDigit & digit)
-:TObject()
+AliTOFSDigit::AliTOFSDigit(const AliTOFSDigit & digit):
+ TObject(),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fNDigits(0),
+ fTdc(0x0),
+ fAdc(0x0),
+ fTracks(0x0)
{
//
// copy ctor for AliTOFSDigit object
////////////////////////////////////////////////////////////////////////
AliTOFSDigit::AliTOFSDigit(Int_t sector, Int_t plate, Int_t strip, Int_t padx,
- Int_t padz, Float_t tdc, Float_t adc)
+ Int_t padz, Float_t tdc, Float_t adc):
+ fSector(sector),
+ fPlate(plate),
+ fStrip(strip),
+ fPadx(padx),
+ fPadz(padz),
+ fNDigits(1),
+ fTdc(0x0),
+ fAdc(0x0),
+ fTracks(0x0)
{
//
// Constructor for sdigit
//
- fSector = sector;
- fPlate = plate;
- fStrip = strip;
- fPadx = padx;
- fPadz = padz;
- fNDigits = 1;
fTdc = new TArrayF(fNDigits);
(*fTdc)[0] = tdc;
fAdc = new TArrayF(fNDigits);
ClassImp(AliTOFSDigitizer)
//____________________________________________________________________________
- AliTOFSDigitizer::AliTOFSDigitizer():TTask("TOFSDigitizer","")
+AliTOFSDigitizer::AliTOFSDigitizer():
+ TTask("TOFSDigitizer",""),
+ fEvent1(-1),
+ fEvent2(-1),
+ ftail(0x0),
+ fHeadersFile(""),
+ fRunLoader(0x0),
+ fTOFLoader(0x0),
+ fTOFGeometry(new AliTOFGeometry()),
+ fSelectedSector(-1),
+ fSelectedPlate(-1),
+ fTimeResolution(0),
+ fpadefficiency(0),
+ fEdgeEffect(-1),
+ fEdgeTails(-1),
+ fHparameter(0),
+ fH2parameter(0),
+ fKparameter(0),
+ fK2parameter(0),
+ fEffCenter(0),
+ fEffBoundary(0),
+ fEff2Boundary(0),
+ fEff3Boundary(0),
+ fAddTRes(0),
+ fResCenter(0),
+ fResBoundary(0),
+ fResSlope(0),
+ fTimeWalkCenter(0),
+ fTimeWalkBoundary(0),
+ fTimeWalkSlope(0),
+ fTimeDelayFlag(-1),
+ fPulseHeightSlope(0),
+ fTimeDelaySlope(0),
+ fMinimumCharge(0),
+ fChargeSmearing(0),
+ fLogChargeSmearing(0),
+ fTimeSmearing(0),
+ fAverageTimeFlag(-1),
+ fAdcBin(0),
+ fAdcMean(0),
+ fAdcRms(0)
{
// ctor
-
- fRunLoader = 0;
- fTOFLoader = 0;
-
- fEvent1 = 0;
- fEvent2 = 0;
- ftail = 0;
- fSelectedSector = -1;
- fSelectedPlate = -1;
-
- fTOFGeometry = new AliTOFGeometry();
-
}
//------------------------------------------------------------------------
-AliTOFSDigitizer::AliTOFSDigitizer(const AliTOFSDigitizer &source)
- :TTask(source)
+AliTOFSDigitizer::AliTOFSDigitizer(const AliTOFSDigitizer &source):
+ TTask(source),
+ fEvent1(-1),
+ fEvent2(-1),
+ ftail(0x0),
+ fHeadersFile(""),
+ fRunLoader(0x0),
+ fTOFLoader(0x0),
+ fTOFGeometry(0x0),
+ fSelectedSector(-1),
+ fSelectedPlate(-1),
+ fTimeResolution(0),
+ fpadefficiency(0),
+ fEdgeEffect(-1),
+ fEdgeTails(-1),
+ fHparameter(0),
+ fH2parameter(0),
+ fKparameter(0),
+ fK2parameter(0),
+ fEffCenter(0),
+ fEffBoundary(0),
+ fEff2Boundary(0),
+ fEff3Boundary(0),
+ fAddTRes(0),
+ fResCenter(0),
+ fResBoundary(0),
+ fResSlope(0),
+ fTimeWalkCenter(0),
+ fTimeWalkBoundary(0),
+ fTimeWalkSlope(0),
+ fTimeDelayFlag(-1),
+ fPulseHeightSlope(0),
+ fTimeDelaySlope(0),
+ fMinimumCharge(0),
+ fChargeSmearing(0),
+ fLogChargeSmearing(0),
+ fTimeSmearing(0),
+ fAverageTimeFlag(-1),
+ fAdcBin(0),
+ fAdcMean(0),
+ fAdcRms(0)
{
// copy constructor
this->fTOFGeometry=source.fTOFGeometry;
}
//____________________________________________________________________________
-AliTOFSDigitizer::AliTOFSDigitizer(const char* HeaderFile, Int_t evNumber1, Int_t nEvents):TTask("TOFSDigitizer","")
+AliTOFSDigitizer::AliTOFSDigitizer(const char* HeaderFile, Int_t evNumber1, Int_t nEvents):
+ TTask("TOFSDigitizer",""),
+ fEvent1(-1),
+ fEvent2(-1),
+ ftail(0x0),
+ fHeadersFile(HeaderFile), // input filename (with hits)
+ fRunLoader(0x0),
+ fTOFLoader(0x0),
+ fTOFGeometry(0x0),
+ fSelectedSector(-1), // by default we sdigitize all sectors
+ fSelectedPlate(-1), // by default we sdigitize all plates in all sectors
+ fTimeResolution(0),
+ fpadefficiency(0),
+ fEdgeEffect(-1),
+ fEdgeTails(-1),
+ fHparameter(0),
+ fH2parameter(0),
+ fKparameter(0),
+ fK2parameter(0),
+ fEffCenter(0),
+ fEffBoundary(0),
+ fEff2Boundary(0),
+ fEff3Boundary(0),
+ fAddTRes(0),
+ fResCenter(0),
+ fResBoundary(0),
+ fResSlope(0),
+ fTimeWalkCenter(0),
+ fTimeWalkBoundary(0),
+ fTimeWalkSlope(0),
+ fTimeDelayFlag(-1),
+ fPulseHeightSlope(0),
+ fTimeDelaySlope(0),
+ fMinimumCharge(0),
+ fChargeSmearing(0),
+ fLogChargeSmearing(0),
+ fTimeSmearing(0),
+ fAverageTimeFlag(-1),
+ fAdcBin(0),
+ fAdcMean(0),
+ fAdcRms(0)
{
//ctor, reading from input file
- ftail = 0;
- fSelectedSector=-1; // by default we sdigitize all sectors
- fSelectedPlate =-1; // by default we sdigitize all plates in all sectors
- fHeadersFile = HeaderFile ; // input filename (with hits)
TFile * file = (TFile*) gROOT->GetFile(fHeadersFile.Data());
//File was not opened yet open file and get alirun object
ClassImp(AliTOFT0)
//____________________________________________________________________________
- AliTOFT0::AliTOFT0():TTask("AliTOFT0","")
+AliTOFT0::AliTOFT0():
+ TTask("AliTOFT0",""),
+ fNevents(0),
+ fTimeResolution(0),
+ fLowerMomBound(0),
+ fUpperMomBound(0),
+ fT0File(""),
+ fHeadersFile("")
{
// ctor
- fNevents = 0 ;
}
//____________________________________________________________________________
- AliTOFT0::AliTOFT0(char* headerFile, Int_t nEvents):TTask("AliTOFT0","")
+AliTOFT0::AliTOFT0(char* headerFile, Int_t nEvents):
+ TTask("AliTOFT0",""),
+ fNevents(nEvents),
+ fTimeResolution(1.2e-10),
+ fLowerMomBound(1.5),
+ fUpperMomBound(2.),
+ fT0File(""),
+ fHeadersFile(headerFile)
{
//
//
//
- fNevents=nEvents ; // Number of events for which calculate the T0,
+ //fNevents=nEvents ; // Number of events for which calculate the T0,
// default 0: it means all evens in current file
- fLowerMomBound=1.5; // [GeV/c] default value
- fUpperMomBound=2. ; // [GeV/c] default value
- fTimeResolution = 1.2e-10; // 120 ps by default
- fHeadersFile = headerFile ;
+ //fLowerMomBound=1.5; // [GeV/c] default value
+ //fUpperMomBound=2. ; // [GeV/c] default value
+ //fTimeResolution = 1.2e-10; // 120 ps by default
+ //fHeadersFile = headerFile ;
TFile * file = (TFile*) gROOT->GetFile(fHeadersFile.Data() ) ;
}
//____________________________________________________________________________
- AliTOFT0::AliTOFT0(const AliTOFT0 & tzero):TTask("AliTOFT0","")
+AliTOFT0::AliTOFT0(const AliTOFT0 & tzero):
+ TTask("AliTOFT0",""),
+ fNevents(0),
+ fTimeResolution(0),
+ fLowerMomBound(0),
+ fUpperMomBound(0),
+ fT0File(""),
+ fHeadersFile("")
{
// copy ctr
CreateInputs();
}
//----------------------------------------------------------------------
-AliTOFTrigger::AliTOFTrigger(Int_t HighMultTh, Int_t ppMBTh, Int_t MultiMuonTh, Int_t UPTh, Float_t deltaminpsi, Float_t deltamaxpsi, Float_t deltaminro, Float_t deltamaxro, Int_t stripWindow) : AliTriggerDetector()
+AliTOFTrigger::AliTOFTrigger(Int_t HighMultTh, Int_t ppMBTh, Int_t MultiMuonTh, Int_t UPTh, Float_t deltaminpsi, Float_t deltamaxpsi, Float_t deltaminro, Float_t deltamaxro, Int_t stripWindow) :
+ AliTriggerDetector(),
+ fHighMultTh(HighMultTh),
+ fppMBTh(ppMBTh),
+ fMultiMuonTh(MultiMuonTh),
+ fUPTh(UPTh),
+ fdeltaminpsi(deltaminpsi),
+ fdeltamaxpsi(deltamaxpsi),
+ fdeltaminro(deltaminro),
+ fdeltamaxro(deltamaxro),
+ fstripWindow(stripWindow)
+
{
//ctor with thresholds for triggers
- fHighMultTh=HighMultTh;
- fppMBTh=ppMBTh;
- fMultiMuonTh=MultiMuonTh;
- fUPTh=UPTh;
- fdeltaminpsi = deltaminpsi;
- fdeltamaxpsi = deltamaxpsi;
- fdeltaminro = deltaminro;
- fdeltamaxro = deltamaxro;
- fstripWindow = stripWindow;
for (Int_t i=0;i<kNLTM;i++){
for (Int_t j=0;j<kNLTMchannels;j++){
fLTMmatrix[i][j]=kFALSE;
//____________________________________________________________________________
-AliTOFTrigger::AliTOFTrigger(const AliTOFTrigger & tr):AliTriggerDetector()
+AliTOFTrigger::AliTOFTrigger(const AliTOFTrigger & tr):
+ AliTriggerDetector(),
+ fHighMultTh(0),
+ fppMBTh(0),
+ fMultiMuonTh(0),
+ fUPTh(0),
+ fdeltaminpsi(0),
+ fdeltamaxpsi(0),
+ fdeltaminro(0),
+ fdeltamaxro(0),
+ fstripWindow(0)
{
//copy ctor
fHighMultTh=tr.fHighMultTh;
/*
$Log$
+Revision 1.9 2006/04/20 22:30:50 hristov
+Coding conventions (Annalisa)
+
Revision 1.8 2006/04/16 22:29:05 hristov
Coding conventions (Annalisa)
const Int_t AliTOFcalib::fgkchannel = 5000;
//_______________________________________________________________________
-AliTOFcalib::AliTOFcalib():TTask("AliTOFcalib",""){
+AliTOFcalib::AliTOFcalib():
+ TTask("AliTOFcalib",""),
+ fNChannels(-1),
+ fNSector(-1),
+ fNPlate(-1),
+ fNStripA(-1),
+ fNStripB(-1),
+ fNStripC(-1),
+ fNpadZ(-1),
+ fNpadX(-1),
+ fNevents(0),
+ fESDsel(0x0),
+ fArrayToT(0x0),
+ fArrayTime(0x0),
+ fTOFCal(0x0),
+ fTOFSimCal(0x0),
+ fTOFSimToT(0x0)
+{
//TOF Calibration Class ctor
fArrayToT = 0x0;
fArrayTime = 0x0;
delete geom;
}
//_______________________________________________________________________
-AliTOFcalib::AliTOFcalib(AliTOFGeometry *geom):TTask("AliTOFcalib",""){
+AliTOFcalib::AliTOFcalib(AliTOFGeometry *geom):
+ TTask("AliTOFcalib",""),
+ fNChannels(-1),
+ fNSector(-1),
+ fNPlate(-1),
+ fNStripA(-1),
+ fNStripB(-1),
+ fNStripC(-1),
+ fNpadZ(-1),
+ fNpadX(-1),
+ fNevents(0),
+ fESDsel(0x0),
+ fArrayToT(0x0),
+ fArrayTime(0x0),
+ fTOFCal(0x0),
+ fTOFSimCal(0x0),
+ fTOFSimToT(0x0)
+{
//TOF Calibration Class ctor, taking the TOF geometry as input
fArrayToT = 0x0;
fArrayTime = 0x0;
}
//____________________________________________________________________________
-AliTOFcalib::AliTOFcalib(const AliTOFcalib & calib):TTask("AliTOFcalib","")
+AliTOFcalib::AliTOFcalib(const AliTOFcalib & calib):
+ TTask("AliTOFcalib",""),
+ fNChannels(-1),
+ fNSector(-1),
+ fNPlate(-1),
+ fNStripA(-1),
+ fNStripB(-1),
+ fNStripC(-1),
+ fNpadZ(-1),
+ fNpadX(-1),
+ fNevents(0),
+ fESDsel(0x0),
+ fArrayToT(0x0),
+ fArrayTime(0x0),
+ fTOFCal(0x0),
+ fTOFSimCal(0x0),
+ fTOFSimToT(0x0)
{
//TOF Calibration Class copy ctor
fNSector = calib.fNSector;
class AliTOFArray : public TObject {
public:
AliTOFArray(): TObject(),fSize(0),fArray(0x0){}
- AliTOFArray(Int_t size) :
+ AliTOFArray(Int_t size):
TObject(),
fSize(size),
fArray(new TArrayF*[size]) {
}
AliTOFArray(const AliTOFArray & source):
- TObject(){ // copy constructor
+ TObject(),fSize(0),fArray(0x0){ // copy constructor
this->fSize= source.fSize;
this->fArray= source.fArray;
};
/*
$Log$
+Revision 1.5 2006/04/20 22:30:50 hristov
+Coding conventions (Annalisa)
+
Revision 1.4 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
//________________________________________________________________
AliTOFcalibESD::AliTOFcalibESD():
+ fCombID(-1),
fTOFCalCh(-1),
fToT(0),
fIntLen(0),
ClassImp(AliTOFdigit)
+//______________________________________________________________________________
+AliTOFdigit::AliTOFdigit()
+ :AliDigit(),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fTdc(0),
+ fTdcND(0),
+ fAdc(0),
+ fToT(0)
+{
+}
//______________________________________________________________________________
AliTOFdigit::AliTOFdigit(Int_t *tracks, Int_t *vol,Float_t *digit)
-:AliDigit(tracks)
+ :AliDigit(tracks),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fTdc(0),
+ fTdcND(0),
+ fAdc(0),
+ fToT(0)
{
//
// Constructor of digit object
//____________________________________________________________________________
AliTOFdigit::AliTOFdigit(const AliTOFdigit & digit)
-:AliDigit(digit)
+ :AliDigit(digit),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fTdc(0),
+ fTdcND(0),
+ fAdc(0),
+ fToT(0)
{
//
// copy ctor for AliTOFdigit object
//______________________________________________________________________________
AliTOFdigit::AliTOFdigit(Int_t sector, Int_t plate, Int_t strip, Int_t padx,
-Int_t padz, Float_t tdc, Float_t adc)
+ Int_t padz, Float_t tdc, Float_t adc):
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fTdc(0),
+ fTdcND(0),
+ fAdc(0),
+ fToT(0)
{
//
// Constructor for sdigit
}
//______________________________________________________________________________
-AliTOFdigit& AliTOFdigit::operator+(AliTOFdigit const &digit)
+AliTOFdigit AliTOFdigit::operator+(const AliTOFdigit &digit)
{
//
// Overloading of Sum operator
friend ostream& operator << ( ostream& , const AliTOFdigit&) ;
public:
- AliTOFdigit(){}
+ AliTOFdigit();
AliTOFdigit(Int_t* tracks, Int_t* vol, Float_t* digit);
// new ctor for sdigits
AliTOFdigit(Int_t sector, Int_t plate, Int_t strip, Int_t padx, Int_t padz, Float_t tdc, Float_t adc);
//overloading of ==, + operators (summable digits)
Bool_t operator==(const AliTOFdigit& digit) const;
- AliTOFdigit& operator+(AliTOFdigit const &digit) ;
+ AliTOFdigit operator+(const AliTOFdigit &digit) ;
protected:
ClassImp(AliTOFhit)
+//____________________________________________________________________________
+ AliTOFhit::AliTOFhit():
+ AliHit(),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fPx(0),
+ fPy(0),
+ fPz(0),
+ fPmom(0),
+ fTof(0),
+ fDx(0),
+ fDy(0),
+ fDz(0),
+ fIncA(0),
+ fEdep(0)
+{
+}
+
//____________________________________________________________________________
AliTOFhit::AliTOFhit(const AliTOFhit & hit)
-: AliHit(hit)
+ : AliHit(hit),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fPx(0),
+ fPy(0),
+ fPz(0),
+ fPmom(0),
+ fTof(0),
+ fDx(0),
+ fDy(0),
+ fDz(0),
+ fIncA(0),
+ fEdep(0)
{
//
// copy ctor for AliTOFhit object
//______________________________________________________________________________
AliTOFhit::AliTOFhit(Int_t shunt, Int_t track, Int_t *vol,
Float_t *hits)
-:AliHit(shunt, track)
+ :AliHit(shunt, track),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fPx(0),
+ fPy(0),
+ fPz(0),
+ fPmom(0),
+ fTof(0),
+ fDx(0),
+ fDy(0),
+ fDz(0),
+ fIncA(0),
+ fEdep(0)
{
//
// Constructor of hit object
class AliTOFhit : public AliHit {
public:
- AliTOFhit() {}
+ AliTOFhit();
AliTOFhit(Int_t shunt, Int_t track, Int_t* vol,
Float_t *hits);
AliTOFhit(const AliTOFhit & hit) ;
ClassImp(AliTOFhitT0)
//____________________________________________________________________________
-AliTOFhitT0::AliTOFhitT0(const AliTOFhitT0 & hit)
-:AliHit(hit)
+ AliTOFhitT0::AliTOFhitT0():
+ AliHit(),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fPx(0),
+ fPy(0),
+ fPz(0),
+ fPmom(0),
+ fTof(0),
+ fLenTof(0),
+ fDx(0),
+ fDy(0),
+ fDz(0),
+ fIncA(0),
+ fEdep(0)
{
+}
+//____________________________________________________________________________
+AliTOFhitT0::AliTOFhitT0(const AliTOFhitT0 & hit):
+ AliHit(hit),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fPx(0),
+ fPy(0),
+ fPz(0),
+ fPmom(0),
+ fTof(0),
+ fLenTof(0),
+ fDx(0),
+ fDy(0),
+ fDz(0),
+ fIncA(0),
+ fEdep(0){
//
// copy ctor for AliTOFhitT0 object
//
//______________________________________________________________________________
AliTOFhitT0::AliTOFhitT0(Int_t shunt, Int_t track, Int_t *vol,
- Float_t *hits)
-:AliHit(shunt, track)
+ Float_t *hits):
+ AliHit(shunt, track),
+ fSector(-1),
+ fPlate(-1),
+ fStrip(-1),
+ fPadx(-1),
+ fPadz(-1),
+ fPx(0),
+ fPy(0),
+ fPz(0),
+ fPmom(0),
+ fTof(0),
+ fLenTof(0),
+ fDx(0),
+ fDy(0),
+ fDz(0),
+ fIncA(0),
+ fEdep(0)
{
//
// Constructor of hit object
class AliTOFhitT0 : public AliHit {
public:
- AliTOFhitT0() {}
+ AliTOFhitT0();
AliTOFhitT0(Int_t shunt, Int_t track, Int_t* vol,
Float_t *hits);
AliTOFhitT0(const AliTOFhitT0 & hit) ;
ClassImp(AliTOFpidESD)
//_________________________________________________________________________
-AliTOFpidESD::AliTOFpidESD(Double_t *param) {
+ AliTOFpidESD::AliTOFpidESD():
+ fN(-1),
+ fEventN(-1),
+ fSigma(0),
+ fRange(0)
+{
+}
+//_________________________________________________________________________
+AliTOFpidESD::AliTOFpidESD(Double_t *param):
+ fN(0),
+ fEventN(0),
+ fSigma(0),
+ fRange(0)
+ {
//
// The main constructor
//
- fN=0; fEventN=0;
-
fSigma=param[0];
fRange=param[1];
class AliTOFpidESD : public TObject {
enum {kMaxCluster=77777}; //maximal number of the TOF clusters
public:
- AliTOFpidESD(){fN=0; fEventN=0;}
- AliTOFpidESD(Double_t *param);
- ~AliTOFpidESD(){}
+ AliTOFpidESD();
+ AliTOFpidESD(Double_t *param);
+ ~AliTOFpidESD(){}
Int_t MakePID(AliESD *event);
void SetEventNumber(Int_t n) {fEventN=n;}
#include "AliESDtrack.h"
#include "AliLog.h"
-#include "AliTOFGeometryV4.h"
+#include "AliTOFGeometryV5.h"
#include "AliTOFGeometry.h"
#include "AliTOFtrack.h"
ClassImp(AliTOFtrack)
//_____________________________________________________________________________
-AliTOFtrack::AliTOFtrack(const AliTOFtrack& t) : AliKalmanTrack(t) {
+AliTOFtrack::AliTOFtrack() :
+ AliKalmanTrack(),
+ fSeedInd(-1),
+ fSeedLab(-1),
+ fAlpha(0),
+ fX(0),
+ fY(0),
+ fZ(0),
+ fE(0),
+ fT(0),
+ fC(0),
+ fCyy(0),
+ fCzy(0),
+ fCzz(0),
+ fCey(0),
+ fCez(0),
+ fCee(0),
+ fCty(0),
+ fCtz(0),
+ fCte(0),
+ fCtt(0),
+ fCcy(0),
+ fCcz(0),
+ fCce(0),
+ fCct(0),
+ fCcc(0),
+ fTOFgeometry(0x0)
+ {
+}//_____________________________________________________________________________
+AliTOFtrack::AliTOFtrack(const AliTOFtrack& t) : AliKalmanTrack(t),
+ fSeedInd(-1),
+ fSeedLab(-1),
+ fAlpha(0),
+ fX(0),
+ fY(0),
+ fZ(0),
+ fE(0),
+ fT(0),
+ fC(0),
+ fCyy(0),
+ fCzy(0),
+ fCzz(0),
+ fCey(0),
+ fCez(0),
+ fCee(0),
+ fCty(0),
+ fCtz(0),
+ fCte(0),
+ fCtt(0),
+ fCcy(0),
+ fCcz(0),
+ fCce(0),
+ fCct(0),
+ fCcc(0),
+ fTOFgeometry(0x0)
+ {
//
// Copy constructor.
//
fCty=t.fCty; fCtz=t.fCtz; fCte=t.fCte; fCtt=t.fCtt;
fCcy=t.fCcy; fCcz=t.fCcz; fCce=t.fCce; fCct=t.fCct; fCcc=t.fCcc;
- fTOFgeometry = new AliTOFGeometryV4();
+ fTOFgeometry = new AliTOFGeometryV5();
}
//_____________________________________________________________________________
-AliTOFtrack::AliTOFtrack(const AliESDtrack& t)
- :AliKalmanTrack() {
+AliTOFtrack::AliTOFtrack(const AliESDtrack& t):
+ AliKalmanTrack(),
+ fSeedInd(-1),
+ fSeedLab(-1),
+ fAlpha(0),
+ fX(0),
+ fY(0),
+ fZ(0),
+ fE(0),
+ fT(0),
+ fC(0),
+ fCyy(0),
+ fCzy(0),
+ fCzz(0),
+ fCey(0),
+ fCez(0),
+ fCee(0),
+ fCty(0),
+ fCtz(0),
+ fCte(0),
+ fCtt(0),
+ fCcy(0),
+ fCcz(0),
+ fCce(0),
+ fCct(0),
+ fCcc(0),
+ fTOFgeometry(0x0)
+ {
//
// Constructor from AliESDtrack
//
- fTOFgeometry = new AliTOFGeometryV4();
+ fTOFgeometry = new AliTOFGeometryV5();
SetSeedIndex(-1);
SetLabel(t.GetLabel());
public:
- AliTOFtrack():AliKalmanTrack(){}
+ AliTOFtrack();
AliTOFtrack(const AliTOFtrack& t);
AliTOFtrack(const AliESDtrack& t);
AliTOFtrack& operator=(const AliTOFtrack &source); // ass. op.
ClassImp(AliTOFv4T0)
//_____________________________________________________________________________
-AliTOFv4T0::AliTOFv4T0()
+ AliTOFv4T0::AliTOFv4T0():
+ fIdFTOA(-1),
+ fIdFTOB(-1),
+ fIdFTOC(-1),
+ fIdFLTA(-1),
+ fIdFLTB(-1),
+ fIdFLTC(-1),
+ fTOFHoles(kFALSE)
{
//
// Default constructor
}
//_____________________________________________________________________________
-AliTOFv4T0::AliTOFv4T0(const char *name, const char *title)
- : AliTOF(name,title,"tzero")
+AliTOFv4T0::AliTOFv4T0(const char *name, const char *title):
+ AliTOF(name,title,"tzero"),
+ fIdFTOA(-1),
+ fIdFTOB(-1),
+ fIdFTOC(-1),
+ fIdFLTA(-1),
+ fIdFLTB(-1),
+ fIdFLTC(-1),
+ fTOFHoles(kFALSE)
{
//
// Standard constructor
/*
$Log$
+Revision 1.11 2006/07/12 16:03:44 arcelli
+updates to match the new numbering of the TOF/TRD mother volumes in FRAME (ALICE convention)
+
Revision 1.10 2006/05/10 18:40:17 hristov
Larger strings for the names
ClassImp(AliTOFv5T0)
//_____________________________________________________________________________
-AliTOFv5T0::AliTOFv5T0()
+ AliTOFv5T0::AliTOFv5T0():
+ fIdFTOA(-1),
+ fIdFTOB(-1),
+ fIdFTOC(-1),
+ fIdFLTA(-1),
+ fIdFLTB(-1),
+ fIdFLTC(-1),
+ fTOFHoles(kFALSE)
{
//
// Default constructor
}
//_____________________________________________________________________________
-AliTOFv5T0::AliTOFv5T0(const char *name, const char *title)
- : AliTOF(name,title,"tzero")
+AliTOFv5T0::AliTOFv5T0(const char *name, const char *title):
+ AliTOF(name,title,"tzero"),
+ fIdFTOA(-1),
+ fIdFTOB(-1),
+ fIdFTOC(-1),
+ fIdFLTA(-1),
+ fIdFLTB(-1),
+ fIdFLTC(-1),
+ fTOFHoles(kFALSE)
{
//
// Standard constructor