The operations department of the airline take the passenger, baggage and cargo information and collate this with the basic empty weight of the aircraft and the fuel load as determined by the pilots. They then feed this into a computer to calculate not only the gross weight of the aircraft but also the CoG at takeoff.