}
-const UInt_t AliHLTPendolino::GetStartTimeDCSQuery() {
+UInt_t AliHLTPendolino::GetStartTimeDCSQuery() {
return fStartTime;
}
-const UInt_t AliHLTPendolino::GetEndTimeDCSQuery() {
+UInt_t AliHLTPendolino::GetEndTimeDCSQuery() {
return fEndTime;
}
* implementation in the Offline Shuttle - there the initial start time
* is set to the start-of-data for the complete run.)
*/
- virtual const UInt_t GetStartTimeDCSQuery();
+ virtual UInt_t GetStartTimeDCSQuery();
/**
* Function to get the end time of the DCS Archive DB request; in HLT
* implementation in the Offline Shuttle - there the initial end time
* is set to the end-of-data for the complete run.)
*/
- virtual const UInt_t GetEndTimeDCSQuery();
+ virtual UInt_t GetEndTimeDCSQuery();
protected:
void SetESD(AliESDEvent *esd) { fESD = esd; }
void SetEnergyCorrectionOn(Bool_t on=kTRUE) {fEnergyCorrectionOn = on;}
- const Bool_t GetEnergyCorrectionOn() const {return fEnergyCorrectionOn;}
+ Bool_t GetEnergyCorrectionOn() const {return fEnergyCorrectionOn;}
virtual const char * Version() const = 0;
void SubtractPedestals(Bool_t subtract) {fPedSubtract=subtract;}
void SetAmpOffset(Int_t extPed=5){fAmpOffset=extPed ;}
- const Double_t GetEnergy() const { return fEnergy; }
- const Double_t GetTime() const { return fTime; }
- const Double_t GetSampleQuality() const {return fQuality ;}
- const Double_t GetPedestalRMS() const {return fPedestalRMS ;}
- const Int_t GetModule() const { return fModule; }
- const Int_t GetColumn() const { return fColumn; }
- const Int_t GetRow() const { return fRow; }
- const Bool_t IsLowGain() const { return fLowGainFlag; }
- const Bool_t IsOverflow() const { return fOverflow ;}
+ Double_t GetEnergy() const { return fEnergy; }
+ Double_t GetTime() const { return fTime; }
+ Double_t GetSampleQuality() const {return fQuality ;}
+ Double_t GetPedestalRMS() const {return fPedestalRMS ;}
+ Int_t GetModule() const { return fModule; }
+ Int_t GetColumn() const { return fColumn; }
+ Int_t GetRow() const { return fRow; }
+ Bool_t IsLowGain() const { return fLowGainFlag; }
+ Bool_t IsOverflow() const { return fOverflow ;}
const AliRawReader* GetRawReader() const { return fRawReader; }
void SetCalibData(AliPHOSCalibData * cdata){ fCalibData=cdata ;}
gMC -> Gmtod (pm, pd, 2); // transform 3-momentum from master to daughter system
// Select tracks coming to the crystal from up or down sides
- if (pd[1]<0 && xyzd[1] > GetGeometry()->GetCrystalSize(1)/2-0.1 ||
- pd[1]>0 && xyzd[1] < -GetGeometry()->GetCrystalSize(1)/2+0.1) {
+ if ((pd[1]<0 && xyzd[1] > GetGeometry()->GetCrystalSize(1)/2-0.1) ||
+ (pd[1]>0 && xyzd[1] < -GetGeometry()->GetCrystalSize(1)/2+0.1)) {
// Select tracks coming to the crystal from up or down sides
Int_t pid = gMC->TrackPid();
Int_t module;
printf("Cluster type: %d\n", GetType());
printf(" energy = %f\n", E());
printf(" chi2 = %f\n", Chi2());
- printf(" PID object: %p\n", PID());
+ printf(" PID object: %p\n", static_cast<const void*>(PID()));
}
template <class T> void SetPID(const T *pid) {
if(pid) for(Int_t i=0; i<13; ++i) fPID[i]=pid[i];
- else {for(Int_t i=0; i<13; fPID[i++]=0);} fPID[AliAODCluster::kUnknown]=1.;}
+ else {for(Int_t i=0; i<13; fPID[i++]=0) ;} fPID[AliAODCluster::kUnknown]=1.;}
template <class T> void SetPIDFromESD(const T *pid) {
if(pid) {for(Int_t i=0; i<11; ++i) fPID[i]=pid[i]; fPID[11]=0; fPID[12]=0;}
- else {for(Int_t i=0; i<13; fPID[i++]=0);} fPID[AliAODCluster::kUnknown]=1.;}
+ else {for(Int_t i=0; i<13; fPID[i++]=0) ;} fPID[AliAODCluster::kUnknown]=1.;}
Int_t GetID() const { return fID; }
Int_t GetLabel(UInt_t i) const;
Int_t pmdClusSize = 0);
void ClearStd();
void ReadFromTree(TTree *tree, Option_t* opt = "");
- const void WriteToTree(TTree* tree) const {tree->Branch(fAODObjects);}
+ void WriteToTree(TTree* tree) const {tree->Branch(fAODObjects);}
void Print(Option_t *option="") const;
void MakeEntriesReferencable();
const TUrl *url = file->GetEndpointUrl();
fguid = file->GetUUID().AsString();
- if (type == "grid") {
+ if (!strcmp(type,"grid")) {
TString fturltemp = "alien://"; fturltemp += url->GetFile();
fturl = fturltemp(0,fturltemp.Index(".root",5,0,TString::kExact)+5);
} else {
// Set the event and input file references
evTag->SetEventId(iEventNumber+1);
evTag->SetGUID(fguid);
- if(type == "grid") {
+ if(!strcmp(type,"grid")) {
evTag->SetMD5(0);
evTag->SetTURL(fturl);
evTag->SetSize(0);
}
}
-Int_t AliAODTrack::HitsMT(Int_t istation, Int_t iplane, Char_t *cathode){
+Int_t AliAODTrack::HitsMT(Int_t istation, Int_t iplane, Option_t *cathode){
//
// Retrieve hit information for MUON identified by (station, plane, cathode)
if(cathode){
template <class T> void SetPID(const T *pid) {
if(pid) for(Int_t i=0; i<10; ++i) fPID[i]=pid[i];
- else {for(Int_t i=0; i<10; fPID[i++]=0.); fPID[AliAODTrack::kUnknown]=1.;}}
+ else {for(Int_t i=0; i<10; fPID[i++]=0.) ; fPID[AliAODTrack::kUnknown]=1.;}}
Bool_t IsOn(Int_t mask) const {return (fFlags&mask)>0;}
ULong_t GetStatus() const { return GetFlags(); }
Int_t MatchTriggerHighPt() const { return (GetMatchTrigger()>2)?1:0; } // Muon track matches trigger track and passes High pt cut
Double_t GetChi2MatchTrigger() const { return fChi2MatchTrigger;}
void SetChi2MatchTrigger(Double_t Chi2MatchTrigger) {fChi2MatchTrigger = Chi2MatchTrigger; }
- Int_t HitsMT(Int_t istation, Int_t iplane, Char_t *cathode=0); // Check if track hits Muon chambers
+ Int_t HitsMT(Int_t istation, Int_t iplane, Option_t *cathode=0); // Check if track hits Muon chambers
Int_t HitsMuonChamber(Int_t MuonChamber); // Check if track hits Muon chambers
Bool_t IsMuonTrack() const { return (GetMUONClusterMap()>0) ? kTRUE : kFALSE; }
TRefArrayIter iter(&fDaughters);
while (TObject *daugh = iter.Next()) {
- printf("Particle %p originates from this vertex.\n", daugh);
+ printf("Particle %p originates from this vertex.\n", static_cast<void*>(daugh));
}
}
printf(" x = %f\n", fPosition[0]);
printf(" y = %f\n", fPosition[1]);
printf(" z = %f\n", fPosition[2]);
- printf(" parent particle: %p\n", fParent.GetObject());
+ printf(" parent particle: %p\n", static_cast<void*>(fParent.GetObject()));
printf(" origin of %d particles\n", fDaughters.GetEntriesFast());
printf(" vertex type %d\n", fType);
return kFALSE;
}
- return (fFirstRun <= other.fFirstRun && other.fFirstRun <= fLastRun
- || fFirstRun <= other.fLastRun
- && other.fLastRun <= fLastRun)
- || (other.fFirstRun <= fFirstRun && fFirstRun <= other.fLastRun
- || other.fFirstRun <= fLastRun
- && fLastRun <= other.fLastRun);
+ return ((fFirstRun <= other.fFirstRun && other.fFirstRun <= fLastRun)
+ || (fFirstRun <= other.fLastRun && other.fLastRun <= fLastRun))
+ || ((other.fFirstRun <= fFirstRun && fFirstRun <= other.fLastRun)
+ || (other.fFirstRun <= fLastRun && fLastRun <= other.fLastRun));
}
//___________________________________________________________________________
ClassImp(AliCorrQAChecker)
//__________________________________________________________________
-const Double_t AliCorrQAChecker::Check(AliQA::ALITASK_t index, TNtupleD * nData)
+Double_t AliCorrQAChecker::Check(AliQA::ALITASK_t index, TNtupleD * nData)
{
// check the QA of correlated data stored in a ntuple
if ( index != AliQA::kRAW ) {
AliCorrQAChecker(const AliCorrQAChecker& qac) : AliQACheckerBase(qac.GetName(), qac.GetTitle()) {;} // cpy ctor
virtual ~AliCorrQAChecker() {;} // dtor
- virtual const Double_t Check(AliQA::ALITASK_t index) { return AliQACheckerBase::Check(index) ;}
- virtual const Double_t Check(AliQA::ALITASK_t index, TObjArray * obj) { return AliQACheckerBase::Check(index, obj) ;}
- virtual const Double_t Check(AliQA::ALITASK_t index, TNtupleD * nData) ;
+ virtual Double_t Check(AliQA::ALITASK_t index) { return AliQACheckerBase::Check(index) ;}
+ virtual Double_t Check(AliQA::ALITASK_t index, TObjArray * obj) { return AliQACheckerBase::Check(index, obj) ;}
+ virtual Double_t Check(AliQA::ALITASK_t index, TNtupleD * nData) ;
private:
return clusters->GetEntriesFast();
}
-const void AliESDEvent::WriteToTree(TTree* tree) const {
+void AliESDEvent::WriteToTree(TTree* tree) const {
// Book the branches as in TTree::Branch(TCollection*)
// but add a "." at the end of top level branches which are
// not a TClonesArray
void ReadFromTree(TTree *tree, Option_t* opt = "");
TObject* FindListObject(const char *name);
AliESD *GetAliESDOld(){return fESDOld;}
- const void WriteToTree(TTree* tree) const;
+ void WriteToTree(TTree* tree) const;
void GetStdContent();
void ResetStdContent();
void CreateStdContent();
}
-const Bool_t AliESDtrack::FillTPCOnlyTrack(AliESDtrack &track){
+Bool_t AliESDtrack::FillTPCOnlyTrack(AliESDtrack &track){
// Fills the information of the TPC-only first reconstruction pass
// into the passed ESDtrack object. For consistency fTPCInner is also filled
}
const AliExternalTrackParam * GetInnerParam() const { return fIp;}
const AliExternalTrackParam * GetTPCInnerParam() const {return fTPCInner;}
- const Bool_t FillTPCOnlyTrack(AliESDtrack &track);
+ Bool_t FillTPCOnlyTrack(AliESDtrack &track);
Bool_t GetInnerXYZ(Double_t *r) const {
if (!fIp) return kFALSE;
return fIp->GetXYZ(r);
virtual void CreateStdContent() {;}
virtual void GetStdContent() {;}
virtual void ReadFromTree(TTree * /*tree*/, Option_t* /*opt*/) {;}
- virtual const void WriteToTree(TTree* /*tree*/) const {;}
+ virtual void WriteToTree(TTree* /*tree*/) const {;}
virtual void SetStdNames() {;}
virtual void Print(Option_t */*option=""*/) const {;}
}
//Pad the string with blanks
i=-1;
- while(natmed[++i]);
+ while(natmed[++i]) ;
while(i<20) natmed[i++]=' ';
natmed[i]='\0';
//
if (nwbuf>0) for(i=0;i<nwbuf;i++) fscanf(lun,"%f",&ubuf[i]);
//Pad the string with blanks
i=-1;
- while(namate[++i]);
+ while(namate[++i]) ;
while(i<20) namate[i++]=' ';
namate[i]='\0';
//
if (fieldm<0) fieldm=sxmgmx;
//Pad the string with blanks
i=-1;
- while(natmed[++i]);
+ while(natmed[++i]) ;
while(i<20) natmed[i++]=' ';
natmed[i]='\0';
//
return kFALSE;
}
//______________________________________________________________________________________________
-const UInt_t AliPreprocessor::GetStartTimeDCSQuery()
+UInt_t AliPreprocessor::GetStartTimeDCSQuery()
{
// Return Start Time for the DCS query
//
return fShuttle->GetStartTimeDCSQuery();
}
//______________________________________________________________________________________________
-const UInt_t AliPreprocessor::GetEndTimeDCSQuery()
+UInt_t AliPreprocessor::GetEndTimeDCSQuery()
{
// Return End Time for the DCS query
//
Bool_t GetHLTStatus();
const char* GetTriggerConfiguration();
void Log(const char* message);
- const UInt_t GetStartTimeDCSQuery();
- const UInt_t GetEndTimeDCSQuery();
+ UInt_t GetStartTimeDCSQuery();
+ UInt_t GetEndTimeDCSQuery();
void AddRunType(const char* runType);
}
//_______________________________________________________________
-const Bool_t AliQA::CheckFatal() const
+Bool_t AliQA::CheckFatal() const
{
// check if any FATAL status is set
Bool_t rv = kFALSE ;
}
//_______________________________________________________________
-const Bool_t AliQA::CheckRange(DETECTORINDEX_t det) const
+Bool_t AliQA::CheckRange(DETECTORINDEX_t det) const
{
// check if detector is in given detector range: 0-kNDET
}
//_______________________________________________________________
-const Bool_t AliQA::CheckRange(ALITASK_t task) const
+Bool_t AliQA::CheckRange(ALITASK_t task) const
{
// check if task is given taskk range: 0:kNTASK
Bool_t rv = ( task < kRAW || task > kNTASK ) ? kFALSE : kTRUE ;
}
//_______________________________________________________________
-const Bool_t AliQA::CheckRange(QABIT_t bit) const
+Bool_t AliQA::CheckRange(QABIT_t bit) const
{
// check if bit is in given bit range: 0-kNBit
}
//_______________________________________________________________
-const AliQA::DETECTORINDEX_t AliQA::GetDetIndex(const char * name)
+AliQA::DETECTORINDEX_t AliQA::GetDetIndex(const char * name)
{
// returns the detector index corresponding to a given name
TString sname(name) ;
}
//_______________________________________________________________
-const AliQA::TASKINDEX_t AliQA::GetTaskIndex(const char * name)
+AliQA::TASKINDEX_t AliQA::GetTaskIndex(const char * name)
{
// returns the detector index corresponding to a given name
TString sname(name) ;
}
//_______________________________________________________________
-const Bool_t AliQA::IsSet(DETECTORINDEX_t det, ALITASK_t tsk, QABIT_t bit) const
+Bool_t AliQA::IsSet(DETECTORINDEX_t det, ALITASK_t tsk, QABIT_t bit) const
{
// Checks is the requested bit is set
}
//_______________________________________________________________
-const Bool_t AliQA::IsSetAny(DETECTORINDEX_t det, ALITASK_t tsk) const
+Bool_t AliQA::IsSetAny(DETECTORINDEX_t det, ALITASK_t tsk) const
{
// Checks is the requested bit is set
return kTRUE ;
}
//_______________________________________________________________
-const Bool_t AliQA::IsSetAny(DETECTORINDEX_t det) const
+Bool_t AliQA::IsSetAny(DETECTORINDEX_t det) const
{
// Checks is the requested bit is set
}
//_______________________________________________________________
-const ULong_t AliQA::Offset(ALITASK_t tsk) const
+ULong_t AliQA::Offset(ALITASK_t tsk) const
{
// Calculates the bit offset for a given module (SIM, REC, ESD, ANA)
static AliQA * Instance(const DETECTORINDEX_t det) ;
static AliQA * Instance(const ALITASK_t tsk) ;
static AliQA * Instance(const TASKINDEX_t tsk) ;
- const Bool_t CheckFatal() const ;
+ Bool_t CheckFatal() const ;
static void Close() ;
static const char * GetAliTaskName(ALITASK_t tsk) ;
static const TString GetExpert() { return fkgExpert ; }
- static const UInt_t GetExpertBit() { return fkgExpertBit ; }
+ static UInt_t GetExpertBit() { return fkgExpertBit ; }
static const TString GetLabLocalFile() { return fkgLabLocalFile ; }
static const TString GetLabLocalOCDB() { return fkgLabLocalOCDB ; }
static const TString GetLabAliEnOCDB() { return fkgLabAliEnOCDB ; }
- static const DETECTORINDEX_t GetDetIndex(const char * name) ;
+ static DETECTORINDEX_t GetDetIndex(const char * name) ;
static const TString GetDetName(DETECTORINDEX_t det) { return fgDetNames[det] ; }
static const char * GetDetName(Int_t det) ;
static const TString GetGRPPath() { return fgGRPPath ; }
- static const UInt_t GetQABit() { return fkgQABit ; }
+ static UInt_t GetQABit() { return fkgQABit ; }
static TFile * GetQADataFile(const char * name, const Int_t run) ;
static TFile * GetQADataFile(const char * fileName) ;
static const char * GetQADataFileName(const char * name, const Int_t run)
static const char * GetRefOCDBDirName() { return fkgRefOCDBDirName.Data() ; }
static const char * GetRefDataDirName() { return fkgRefDataDirName.Data() ; }
static const TString GetRunTypeName(RUNTYPE_t rt = kNULLTYPE) ;
- static const TASKINDEX_t GetTaskIndex(const char * name) ;
- static const TString GetTaskName(UInt_t tsk) { return fgTaskNames[tsk] ; }
- const Bool_t IsSet(DETECTORINDEX_t det, ALITASK_t tsk, QABIT_t bit) const ;
- const Bool_t IsSetAny(DETECTORINDEX_t det, ALITASK_t tsk) const ;
- const Bool_t IsSetAny(DETECTORINDEX_t det) const ;
+ static TASKINDEX_t GetTaskIndex(const char * name) ;
+ static TString GetTaskName(UInt_t tsk) { return fgTaskNames[tsk] ; }
+ Bool_t IsSet(DETECTORINDEX_t det, ALITASK_t tsk, QABIT_t bit) const ;
+ Bool_t IsSetAny(DETECTORINDEX_t det, ALITASK_t tsk) const ;
+ Bool_t IsSetAny(DETECTORINDEX_t det) const ;
void Merge(TCollection * list) ;
void Set(QABIT_t bit) ;
static void SetQAResultDirName(const char * name) ;
private:
- const Bool_t CheckRange(DETECTORINDEX_t det) const ;
- const Bool_t CheckRange(ALITASK_t tsk) const ;
- const Bool_t CheckRange(QABIT_t bit) const ;
+ Bool_t CheckRange(DETECTORINDEX_t det) const ;
+ Bool_t CheckRange(ALITASK_t tsk) const ;
+ Bool_t CheckRange(QABIT_t bit) const ;
const char * GetBitName(QABIT_t bit) const ;
- const ULong_t GetStatus(DETECTORINDEX_t det) const { return fQA[det] ;}
+ ULong_t GetStatus(DETECTORINDEX_t det) const { return fQA[det] ;}
void Finish() const ;
- const ULong_t Offset(ALITASK_t tsk) const ;
+ ULong_t Offset(ALITASK_t tsk) const ;
void ShowASCIIStatus(DETECTORINDEX_t det, ALITASK_t tsk, ULong_t status) const ;
void ResetStatus(DETECTORINDEX_t det) { fQA[det] = 0 ; }
void Set(DETECTORINDEX_t det) { fDet = det ;}
}
//____________________________________________________________________________
-const Double_t AliQACheckerBase::Check(AliQA::ALITASK_t /*index*/)
+Double_t AliQACheckerBase::Check(AliQA::ALITASK_t /*index*/)
{
// Performs a basic checking
// Compares all the histograms stored in the directory
}
//____________________________________________________________________________
-const Double_t AliQACheckerBase::Check(AliQA::ALITASK_t /*index*/, TObjArray * list)
+Double_t AliQACheckerBase::Check(AliQA::ALITASK_t /*index*/, TObjArray * list)
{
// Performs a basic checking
// Compares all the histograms in the list
}
//____________________________________________________________________________
-const Double_t AliQACheckerBase::DiffC(const TH1 * href, const TH1 * hin) const
+Double_t AliQACheckerBase::DiffC(const TH1 * href, const TH1 * hin) const
{
// compares two histograms using the Chi2 test
if ( hin->Integral() == 0 ) {
}
//____________________________________________________________________________
-const Double_t AliQACheckerBase::DiffK(const TH1 * href, const TH1 * hin) const
+Double_t AliQACheckerBase::DiffK(const TH1 * href, const TH1 * hin) const
{
// compares two histograms using the Kolmogorov test
if ( hin->Integral() == 0 ) {
void SetRefandData(TDirectory * ref, TObjArray * refOCDB, TDirectory * data=NULL) { fRefSubDir = ref ; fRefOCDBSubDir = refOCDB, fDataSubDir = data ; }
protected:
- virtual const Double_t Check(AliQA::ALITASK_t index) ;
- virtual const Double_t Check(AliQA::ALITASK_t, TObjArray *) ;
- virtual const Double_t Check(AliQA::ALITASK_t, TNtupleD *) { return -1.0 ;}
- const Double_t DiffC(const TH1 * href, const TH1 * hin) const ;
- const Double_t DiffK(const TH1 * href, const TH1 * hin) const ;
+ virtual Double_t Check(AliQA::ALITASK_t index) ;
+ virtual Double_t Check(AliQA::ALITASK_t, TObjArray *) ;
+ virtual Double_t Check(AliQA::ALITASK_t, TNtupleD *) { return -1.0 ;}
+ Double_t DiffC(const TH1 * href, const TH1 * hin) const ;
+ Double_t DiffK(const TH1 * href, const TH1 * hin) const ;
void Finish() const ;
virtual void SetQA(AliQA::ALITASK_t index, Double_t value) const ;
virtual TH1 * GetSDigitsData(const Int_t index) = 0 ;
const char * GetDetectorDirName() const { return fDetectorDirName.Data() ; }
TList * GetParameterList() const { return fParameterList ; }
- const Int_t Increment() { return ++fCycleCounter ; }
+ Int_t Increment() { return ++fCycleCounter ; }
virtual TObjArray * Init(AliQA::TASKINDEX_t, Int_t cycles = -1) = 0 ;
virtual void Init(AliQA::TASKINDEX_t, TObjArray * list, Int_t run, Int_t cycles = -1) = 0 ;
- const Bool_t IsCycleDone() const { return fCycleCounter > fCycle ? kTRUE : kFALSE ; }
+ Bool_t IsCycleDone() const { return fCycleCounter > fCycle ? kTRUE : kFALSE ; }
void Reset() { fCycleCounter = 0 ; }
void SetCycle(Int_t nevts) { fCycle = nevts ; }
void SetWriteExpert() { fWriteExpert = kTRUE ; }
private:
Bool_t DoIt(const AliQA::TASKINDEX_t taskIndex) ;
AliLoader * GetLoader(Int_t iDet) ;
- const Int_t GetQACycles(const Int_t iDet) { return fQACycles[iDet] ; }
+ Int_t GetQACycles(const Int_t iDet) const { return fQACycles[iDet] ; }
Bool_t Init(const AliQA::TASKINDEX_t taskIndex, const char * fileName = NULL) ;
Bool_t InitRunLoader() ;
Bool_t IsSelected(const char * detName) ;
for (Int_t iDet = 0; iDet < fgkNDetectors; iDet++) {
if(!IsSelected(fgkDetectorName[iDet], detStr)) continue;
- if(fgkDetectorName[iDet]=="HLT") continue;
+ if(!strcmp(fgkDetectorName[iDet],"HLT")) continue;
if(AliGeomManager::IsModuleInGeom(fgkDetectorName[iDet]))
{
loadAlObjsListOfDets += fgkDetectorName[iDet];
}
//______________________________________________________________________________________________
-const Int_t AliShuttleInterface::GetDetPos(const char* detName){
+Int_t AliShuttleInterface::GetDetPos(const char* detName){
// Return detector position in the detector code array
for(UInt_t iDet=0; iDet < kNDetectors; iDet++){
virtual TList* GetFileIDs(Int_t system, const char* detector, const char* source) = 0;
virtual const char* GetRunParameter(const char* lbEntry) = 0;
- virtual const UInt_t GetStartTimeDCSQuery() = 0;
- virtual const UInt_t GetEndTimeDCSQuery() = 0;
+ virtual UInt_t GetStartTimeDCSQuery() = 0;
+ virtual UInt_t GetEndTimeDCSQuery() = 0;
virtual const char* GetRunType() = 0;
virtual Bool_t GetHLTStatus() = 0;
virtual const char* GetTriggerConfiguration() = 0;
static const char* GetOfflineDetName(const char* detName);
static const char* GetDetName(UInt_t detPos);
- static const Int_t GetDetPos(const char* detName);
- static const UInt_t NDetectors() {return kNDetectors;}
+ static Int_t GetDetPos(const char* detName);
+ static UInt_t NDetectors() {return kNDetectors;}
static TString GetMainCDB () {return fgkMainCDB;}
static TString GetLocalCDB () {return fgkLocalCDB;}
TString trconfiguration = config;
if (trconfiguration.IsNull()) {
- if (gAlice->GetTriggerDescriptor() != "") {
+ if (strcmp(gAlice->GetTriggerDescriptor(),"")) {
trconfiguration = gAlice->GetTriggerDescriptor();
}
else
// Either from AliSimulation or from
// gAlice
if (fMakeTrigger.IsNull()) {
- if (gAlice->GetTriggerDescriptor() != "")
+ if (strcmp(gAlice->GetTriggerDescriptor(),""))
fMakeTrigger = gAlice->GetTriggerDescriptor();
}
else
void SetGraph (TGraph* graph) { fGraph=graph; }
void SetMinPoints (Int_t minPoints) { fMinPoints=minPoints;}
- const Int_t GetMinPoints() const { return fMinPoints; }
+ Int_t GetMinPoints() const { return fMinPoints; }
protected:
part = dynamic_cast<TParticle*>(fParticleMap.At(nkeep));
// as the parent is always *before*, it must be already
// in place. This is what we are checking anyway!
- if((parent=part->GetFirstMother())>fHgwmk)
+ if((parent=part->GetFirstMother())>fHgwmk) {
if(fTrackLabelMap[parent]==-99) Fatal("PurifyKine","fTrackLabelMap[%d] = -99!\n",parent);
- else part->SetFirstMother(fTrackLabelMap[parent]);
+ else part->SetFirstMother(fTrackLabelMap[parent]);}
nkeep++;
}
}
// If the same "Grid" is alreay active, skip connection
if (!gGrid || gridUrl != gGrid->GridUrl() ||
- (( user != "" ) && ( user != gGrid->GetUser() )) ) {
+ (( strcmp(user,"") ) && ( strcmp(user,gGrid->GetUser()) )) ) {
// connection to the Grid
AliInfo("\nConnecting to the Grid...");
if (gGrid) {
}
//_____________________________________________________
-const Int_t AliTrackResiduals::GetNFreeParam(){
+Int_t AliTrackResiduals::GetNFreeParam(){
Int_t unfixedparam=6;
for(Int_t j=0;j<6;j++){
if(fBFixed[j]==kTRUE)unfixedparam--;
Int_t GetNdf() const { return fNdf; }
Int_t GetMinNPoints() const { return fMinNPoints; }
void FixParameter(Int_t par,Float_t value=0.) {fBFixed[par]=kTRUE; fFixed[par]= value;}
- const Int_t GetNFreeParam();
+ Int_t GetNFreeParam();
void ReleaseParameter(Int_t par) {fBFixed[par]=kFALSE;}
protected:
virtual void GetStdContent() = 0;
virtual void ReadFromTree(TTree *tree, Option_t* opt) = 0;
- virtual const void WriteToTree(TTree* tree) const = 0;
+ virtual void WriteToTree(TTree* tree) const = 0;
//virtual void Reset() = 0;
//virtual void ResetStdContent() = 0;