}
}
}
-
+/*
//____________________________________________________________________________
AliITSQASSDDataMakerRec::AliITSQASSDDataMakerRec(const AliITSQASSDDataMakerRec& qadm) :
TObject(),
new(this) AliITSQASSDDataMakerRec(qac);
return *this;
}
-
+*/
//__________________________________________________________________
AliITSQASSDDataMakerRec::~AliITSQASSDDataMakerRec() {
// destructor
fHistSSDOccupancyLayer5->GetZaxis()->SetRangeUser(0.0,100.0);
Char_t fLabel[3];
for(Int_t iBin = 1; iBin < fgkSSDMODULESPERLADDERLAYER5 + 1; iBin++){
- sprintf(fLabel,"%d",iBin);
+ snprintf(fLabel,2,"%d",iBin);
fHistSSDOccupancyLayer5->GetXaxis()->SetBinLabel(iBin,fLabel);
}
fHistSSDOccupancyLayer5->SetStats(kFALSE);
//((TH2D *)fAliITSQADataMakerRec->GetRawsData(fGenRawsOffset[specie]+fSSDRawsOffset-fSSDRawsDAOffset+3))->Reset();
AliCDBEntry *entryBadChannelsSSD = fCDBManager->Get("ITS/Calib/BadChannelsSSD");
- if(!entryBadChannelsSSD)
- AliError("OCDB entry for the bad channel list is not valid!");
- AliITSBadChannelsSSDv2 *badchannelsSSD = (AliITSBadChannelsSSDv2 *)entryBadChannelsSSD->GetObject();
+ if(!entryBadChannelsSSD)AliError("OCDB entry for the bad channel list is not valid!");
+ AliITSBadChannelsSSDv2 *badchannelsSSD = NULL;
+ if(entryBadChannelsSSD)badchannelsSSD = (AliITSBadChannelsSSDv2 *)entryBadChannelsSSD->GetObject();
if(!badchannelsSSD)
AliError("Bad channel list object is not a valid AliITSBadChannelsSSD object!");
nPSideChannelsLayer6 = 0, nNSideChannelsLayer6 = 0;
Int_t badChannel = 0;
- for(Int_t j = 0; j < fgkNumberOfPSideStrips; j++) {
- badChannel = (Int_t)(badchannelsSSD->GetBadChannelP(i,j));
- if(badChannel != 0) {
- if(layer == 5)
- nPSideChannelsLayer5 += 1;
- if(layer == 6)
- nPSideChannelsLayer6 += 1;
- nBadPSideChannels += 1;
- }//badchannel flag != 0
- badChannel = (Int_t)(badchannelsSSD->GetBadChannelN(i,j));
- if(badChannel != 0) {
- if(layer == 5)
- nNSideChannelsLayer5 += 1;
- if(layer == 6)
- nNSideChannelsLayer6 += 1;
-nBadNSideChannels += 1;
- }//badchannel flag != 0
- }//loop over strips
-
+ if(badchannelsSSD){
+ for(Int_t j = 0; j < fgkNumberOfPSideStrips; j++) {
+ badChannel = (Int_t)(badchannelsSSD->GetBadChannelP(i,j));
+ if(badChannel != 0) {
+ if(layer == 5)
+ nPSideChannelsLayer5 += 1;
+ if(layer == 6)
+ nPSideChannelsLayer6 += 1;
+ nBadPSideChannels += 1;
+ }//badchannel flag != 0
+ badChannel = (Int_t)(badchannelsSSD->GetBadChannelN(i,j));
+ if(badChannel != 0) {
+ if(layer == 5)
+ nNSideChannelsLayer5 += 1;
+ if(layer == 6)
+ nNSideChannelsLayer6 += 1;
+ nBadNSideChannels += 1;
+ }//badchannel flag != 0
+ }//loop over strips
+ }
//cout << "Bad channels P side module " << module << ": " << nBadPSideChannels << endl;
//cout << "Bad channels N side module " << module << ": " << nBadNSideChannels << endl;
Int_t rv = 0 ;
Int_t gLayer = 0, gLadder = 0, gModule = 0;
Int_t lLadderLocationY = 0;
+ TClonesArray *recpoints = NULL;
AliITSRecPointContainer* rpcont=AliITSRecPointContainer::Instance();
- TClonesArray *recpoints = rpcont->FetchClusters(0,clustersTree);
+ rpcont->FetchClusters(0,clustersTree);
if(!rpcont->GetStatusOK() || !rpcont->IsSSDActive()){
AliError("can't get SSD clusters !");
return rv;
public:
AliITSQASSDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode = kFALSE, Int_t ldc=0); //ctor
- AliITSQASSDDataMakerRec(const AliITSQASSDDataMakerRec& qadm);
- AliITSQASSDDataMakerRec& operator = (const AliITSQASSDDataMakerRec& qac);
+
virtual Int_t InitRaws();
virtual Int_t InitDigits();
virtual Int_t InitRecPoints();
void ResetDetector(AliQAv1::TASKINDEX_t task);
private:
+ AliITSQASSDDataMakerRec(const AliITSQASSDDataMakerRec& qadm);
+ AliITSQASSDDataMakerRec& operator = (const AliITSQASSDDataMakerRec& qac);
void GetOccupancyStrip(TH1 *lHisto, Int_t *occupancyMatrix);
Double_t GetOccupancyModule(TH1 *lHisto,
Int_t stripside,
}
-//______________________________________________________________________
-AliITSreconstruction::AliITSreconstruction(const AliITSreconstruction &rec):TTask(rec),
-fInit(rec.fInit),
-fEnt(rec.fEnt),
-fEnt0(rec.fEnt0),
-fDetTypeRec(rec.fDetTypeRec),
-fDfArp(rec.fDfArp),
-fITSgeom(rec.fITSgeom),
-fLoader(rec.fLoader),
-fRunLoader(rec.fRunLoader)
-{
- // Copy constructor.
-
-
-}
-
-//______________________________________________________________________
-AliITSreconstruction& AliITSreconstruction::operator=(const AliITSreconstruction& source){
- // Assignment operator.
- this->~AliITSreconstruction();
- new(this) AliITSreconstruction(source);
- return *this;
-
-}
//______________________________________________________________________
AliITSreconstruction::~AliITSreconstruction(){
// none.
Option_t *lopt;
Int_t evnt;
-
- if(strstr(opt,"All")||strstr(opt,"ALL")||strstr(opt,"ITS")||opt==0){
+ Bool_t condition =kFALSE;
+ if(opt){
+ if(strstr(opt,"All")||strstr(opt,"ALL")||strstr(opt,"ITS"))condition =kTRUE;
+ }
+ else{
+ condition = kTRUE;
+ }
+ if(condition){
fDet[0] = fDet[1] = fDet[2] = kTRUE;
lopt = "All";
}else{