for running CosmicAnalysis