Possible ionization and fragmentation of chemicals

Is there any generic method where I can know/calculate/generate the possible ionization and fragmentation of a specific chemical, for example, hydrogen chloride and water?


This question is actually related to the mass spectrometer, where I am asked to identify the possible species/ions of a sample. Therefore I would like to know if there's any method to know (calculate) the outcome without memorising everything, for example the outcome of HCl.


