// keep galice.root for signal and name differently the file for
// background when add! otherwise the track info for signal will be lost !
- static Bool_t first=true;
+ static Bool_t first=kTRUE;
static TTree *TH1;
static TFile *File;
+ Int_t i;
char *Add = strstr(option,"Add");
AliRICHchamber* iChamber;
AliRICH *RICH = (AliRICH *) gAlice->GetDetector("RICH");
AliRICHHitMap* HitMap[10];
- for (Int_t i=0; i<10; i++) {HitMap[i]=0;}
+ for (i=0; i<10; i++) {HitMap[i]=0;}
if (Add ) {
if(first) {
fFileName=filename;
cout<<"I have opened "<<fFileName<<" file "<<endl;
fHits2 = new TClonesArray("AliRICHhit",1000 );
fClusters2 = new TClonesArray("AliRICHcluster",10000);
- first=false;
+ first=kFALSE;
}
File->cd();
File->ls();
AliRICHHitMap* hm;
for (int icat=0; icat<1; icat++) {
- for (Int_t i=0; i<7; i++) {
+ for (i=0; i<7; i++) {
if (HitMap[i]) {
hm=HitMap[i];
delete hm;
}
}
Int_t counter=0;
- for (Int_t i =0; i<7; i++) {
+ for (i =0; i<7; i++) {
iChamber=(AliRICHchamber*) (*fChambers)[i];
if (iChamber->Nsec()==1 && icat==1) {
continue;
TClonesArray *fDch;
for (int k=0;k<7;k++) {
fDch= RICH->DigitsAddress(k);
- int ndig=fDch->GetEntriesFast();
- printf (" k, ndigits %d %d \n",k,ndig);
+ int ndigit=fDch->GetEntriesFast();
+ printf (" k, ndigits %d %d \n",k,ndigit);
}
RICH->ResetDigits();
Float_t fxt;
Float_t fyt;
//
- // Version Identifier
- char *fName;
+ char *fName; //! Version Identifier
};
class AliRICHresponseV0 : //Mathieson response
Float_t fKy2;
Float_t fKy4;
Float_t fPitch; //anode-cathode pitch
- char *fName; // Version Identifier
+ char *fName; //! Version Identifier
};
#endif
AliRICHchamber* iChamber;
AliRICHsegmentation* segmentation;
Int_t NallDigits=0;
+ Int_t ich;
- for (Int_t ich=0; ich<7; ich++) {
+ for (ich=0; ich<7; ich++) {
TClonesArray *RICHdigits = RICH->DigitsAddress(ich);
if (RICHdigits == 0) continue;
gAlice->ResetDigits();
}
if (fPoints == 0) fPoints = new TObjArray(NallDigits);
Int_t counter=0;
- for (Int_t ich=0; ich<7; ich++) {
+ for (ich=0; ich<7; ich++) {
TClonesArray *RICHdigits = RICH->DigitsAddress(ich);
if (RICHdigits == 0) continue;
gAlice->ResetDigits();