public:
AliRICH();
AliRICH(const char *name, const char *title);
- AliRICH(const AliRICH& RICH) {;}
+ AliRICH(const AliRICH& RICH) : AliDetector(RICH) {}
virtual ~AliRICH();
AliRICH& operator=(const AliRICH& rhs) { return *this;}
public:
AliRICHChamber(); //default ctor
AliRICHChamber(Int_t iModuleN,AliRICHParam *pParam);
- AliRICHChamber(const AliRICHChamber &chamber ) {;}//copy ctor
+ AliRICHChamber(const AliRICHChamber &chamber ) : TNamed(chamber) {}//copy ctor
virtual ~AliRICHChamber() {;}//dtor
AliRICHChamber& operator=(const AliRICHChamber& rhs){return *this;}
void LocaltoGlobal(Float_t pos[3],Float_t Localpos[3]);//Transformation from local to global coordinates, chamber-dependant
// Dtor deletes RICH models. In future (???) AliRICHChamber will be responsible for that.
if(GetDebug()) cout<<ClassName()<<"::dtor()>\n";
- delete GetChamber(0)->GetGeometryModel();
- delete GetChamber(0)->GetResponseModel();
- delete GetChamber(0)->GetSegmentationModel();
+ if(fChambers) {
+ AliRICHChamber *ch = GetChamber(0);
+ if(ch) {
+ delete ch->GetGeometryModel();
+ delete ch->GetResponseModel();
+ delete ch->GetSegmentationModel();
+ }
+ }
}//AliRICHv3::dtor()