Char_t *sel1 = "ParOnline" ;
Char_t out[100];
sprintf(out,"%s/%s",sel,sel1);
- if (!man->Get(out,nrun)) {
- return kFALSE;
- }
AliCDBEntry *entry = man->Get(out,nrun);
+ if (!entry) {
+ AliFatal("Exiting, no CDB object (ParOnline) found!!!");
+ exit(0);
+ }
if(!entry->GetObject()){
- return kFALSE;
+ AliFatal("Exiting, no CDB object (ParOnline) found!!!");
+ exit(0);
}
fTOFCalOnline =(TObjArray*)entry->GetObject();
Char_t *sel1 = "Pulser" ;
Char_t out[100];
sprintf(out,"%s/%s",sel,sel1);
- if (!man->Get(out,nrun)) {
- return kFALSE;
- }
AliCDBEntry *entry = man->Get(out,nrun);
+ if (!entry) {
+ AliFatal("Exiting, no CDB object (Pulser) found!!!");
+ exit(0);
+ }
if(!entry->GetObject()){
- return kFALSE;
+ AliFatal("Exiting, no CDB object (Pulser) found!!!");
+ exit(0);
}
fTOFCalOnlinePulser =(TObjArray*)entry->GetObject();
Char_t *sel1 = "Noise" ;
Char_t out[100];
sprintf(out,"%s/%s",sel,sel1);
- if (!man->Get(out,nrun)) {
- return kFALSE;
- }
AliCDBEntry *entry = man->Get(out,nrun);
+ if (!entry) {
+ AliFatal("Exiting, no CDB object (Noise) found!!!");
+ exit(0);
+ }
if(!entry->GetObject()){
- return kFALSE;
+ AliFatal("Exiting, no CDB object (Noise) found!!!");
+ exit(0);
}
fTOFCalOnlineNoise =(TObjArray*)entry->GetObject();
Char_t *sel1 = "HW" ;
Char_t out[100];
sprintf(out,"%s/%s",sel,sel1);
- if (!man->Get(out,nrun)) {
- return kFALSE;
- }
AliCDBEntry *entry = man->Get(out,nrun);
+ if (!entry) {
+ AliFatal("Exiting, no CDB object (HW map) found!!!");
+ exit(0);
+ }
if(!entry->GetObject()){
- return kFALSE;
+ AliFatal("Exiting, no CDB object (HW map) found!!!");
+ exit(0);
}
fTOFCalOnlineHW =(TObjArray*)entry->GetObject();
Char_t *sel1 = "ParOffline" ;
Char_t out[100];
sprintf(out,"%s/%s",sel,sel1);
- if (!man->Get(out,nrun)) {
- return kFALSE;
- }
AliCDBEntry *entry = man->Get(out,nrun);
+ if (!entry) {
+ AliFatal("Exiting, no CDB object (ParOffline) found!!!");
+ exit(0);
+ }
if(!entry->GetObject()){
- return kFALSE;
+ AliFatal("Exiting, no CDB object (ParOffline) found!!!");
+ exit(0);
}
AliCDBMetaData * md = entry->GetMetaData();
fkValidity = md->GetComment();
Char_t *sel1 = "SimHisto" ;
Char_t out[100];
sprintf(out,"%s/%s",sel,sel1);
- if (!man->Get(out,nrun)) {
+ AliCDBEntry *entry = man->Get(out,nrun);
+ if (!entry) {
AliFatal("Exiting, no CDB object (SimHisto) found!!!");
exit(0);
}
- AliCDBEntry *entry = man->Get(out,nrun);
if(!entry->GetObject()){
AliFatal("Exiting, no CDB object (SimHisto) found!!!");
exit(0);
Char_t *sel1 = "RecPar" ;
Char_t out[100];
sprintf(out,"%s/%s",sel,sel1);
- if (!man->Get(out,nrun)) {
+ AliCDBEntry *entry = man->Get(out,nrun);
+ if (!entry) {
AliFatal("Exiting, no CDB object (RecPar) found!!!");
exit(0);
}
- AliCDBEntry *entry = man->Get(out,nrun);
if(!entry->GetObject()){
AliFatal("Exiting, no CDB object (RecPar) found!!!");
exit(0);
}
for (Int_t irun=0;irun<fNruns;irun++){
- Int_t i = ch[ich]+irun*fNChannels;
+ i = ch[ich]+irun*fNChannels;
//fTree->GetEntry(i);
fChain->GetEntry(i);
ntracksRun=nentries/3;
TProfile* hSlewingProf = new TProfile("hSlewingProf", "hSlewingProf",nusefulbins, binsProfile, "G"); // CHECK THE BUILD OPTION, PLEASE!!!!!!
for (Int_t irun=0;irun<fNruns;irun++){
- Int_t i = ch[ich]+irun*fNChannels;
+ i = ch[ich]+irun*fNChannels;
//fTree->GetEntry(i);
fChain->GetEntry(i);
ntracksRun=nentries/3;