AliAODMCParticle& AliAODMCParticle::operator=(const AliAODMCParticle& mcPart)
{
-
+ //
+ // assignment operator
+ //
if (this!=&mcPart) {
AliVParticle::operator=(mcPart);
fPdgCode = mcPart.fPdgCode;
Double_t AliAODMCParticle::M() const
{
+ //
+ // return the mass
+ //
TParticlePDG* pdg = TDatabasePDG::Instance()->GetParticle(fPdgCode);
if (pdg) {
return (pdg->Mass());
Short_t AliAODMCParticle::Charge() const
{
+ //
+ // return tha charge
+ //
TParticlePDG* pdg = TDatabasePDG::Instance()->GetParticle(fPdgCode);
if (pdg) {
return (Short_t (pdg->Charge()));
-#ifndef AliAODMCParticle_H
-#define AliAODMCParticle_H
+#ifndef AliAODMCPARTICLE_H
+#define AliAODMCPARTICLE_H
/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
// for the status we use the upper 16 bits/2 bytes of the flag word
void SetStatus(Int_t status){
- // a TParticle can have a negative stuts, catch this here and do nothing
- if(status<0)return;
- // reset the upper bins keep the lower bins
- fFlag &= 0xffff;
- // bit shift by 16
- fFlag |= (((UInt_t)status)<<16);
+ if(status<0)return; // a TParticle can have a negative stuts, catch this here and do nothing
+ fFlag &= 0xffff; // reset the upper bins keep the lower bins
+ fFlag |= (((UInt_t)status)<<16); // bit shift by 16
}
UInt_t GetStatus() const {
// bit shift by 16
-#ifndef AliAODPhoton_H
-#define AliAODPhoton_H
+#ifndef AliAODPHOTON_H
+#define AliAODPHOTON_H
/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-#ifndef AliAODPid_H
-#define AliAODPid_H
+#ifndef AliAODPID_H
+#define AliAODPID_H
/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
Double_t Chi2perNDF() const { return fChi2perNDF; }
UShort_t GetTPCNcls() const {
- UShort_t cl = 0;
- cl = fTPCFitMap.CountBits();
+ UShort_t cl = fTPCFitMap.CountBits();
if(cl==0)return fTPCClusterMap.CountBits();// backward compatibility
return cl;
}
else if(its->InheritsFrom("TClonesArray")){
// Create or expand the tclonesarray pointers
// so we can directly copy to the object
- TClonesArray *its_tca = (TClonesArray*)its;
- TClonesArray *mine_tca = (TClonesArray*)mine;
+ TClonesArray *itstca = (TClonesArray*)its;
+ TClonesArray *minetca = (TClonesArray*)mine;
// this leaves the capacity of the TClonesArray the same
// except for a factor of 2 increase when size > capacity
// does not release any memory occupied by the tca
- mine_tca->ExpandCreate(its_tca->GetEntriesFast());
- for(int i = 0;i < its_tca->GetEntriesFast();++i){
+ minetca->ExpandCreate(itstca->GetEntriesFast());
+ for(int i = 0;i < itstca->GetEntriesFast();++i){
// copy
- TObject *mine_tca_obj = mine_tca->At(i);
- TObject *its_tca_obj = its_tca->At(i);
+ TObject *minetcaobj = minetca->At(i);
+ TObject *itstcaobj = itstca->At(i);
// no need to delete first
// pointers within the class should be handled by Copy()...
// Can there be Empty slots?
- its_tca_obj->Copy(*mine_tca_obj);
+ itstcaobj->Copy(*minetcaobj);
}
}
else{
}
Bool_t AliESDEvent::ResetWithPlacementNew(TObject *pObject){
+ //
+ // funtion to reset using the already allocated space
+ //
Long_t dtoronly = TObject::GetDtorOnly();
TClass *pClass = TClass::GetClass(pObject->ClassName());
TObject::SetDtorOnly(pObject);
new(errlogs[errlogs.GetEntriesFast()]) AliRawDataErrorLog(*log);
}
-void AliESDEvent::SetZDCData(AliESDZDC * obj)
+void AliESDEvent::SetZDCData(const AliESDZDC * obj)
{
// use already allocated space
if(fESDZDC)
}
}
-void AliESDEvent::SetVZEROData(AliESDVZERO * obj)
+void AliESDEvent::SetVZEROData(const AliESDVZERO * obj)
{
// use already allocated space
if(fESDVZERO)
*fESDVZERO = *obj;
}
-void AliESDEvent::SetTZEROData(AliESDTZERO * obj)
+void AliESDEvent::SetTZEROData(const AliESDTZERO * obj)
{
// use already allocated space
if(fESDTZERO)
AliESDZDC* GetESDZDC() const {return fESDZDC;}
AliESDZDC* GetZDCData() const {return fESDZDC;}
- void SetZDCData(AliESDZDC * obj);
+ void SetZDCData(const AliESDZDC * obj);
// Delegated methods for fESDZDC
Double_t GetZDCN1Energy() const {return fESDZDC?fESDZDC->GetZDCN1Energy():0;}
// TZERO CKB: put this in the header?
const AliESDTZERO* GetESDTZERO() const {return fESDTZERO;}
- void SetTZEROData(AliESDTZERO * obj);
+ void SetTZEROData(const AliESDTZERO * obj);
// delegetated methods for fESDTZERO
Double32_t GetT0zVertex() const {return fESDTZERO?fESDTZERO->GetT0zVertex():0;}
// VZERO
AliESDVZERO *GetVZEROData() const { return fESDVZERO; }
- void SetVZEROData(AliESDVZERO * obj);
+ void SetVZEROData(const AliESDVZERO * obj);
#ifdef MFT_UPGRADE
// MFT
fBeamType(""),
fTriggerClasses(kNTriggerClasses),
fDetInDAQ(0),
- fDetInReco(0)
-
+ fDetInReco(0)
{
+ //
+ // default ctor
+ //
for (Int_t i=0; i<2; i++) fDiamondXY[i]=0.;
fBeamParticle[0] = fBeamParticle[1] = 0;
fDiamondCovXY[0]=fDiamondCovXY[2]=3.*3.;
fDetInDAQ(0),
fDetInReco(0)
{
+ //
// Copy constructor
+ //
for (Int_t i=0; i<2; i++) fDiamondXY[i]=esd.fDiamondXY[i];
for (Int_t i=0; i<3; i++) fDiamondCovXY[i]=esd.fDiamondCovXY[i];
for (Int_t i=0; i<2; i++) fBeamParticle[i] = esd.fBeamParticle[i];