Hi qzzm.
You can do this in hook:
//Get codeiginiter instance
$CI =& get_instance();
//get controller
$controller = $CI->router->fetch_class();
//get method (OPTIONAL)
$method = $CI->router->fetch_method();
if($controller == 'controllerA'){
//DO ACTION!
}